9)break;n=10*n+i}if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function br(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Ue(e.z,n?tt(t):t)}catch(r){}try{return e.w=Ue((e.XF||{}).numFmtId||(n?14:0),n?tt(t):t)}catch(r){return""+t}}function yr(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?ci[e.v]||e.v:br(e,void 0==t?e.v:t))}function wr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function xr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=w&&null==i&&(i=w);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?fr(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=vr(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[h].length;++d)if("undefined"!==typeof t[h][d]){var f={v:t[h][d]},p=a+h,m=s+d;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r>2;return n?i/100:i}function Ir(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Rr=Ir;function Fr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Br(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=li[i];c&&(t.rgb=Ns(c));break;case 2:t.rgb=Ns([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function jr(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function Hr(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Ur(e){return Hr(e,1)}function qr(e){return Hr(e,2)}var Wr=2,Gr=3,Vr=11,Kr=12,Yr=19,Xr=64,Zr=65,_r=71,Jr=4108,Qr=4126,$r=80,ei=81,ti=[$r,ei],ni={1:{n:"CodePage",t:Wr},2:{n:"Category",t:$r},3:{n:"PresentationFormat",t:$r},4:{n:"ByteCount",t:Gr},5:{n:"LineCount",t:Gr},6:{n:"ParagraphCount",t:Gr},7:{n:"SlideCount",t:Gr},8:{n:"NoteCount",t:Gr},9:{n:"HiddenCount",t:Gr},10:{n:"MultimediaClipCount",t:Gr},11:{n:"ScaleCrop",t:Vr},12:{n:"HeadingPairs",t:Jr},13:{n:"TitlesOfParts",t:Qr},14:{n:"Manager",t:$r},15:{n:"Company",t:$r},16:{n:"LinksUpToDate",t:Vr},17:{n:"CharacterCount",t:Gr},19:{n:"SharedDoc",t:Vr},22:{n:"HyperlinksChanged",t:Vr},23:{n:"AppVersion",t:Gr,p:"version"},24:{n:"DigSig",t:Zr},26:{n:"ContentType",t:$r},27:{n:"ContentStatus",t:$r},28:{n:"Language",t:$r},29:{n:"Version",t:$r},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ri={1:{n:"CodePage",t:Wr},2:{n:"Title",t:$r},3:{n:"Subject",t:$r},4:{n:"Author",t:$r},5:{n:"Keywords",t:$r},6:{n:"Comments",t:$r},7:{n:"Template",t:$r},8:{n:"LastAuthor",t:$r},9:{n:"RevNumber",t:$r},10:{n:"EditTime",t:Xr},11:{n:"LastPrinted",t:Xr},12:{n:"CreatedDate",t:Xr},13:{n:"ModifiedDate",t:Xr},14:{n:"PageCount",t:Gr},15:{n:"WordCount",t:Gr},16:{n:"CharCount",t:Gr},17:{n:"Thumbnail",t:_r},18:{n:"Application",t:$r},19:{n:"DocSecurity",t:Gr},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},oi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ai(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var si=ai([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=dt(si),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function di(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function fi(e){var t=di();if(!e||!e.match)return t;var n={};if((e.match(Pt)||[]).forEach((function(e){var r=Ft(e);switch(r[0].replace(It,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}var pi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function mi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function gi(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(Pt)||[]).forEach((function(e){var i=Ft(e);if("]*>([\\s\\S]*?)"+r+">")}return e}();function xi(e){var t={};e=Jt(e);for(var n=0;n0&&(t[r[1]]=Ut(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=ut(t[r[1]]))}return t}var ki=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ci(e,t,n,r){var i=[];if("string"==typeof e)i=on(e,r);else for(var o=0;o0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function Ti(e,t,n){var r={};return t||(t={}),e=Jt(e),ki.forEach((function(n){var i=(e.match($t(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ut(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"+n[0]+">"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&Ci(r.HeadingPairs,r.TitlesOfParts,t,n),t}var Ai=/<[^>]+>[^<]*/g;function Si(e,t){var n={},r="",i=e.match(Ai);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=Ft(a);switch(s[0]){case"":r=null;break;default:if(0===a.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ut(u);break;case"bool":n[r]=Kt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=ut(u);break;case"cy":case"error":n[r]=Ut(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if(""===a.slice(0,2));else if(t.WTF)throw new Error(a)}}return n}var Ei,Mi={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Oi(e,t,n){Ei||(Ei=$e(Mi)),t=Ei[t]||t,e[t]=n}function Ni(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Di(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)while(e.l-r&3)++e.l;return i}function Li(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function zi(e,t,n){return 31===t?Li(e):Di(e,t,n)}function Pi(e,t,n){return zi(e,t,!1===n?0:4)}function Ii(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return zi(e,t,0)}function Ri(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r){var i=e.l;n[r]=e.read_shift(0,"lpwstr").replace(P,""),e.l-i&2&&(e.l+=2)}return n}function Fi(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(P,"");return n}function Bi(e){var t=e.l,n=Wi(e,ei);0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2);var r=Wi(e,Gr);return[n,r]}function ji(e){for(var t=e.read_shift(4),n=[],r=0;r>3<<2),r}function Ui(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function qi(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Wi(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==Kr&&i!==t&&-1===ti.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===Kr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return Di(e,i,4).replace(P,"");case 31:return Li(e);case 64:return Ni(e);case 65:return Ui(e);case 71:return qi(e);case 80:return Pi(e,i,!o.raw).replace(P,"");case 81:return Ii(e,i).replace(P,"");case 4108:return ji(e);case 4126:case 4127:return 4127==i?Ri(e):Fi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function Gi(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),d=e.read_shift(4);o[a]=[u,d+n]}o.sort((function(e,t){return e[1]-t[1]}));var f={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var p=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,p=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(p=!1,e.l=o[a][1]),p)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var m=t[o[a][0]];if(f[m.n]=Wi(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===o[a][0]){if(s=f.CodePage=Wi(e,Wr),h(s),-1!==l){var g=e.l;e.l=o[l][1],c=Hi(e,s),e.l=g}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=Hi(e,s)}else{var v,b=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,v=Ui(e);break;case 30:e.l+=4,v=Pi(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Pi(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Xi(e,4);break;case 64:e.l+=4,v=ut(Ni(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[b]=v}}return e.l=n+r,f}function Vi(e,t,n){var r=e.content;if(!r)return{};Zn(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==Ze.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var h,d=Gi(r,t),f={SystemIdentifier:c};for(var p in d)f[p]=d[p];if(f.FMTID=o,1===i)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=Gi(r,null)}catch(m){}for(p in h)f[p]=h[p];return f.FMTID=[o,a],f}function Ki(e,t){return e.read_shift(t),null}function Yi(e,t,n){var r=[],i=e.l+t;while(e.l=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return o=a,l}function $i(e){var t=o;o=1200;var n,r=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),a&&(n=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",d=0===r?"":e.read_shift(r,h);return s&&(e.l+=4*c),a&&(e.l+=n),u.t=d,s||(u.raw=""+u.t+"",u.r=u.t),o=t,u}function eo(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function to(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):eo(e,r,n)}function no(e,t,n){if(n.biff>5)return to(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ro(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function io(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(P,"");return r&&(e.l+=24),i}function oo(e){var t=e.read_shift(2),n="";while(t-- >0)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(0===i)return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var a=e.read_shift(o>>1,"utf16le").replace(P,"");return n+a}function ao(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return io(e,t);case"0303000000000000c000000000000046":return oo(e,t);default:throw new Error("Unsupported Moniker "+n)}}function so(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(P,""):"";return n}function lo(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,h="";16&i&&(o=so(e,n-e.l)),128&i&&(a=so(e,n-e.l)),257===(257&i)&&(s=so(e,n-e.l)),1===(257&i)&&(l=ao(e,n-e.l)),8&i&&(h=so(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Ni(e)),e.l=n;var d=a||s||l||"";d&&h&&(d+="#"+h),d||(d="#"+h),2&i&&"/"==d.charAt(0)&&"/"!=d.charAt(1)&&(d="file://"+d);var f={Target:d};return c&&(f.guid=c),u&&(f.time=u),o&&(f.Tooltip=o),f}function co(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function uo(e,t){var n=co(e,t);return n[3]=0,n}function ho(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function fo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function po(e,t,n){return 0===t?"":no(e,t,n)}function mo(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function go(e){var t=e.read_shift(2),n=Pr(e);return[t,n]}function vo(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Qi(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var wo=yo;function xo(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function ko(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Co(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function To(e){e.l+=2,e.l+=e.read_shift(2)}var Ao={0:To,4:To,5:To,6:To,7:Co,8:To,9:To,10:To,11:To,12:To,13:ko,14:To,15:To,16:To,17:To,18:To,19:To,20:To,21:xo};function So(e,t){var n=e.l+t,r=[];while(e.l=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function Mo(e,t){return 0===t||e.read_shift(2),1200}function Oo(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=no(e,0,n);return e.read_shift(t+r-e.l),i}function No(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}function Do(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=Qi(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function Lo(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function Bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function jo(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function Ho(){}function Uo(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=Qi(e,0,n),r}function qo(e){var t=ho(e);return t.isst=e.read_shift(4),t}function Wo(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=e.l+t,i=ho(e,6);2==n.biff&&e.l++;var o=to(e,r-e.l,n);return i.val=o,i}function Go(e,t,n){var r=e.read_shift(2),i=no(e,0,n);return[r,i]}var Vo=no;function Ko(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function Yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=go(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function Xo(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function Jo(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=_o(e,t,r.fStyle,n),r}function Qo(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function $o(e,t,n){var r=ho(e,6);2!=n.biff&&9!=t||++e.l;var i=Ji(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function ea(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=ho(e,6),i=Fr(e,8);return r.val=i,r}var ta=po;function na(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=eo(e,o),s=[];while(r>e.l)s.push(to(e));return[o,i,a,s]}function ra(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=vo(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=eo(e,a,n);32&i&&(c=ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?Ru(e,u,n,s):[];return{chKey:o,Name:c,itab:l,rgce:h}}function aa(e,t,n){if(n.biff<8)return sa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(mo(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function sa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Qi(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function la(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=eo(e,r,n),a=eo(e,i,n);return[o,a]}e.l+=t}function ca(e,t,n){var r=yo(e,6);e.l++;var i=e.read_shift(1);return t-=8,[Fu(e,t,n),i,r]}function ua(e,t,n){var r=wo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Pu(e,t,n,r)]}function ha(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function da(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=no(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function fa(e,t,n){return da(e,t,n)}function pa(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(bo(e,t));return n}function ma(e,t,n){if(n&&n.biff<8)return va(e,t,n);var r=xo(e,22),i=So(e,t-22,r[1]);return{cmo:r,ft:i}}var ga={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function va(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((ga[r]||_n)(e,t,n)),{cmo:[i,r,o],ft:a}}function ba(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:ro(e,6,n);var a=e.read_shift(2);e.read_shift(2),Zi(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(h){return e.l=r+t,{t:i}}}function ya(e,t){var n=bo(e,8);e.l+=16;var r=lo(e,t-24);return[n,r]}function wa(e,t){e.read_shift(2);var n=bo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(P,""),[n,r]}function xa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=ii[t]||t,t=e.read_shift(2),n[1]=ii[t]||t,n}function ka(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ca(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ta(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Aa(e,t,n){if(!n.cellStyles)return _n(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function Sa(e,t){var n={};return t<32||(e.l+=16,n.header=Fr(e,8),n.footer=Fr(e,8),e.l+=2),n}function Ea(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}var Ma=ho,Oa=_i,Na=to;function Da(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function La(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=ho(e,6);++e.l;var i=no(e,t-7,n);return r.t="str",r.val=i,r}function za(e){var t=ho(e,6);++e.l;var n=Fr(e,8);return t.t="n",t.val=n,t}function Pa(e){var t=ho(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function Ia(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Ra(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function Fa(e,t,n){var r=e.l+t,i=ho(e,6),o=e.read_shift(2),a=eo(e,o,n);return e.l=r,i.t="str",i.val=a,i}var Ba=[2,3,48,49,131,139,140,245],ja=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=$e({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=E(1);switch(n.type){case"base64":i=O(T(t));break;case"binary":i=O(t);break;case"buffer":case"array":i=t;break}Zn(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:break;case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0,a=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(u=i.read_shift(2));var h=i.read_shift(2),d=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var f=[],p={},m=Math.min(i.length,2==o?521:u-10-(s?264:0)),v=l?32:11;while(i.l0)if(42!==i[i.l])for(++i.l,r[++b]=[],y=0,y=0;y!=f.length;++y){var w=i.slice(i.l,i.l+f[y].len);i.l+=f[y].len,Zn(w,0);var x=g.utils.decode(d,w);switch(f[y].type){case"C":x.trim().length&&(r[b][y]=x.replace(/\s+$/,""));break;case"D":8===x.length?r[b][y]=new Date(+x.slice(0,4),+x.slice(4,6)-1,+x.slice(6,8)):r[b][y]=x;break;case"F":r[b][y]=parseFloat(x.trim());break;case"+":case"I":r[b][y]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(x.trim().toUpperCase()){case"Y":case"T":r[b][y]=!0;break;case"N":case"F":r[b][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+x+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[b][y]="##MEMO##"+(l?parseInt(x.trim(),10):w.read_shift(4));break;case"N":x=x.replace(/\u0000/g,"").trim(),x&&"."!=x&&(r[b][y]=+x||0);break;case"@":r[b][y]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":r[b][y]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":r[b][y]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[b][y]=-w.read_shift(-8,"f");break;case"B":if(s&&8==f[y].len){r[b][y]=w.read_shift(8,"f");break}case"G":case"P":w.l+=f[y].len;break;case"0":if("_NullFlags"===f[y].name)break;default:throw new Error("DBF Unsupported data type "+f[y].type)}}else i.l+=h;if(2!=o&&i.l=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=$n(),s=hp(e,{header:1,raw:!0,cellDates:!0}),l=s[0],c=s.slice(1),u=e["!cols"]||[],d=0,f=0,p=0,m=1;for(d=0;d250&&(k=250),x=((u[d]||{}).DBF||{}).type,"C"==x&&u[d].DBF.len>k&&(k=u[d].DBF.len),"B"==w&&"N"==x&&(w="N",y[d]=u[d].DBF.dec,k=u[d].DBF.len),b[d]="C"==w||"N"==x?k:o[w]||0,m+=b[d],v[d]=w}else v[d]="?"}var T=i.next(32);for(T.write_shift(4,318902576),T.write_shift(4,c.length),T.write_shift(2,296+32*p),T.write_shift(2,m),d=0;d<4;++d)T.write_shift(4,0);for(T.write_shift(4,0|(+t[a]||3)<<8),d=0,f=0;d":190,"?":191,"{":223},n=new RegExp("N("+Qe(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(e,n){var r=t[n];return"number"==typeof r?y(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:y(r)};function o(t,n){switch(n.type){case"base64":return a(T(t),n);case"binary":return a(t,n);case"buffer":return a(A&&e.isBuffer(t)?t.toString("binary"):N(t),n);case"array":return a(ht(t),n)}throw new Error("Unrecognized type "+n.type)}function a(e,t){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],f=[],p=null,m={},v=[],b=[],y=[],w=0;for(+t.codepage>=0&&h(+t.codepage);c!==a.length;++c){w=0;var x,k=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,r),C=k.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),T=C[0];if(k.length>0)switch(T){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==C[1].charAt(0)&&f.push(k.slice(3).replace(/;;/g,";"));break;case"C":var A=!1,S=!1,E=!1,M=!1,O=-1,N=-1;for(u=1;u-1&&d[O][N];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=tc(L[1],{r:s-O,c:l-N})}break;case"F":var z=0;for(u=1;u0?(v[s].hpt=w,v[s].hpx=Ys(w)):0===w&&(v[s].hidden=!0);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}z<1&&(p=null);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}}return v.length>0&&(m["!rows"]=v),b.length>0&&(m["!cols"]=b),t&&t.sheetRows&&(d=d.slice(0,t.sheetRows)),[d,m]}function s(e,t){var n=o(e,t),r=n[0],i=n[1],a=kr(r,t);return Qe(i).forEach((function(e){a[e]=i[e]})),a}function l(e,t){return wr(s(e,t),t)}function c(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ec(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Bs(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=js(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function d(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Ks(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function f(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=vr(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&d(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var f=pr({r:l,c:h});n=a?(e[l]||[])[h]:e[f],n&&(null!=n.v||n.f&&!n.F)&&i.push(c(n,e,l,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return t["|"]=254,{to_workbook:l,to_sheet:s,from_sheet:f}}(),Ua=function(){function t(t,r){switch(r.type){case"base64":return n(T(t),r);case"binary":return n(t,r);case"buffer":return n(A&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o]||"";while(1&(u.match(/["]/g)||[]).length&&o=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(t(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)t(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var r={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(e){for(var t={},n=!1,o=0,a=0;o0&&v(),i["!ref"]=gr(a),i}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):kr(n(e,t),t):a(e,t)}function l(t,n){var r="",i="string"==n.type?[0,0,0,0]:tp(t,n);switch(n.type){case"base64":r=T(t);break;case"binary":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&"undefined"!==typeof g?g.utils.decode(n.codepage,t):A&&e.isBuffer(t)?t.toString("binary"):N(t);break;case"array":r=ht(t);break;case"string":r=t;break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Jt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Jt(r):"binary"==n.type&&"undefined"!==typeof g&&n.codepage&&(r=g.utils.decode(n.codepage,g.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?qa.to_sheet("string"==n.type?r:Jt(r),n):s(r,n)}function c(e,t){return wr(l(e,t),t)}function u(e){for(var t,n=[],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=pr({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(yr(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push(" ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:u}}();function Ga(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=Ha.to_workbook(e,n);return n.WTF=r,i}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return Wa.to_workbook(e,t)}}var Va=function(){function e(e,t,n){if(e){Zn(e,e.l||0);var r=n.Enum||H;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=H,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||X[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||"Sheet"+(s+1),a="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[pr(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=U,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o="Sheet"+(s+1)),d>0&&e[0].r>=d)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1],h.e.c=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=$n(),i=vr(e["!ref"]),a=Array.isArray(e),s=[];of(r,0,o(1030)),of(r,6,l(i));for(var c=Math.min(i.e.r,8191),u=i.s.r;u<=c;++u)for(var f=or(u),m=i.s.c;m<=i.e.c;++m){u===i.s.r&&(s[m]=cr(m));var v=s[m]+f,b=a?(e[u]||[])[m]:e[v];if(b&&"z"!=b.t)if("n"==b.t)(0|b.v)==b.v&&b.v>=-32768&&b.v<=32767?of(r,13,p(u,m,b.v)):of(r,14,g(u,m,b.v));else{var y=yr(b);of(r,15,d(u,m,y.slice(0,239)))}}return of(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=$n();of(r,0,a(e));for(var i=0,o=0;i8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Jn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function d(e,t,n){var r=Jn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i=128?95:o)}return r.write_shift(1,0),r}function f(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function p(e,t,n){var r=Jn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function m(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function g(e,t,n){var r=Jn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function v(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var o=e.read_shift(2);k(e.slice(e.l,e.l+o),i),e.l+=o}return i}function b(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?cr(t):or(t))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(e,t){Zn(e,0);var n=[],r=0,i="",o="",a="",s="";while(e.ln.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var d=n.slice(-r);n.length-=r,n.push(y[l][0]+"("+d.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function C(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function A(e,t){var n=C(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function S(e,t,n,r){var i=Jn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o=128?95:a)}return i.write_shift(1,0),i}function E(e,t){var n=C(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function M(e,t){var n=C(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function N(e,t,n,r){var i=Jn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,l=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++a,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),a+=16383+(o?32768:0),i.write_shift(2,a),i}function D(e,t){var n=M(e,14);return e.l+=t-14,n}function L(e,t){var n=C(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function z(e,t){var n=C(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function P(e,t){var n=z(e,14);return e.l+=t-10,n}function I(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function R(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length127?95:i}return n[n.l++]=0,n}var H={0:{n:"BOF",f:Zi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:I},222:{n:"SHEETNAMELP",f:R},65535:{n:""}},U={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:A},23:{n:"NUMBER17",f:M},24:{n:"NUMBER18",f:E},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:B},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:z},40:{n:"FORMULA28",f:P},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:I},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:F},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();function Ka(e){var t={},n=e.match(Pt),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=Ft(n[r]);switch(o[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Ya=function(){var e=$t("t"),t=$t("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Ut(r[1])},o=n.match(t);return o&&(i.s=Ka(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Xa=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push("")),e.i&&(t.push(""),n.push("")),e.strike&&(t.push(""),n.push(""));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push(""+i+">")),n.push(""),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"
")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),Za=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,_a=/<(?:\w+:)?r>/,Ja=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Qa(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ut(Jt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Jt(e),n&&(r.h=Gt(r.t))):e.match(_a)&&(r.r=Jt(e),r.t=Ut(Jt((e.replace(Ja,"").match(Za)||[]).join("").replace(Pt,""))),n&&(r.h=Xa(Ya(r.r)))),r):{t:""}}var $a=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,es=/<(?:\w+:)?(?:si|sstItem)>/g,ts=/<\/(?:\w+:)?(?:si|sstItem)>/;function ns(e,t){var n=[],r="";if(!e)return n;var i=e.match($a);if(i){r=i[2].replace(es,"").split(ts);for(var o=0;o!=r.length;++o){var a=Qa(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=Ft(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function rs(e){return[e.read_shift(4),e.read_shift(4)]}function is(e,t){var n=[],r=!1;return Qn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}function os(e){if("undefined"!==typeof g)return g.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r=4&&(e.l+=t-4),n}function ss(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ls(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function cs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(ls(e));return t}function us(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function hs(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ds(e){var t=hs(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function fs(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function ps(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ms(e){var t=as(e);switch(t.Minor){case 2:return[t.Minor,gs(e,t)];case 3:return[t.Minor,vs(e,t)];case 4:return[t.Minor,bs(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function gs(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=fs(e,n),i=ps(e,e.length-e.l);return{t:"Std",h:r,v:i}}function vs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bs(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(Pt,(function(e){var n=Ft(e);switch(Bt(n[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=fs(e,i),t-=i,n.EncryptionVerifier=ps(e,t),n}function ws(e){var t={},n=t.EncryptionVersionInfo=as(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function xs(e){var t,n,r,i,o,a,s=0,l=os(e),c=l.length+1;for(t=E(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var ks=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=os(t),l=o(s),c=s.length,u=E(16),h=0;16!=h;++h)u[h]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),Cs=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=ks(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},Ts=function(e){var t=0,n=ks(e);return function(e){var r=Cs("",e,t,n);return t=r[1],r[0]}};function As(e,t,n,r){var i={key:Zi(e),verificationBytes:Zi(e)};return n.password&&(i.verifier=xs(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=Ts(n.password)),i}function Ss(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=ws(e,t):r.Data=ys(e,t),r}function Es(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?Ss(e,t-2,r):As(e,n.biff>=8?t:t-2,n,r),r}var Ms=function(){function t(t,r){switch(r.type){case"base64":return n(T(t),r);case"binary":return n(t,r);case"buffer":return n(A&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,a=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(a,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][s]=c:r[pr({r:t,c:s})]=c}break}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=gr(o),r}function r(e,n){return wr(t(e,n),n)}function i(e){for(var t,n=["{\\rtf1\\ansi"],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=pr({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(yr(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:i}}();function Os(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Ns(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Ds(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function Ls(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function zs(e,t){if(0===t)return e;var n=Ds(Os(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),Ns(Ls(n))}var Ps=6,Is=15,Rs=1,Fs=Ps;function Bs(e){return Math.floor((e+Math.round(128/Fs)/256)*Fs)}function js(e){return Math.floor((e-5)/Fs*100+.5)/100}function Hs(e){return Math.round((e*Fs+5)/Fs*256)/256}function Us(e){return Hs(js(Bs(e)))}function qs(e){var t=Math.abs(e-Us(e)),n=Fs;if(t>.005)for(Fs=Rs;Fs":case"":break;case"":case"":i={},n.diagonalUp&&(i.diagonalUp=Kt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=Kt(n.diagonalDown)),t.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function _s(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(Pt)||[]).forEach((function(e){var n=Ft(e);switch(Bt(n[0])){case"":case"":break;case"":case"":i={},t.Fills.push(i);break;case"":break;case"":break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Js(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(Pt)||[]).forEach((function(e){var a=Ft(e);switch(Bt(a[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Qs(e,t,n){t.NumberFmt=[];for(var r=Qe(X),i=0;i":case"":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}qe(s,l)}break;case"":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}var $s=["numFmtId","fillId","fontId","borderId","xfId"],el=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(Pt)||[]).forEach((function(e){var o=Ft(e),a=0;switch(Bt(o[0])){case"":case"":case"":break;case"":for(r=o,delete r[0],a=0;a<$s.length;++a)r[$s[a]]&&(r[$s[a]]=parseInt(r[$s[a]],10));for(a=0;a392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"":break;case"":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=Kt(o.wrapText)),r.alignment=s;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}var nl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(//gm,"").replace(//gm,""),(l=o.match(e))&&Qs(l,c,s),(l=o.match(r))&&Js(l,c,a,s),(l=o.match(n))&&_s(l,c,a,s),(l=o.match(i))&&Zs(l,c,a,s),(l=o.match(t))&&tl(l,c,s),c):c}}();function rl(e,t){var n=e.read_shift(2),r=Tr(e,t-2);return[n,r]}function il(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=jr(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=Br(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Tr(e,t-21),r}var ol=_n;function al(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}var sl=_n;function ll(e,t,n){var r={NumberFmt:[]};for(var i in X)r.NumberFmt[i]=X[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return Qn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],qe(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=zs(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(s),a=!0;break;case 38:o.pop(),a=!1;break;default:if(i.T>0)o.push(s);else if(i.T<0)o.pop();else if(!a||n.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}var cl=["","","","","","","","","","","",""];function ul(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(Pt)||[]).forEach((function(e){var i=Ft(e);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[cl.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function hl(){}function dl(){}var fl=/]*)>[\s\S]*<\/a:clrScheme>/,pl=/]*)>[\s\S]*<\/a:fontScheme>/,ml=/]*)>[\s\S]*<\/a:fmtScheme>/;function gl(e,t,n){var r;t.themeElements={},[["clrScheme",fl,ul],["fontScheme",pl,hl],["fmtScheme",ml,dl]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var vl=/]*)>[\s\S]*<\/a:themeElements>/;function bl(e,t){var n;e&&0!==e.length||(e=yl());var r={};if(!(n=e.match(vl)))throw new Error("themeElements not found in theme");return gl(n[0],r,t),r.raw=e,r}function yl(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Nt];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function wl(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles){var o,a=e.slice(e.l);e.l=r;try{o=Mt(a,{type:"array"})}catch(l){return}var s=Tt(o,"theme/theme/theme1.xml",!0);if(s)return bl(s,n)}else e.l=r}function xl(e){return e.read_shift(4)}function kl(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Cl(e,4);break;case 2:t.xclrValue=co(e,4);break;case 3:t.xclrValue=xl(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Cl(e,t){return _n(e,t)}function Tl(e,t){return _n(e,t)}function Al(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=kl(e,n);break;case 6:r[1]=Tl(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Sl(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(Al(e,n-e.l));return{ixfe:r,ext:o}}function El(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Ml(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Tr(e,t-8)}}function Ol(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Nl(e){return e.l+=4,0!=e.read_shift(4)}function Dl(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},o=[],a=!1,s=2;return Qn(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:o.push(n),a=!0;break;case 36:o.pop(),a=!1;break;default:if(t.T);else if(!a||i.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}function Ll(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,o=!1,a=2;return e.replace(Pt,(function(e){var t=Ft(e);switch(Bt(t[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case"":case"":break;case"":o=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}function jl(e,t,n,r){var i,o=Array.isArray(e);t.forEach((function(t){var a=fr(t.ref);if(o?(e[a.r]||(e[a.r]=[]),i=e[a.r][a.c]):i=e[t.ref],!i){i={t:"z"},o?e[a.r][a.c]=i:e[t.ref]=i;var s=vr(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.ra.c&&(s.s.c=a.c),s.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=Ft(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=fr(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Qa(l[1])||{r:"",t:"",h:""};a.r=c.r,""==c.r&&(c.t=c.h=""),a.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}function Ul(e,t){var n=[],r=!1,i={},o=0;return e.replace(Pt,(function(a,s){var l=Ft(a);switch(Bt(l[0])){case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(o,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":r=!0;break;case"":r=!1;break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return a})),n}function ql(e,t){var n=[],r=!1;return e.replace(Pt,(function(e){var i=Ft(e);switch(Bt(i[0])){case"":break;case"":break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}function Wl(e){var t={};t.iauthor=e.read_shift(4);var n=Rr(e,16);return t.rfx=n.s,t.ref=pr(n.s),e.l+=16,t}var Gl=Tr;function Vl(e,t){var n=[],r=[],i={},o=!1;return Qn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(a.T);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}var Kl="application/vnd.ms-office.vbaProject";function Yl(e){var t=Ze.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ze.utils.cfb_add(t,i,e.FileIndex[r].content)}})),Ze.write(t)}function Xl(){return{"!type":"dialog"}}function Zl(){return{"!type":"dialog"}}function _l(){return{"!type":"macro"}}function Jl(){return{"!type":"macro"}}var Ql=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+cr(l)+(a?"":"$")+or(s)}return function(r,i){return t=i,r.replace(e,n)}}(),$l=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ec=function(){return function(e,t){return e.replace($l,(function(e,n,r,i,o,a){var s=lr(i)-(r?0:t.c),l=ir(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function tc(e,t){return e.replace($l,(function(e,n,r,i,o,a){return n+("$"==r?r+i:cr(lr(i)+t.c))+("$"==o?o+a:or(ir(a)+t.r))}))}function nc(e,t,n){var r=mr(t),i=r.s,o=fr(n),a={r:o.r-i.r,c:o.c-i.c};return tc(e,a)}function rc(e){return 1!=e.length}function ic(e){return e.replace(/_xlfn\./g,"")}function oc(e){e.l+=1}function ac(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function sc(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return lc(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=ac(e,2),s=ac(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function lc(e){var t=ac(e,2),n=ac(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function cc(e,t,n){if(n.biff<8)return lc(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=ac(e,2),a=ac(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function uc(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return hc(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=ac(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function hc(e){var t=ac(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function dc(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function fc(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return pc(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function pc(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function mc(e,t,n){var r=(96&e[e.l++])>>5,i=sc(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function gc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=sc(e,o,n);return[r,i,a]}function vc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function bc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function yc(e,t,n){var r=(96&e[e.l++])>>5,i=cc(e,t-1,n);return[r,i]}function wc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function xc(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function kc(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Cc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Tc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ac(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Sc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Ec(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function Mc(e){return e.read_shift(2),Ec(e,2)}function Oc(e){return e.read_shift(2),Ec(e,2)}function Nc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=uc(e,0,n);return[r,i]}function Dc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=fc(e,0,n);return[r,i]}function Lc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=uc(e,0,n);return[r,i,o]}function zc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Yu[i],Ku[i],r]}function Pc(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Ic(e);return[i,(0===o[0]?Ku:Vu)[o[1]]]}function Ic(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Rc(e,t,n){e.l+=n&&2==n.biff?3:4}function Fc(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Bc(e){return e.l++,ci[e.read_shift(1)]}function jc(e){return e.l++,e.read_shift(2)}function Hc(e){return e.l++,0!==e.read_shift(1)}function Uc(e){return e.l++,Fr(e,8)}function qc(e,t,n){return e.l++,Qi(e,t-1,n)}function Wc(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Xi(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=ci[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Fr(e,8);break;case 2:n[1]=no(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Gc(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Rr:bo)(e,8));return i}function Vc(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=Wc(e,n.biff);return a}function Kc(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function Yc(e,t,n){if(5==n.biff)return Xc(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function Xc(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Zc(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function _c(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Jc(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function Qc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var $c=_n,eu=_n,tu=_n;function nu(e,t,n){return e.l+=2,[dc(e,4,n)]}function ru(e){return e.l+=6,[]}var iu=nu,ou=ru,au=ru,su=nu;function lu(e){return e.l+=2,[Zi(e),1&e.read_shift(2)]}var cu=nu,uu=lu,hu=ru,du=nu,fu=nu,pu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function mu(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=pu[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function gu(e){return e.l+=2,[e.read_shift(4)]}function vu(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function bu(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function yu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function wu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function xu(e){return e.l+=4,[0,0]}var ku={1:{n:"PtgExp",f:Fc},2:{n:"PtgTbl",f:tu},3:{n:"PtgAdd",f:oc},4:{n:"PtgSub",f:oc},5:{n:"PtgMul",f:oc},6:{n:"PtgDiv",f:oc},7:{n:"PtgPower",f:oc},8:{n:"PtgConcat",f:oc},9:{n:"PtgLt",f:oc},10:{n:"PtgLe",f:oc},11:{n:"PtgEq",f:oc},12:{n:"PtgGe",f:oc},13:{n:"PtgGt",f:oc},14:{n:"PtgNe",f:oc},15:{n:"PtgIsect",f:oc},16:{n:"PtgUnion",f:oc},17:{n:"PtgRange",f:oc},18:{n:"PtgUplus",f:oc},19:{n:"PtgUminus",f:oc},20:{n:"PtgPercent",f:oc},21:{n:"PtgParen",f:oc},22:{n:"PtgMissArg",f:oc},23:{n:"PtgStr",f:qc},26:{n:"PtgSheet",f:vu},27:{n:"PtgEndSheet",f:bu},28:{n:"PtgErr",f:Bc},29:{n:"PtgBool",f:Hc},30:{n:"PtgInt",f:jc},31:{n:"PtgNum",f:Uc},32:{n:"PtgArray",f:wc},33:{n:"PtgFunc",f:zc},34:{n:"PtgFuncVar",f:Pc},35:{n:"PtgName",f:Kc},36:{n:"PtgRef",f:Nc},37:{n:"PtgArea",f:mc},38:{n:"PtgMemArea",f:Zc},39:{n:"PtgMemErr",f:$c},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:_c},42:{n:"PtgRefErr",f:Jc},43:{n:"PtgAreaErr",f:vc},44:{n:"PtgRefN",f:Dc},45:{n:"PtgAreaN",f:yc},46:{n:"PtgMemAreaN",f:yu},47:{n:"PtgMemNoMemN",f:wu},57:{n:"PtgNameX",f:Yc},58:{n:"PtgRef3d",f:Lc},59:{n:"PtgArea3d",f:gc},60:{n:"PtgRefErr3d",f:Qc},61:{n:"PtgAreaErr3d",f:bc},255:{}},Cu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Tu={1:{n:"PtgElfLel",f:lu},2:{n:"PtgElfRw",f:du},3:{n:"PtgElfCol",f:iu},6:{n:"PtgElfRwV",f:fu},7:{n:"PtgElfColV",f:su},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:hu},13:{n:"PtgElfColS",f:ou},15:{n:"PtgElfColSV",f:au},16:{n:"PtgElfRadicalLel",f:uu},25:{n:"PtgList",f:mu},29:{n:"PtgSxName",f:gu},255:{}},Au={0:{n:"PtgAttrNoop",f:xu},1:{n:"PtgAttrSemi",f:Sc},2:{n:"PtgAttrIf",f:Tc},4:{n:"PtgAttrChoose",f:kc},8:{n:"PtgAttrGoto",f:Cc},16:{n:"PtgAttrSum",f:Rc},32:{n:"PtgAttrBaxcel",f:xc},33:{n:"PtgAttrBaxcel",f:xc},64:{n:"PtgAttrSpace",f:Mc},65:{n:"PtgAttrSpaceSemi",f:Oc},128:{n:"PtgAttrIfError",f:Ac},255:{}};function Su(e,t,n,r){if(r.biff<8)return _n(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Vc(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=Gc(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(_n(e,t)),o}function Eu(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=ku[i]||ku[Cu[i]],24!==i&&25!==i||(r=(24===i?Tu:Au)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):_n(e,t);return a}function Mu(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Nu(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Du(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Lu(e,t,n){var r=Du(e,t,n);return"#REF"==r?r:Nu(r,n)}function zu(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],d=0,f=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=ft(" ",e[0][m][1][1]);break;case 1:g=ft("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}a+=g,m=-1}h.push(a+Ou[y[0]]+o);break;case"PtgIsect":o=h.pop(),a=h.pop(),h.push(a+" "+o);break;case"PtgUnion":o=h.pop(),a=h.pop(),h.push(a+","+o);break;case"PtgRange":o=h.pop(),a=h.pop(),h.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=er(y[1][1],u,i),h.push(nr(s,c));break;case"PtgRefN":s=n?er(y[1][1],n,i):y[1][1],h.push(nr(s,c));break;case"PtgRef3d":d=y[1][1],s=er(y[1][2],u,i),p=Lu(r,d,i);h.push(p+"!"+nr(s,c));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],x=y[1][1];w||(w=0),w&=127;var k=0==w?[]:h.slice(-w);h.length-=w,"User"===x&&(x=k.shift()),h.push(x+"("+k.join(",")+")");break;case"PtgBool":h.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(y[1]);break;case"PtgNum":h.push(String(y[1]));break;case"PtgStr":h.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(y[1]);break;case"PtgAreaN":l=tr(y[1][1],n?{s:n}:u,i),h.push(rr(l,i));break;case"PtgArea":l=tr(y[1][1],u,i),h.push(rr(l,i));break;case"PtgArea3d":d=y[1][1],l=y[1][2],p=Lu(r,d,i),h.push(p+"!"+rr(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var C=(r.names||[])[f-1]||(r[0]||[])[f],T=C?C.Name:"SH33TJSNAME"+String(f);T&&"_xlfn."==T.slice(0,6)&&!i.xlfn&&(T=T.slice(6)),h.push(T);break;case"PtgNameX":var A,S=y[1][1];if(f=y[1][2],!(i.biff<=5)){var E="";if(14849==((r[S]||[])[0]||[])[0]||(1025==((r[S]||[])[0]||[])[0]?r[S][f]&&r[S][f].itab>0&&(E=r.SheetNames[r[S][f].itab-1]+"!"):E=r.SheetNames[f-1]+"!"),r[S]&&r[S][f])E+=r[S][f].Name;else if(r[0]&&r[0][f])E+=r[0][f].Name;else{var M=(Du(r,S,i)||"").split(";;");M[f-1]?E=M[f-1]:E+="SH33TJSERRX"}h.push(E);break}S<0&&(S=-S),r[S]&&(A=r[S][f]),A||(A={Name:"SH33TJSERRY"}),h.push(A.Name);break;case"PtgParen":var O="(",N=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:O=ft(" ",e[0][m][1][1])+O;break;case 3:O=ft("\r",e[0][m][1][1])+O;break;case 4:N=ft(" ",e[0][m][1][1])+N;break;case 5:N=ft("\r",e[0][m][1][1])+N;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(O+h.pop()+N);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var D={c:n.c,r:n.r};if(r.sharedf[pr(s)]){var L=r.sharedf[pr(s)];h.push(zu(L,u,D,r,i))}else{var z=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.ca[0].e.c)&&!(s.ra[0].e.r)){h.push(zu(a[1],u,D,r,i)),z=!0;break}z||h.push(y[1])}break;case"PtgArray":h.push("{"+Mu(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==P.indexOf(e[0][v][0])){y=e[0][m];var I=!0;switch(y[1][0]){case 4:I=!1;case 0:g=ft(" ",y[1][1]);break;case 5:I=!1;case 1:g=ft("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}h.push((I?g:"")+h.pop()+(I?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Pu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],_n(e,t-2)];var s=Eu(e,a,n);return t!==a+o&&(r=Su(e,t-a-o,s,n)),e.l=i,[s,r]}function Iu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],_n(e,t-2)];var s=Eu(e,a,n);return t!==a+o&&(r=Su(e,t-a-o,s,n)),e.l=i,[s,r]}function Ru(e,t,n,r){var i,o=e.l+t,a=Eu(e,r,n);return o!==e.l&&(i=Su(e,o-e.l,a,n)),[a,i]}function Fu(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Eu(e,o,n);return 65535==o?[[],_n(e,t-2)]:(t!==o+2&&(r=Su(e,i-o-2,a,n)),[a,r])}function Bu(e){var t;if(65535!==Bn(e,e.l+6))return[Fr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function ju(e,t,n){var r=e.l+t,i=ho(e,6);2==n.biff&&++e.l;var o=Bu(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Iu(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function Hu(e,t,n){var r=e.read_shift(4),i=Eu(e,r,n),o=e.read_shift(4),a=o>0?Su(e,o,i,n):null;return[i,a]}var Uu=Hu,qu=Hu,Wu=Hu,Gu=Hu,Vu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ku={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Yu={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Xu(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Zu(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var _u={},Ju={};function Qu(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function $u(e,t,n,r,i,o){try{r.cellNF&&(e.z=X[t])}catch(s){if(r.WTF)throw s}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ut(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==X[t]&&qe(Ge[t]||"General",t),"e"===e.t)e.w=e.w||ci[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v);else if("d"===e.t){var a=tt(e.v);e.w=(0|a)===a?a.toString(10):le(a)}else{if(void 0===e.v)return"";e.w=ce(e.v,Ju)}else"d"===e.t?e.w=Ue(t,tt(e.v),Ju):e.w=Ue(t,e.v,Ju)}catch(s){if(r.WTF)throw s}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=zs(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=zs(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&o.Fills)throw s}}}function eh(e,t){var n=vr(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=gr(n))}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rh=/<(?:\w:)?hyperlink [^>]*>/gm,ih=/"(\w*:\w*)"/,oh=/<(?:\w:)?col\b[^>]*[\/]?>/g,ah=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,sh=/<(?:\w:)?pageMargins[^>]*\/>/g,lh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ch=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hh(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=w&&null==t.dense&&(t.dense=w);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(nh);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var d=c.match(lh);d?dh(d[0],s,i,n):(d=c.match(ch))&&fh(d[0],d[1]||"",s,i,n,a,o);var f=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var p=c.slice(f,f+50).match(ih);p&&eh(s,p[1])}var m=c.match(uh);m&&m[1]&&yh(m[1],i);var g=[];if(t.cellStyles){var v=c.match(oh);v&&gh(g,v)}h&&wh(h[1],s,t,l,o,a);var b=u.match(ah);b&&(s["!autofilter"]=vh(b[0]));var y=[],x=u.match(th);if(x)for(f=0;f!=x.length;++f)y[f]=vr(x[f].slice(x[f].indexOf('"')+1));var k=u.match(rh);k&&ph(s,k,r);var C=u.match(sh);if(C&&(s["!margins"]=mh(Ft(C[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=gr(l)),t.sheetRows>0&&s["!ref"]){var T=vr(s["!ref"]);t.sheetRows<=+T.e.r&&(T.e.r=t.sheetRows-1,T.e.r>l.e.r&&(T.e.r=l.e.r),T.e.rl.e.c&&(T.e.c=l.e.c),T.e.c0&&(s["!cols"]=g),y.length>0&&(s["!merges"]=y),s}function dh(e,t,n,r){var i=Ft(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Ut(Jt(i.codeName)))}function fh(e,t,n,r,i){dh(e.slice(0,e.indexOf(">")),n,r,i)}function ph(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=Ft(Jt(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+Ut(o.location))):(o.Target="#"+Ut(o.location),a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=vr(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=pr({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function mh(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function gh(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=Ft(t[r],!0);i.hidden&&(i.hidden=Kt(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,qs(i.width)),Ws(i);while(o<=a)e[o++]=dt(i)}}function vh(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var bh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function yh(e,t){t.Views||(t.Views=[{}]),(e.match(bh)||[]).forEach((function(e,n){var r=Ft(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),Kt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}var wh=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=$t("v"),a=$t("f");return function(s,l,c,u,h,d){for(var f,p,m,g,v,b=0,y="",w=[],x=[],k=0,C=0,T=0,A="",S=0,E=0,M=0,O=0,N=Array.isArray(d.CellXf),D=[],L=[],z=Array.isArray(l),P=[],I={},R=!1,F=!!c.sheetStubs,B=s.split(t),j=0,H=B.length;j!=H;++j){y=B[j].trim();var U=y.length;if(0!==U){var q=0;e:for(b=0;b":if("/"!=y[b-1]){++b;break e}if(c&&c.cellStyles){if(p=Ft(y.slice(q,b),!0),S=null!=p.r?parseInt(p.r,10):S+1,E=-1,c.sheetRows&&c.sheetRows=b)break;if(p=Ft(y.slice(q,b),!0),S=null!=p.r?parseInt(p.r,10):S+1,E=-1,!(c.sheetRows&&c.sheetRowsS-1&&(u.s.r=S-1),u.e.r":"")+y,null!=x&&2===x.length){for(k=0,A=x[1],C=0;C!=A.length;++C){if((T=A.charCodeAt(C)-64)<1||T>26)break;k=26*k+T}--k,E=k}else++E;for(C=0;C!=y.length;++C)if(62===y.charCodeAt(C))break;if(++C,p=Ft(y.slice(0,C),!0),p.r||(p.r=pr({r:S-1,c:E})),A=y.slice(C),f={t:""},null!=(x=A.match(o))&&""!==x[1]&&(f.v=Ut(x[1])),c.cellFormula){if(null!=(x=A.match(a))&&""!==x[1]){if(f.f=Ut(Jt(x[1])).replace(/\r\n/g,"\n"),c.xlfn||(f.f=ic(f.f)),x[0].indexOf('t="array"')>-1)f.F=(A.match(i)||[])[1],f.F.indexOf(":")>-1&&D.push([vr(f.F),f.F]);else if(x[0].indexOf('t="shared"')>-1){g=Ft(x[0]);var G=Ut(Jt(x[1]));c.xlfn||(G=ic(G)),L[parseInt(g.si,10)]=[g,G,p.r]}}else(x=A.match(/]*\/>/))&&(g=Ft(x[0]),L[g.si]&&(f.f=nc(L[g.si][1],L[g.si][2],p.r)));var V=fr(p.r);for(C=0;C=D[C][0].s.r&&V.r<=D[C][0].e.r&&V.c>=D[C][0].s.c&&V.c<=D[C][0].e.c&&(f.F=D[C][1])}if(null==p.t&&void 0===f.v)if(f.f||f.F)f.v=0,f.t="n";else{if(!F)continue;f.t="z"}else f.t=p.t||"n";switch(u.s.c>E&&(u.s.c=E),u.e.c0&&(l["!rows"]=P)}}();function xh(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}var kh=Rr;function Ch(){}function Th(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=Nr(e,t-19),n}function Ah(e){var t=Mr(e);return[t]}function Sh(e){var t=Or(e);return[t]}function Eh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"b"]}function Mh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"b"]}function Oh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"e"]}function Nh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"e"]}function Dh(e){var t=Mr(e),n=e.read_shift(4);return[t,n,"s"]}function Lh(e){var t=Or(e),n=e.read_shift(4);return[t,n,"s"]}function zh(e){var t=Mr(e),n=Fr(e);return[t,n,"n"]}function Ph(e){var t=Or(e),n=Fr(e);return[t,n,"n"]}function Ih(e){var t=Mr(e),n=Pr(e);return[t,n,"n"]}function Rh(e){var t=Or(e),n=Pr(e);return[t,n,"n"]}function Fh(e){var t=Mr(e),n=Sr(e);return[t,n,"is"]}function Bh(e){var t=Mr(e),n=Tr(e);return[t,n,"str"]}function jh(e){var t=Or(e),n=Tr(e);return[t,n,"str"]}function Hh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=zu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Uh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=zu(s,null,i,n.supbooks,n)}else e.l=r;return a}function qh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=Fr(e),a=[i,o,"n"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=zu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Wh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=Tr(e),a=[i,o,"str"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=zu(s,null,i,n.supbooks,n)}else e.l=r;return a}var Gh=Rr;function Vh(e,t){var n=e.l+t,r=Rr(e,16),i=Dr(e),o=Tr(e),a=Tr(e),s=Tr(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function Kh(){}function Yh(e,t,n){var r=e.l+t,i=Ir(e,16),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Uu(e,r-e.l,n);a[1]=s}else e.l=r;return a}function Xh(e,t,n){var r=e.l+t,i=Rr(e,16),o=[i];if(n.cellFormula){var a=Gu(e,r-e.l,n);o[1]=a,e.l=r}else e.l=r;return o}var Zh=["left","right","top","bottom","header","footer"];function _h(e){var t={};return Zh.forEach((function(n){t[n]=Fr(e,8)})),t}function Jh(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function Qh(){}function $h(){}function ed(e,t,n,r,i,o,a){if(!e)return e;var s=t||{};r||(r={"!id":{}}),null!=w&&null==s.dense&&(s.dense=w);var l,c,u,h,d,f,p,m,g,v,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=[],k=!1,C=!1,T=[];s.biff=12,s["!row"]=0;var A=0,S=!1,E=[],M={},O=s.supbooks||i.supbooks||[[]];if(O.sharedf=M,O.arrayf=E,O.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=O,i.Names))for(var N=0;N=N[0].s.r&&c.r<=N[0].e.r&&f>=N[0].s.c&&f<=N[0].e.c&&(u.F=gr(N[0]),S=!0)}!S&&e.length>3&&(u.f=e[3])}if(y.s.r>c.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.rc.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.r=e.s)z[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},I||(I=!0,qs(e.w/256)),Ws(z[e.e+1]);break;case 161:b["!autofilter"]={ref:gr(e)};break;case 476:b["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:k=!0;break;case 36:k=!1;break;case 37:x.push(w),k=!0;break;case 38:x.pop(),k=!1;break;default:if(t.T);else if(!k||s.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(b["!ref"]=gr(l||y)),s.sheetRows&&b["!ref"]){var R=vr(b["!ref"]);s.sheetRows<=+R.e.r&&(R.e.r=s.sheetRows-1,R.e.r>y.e.r&&(R.e.r=y.e.r),R.e.ry.e.c&&(R.e.c=y.e.c),R.e.c0&&(b["!merges"]=T),z.length>0&&(b["!cols"]=z),P.length>0&&(b["!rows"]=P),b}function td(e){var t,n=[],r=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=Ut((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}function nd(e,t,n,r,i,o){var a=o||{"!type":"chart"};if(!e)return o;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=td(e);u.s.r=u.s.c=0,u.e.c=s,c=cr(s),t[0].forEach((function(e,n){a[c+or(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r0&&(a["!ref"]=gr(u)),a}function rd(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(lh);return s&&dh(s[0],a,i,n),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function id(e,t){e.l+=10;var n=Tr(e,t-10);return{name:n}}function od(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return Qn(e,(function(e,r,l){switch(l){case 550:o["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(l);break;case 38:a.pop();break;default:if(r.T>0)a.push(l);else if(r.T<0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}var ad=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],sd=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ld=[],cd=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ud(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=Kt(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10));break}}}function hd(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Kt(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10));break}}}function dd(e){hd(e.WBProps,ad),hd(e.CalcPr,cd),ud(e.WBView,sd),ud(e.Sheets,ld),Ju.date1904=Kt(e.WBProps.date1904)}var fd="][*?/\\".split("");function pd(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return fd.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}var md=/<\w+:workbook/;function gd(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",o={},a=0;if(e.replace(Pt,(function(s,l){var c=Ft(s);switch(Bt(c[0])){case"":break;case"":case"":break;case"":break;case"":ad.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Kt(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=Jt(c.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete c[0],n.WBView.push(c);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":r=!1;break;case"":o.Ref=Ut(Jt(e.slice(a,l))),n.Names.push(o);break;case"":break;case"":delete c[0],n.CalcPr=c;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":r=!1;break;case"":r=!0;break;case"":r=!1;break;case"8?Tr(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function yd(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function wd(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=Lr(e),a=Wu(e,0,n),s=Dr(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function xd(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var o=[],a=[[]];return a.SheetNames=[],a.XTI=[],nf[16]={n:"BrtFRTArchID$",f:yd},Qn(e,(function(e,s,l){switch(l){case 156:a.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=zu(e.Ptg,null,null,a,t),delete t.SID,delete e.Ptg,o.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:a[0].length?a.push([l,e]):a[0]=[l,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(l),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(l),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(s.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),dd(n),n.Names=o,n.supbooks=a,n}function kd(e,t,n){return".bin"===t.slice(-4)?xd(e,n):gd(e,n)}function Cd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ed(e,r,n,i,o,a,s):hh(e,r,n,i,o,a,s)}function Td(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?od(e,r,n,i,o,a,s):rd(e,r,n,i,o,a,s)}function Ad(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?_l(e,r,n,i,o,a,s):Jl(e,r,n,i,o,a,s)}function Sd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Xl(e,r,n,i,o,a,s):Zl(e,r,n,i,o,a,s)}function Ed(e,t,n,r){return".bin"===t.slice(-4)?ll(e,n,r):nl(e,n,r)}function Md(e,t,n){return bl(e,n)}function Od(e,t,n){return".bin"===t.slice(-4)?is(e,n):ns(e,n)}function Nd(e,t,n){return".bin"===t.slice(-4)?Vl(e,n):Hl(e,n)}function Dd(e,t,n){return".bin"===t.slice(-4)?Il(e,t,n):zl(e,t,n)}function Ld(e,t,n,r){return".bin"===n.slice(-4)?Fl(e,t,n,r):Rl(e,t,n,r)}function zd(e,t,n){return".bin"===t.slice(-4)?Dl(e,t,n):Ll(e,t,n)}var Pd,Id=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Rd=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Fd(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,o,a,s,l=e.match(Id);if(l)for(s=0;s!=l.length;++s)i=l[s].match(Rd),-1===(o=i[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):(a="xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(o+1),r[a]=i[2].slice(1,i[2].length-1));return r}function Bd(e){var t=e.split(/\s+/),n={};if(1===t.length)return n;var r,i,o,a,s=e.match(Id);if(s)for(a=0;a!=s.length;++a)r=s[a].match(Rd),-1===(i=r[1].indexOf(":"))?n[r[1]]=r[2].slice(1,r[2].length-1):(o="xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(i+1),n[o]=r[2].slice(1,r[2].length-1));return n}function jd(e,t){var n=Pd[e]||Ut(e);return"General"===n?ce(t):Ue(n,t)}function Hd(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Kt(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=ut(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Ut(t)]=i}function Ud(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||ci[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v):e.w=ce(e.v):e.w=jd(t||"General",e.v)}catch(o){if(n.WTF)throw o}try{var r=Pd[t]||t||"General";if(n.cellNF&&(e.z=r),n.cellDates&&"n"==e.t&&Re(r)){var i=Q(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(o){if(n.WTF)throw o}}}function qd(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Xs[r.Pattern]||r.Pattern)}e[t.ID]=t}function Wd(e,t,n,r,i,o,a,s,l,c){var u="General",h=r.StyleID,d={};c=c||{};var f=[],p=0;void 0===h&&s&&(h=s.StyleID),void 0===h&&a&&(h=a.StyleID);while(void 0!==o[h]){if(o[h].nf&&(u=o[h].nf),o[h].Interior&&f.push(o[h].Interior),!o[h].Parent)break;h=o[h].Parent}switch(n.Type){case"Boolean":r.t="b",r.v=Kt(e);break;case"String":r.t="s",r.r=Vt(Ut(e)),r.v=e.indexOf("<")>-1?Ut(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(ut(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!==r.v?r.v=Ut(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=ui[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Vt(t||e));break}if(Ud(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=Ut(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=Ql(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=Ql("RC:RC",i):r.ArrayRange&&(r.F=Ql(r.ArrayRange,i),l.push([vr(r.F),r.F]))}else for(p=0;p=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(f.forEach((function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)})),r.s=d),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function Gd(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Vd(e,t){var n=t||{};We();var r=v(cn(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r="undefined"!==typeof g?g.utils.decode(65001,f(r)):Jt(r));var i,o=r.slice(0,1024).toLowerCase(),a=!1;if(o=o.replace(/".*?"/g,""),(1023&o.indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var s=dt(n);return s.type="string",Wa.to_workbook(r,s)}if(-1==o.indexOf("=0&&(a=!0)})),a)return uf(r,n);Pd={"General Number":"General","General Date":X[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":X[15],"Short Date":X[14],"Long Time":X[19],"Medium Time":X[18],"Short Time":X[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:X[2],Standard:X[4],Percent:X[10],Scientific:X[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];null!=w&&null==n.dense&&(n.dense=w);var u,h={},d=[],p=n.dense?[]:{},m="",b={},y={},x=Fd(''),k=0,C=0,T=0,A={s:{r:2e6,c:2e6},e:{r:0,c:0}},S={},E={},M="",O=0,N=[],D={},L={},z=0,P=[],I=[],R={},F=[],B=!1,j=[],H=[],U={},q=0,W=0,G={Sheets:[],WBProps:{date1904:!1}},V={};un.lastIndex=0,r=r.replace(//gm,"");var K="";while(i=un.exec(r))switch(i[3]=(K=i[3]).toLowerCase()){case"data":if("data"==K){if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break}if(c[c.length-1][1])break;"/"===i[1]?Wd(r.slice(k,i.index),M,x,"comment"==c[c.length-1][0]?R:b,{c:C,r:T},S,F[C],y,j,n):(M="",x=Fd(i[0]),k=i.index+i[0].length);break;case"cell":if("/"===i[1])if(I.length>0&&(b.c=I),(!n.sheetRows||n.sheetRows>T)&&void 0!==b.v&&(n.dense?(p[T]||(p[T]=[]),p[T][C]=b):p[cr(C)+or(T)]=b),b.HRef&&(b.l={Target:Ut(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(q=C+(0|parseInt(b.MergeAcross,10)),W=T+(0|parseInt(b.MergeDown,10)),N.push({s:{c:C,r:T},e:{c:q,r:W}})),n.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var Y=C;Y<=q;++Y)for(var Z=T;Z<=W;++Z)(Y>C||Z>T)&&(n.dense?(p[Z]||(p[Z]=[]),p[Z][Y]={t:"z"}):p[cr(Y)+or(Z)]={t:"z"});C=q+1}else++C;else b.MergeAcross?C=q+1:++C;else b=Bd(i[0]),b.Index&&(C=+b.Index-1),CA.e.c&&(A.e.c=C),"/>"===i[0].slice(-2)&&++C,I=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(TA.e.r&&(A.e.r=T),"/>"===i[0].slice(-2)&&(y=Fd(i[0]),y.Index&&(T=+y.Index-1)),C=0,++T):(y=Fd(i[0]),y.Index&&(T=+y.Index-1),U={},("0"==y.AutoFitHeight||y.Height)&&(U.hpx=parseInt(y.Height,10),U.hpt=Ks(U.hpx),H[T]=U),"1"==y.Hidden&&(U.hidden=!0,H[T]=U));break;case"worksheet":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));d.push(m),A.s.r<=A.e.r&&A.s.c<=A.e.c&&(p["!ref"]=gr(A),n.sheetRows&&n.sheetRows<=A.e.r&&(p["!fullref"]=p["!ref"],A.e.r=n.sheetRows-1,p["!ref"]=gr(A))),N.length&&(p["!merges"]=N),F.length>0&&(p["!cols"]=F),H.length>0&&(p["!rows"]=H),h[m]=p}else A={s:{r:2e6,c:2e6},e:{r:0,c:0}},T=C=0,c.push([i[3],!1]),l=Fd(i[0]),m=Ut(l.Name),p=n.dense?[]:{},N=[],j=[],H=[],V={name:m,Hidden:0},G.Sheets.push(V);break;case"table":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;c.push([i[3],!1]),F=[],B=!1}break;case"style":"/"===i[1]?qd(S,E,n):E=Fd(i[0]);break;case"numberformat":E.nf=Ut(Fd(i[0]).Format||"General"),Pd[E.nf]&&(E.nf=Pd[E.nf]);for(var _=0;392!=_;++_)if(X[_]==E.nf)break;if(392==_)for(_=57;392!=_;++_)if(null==X[_]){qe(E.nf,_);break}break;case"column":if("table"!==c[c.length-1][0])break;if(u=Fd(i[0]),u.Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!B&&u.wpx>10){B=!0,Fs=Ps;for(var J=0;J0&&(ee.Sheet=G.Sheets.length-1),G.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?M+=r.slice(O,i.index):O=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;E.Interior=Fd(i[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Oi(D,K,r.slice(z,i.index)):z=i.index+i[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else c.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));Gd(R),I.push(R)}else c.push([i[3],!1]),l=Fd(i[0]),R={a:l.Author};break;case"autofilter":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var te=Fd(i[0]);p["!autofilter"]={ref:Ql(te.Range).replace(/\$/g,"")},c.push([i[3],!0])}break;case"name":break;case"datavalidation":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"null":break;default:if(0==c.length&&"document"==i[3])return kf(r,n);if(0==c.length&&"uof"==i[3])return kf(r,n);var ne=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=!1}break;case"componentoptions":switch(i[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=!1}break;case"excelworkbook":switch(i[3]){case"date1904":G.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(z,i.index)){case"SheetHidden":V.Hidden=1;break;case"SheetVeryHidden":V.Hidden=2;break}else z=i.index+i[0].length;break;case"header":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+Ft(i[0]).Margin)||(p["!margins"].header=+Ft(i[0]).Margin);break;case"footer":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+Ft(i[0]).Margin)||(p["!margins"].footer=+Ft(i[0]).Margin);break;case"pagemargins":var re=Ft(i[0]);p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+re.Top)||(p["!margins"].top=+re.Top),isNaN(+re.Left)||(p["!margins"].left=+re.Left),isNaN(+re.Right)||(p["!margins"].right=+re.Right),isNaN(+re.Bottom)||(p["!margins"].bottom=+re.Bottom);break;case"displayrighttoleft":G.Views||(G.Views=[]),G.Views[0]||(G.Views[0]={}),G.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=!1}break;case"querytable":switch(i[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=!1}break;case"datavalidation":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ne=!1}break;case"smarttags":break;default:ne=!1;break}if(ne)break;if(i[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?Hd(L,K,P,r.slice(z,i.index)):(P=i,z=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+c.join("|")}var ie={};return n.bookSheets||n.bookProps||(ie.Sheets=h),ie.SheetNames=d,ie.Workbook=G,ie.SSF=dt(X),ie.Props=D,ie.Custprops=L,ie}function Kd(e,t){switch(Xf(t=t||{}),t.type||"base64"){case"base64":return Vd(T(e),t);case"binary":case"buffer":case"file":return Vd(e,t);case"array":return Vd(N(e),t)}}function Yd(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=Ur(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4?t:(r=n.read_shift(4),1907505652!==r?t:(t.UnicodeClipboardFormat=qr(n),r=n.read_shift(4),0==r||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr"))))))}var Xd=[60,1084,2066,2165,2175];function Zd(e,t,n,r,i){var o=r,a=[],s=n.slice(n.l,n.l+o);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}a.push(s),n.l+=o;var l=Bn(n,n.l),c=rf[l],u=0;while(null!=c&&Xd.indexOf(l)>-1)o=Bn(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),s=n.slice(u,n.l+4+o),a.push(s),n.l+=4+o,c=rf[l=Bn(n,n.l)];var h=L(a);Zn(h,0);var d=0;h.lens=[];for(var f=0;f1)&&!(n.sheetRows&&e.r>=n.sheetRows)){if(n.cellStyles&&t.XF&&t.XF.data&&O(e,t,n),delete t.ixfe,delete t.XF,i=e,x=pr(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),n.cellFormula&&t.f)for(var r=0;re.c||C[r][0].s.r>e.r)&&!(C[r][0].e.c>8)!==K)throw new Error("rt mismatch: "+_+"!="+K);12==Z.r&&(e.l+=10,Y-=10)}var J={};if(J=10===K?Z.f(e,Y,D):Zd(K,Z,e,Y,D),0==H&&-1===[9,521,1033,2057].indexOf(j))continue;switch(K){case 34:n.opts.Date1904=S.WBProps.date1904=J;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(D.enc||(e.l=0),D.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:D.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break}h(D.codepage=Q),G=!0;break;case 317:D.rrtabid=J;break;case 25:D.winlocked=J;break;case 439:n.opts["RefreshAll"]=J;break;case 12:n.opts["CalcCount"]=J;break;case 16:n.opts["CalcDelta"]=J;break;case 17:n.opts["CalcIter"]=J;break;case 13:n.opts["CalcMode"]=J;break;case 14:n.opts["CalcPrecision"]=J;break;case 95:n.opts["CalcSaveRecalc"]=J;break;case 15:D.CalcRefMode=J;break;case 2211:n.opts.FullCalc=J;break;case 129:J.fDialog&&(f["!type"]="dialog"),J.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),J.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:T.push(J);break;case 430:F.push([J]),F[F.length-1].XTI=[];break;case 35:case 547:F[F.length-1].push(J);break;case 24:case 536:B={Name:J.Name,Ref:zu(J.rgce,m,null,F,D)},J.itab>0&&(B.Sheet=J.itab-1),F.names.push(B),F[0]||(F[0]=[],F[0].XTI=[]),F[F.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(W[J.itab-1]={ref:gr(J.rgce[0][0][1][2])});break;case 22:D.ExternCount=J;break;case 23:0==F.length&&(F[0]=[],F[0].XTI=[]),F[F.length-1].XTI=F[F.length-1].XTI.concat(J),F.XTI=F.XTI.concat(J);break;case 2196:if(D.biff<8)break;null!=B&&(B.Comment=J[1]);break;case 18:f["!protect"]=J;break;case 19:0!==J&&D.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,D.snames.push(J.name);break;case 10:if(--H)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=gr(m),t.sheetRows&&t.sheetRows<=m.e.r){var $=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=gr(m),m.e.r=$}m.e.r++,m.e.c++}L.length>0&&(f["!merges"]=L),z.length>0&&(f["!objects"]=z),P.length>0&&(f["!cols"]=P),I.length>0&&(f["!rows"]=I),S.Sheets.push(E)}""===b?y=f:r[b]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===D.biff&&(D.biff={9:2,521:3,1033:4}[K]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),D.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(D.biff=5,G=!0,h(D.codepage=28591)),8==D.biff&&0==J.BIFFVer&&16==J.dt&&(D.biff=2),H++)break;if(f=t.dense?[]:{},D.biff<8&&!G&&(G=!0,h(D.codepage=t.codepage||1252)),D.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-Y,name:b};p[ee.pos]=ee,D.snames.push(b)}else b=(p[V]||{name:""}).name;32==J.dt&&(f["!type"]="chart"),64==J.dt&&(f["!type"]="macro"),L=[],z=[],D.arrayf=C=[],P=[],I=[],R=!1,E={Hidden:(p[V]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[J.r]||[])[J.c]:f[pr({c:J.c,r:J.r})])&&++J.c,c={ixfe:J.ixfe,XF:T[J.ixfe]||{},v:J.val,t:"n"},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 5:case 517:c={ixfe:J.ixfe,XF:T[J.ixfe],v:J.val,t:J.t},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 638:c={ixfe:J.ixfe,XF:T[J.ixfe],v:J.rknum,t:"n"},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 189:for(var te=J.c;te<=J.C;++te){var ne=J.rkrec[te-J.c][0];c={ixfe:ne,XF:T[ne],v:J.rkrec[te-J.c][1],t:"n"},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:te,r:J.r},c,t)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if(c=Jd(J.val,J.cell.ixfe,J.tt),c.XF=T[c.ixfe],t.cellFormula){var re=J.formula;if(re&&re[0]&&re[0][0]&&"PtgExp"==re[0][0][0]){var ie=re[0][0][1][0],oe=re[0][0][1][1],ae=pr({r:ie,c:oe});k[ae]?c.f=""+zu(J.formula,m,J.cell,F,D):c.F=((t.dense?(f[ie]||[])[oe]:f[ae])||{}).F}else c.f=""+zu(J.formula,m,J.cell,F,D)}U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N(J.cell,c,t),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,c=Jd(J,g.cell.ixfe,"s"),c.XF=T[c.ixfe],t.cellFormula&&(c.f=""+zu(g.formula,m,g.cell,F,D)),U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N(g.cell,c,t),g=null;break;case 33:case 545:C.push(J);var se=pr(J[0].s);if(o=t.dense?(f[J[0].s.r]||[])[J[0].s.c]:f[se],t.cellFormula&&o){if(!g)break;if(!se||!o)break;o.f=""+zu(J[1],m,J[0],F,D),o.F=gr(J[0])}break;case 1212:if(!t.cellFormula)break;if(x){if(!g)break;k[pr(g.cell)]=J[0],o=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[pr(g.cell)],(o||{}).f=""+zu(J[0],m,i,F,D)}break;case 253:c=Jd(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(c.h=v[J.isst].h),c.XF=T[c.ixfe],U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:J.ixfe,XF:T[J.ixfe],t:"z"},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t));break;case 190:if(t.sheetStubs)for(var le=J.c;le<=J.C;++le){var ce=J.ixfe[le-J.c];c={ixfe:ce,XF:T[ce],t:"z"},U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:le,r:J.r},c,t)}break;case 214:case 516:case 4:c=Jd(J.val,J.ixfe,"s"),c.XF=T[c.ixfe],U>0&&(c.z=q[c.ixfe>>8&63]),_d(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 0:case 512:1===H&&(m=J);break;case 252:v=J;break;case 1054:if(4==D.biff){q[U++]=J[1];for(var ue=0;ue=163&&qe(J[1],U+163)}else qe(J[1],J[0]);break;case 30:q[U++]=J;for(var he=0;he=163&&qe(J,U+163);break;case 229:L=L.concat(J);break;case 93:z[J.cmo[0]]=D.lastobj=J;break;case 438:D.lastobj.TxO=J;break;case 127:D.lastobj.ImData=J;break;case 440:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&(o.l=J[1]);break;case 2048:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&o.l&&(o.l.Tooltip=J[1]);break;case 28:if(D.biff<=5&&D.biff>=2)break;o=t.dense?(f[J[0].r]||[])[J[0].c]:f[pr(J[0])];var de=z[J[2]];o||(t.dense?(f[J[0].r]||(f[J[0].r]=[]),o=f[J[0].r][J[0].c]={t:"z"}):o=f[pr(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),o.c||(o.c=[]),a={a:J[1],t:de.TxO.t},o.c.push(a);break;case 2173:El(T[J.ixfe],J.ext);break;case 125:if(!D.cellStyles)break;while(J.e>=J.s)P[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},R||(R=!0,qs(J.w/256)),Ws(P[J.e+1]);break;case 520:var fe={};null!=J.level&&(I[J.r]=fe,fe.level=J.level),J.hidden&&(I[J.r]=fe,fe.hidden=!0),J.hpt&&(I[J.r]=fe,fe.hpt=J.hpt,fe.hpx=Ys(J.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||Qu(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[K]]=J;break;case 161:f["!margins"]||Qu(f["!margins"]={}),f["!margins"].header=J.header,f["!margins"].footer=J.footer;break;case 574:J.RTL&&(S.Views[0].RTL=!0);break;case 146:A=J;break;case 2198:d=J;break;case 140:u=J;break;case 442:b?E.CodeName=J||E.name:S.WBProps.CodeName=J||"ThisWorkbook";break}}else Z||console.error("Missing Info for XLS Record 0x"+K.toString(16)),e.l+=Y}return n.SheetNames=Qe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&y["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets["Sheet1"]=y)):n.Preamble=y,n.Sheets&&W.forEach((function(e,t){n.Sheets[n.SheetNames[t]]["!autofilter"]=e})),n.Strings=v,n.SSF=dt(X),D.enc&&(n.Encryption=D.enc),d&&(n.Themes=d),n.Metadata={},void 0!==u&&(n.Metadata.Country=u),F.names.length>0&&(S.Names=F.names),n.Workbook=S,n}var $d={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ef(e,t,n){var r=Ze.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Vi(r,ni,$d.DSI);for(var o in i)t[o]=i[o]}catch(c){if(n.WTF)throw c}var a=Ze.find(e,"/!SummaryInformation");if(a&&a.size>0)try{var s=Vi(a,ri,$d.SI);for(var l in s)null==t[l]&&(t[l]=s[l])}catch(c){if(n.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(Ci(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}function tf(e,t){var n,r,i,o;if(t||(t={}),Xf(t),d(),t.codepage&&c(t.codepage),e.FullPaths){if(Ze.find(e,"/encryption"))throw new Error("File is password-protected");n=Ze.find(e,"!CompObj"),r=Ze.find(e,"/Workbook")||Ze.find(e,"/Book")}else{switch(t.type){case"base64":e=O(T(e));break;case"binary":e=O(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Zn(e,0),r={content:e}}if(n&&Yd(n),t.bookProps&&!t.bookSheets)i={};else{var a=A?"buffer":"array";if(r&&r.content)i=Qd(r.content,t);else if((o=Ze.find(e,"PerfectOffice_MAIN"))&&o.content)i=Va.to_workbook(o.content,(t.type=a,t));else{if(!(o=Ze.find(e,"NativeContent_MAIN"))||!o.content)throw(o=Ze.find(e,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Va.to_workbook(o.content,(t.type=a,t))}t.bookVBA&&e.FullPaths&&Ze.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Yl(e))}var s={};return e.FullPaths&&ef(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}var nf={0:{f:xh},1:{f:Ah},2:{f:Ih},3:{f:Oh},4:{f:Eh},5:{f:zh},6:{f:Bh},7:{f:Dh},8:{f:Wh},9:{f:qh},10:{f:Hh},11:{f:Uh},12:{f:Sh},13:{f:Rh},14:{f:Nh},15:{f:Mh},16:{f:Ph},17:{f:jh},18:{f:Lh},19:{f:Sr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:wd},40:{},42:{},43:{f:il},44:{f:rl},45:{f:ol},46:{f:sl},47:{f:al},48:{},49:{f:Cr},50:{},51:{f:Ol},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Aa},62:{f:Fh},63:{f:Pl},64:{f:Qh},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:_n,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Jh},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Th},148:{f:kh,p:16},151:{f:Kh},152:{},153:{f:bd},154:{},155:{},156:{f:vd},157:{},158:{},159:{T:1,f:rs},160:{T:-1},161:{T:1,f:Rr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Gh},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ml},336:{T:-1},337:{f:Nl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:zr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:aa},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Yh},427:{f:Xh},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:_h},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Ch},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Vh},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:zr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Gl},633:{T:1},634:{T:-1},635:{T:1,f:Wl},636:{T:-1},637:{f:Er},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:id},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:$h},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},rf={6:{f:ju},10:{f:Ki},12:{f:Zi},13:{f:Zi},14:{f:Xi},15:{f:Xi},16:{f:Fr},17:{f:Xi},18:{f:Xi},19:{f:Zi},20:{f:ta},21:{f:ta},23:{f:aa},24:{f:oa},25:{f:Xi},26:{},27:{},28:{f:fa},29:{},34:{f:Xi},35:{f:ra},38:{f:Fr},39:{f:Fr},40:{f:Fr},41:{f:Fr},42:{f:Xi},43:{f:Xi},47:{f:Es},49:{f:Uo},51:{f:Zi},60:{},61:{f:Bo},64:{f:Xi},65:{f:Ho},66:{f:Zi},77:{},80:{},81:{},82:{},85:{f:Zi},89:{},90:{},91:{},92:{f:Oo},93:{f:ma},94:{},95:{f:Xi},96:{},97:{},99:{f:Xi},125:{f:Aa},128:{f:Qo},129:{f:No},130:{f:Zi},131:{f:Xi},132:{f:Xi},133:{f:Do},134:{},140:{f:xa},141:{f:Zi},144:{},146:{f:Ca},151:{},152:{},153:{},154:{},155:{},156:{f:Zi},157:{},158:{},160:{f:Oa},161:{f:Sa},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Xo},190:{f:Zo},193:{f:Ki},197:{},198:{},199:{},200:{},201:{},202:{f:Xi},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Zi},220:{},221:{f:Xi},222:{},224:{f:Jo},225:{f:Mo},226:{f:Ki},227:{},229:{f:pa},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Lo},253:{f:qo},255:{f:zo},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:_i},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Xi},353:{f:Ki},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:na},431:{f:Xi},432:{},433:{},434:{},437:{},438:{f:ba},439:{f:Xi},440:{f:ya},441:{},442:{f:to},443:{},444:{f:Zi},445:{},446:{},448:{f:Ki},449:{f:Ro,r:2},450:{f:Ki},512:{f:Ko},513:{f:Ma},515:{f:ea},516:{f:Wo},517:{f:$o},519:{f:Na},520:{f:Po},523:{},545:{f:ua},549:{f:Fo},566:{},574:{f:jo},638:{f:Yo},659:{},1048:{},1054:{f:Go},1084:{},1212:{f:ca},2048:{f:wa},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Eo},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ki},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Ta,r:12},2173:{f:Sl,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Xi,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:la,r:12},2197:{},2198:{f:wl,r:12},2199:{},2200:{},2201:{},2202:{f:ha,r:12},2203:{f:Ki},2204:{},2205:{},2206:{},2207:{},2211:{f:Io},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Zi},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Ea},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:ka},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Ko},1:{},2:{f:Pa},3:{f:za},4:{f:La},5:{f:$o},7:{f:Ia},8:{},9:{f:Eo},11:{},22:{f:Zi},30:{f:Vo},31:{},32:{},33:{f:ua},36:{},37:{f:Fo},50:{f:Ra},62:{},52:{},67:{},68:{f:Zi},69:{},86:{},126:{},127:{f:Da},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Fa},223:{},234:{},354:{},421:{},518:{f:ju},521:{f:Eo},536:{f:oa},547:{f:ra},561:{},579:{},1030:{f:ju},1033:{f:Eo},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function of(e,t,n,r){var i=t;if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&In(n)&&e.push(n)}}function af(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r=n.dense?[]:{};e=e.replace(//g,"");var i=e.match(/");var o=e.match(/<\/table/i),a=i.index,s=o&&o.index||e.length,l=vt(e.slice(a,s),/(:?]*>)/i,"
"),c=-1,u=0,h=0,d=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a/i);for(s=0;s"))>-1)y=y.slice(x+1);for(var k=0;k")));d=T.colspan?+T.colspan:1,((h=+T.rowspan)>1||d>1)&&p.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});var A=T.t||T["data-t"]||"";if(y.length)if(y=en(y),f.s.r>c&&(f.s.r=c),f.e.ru&&(f.s.c=u),f.e.cn||i[c].s.c>a)&&!(i[c].e.r1&&(f.rowspan=s),l>1&&(f.colspan=l),r.editable?d=''+d+"":h&&(f["data-t"]=h&&h.t||"z",null!=h.v&&(f["data-v"]=h.v),null!=h.z&&(f["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(d=''+d+"")),f.id=(r.id||"sjs")+"-"+u,o.push(ln("td",d,f))}}var p="";return p+o.join("")+"
"}var lf='SheetJS Table Export',cf="";function uf(e,t){var n=e.match(/[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find ");if(1==n.length)return wr(af(n[0],t),t);var r=xp();return n.forEach((function(e,n){kp(r,af(e,t),"Sheet"+(n+1))})),r}function hf(e,t,n){var r=[];return r.join("")+""}function df(e,t){var n=t||{},r=null!=n.header?n.header:lf,i=null!=n.footer?n.footer:cf,o=[r],a=mr(e["!ref"]);n.dense=Array.isArray(e),o.push(hf(e,a,n));for(var s=a.s.r;s<=a.e.r;++s)o.push(sf(e,a,s,n));return o.push("
"+i),o.join("")}function ff(e,t,n){var r=n||{};null!=w&&(r.dense=w);var i=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var a="string"==typeof r.origin?fr(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var u=mr(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var h=[],d=0,f=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,y=0;for(e["!cols"]||(e["!cols"]=[]);p1||y>1)&&h.push({s:{r:m+i,c:v+o},e:{r:m+i+(b||1)-1,c:v+o+(y||1)-1}});var E={t:"s",v:T},M=C.getAttribute("data-t")||C.getAttribute("t")||"";null!=T&&(0==T.length?E.t=M||"z":r.raw||0==T.trim().length||"s"==M||("TRUE"===T?E={t:"b",v:!0}:"FALSE"===T?E={t:"b",v:!1}:isNaN(pt(T))?isNaN(gt(T).getDate())||(E={t:"d",v:ut(T)},r.cellDates||(E={t:"n",v:tt(E.v)}),E.z=r.dateNF||X[14]):E={t:"n",v:pt(T)})),void 0===E.z&&null!=A&&(E.z=A);var O="",N=C.getElementsByTagName("A");if(N&&N.length)for(var D=0;D=l&&(e["!fullref"]=gr((c.e.r=s.length-p+m-1+i,c))),e}function pf(e,t){var n=t||{},r=n.dense?[]:{};return ff(r,e,t)}function mf(e,t){return wr(pf(e,t),t)}function gf(e){var t="",n=vf(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function vf(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function bf(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),n=Ut(t.replace(/<[^>]*>/g,""));return[n]}var yf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function wf(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r,i,o,a,s,l,c,u=cn(e),h=[],d={name:""},f="",p=0,m={},g=[],v=n.dense?[]:{},b={value:""},y="",x=0,k=[],C=-1,T=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},S=0,E={},M=[],O={},N=0,D=0,L=[],z=1,P=1,I=[],R={Names:[]},F={},B=["",""],j=[],H={},U="",q=0,W=!1,G=!1,V=0;un.lastIndex=0,u=u.replace(//gm,"").replace(//gm,"");while(s=un.exec(u))switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(A.e.c>=A.s.c&&A.e.r>=A.s.r?v["!ref"]=gr(A):v["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=A.e.r&&(v["!fullref"]=v["!ref"],A.e.r=n.sheetRows-1,v["!ref"]=gr(A)),M.length&&(v["!merges"]=M),L.length&&(v["!rows"]=L),o.name=o["名称"]||o.name,"undefined"!==typeof JSON&&JSON.stringify(o),g.push(o.name),m[o.name]=v,G=!1):"/"!==s[0].charAt(s[0].length-2)&&(o=Ft(s[0],!1),C=T=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,v=n.dense?[]:{},M=[],L=[],G=!0);break;case"table-row-group":"/"===s[1]?--S:++S;break;case"table-row":case"行":if("/"===s[1]){C+=z,z=1;break}if(a=Ft(s[0],!1),a["行号"]?C=a["行号"]-1:-1==C&&(C=0),z=+a["number-rows-repeated"]||1,z<10)for(V=0;V0&&(L[C+V]={level:S});T=-1;break;case"covered-table-cell":"/"!==s[1]&&++T,n.sheetStubs&&(n.dense?(v[C]||(v[C]=[]),v[C][T]={t:"z"}):v[pr({r:C,c:T})]={t:"z"}),y="",k=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++T,b=Ft(s[0],!1),P=parseInt(b["number-columns-repeated"]||"1",10),l={t:"z",v:null},b.formula&&0!=n.cellFormula&&(l.f=Xu(Ut(b.formula))),"string"==(b["数据类型"]||b["value-type"])&&(l.t="s",l.v=Ut(b["string-value"]||""),n.dense?(v[C]||(v[C]=[]),v[C][T]=l):v[pr({r:C,c:T})]=l),T+=P-1;else if("/"!==s[1]){++T,y="",x=0,k=[],P=1;var K=z?C+z-1:C;if(T>A.e.c&&(A.e.c=T),TA.e.r&&(A.e.r=K),b=Ft(s[0],!1),j=[],H={},l={t:b["数据类型"]||b["value-type"],v:null},n.cellFormula)if(b.formula&&(b.formula=Ut(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(N=parseInt(b["number-matrix-rows-spanned"],10)||0,D=parseInt(b["number-matrix-columns-spanned"],10)||0,O={s:{r:C,c:T},e:{r:C+N-1,c:T+D-1}},l.F=gr(O),I.push([O,l.F])),b.formula)l.f=Xu(b.formula);else for(V=0;V=I[V][0].s.r&&C<=I[V][0].e.r&&T>=I[V][0].s.c&&T<=I[V][0].e.c&&(l.F=I[V][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(N=parseInt(b["number-rows-spanned"],10)||0,D=parseInt(b["number-columns-spanned"],10)||0,O={s:{r:C,c:T},e:{r:C+N-1,c:T+D-1}},M.push(O)),b["number-columns-repeated"]&&(P=parseInt(b["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=Kt(b["boolean-value"]);break;case"float":l.t="n",l.v=parseFloat(b.value);break;case"percentage":l.t="n",l.v=parseFloat(b.value);break;case"currency":l.t="n",l.v=parseFloat(b.value);break;case"date":l.t="d",l.v=ut(b["date-value"]),n.cellDates||(l.t="n",l.v=tt(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=at(b["time-value"])/86400,n.cellDates&&(l.t="d",l.v=ot(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(b["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=b["string-value"]&&(y=Ut(b["string-value"]),k=[])}}else{if(W=!1,"s"===l.t&&(l.v=y||"",k.length&&(l.R=k),W=0==x),F.Target&&(l.l=F),j.length>0&&(l.c=j,j=[]),y&&!1!==n.cellText&&(l.w=y),W&&(l.t="z",delete l.v),(!W||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=C))for(var Y=0;Y0)v[C+Y][T+P]=dt(l)}else{v[pr({r:C+Y,c:T})]=l;while(--P>0)v[pr({r:C+Y,c:T+P})]=dt(l)}A.e.c<=T&&(A.e.c=T)}P=parseInt(b["number-columns-repeated"]||"1",10),T+=P-1,P=0,l={},y="",k=[]}F={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r;H.t=y,k.length&&(H.R=k),H.a=U,j.push(H)}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);U="",q=0,y="",x=0,k=[];break;case"creator":"/"===s[1]?U=u.slice(q,s.index):q=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);y="",x=0,k=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(E[d.name]=f,(r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&(f="",d=Ft(s[0],!1),h.push([s[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":i=Ft(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":i=Ft(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":f+=u.slice(p,s.index);break}else p=s.index+s[0].length;break;case"named-range":i=Ft(s[0],!1),B=Zu(i["cell-range-address"]);var X={Name:i.name,Ref:B[0]+"!"+B[1]};G&&(X.Sheet=g.length),R.Names.push(X);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==s[1]||b&&b["string-value"])c=Ft(s[0],!1),x=s.index+s[0].length;else{var Z=bf(u.slice(x,s.index),c);y=(y.length>0?y+"\n":"")+Z[0]}break;case"s":break;case"database-range":if("/"===s[1])break;try{B=Zu(Ft(s[0])["target-range-address"]),m[B[0]]["!autofilter"]={ref:B[1]}}catch(J){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==s[1]){if(F=Ft(s[0],!1),!F.href)break;F.Target=Ut(F.href),delete F.href,"#"==F.Target.charAt(0)&&F.Target.indexOf(".")>-1?(B=Zu(F.Target.slice(1)),F.Target="#"+B[0]+"!"+B[1]):F.Target.match(/^\.\.[\\\/]/)&&(F.Target=F.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(s)}}var _={Sheets:m,SheetNames:g,Workbook:R};return n.bookSheets&&delete _.Sheets,_}function xf(e,t){t=t||{},xt(e,"META-INF/manifest.xml")&&bi(Ct(e,"META-INF/manifest.xml"),t);var n=Tt(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=wf(Jt(n),t);return xt(e,"meta.xml")&&(r.Props=xi(Ct(e,"meta.xml"))),r}function kf(e,t){return wf(e,t)}
-/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
-function Cf(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Tf(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Jt(N(e))}function Af(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Sf(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function Ef(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}function Mf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Of(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Nf(e){var t=[],n=[0];while(n[0]=128);a=e.slice(l,n[0]);break;case 5:s=4,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Mf(e,n),a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==t[i]?t[i]=[c]:t[i].push(c)}return t}function Df(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Lf(e){var t,n=[],r=[0];while(r[0]>>0>0),n.push(a)}return n}function zf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Mf(t,n),i=[];while(n[0]>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Af(i)],0==a)throw new Error("Invalid offset 0");if(a>i[0].length)throw new Error("Invalid offset beyond length");if(s>=a){i.push(i[0].slice(-a)),s-=a;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=Af(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function Pf(e){var t=[],n=0;while(n1?12:8)+4*Sf(a&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&a&&(l=o.getUint32(s,!0),s+=4),s+=4*Sf(a&(r>1?12288:4096)),16&a&&(c=o.getUint32(s,!0),s+=4),32&a&&(u=o.getFloat64(s,!0),s+=8),64&a&&(h.setTime(h.getTime()+1e3*o.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}function Rf(e,t,n){var r,i=Cf(e),o=i.getUint32(8,!0),a=12,s=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&o&&(c=Ef(e,a),a+=16),2&o&&(u=i.getFloat64(a,!0),a+=8),4&o&&(h.setTime(h.getTime()+1e3*i.getFloat64(a,!0)),a+=8),8&o&&(l=i.getUint32(a,!0),a+=4),16&o&&(s=i.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;case 10:r={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)))}return r}function Ff(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return If(e,t,n,e[0]);case 5:return Rf(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Bf(e){var t=Nf(e);return Mf(t[1][0].data)}function jf(e,t){var n=Nf(t.data),r=Of(n[1][0].data),i=n[3],o=[];return(i||[]).forEach((function(t){var n=Nf(t.data),i=Of(n[1][0].data)>>>0;switch(r){case 1:o[i]=Tf(n[3][0].data);break;case 8:var a=e[Bf(n[9][0].data)][0],s=Nf(a.data),l=e[Bf(s[1][0].data)][0],c=Of(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var u=Nf(l.data);o[i]=u[3].map((function(e){return Tf(e.data)})).join("");break}})),o}function Hf(e,t){var n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,b=Nf(e),y=Of(b[1][0].data)>>>0,w=Of(b[2][0].data)>>>0,x=(null==(r=null==(n=b[8])?void 0:n[0])?void 0:r.data)&&Of(b[8][0].data)>0||!1;if((null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data)&&0!=t)g=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=b[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=b[4])?void 0:d[0])?void 0:f.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=x?4:1,C=Cf(g),T=[],A=0;A=1&&(E[T[T.length-1][0]]=v.subarray(T[T.length-1][1]*k)),{R:y,cells:E}}function Uf(e,t){var n,r=Nf(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Of(r[7][0].data)>>>0>0?1:0:-1,o=Df(r[5],(function(e){return Hf(e,i)}));return{nrows:Of(r[4][0].data)>>>0,data:o.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function qf(e,t,n){var r,i=Nf(t.data),o={s:{r:0,c:0},e:{r:0,c:0}};if(o.e.r=(Of(i[6][0].data)>>>0)-1,o.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(o.e.c=(Of(i[7][0].data)>>>0)-1,o.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=gr(o);var a=Nf(i[4][0].data),s=jf(e,e[Bf(a[4][0].data)][0]),l=(null==(r=a[17])?void 0:r[0])?jf(e,e[Bf(a[17][0].data)][0]):[],c=Nf(a[3][0].data),u=0;c[1].forEach((function(t){var r=Nf(t.data),i=e[Bf(r[2][0].data)][0],o=Of(i.meta[1][0].data);if(6002!=o)throw new Error("6001 unexpected reference to ".concat(o));var a=Uf(e,i);a.data.forEach((function(e,t){e.forEach((function(e,r){var i=pr({r:u+t,c:r}),o=Ff(e,s,l);o&&(n[i]=o)}))})),u+=a.nrows}))}function Wf(e,t){var n=Nf(t.data),r={"!ref":"A1"},i=e[Bf(n[2][0].data)],o=Of(i[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return qf(e,i[0],r),r}function Gf(e,t){var n,r=Nf(t.data),i={name:(null==(n=r[1])?void 0:n[0])?Tf(r[1][0].data):"",sheets:[]},o=Df(r[2],Bf);return o.forEach((function(t){e[t].forEach((function(t){var n=Of(t.meta[1][0].data);6e3==n&&i.sheets.push(Wf(e,t))}))})),i}function Vf(e,t){var n=xp(),r=Nf(t.data),i=Df(r[1],Bf);if(i.forEach((function(t){e[t].forEach((function(t){var r=Of(t.meta[1][0].data);if(2==r){var i=Gf(e,t);i.sheets.forEach((function(e,t){kp(n,e,0==t?i.name:i.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Kf(e){var t,n,r,i,o={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=Pf(e.content)}catch(r){return console.log("?? "+e.content.length+" "+(r.message||r))}try{n=Lf(t)}catch(r){return console.log("## "+(r.message||r))}n.forEach((function(e){o[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==o?void 0:o[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==Of(o[1][0].meta[1][0].data)&&o[1][0];if(s||a.forEach((function(e){o[e].forEach((function(e){var t=Of(e.meta[1][0].data)>>>0;if(1==t){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Vf(o,s)}function Yf(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Xf(e){Yf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Zf(e){return pi.WS.indexOf(e)>-1?"sheet":pi.CS&&e==pi.CS?"chart":pi.DS&&e==pi.DS?"dialog":pi.MS&&e==pi.MS?"macro":e&&e.length?e:"sheet"}function _f(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Zf(e["!id"][t.id].Type)]}))}catch(n){return null}return e&&0!==e.length?e:null}function Jf(e,t,n,r,i,o,a,s,l,c,u,h){try{o[r]=gi(Tt(e,n,!0),t);var d,f=Ct(e,t);switch(s){case"sheet":d=Cd(f,t,i,l,o[r],c,u,h);break;case"chart":if(d=Td(f,t,i,l,o[r],c,u,h),!d||!d["!drawel"])break;var p=Ot(d["!drawel"].Target,t),m=mi(p),g=Bl(Tt(e,p,!0),gi(Tt(e,m,!0),p)),v=Ot(g,p),b=mi(v);d=nd(Tt(e,v,!0),v,l,gi(Tt(e,b,!0),v),c,d);break;case"macro":d=Ad(f,t,i,l,o[r],c,u,h);break;case"dialog":d=Sd(f,t,i,l,o[r],c,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=d;var y=[];o&&o[r]&&Qe(o[r]).forEach((function(n){var i="";if(o[r][n].Type==pi.CMNT){i=Ot(o[r][n].Target,t);var a=Nd(Ct(e,i,!0),i,l);if(!a||!a.length)return;jl(d,a,!1)}o[r][n].Type==pi.TCMNT&&(i=Ot(o[r][n].Target,t),y=y.concat(Ul(Ct(e,i,!0),l)))})),y&&y.length&&jl(d,y,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function Qf(e){return"/"==e.charAt(0)?e.slice(1):e}function $f(e,t){if(We(),t=t||{},Xf(t),xt(e,"META-INF/manifest.xml"))return xf(e,t);if(xt(e,"objectdata.xml"))return xf(e,t);if(xt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Kf){if(e.FileIndex)return Kf(e);var n=Ze.utils.cfb_new();return St(e).forEach((function(t){Et(n,t,At(e,t))})),Kf(n)}throw new Error("Unsupported NUMBERS file")}if(!xt(e,"[Content_Types].xml")){if(xt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(xt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,o=St(e),a=fi(Tt(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&(i="xl/workbook.xml",Ct(e,i,!0)&&a.workbooks.push(i)),0===a.workbooks.length){if(i="xl/workbook.bin",!Ct(e,i,!0))throw new Error("Could not find workbook");a.workbooks.push(i),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(_u=[],a.sst)try{_u=Od(Ct(e,Qf(a.sst)),a.sst,t)}catch(N){if(t.WTF)throw N}t.cellStyles&&a.themes.length&&(l=Md(Tt(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=Ed(Ct(e,Qf(a.style)),a.style,l,t))}a.links.map((function(n){try{var r=gi(Tt(e,mi(Qf(n))),n);return Ld(Ct(e,Qf(n)),r,n,t)}catch(N){}}));var u=kd(Ct(e,Qf(a.workbooks[0])),a.workbooks[0],t),h={},d="";a.coreprops.length&&(d=Ct(e,Qf(a.coreprops[0]),!0),d&&(h=xi(d)),0!==a.extprops.length&&(d=Ct(e,Qf(a.extprops[0]),!0),d&&Ti(d,h,t)));var f={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(d=Tt(e,Qf(a.custprops[0]),!0),d&&(f=Si(d,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=f),t.bookSheets&&"undefined"!==typeof r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&a.calcchain&&(m=Dd(Ct(e,Qf(a.calcchain)),a.calcchain,t));var g,v,b=0,y={},w=u.Sheets;h.Worksheets=w.length,h.SheetNames=[];for(var x=0;x!=w.length;++x)h.SheetNames[x]=w[x].name;var k=s?"bin":"xml",C=a.workbooks[0].lastIndexOf("/"),T=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");xt(e,T)||(T="xl/_rels/workbook."+k+".rels");var A=gi(Tt(e,T,!0),T.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=zd(Ct(e,Qf(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=ql(Ct(e,Qf(a.people[0])),t)),A&&(A=_f(A,u.Sheets));var S=Ct(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var E="sheet";if(A&&A[b]?(g="xl/"+A[b][1].replace(/[\/]?xl\//,""),xt(e,g)||(g=A[b][1]),xt(e,g)||(g=T.replace(/_rels\/.*$/,"")+A[b][1]),E=A[b][2]):(g="xl/worksheets/sheet"+(b+1-S)+"."+k,g=g.replace(/sheet0\./,"sheet.")),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var M=!1,O=0;O!=t.sheets.length;++O)"number"==typeof t.sheets[O]&&t.sheets[O]==b&&(M=1),"string"==typeof t.sheets[O]&&t.sheets[O].toLowerCase()==h.SheetNames[b].toLowerCase()&&(M=1);if(!M)continue e}}Jf(e,g,v,h.SheetNames[b],b,y,r,E,t,u,l,c)}return p={Directory:a,Workbook:u,Props:h,Custprops:f,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:_u,Styles:c,Themes:l,SSF:dt(X)},t&&t.bookFiles&&(e.files?(p.keys=o,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=Ct(e,Qf(a.vba[0]),!0):a.defaults&&a.defaults.bin===Kl&&(p.vbaraw=Ct(e,"xl/vbaProject.bin",!0))),p}function ep(e,t){var n=t||{},r="Workbook",i=Ze.find(e,r);try{if(r="/!DataSpaces/Version",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(ss(i.content),r="/!DataSpaces/DataSpaceMap",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=cs(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=us(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);ds(i.content)}catch(l){}if(r="/EncryptionInfo",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=ms(i.content);if(r="/EncryptedPackage",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function tp(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=T(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function np(e,t){return Ze.find(e,"EncryptedPackage")?ep(e,t):tf(e,t)}function rp(t,n){var r,i=t,o=n||{};return o.type||(o.type=A&&e.isBuffer(t)?"buffer":"base64"),r=Mt(i,o),$f(r,o)}function ip(e,t){var n=0;e:while(n=2&&0===o[3])return Va.to_workbook(i,r);if(0===o[2]&&(8===o[3]||9===o[3]))return Va.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return ja.to_workbook(i,r);case 123:if(92===o[1]&&114===o[2]&&116===o[3])return Ms.to_workbook(i,r);break;case 10:case 13:case 32:return op(i,r);case 137:if(80===o[1]&&78===o[2]&&71===o[3])throw new Error("PNG Image File is not a spreadsheet");break}return Ba.indexOf(o[0])>-1&&o[2]<=12&&o[3]<=31?ja.to_workbook(i,r):lp(t,i,r,a)}function up(e,t,n,r,i,o,a,s){var l=or(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(g){d.__rowNum__=n}else d.__rowNum__=n;if(!a||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=a?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[f]){if(null==m)if("e"==p.t&&null===m)d[o[f]]=null;else if(void 0!==c)d[o[f]]=c;else{if(!u||null!==m)continue;d[o[f]]=null}else d[o[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:yr(p,m,s);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=o[f]&&(d[o[f]]=c)}}return{row:d,isempty:h}}function hp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=vr(u);break;case"number":l=vr(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var h=or(l.s.r),d=[],f=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,b=0,y={};g&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e["!cols"]||[],x=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(d[b]=cr(b),n=g?e[v][b]:e[d[b]+h],r){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=yr(n,null,c),m=y[a]||0,m){do{s=a+"_"+m++}while(y[s]);y[a]=m,y[s]=1}else y[a]=1;o[b]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(x[v]||{}).hidden){var k=up(e,l,v,d,r,o,g,c);(!1===k.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(f[p++]=k.row)}return f.length=p,f}var dp=/"/g;function fp(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",h=or(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=s.dense?(e[n]||[])[d]:e[r[d]+h];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:yr(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(dp,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,u="="+f.f,u.indexOf(",")>=0&&(u='"'+u.replace(dp,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function pp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=vr(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(d[p]||{}).hidden||(h[p]=cr(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(u=fp(e,i,g,h,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),(u||!1!==r.blankrows)&&n.push((m++?s:"")+u)));return delete r.dense,n.join("")}function mp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=pp(e,t);if("undefined"==typeof g||"string"==t.type)return n;var r=g.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function gp(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=vr(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=cr(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=or(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function vp(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?fr(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var h=vr(a["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==s&&(s=h.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var d=i.header||[],f=0;t.forEach((function(e,t){Qe(e).forEach((function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var c=e[n],u="z",h="",p=pr({c:l+f,r:s+t+o});r=yp(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=tt(c)),h=i.dateNF||X[14]):null===c&&i.nullError&&(u="e",c=0),r?(r.t=u,r.v=c,delete r.w,delete r.R,h&&(r.z=h)):a[p]=r={t:u,v:c},h&&(r.z=h)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=or(s);if(o)for(f=0;f=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function xp(){return{SheetNames:[],Sheets:{}}}function kp(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=a+i))break}if(pd(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Cp(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=wp(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Tp(e,t){return e.z=t,e}function Ap(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Sp(e,t,n){return Ap(e,"#"+t,n)}function Ep(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Mp(e,t,n,r){for(var i="string"!=typeof t?t:vr(t),o="string"==typeof t?t:gr(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=yp(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Op={encode_col:cr,encode_row:or,encode_cell:pr,encode_range:gr,decode_col:lr,decode_row:ir,split_cell:dr,decode_cell:fr,decode_range:mr,format_cell:yr,sheet_add_aoa:xr,sheet_add_json:vp,sheet_add_dom:ff,aoa_to_sheet:kr,json_to_sheet:bp,table_to_sheet:pf,table_to_book:mf,sheet_to_csv:pp,sheet_to_txt:mp,sheet_to_json:hp,sheet_to_html:df,sheet_to_formulae:gp,sheet_to_row_object_array:hp,sheet_get_cell:yp,book_new:xp,book_append_sheet:kp,book_set_sheet_visibility:Cp,cell_set_number_format:Tp,cell_set_hyperlink:Ap,cell_set_internal_link:Sp,cell_add_comment:Ep,sheet_set_array_formula:Mp,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,n("b639").Buffer,n("4362"))},"25cac":function(e,t,n){e.exports=n.p+"img/a-8-DNA.svg"},2613:function(e,t,n){e.exports=n.p+"img/ziyuan_5.svg"},"265a":function(e,t,n){e.exports=n.p+"img/bijiben.svg"},"26eb":function(e,t,n){e.exports=n.p+"img/-_17.svg"},2710:function(e,t,n){e.exports=n.p+"img/fanqiejiang.svg"},2783:function(e,t,n){e.exports=n.p+"img/ziyuan_13.svg"},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}e.exports=r},"2d86":function(e,t,n){},"2f97":function(e,t,n){e.exports=n.p+"img/brainImpairedPink.jpg"},"318a":function(e,t,n){e.exports=n.p+"img/jisuan.svg"},"31fc":function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"n",(function(){return i})),n.d(t,"p",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"l",(function(){return k})),n.d(t,"h",(function(){return C}));var r=function(e){return e.charCodeAt(0)},i=function(e){return e.codePointAt(0)},o=function(e,t){return c(e.toString(16),t,"0").toUpperCase()},a=function(e){return o(e,2)},s=function(e){return String.fromCharCode(e)},l=function(e){return s(parseInt(e,16))},c=function(e,t,n){for(var r="",i=0,o=t-e.length;i=55296&&r<=56319&&e.length>i&&(n=e.charCodeAt(i),n>=56320&&n<=57343&&(o=2)),[e.slice(t,t+o),o]},b=function(e){for(var t=[],n=0,r=e.length;nn&&c(),a+=f,s+=m}}return c(),l},x=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,k=function(e){var t=e.match(x);if(t){var n=t[1],r=t[2],i=void 0===r?"01":r,o=t[3],a=void 0===o?"01":o,s=t[4],l=void 0===s?"00":s,c=t[5],u=void 0===c?"00":c,h=t[6],d=void 0===h?"00":h,f=t[7],p=void 0===f?"Z":f,m=t[8],g=void 0===m?"00":m,v=t[9],b=void 0===v?"00":v,y="Z"===p?"Z":""+p+g+":"+b,w=new Date(n+"-"+i+"-"+a+"T"+l+":"+u+":"+d+y);return w}},C=function(e,t){var n,r,i=0;while(iu)o.f(e,n=i[u++],r[n]);return e}},"37fa":function(e,t,n){e.exports=n.p+"img/logicalStructureLeft.jpg"},"3a7c":function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function d(e){return"object"===typeof e&&null!==e}function f(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=c,t.isUndefined=u,t.isRegExp=h,t.isObject=d,t.isDate=f,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("b639").Buffer.isBuffer},"3a98":function(e,t,n){"use strict";var r=n("9803")(),i=n("1d76"),o=i("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},"3acd":function(e,t,n){e.exports=n.p+"img/fanwendengji.svg"},"3b50":function(e,t,n){e.exports=n.p+"img/jiandan.svg"},"3b78":function(e,t,n){},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3bd3":function(e,t,n){e.exports=n.p+"img/jiaoxuelou.svg"},"3c2a":function(e,t,n){e.exports=n.p+"img/fishbone.png"},"3c92":function(e,t,n){},"3cc4":function(e,t,n){e.exports=n.p+"img/courseGreen.jpg"},"3d18":function(e,t,n){e.exports=n.p+"img/jiangbei.svg"},"3ec8":function(e,t,n){e.exports=n.p+"img/a-19guaizhang.svg"},"3f29":function(e,t,n){"use strict";var r,i=n("16e6"),o=n("a2bb"),a=n("0a93"),s=n("8c34"),l=n("202b"),c=n("bbd5"),u=n("72e6"),h=Function,d=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(R){f=null}var p=function(){throw new c},m=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(t){return p}}}():p,g=n("ddbb")(),v=n("1806")(),b=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},w="undefined"!==typeof Uint8Array&&b?b(Uint8Array):r,x={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":y,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(b)try{null.error}catch(R){var k=b(b(R));x["%Error.prototype%"]=k}var C=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&b&&(n=b(i.prototype))}return x[t]=n,n},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n("06c3"),S=n("f250"),E=A.call(Function.call,Array.prototype.concat),M=A.call(Function.apply,Array.prototype.splice),O=A.call(Function.call,String.prototype.replace),N=A.call(Function.call,String.prototype.slice),D=A.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,P=function(e){var t=N(e,0,1),n=N(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return O(e,L,(function(e,t,n,i){r[r.length]=n?O(i,z,"$1"):t||e})),r},I=function(e,t){var n,r=e;if(S(T,r)&&(n=T[r],r="%"+n[0]+"%"),S(x,r)){var i=x[r];if(i===y&&(i=C(r)),"undefined"===typeof i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=P(e),r=n.length>0?n[0]:"",i=I("%"+r+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(r=u[0],M(n,E([0,1],u)));for(var h=1,d=!0;h=n.length){var v=f(a,p);d=!!v,a=d&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else d=S(a,p),a=a[p];d&&!s&&(x[o]=a)}}return a}},"3f8c":function(e,t,n){"use strict";e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"401c":function(e){e.exports=JSON.parse('"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"')},"406c":function(e,t,n){"use strict";function r(){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}e.exports=r},"41af":function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"41c5":function(e,t,n){e.exports=n.p+"img/-_12.svg"},"41e8":function(e,t,n){},4244:function(e,t,n){e.exports=n.p+"img/a-20-shuye.svg"},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43cf":function(e,t,n){e.exports=n.p+"img/xiezizhuo.svg"},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return N})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return O}));var r=n("b923"),i=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),i=n&&Object(r["k"])(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&A(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=h(r)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.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 d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(A(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(o["Selection"].near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},y=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Object(r["g"])(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&Object(r["k"])(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};function x(e){return(t,n)=>{let{$from:i,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(t.doc,i.pos))&&(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==i.depth?null:v(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(r["g"])(l.doc,l.mapping.map(i.pos),1,h);if(h||d||!Object(r["g"])(l.doc,l.mapping.map(i.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(i.pos),1,h),!s&&!i.parentOffset&&i.parent.type!=c)){let e=l.mapping.map(i.before()),t=l.doc.resolve(e);c&&i.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(i.before()),c)}n(l.scrollIntoView())}return!0}}const k=x(),C=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function T(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function A(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(T(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=i["Fragment"].from(a[e].create(null,s));s=i["Fragment"].from(l.copy(s));let c=e.tr.step(new r["b"](t.pos-1,o,t.pos,o,new i["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(r["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&Object(r["k"])(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=i["Fragment"].from(a[e].copy(o));let s=e.tr.step(new r["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new i["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function S(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const E=S(-1),M=S(1);function O(e,t=null){return function(n,i){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(r["i"])(s,e,t);return!!l&&(i&&i(n.tr.wrap(s,l).scrollIntoView()),!0)}}function N(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function L(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!D(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&t=o["a"].Zero&&c<=o["a"].Seven?(t+=l,3!==t.length&&u>="0"&&u<="7"||(r(parseInt(t,8)),t="")):r(c):c===o["a"].BackSlash?n=!0:r(c)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return Object(a["A"])(e)?Object(a["Y"])(e):Object(a["K"])(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=Object(a["J"])(e);if(!t)throw new s["d"](e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=o["a"].LeftParen,t+=Object(a["w"])(this.value,e,t),e[t++]=o["a"].RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){var n=Object(a["I"])(String(e.getUTCFullYear()),4,"0"),r=Object(a["I"])(String(e.getUTCMonth()+1),2,"0"),i=Object(a["I"])(String(e.getUTCDate()),2,"0"),o=Object(a["I"])(String(e.getUTCHours()),2,"0"),s=Object(a["I"])(String(e.getUTCMinutes()),2,"0"),l=Object(a["I"])(String(e.getUTCSeconds()),2,"0");return new t("D:"+n+r+i+o+s+l+"Z")},t}(i["a"]);t["a"]=l},"4ec2":function(e,t,n){e.exports=n.p+"img/timeline2.png"},"4f09":function(e,t,n){"use strict";n("97b6")},"4f5a":function(e,t,n){e.exports=n.p+"img/-_14.svg"},"4f8c":function(e,t,n){e.exports=n.p+"img/pinkGrape.jpg"},"4f98":function(e,t,n){(function(t){
-/*!
- * Quill Editor v1.3.7
- * https://quilljs.com/
- * Copyright (c) 2014, Jason Chen
- * Copyright (c) 2013, salesforce.com
- */
-(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),c=n(48),u=n(49),h=n(12),d=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:h.default,Class:d.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},c={};function u(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function h(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?h(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=c[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=c["block"]:e&o.LEVEL&o.INLINE&&(n=c["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=u,t.find=h,t.query=d,t.register=f},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i0&&n.next(o.retain-s)}var c=new l(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),h=t.next(u),d=n.next(u);if("number"===typeof d.retain){var f={};"number"===typeof h.retain?f.retain=u:f.insert=h.insert;var p=a.attributes.compose(h.attributes,d.attributes,"number"===typeof h.retain);if(p&&(f.attributes=p),c.push(f),!n.hasNext()&&i(c.ops[c.ops.length-1],f)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"===typeof d["delete"]&&"number"===typeof h.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=a.iterator(this.ops),h=a.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),o.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var s=u.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s["delete"])continue;c["delete"]?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-x)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(u.default.Block);function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:T(e.parent,t))}C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[p.default,u.default.Embed,g.default],t.bubbleFormats=T,t.BlockEmbed=k,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,e),this.options=O(t,r),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(e){e===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&E.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||E.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,A({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,A({},e,t))}return n.setSelection(r,h.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return N.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,0,n,r,o),c=i(l,4);return e=c[0],s=c[2],o=c[3],N.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=D(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new g.Range(t,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function O(e,t){if(t=(0,y.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==M.DEFAULTS.theme){if(t.theme=M.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=C.default;var n=(0,y.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=M.import("modules/"+t);return null==n?E.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,y.default)(!0,{},M.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function N(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===h.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=L(i,a,t):0!==r&&(i=L(i,n,r,t)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,c,u=[h.default.events.TEXT_CHANGE,a,o,t];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return a}function D(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||h.default.sources.API,[e,t,a,o]}function L(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==h.default.sources.USER)})),c=i(l,2);o=c[0],a=c[1]}else{var u=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),d=i(u,2);o=d[0],a=d[1]}return new g.Range(o,a-o)}M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:s.default,parchment:m.default,"core/module":f.default,"core/theme":C.default},t.expandConfig=O,t.overload=D,t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof e[0]))}function c(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c=0;c--)if(h[c]!=d[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!a(e[u],t[u],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),u=l.next;l.format(r,i),u instanceof t&&u.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(m.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=c.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof c.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",t.Code=w,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n=o&&!u.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,u);var d=t.scroll.line(e),f=i(d,2),p=f[0],m=f[1],b=(0,A.default)({},(0,g.bubbleFormats)(p));if(p instanceof v.default){var y=p.descendant(h.default.Leaf,m),w=i(y,1),x=w[0];b=(0,A.default)(b,(0,g.bubbleFormats)(x))}l=c.default.attributes.diff(b,l)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,a.insert[k])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof f.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof h.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(h.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,g.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=D((0,g.bubbleFormats)(n),t)}return t}));return A.default.apply(A.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(E({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof y.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],c=0,u=new s.default;null!=a&&(c=a instanceof f.default?a.newlineIndex(l)-l+1:a.length()-l,u=a.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c),d=h.diff((new s.default).insert(n).concat(u)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(O)&&h.default.find(t[0].target)){var i=h.default.find(t[0].target),o=(0,g.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(m.default.CONTENTS,""),c=(new s.default).insert(l),u=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(c.diff(u,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,C.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function D(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function L(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,x.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,x.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},w=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(d.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var h=document.createRange();if(t>0){h.setStart(i,l);var d=this.scroll.leaf(e+t),f=r(d,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=r(p,2);return i=m[0],l=m[1],h.setEnd(i,l),h.getBoundingClientRect()}var g="left",v=void 0;return i instanceof Text?(l0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(g(i)));return new y(s,o-s)}},{key:"normalizeNative",value:function(e){if(!x(this.root,e.startContainer)||!e.collapsed&&!x(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),l=r(s,2),c=l[0],u=l[1],h=c.position(u,0!==n),d=r(h,2);a=d[0],u=d[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],l=s;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,i)),u=r(c,1);l=u[0]}if(null!=s&&null!=l){var h=e.getBoundingClientRect();n.toph.bottom&&(e.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),b.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,g(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var c,h=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(h)),e!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,h)}}}]),e}();function x(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=y,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(h){n=function(){}}try{r=Set}catch(h){r=function(){}}try{i=Promise}catch(h){i=function(){}}function o(a,s,l,c,h){"object"===typeof s&&(l=s.depth,c=s.prototype,h=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof t;function m(a,l){if(null===a)return null;if(0===l)return a;var g,v;if("object"!=typeof a)return a;if(e(a,n))g=new n;else if(e(a,r))g=new r;else if(e(a,i))g=new i((function(e,t){a.then((function(t){e(m(t,l-1))}),(function(e){t(m(e,l-1))}))}));else if(o.__isArray(a))g=[];else if(o.__isRegExp(a))g=new RegExp(a.source,u(a)),a.lastIndex&&(g.lastIndex=a.lastIndex);else if(o.__isDate(a))g=new Date(a.getTime());else{if(p&&t.isBuffer(a))return g=t.allocUnsafe?t.allocUnsafe(a.length):new t(a.length),a.copy(g),g;e(a,Error)?g=Object.create(a):"undefined"==typeof c?(v=Object.getPrototypeOf(a),g=Object.create(v)):(g=Object.create(c),v=c)}if(s){var b=d.indexOf(a);if(-1!=b)return f[b];d.push(a),f.push(g)}for(var y in e(a,n)&&a.forEach((function(e,t){var n=m(t,l-1),r=m(e,l-1);g.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=m(e,l-1);g.add(t)})),a){var w;v&&(w=Object.getOwnPropertyDescriptor(v,y)),w&&null==w.set||(g[y]=m(a[y],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(y=0;y0){if(s instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(s instanceof m.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===d))return void this.optimize()}else if(d instanceof m.default){var g=d.newlineIndex(0);g>-1&&d.split(g+1)}var v=d.children.head instanceof f.default?null:d.children.head;s.moveChildren(d,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(k,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){k(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);C.blotName="scroll",C.className="ql-editor",C.tagName="DIV",C.defaultChild="block",C.allowedChildren=[h.default,u.BlockEmbed,v.default],t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return O.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,h.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),u=i(l,2),h=u[0],d=u[1],f=e.quill.getLeaf(s.index),p=i(f,2),m=p[0],g=p[1],b=0===s.length?[m,g]:e.quill.getLeaf(s.index+s.length),y=i(b,2),w=y[0],x=y[1],k=m instanceof v.default.Text?m.value().slice(0,g):"",C=w instanceof v.default.Text?w.value().slice(x):"",T={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:k,suffix:C},A=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==T.collapsed)return!1;if(null!=t.empty&&t.empty!==T.empty)return!1;if(null!=t.offset&&t.offset!==T.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==T.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=T.format[e]:!1===t.format[e]?null==T.format[e]:(0,c.default)(t.format[e],T.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(T.prefix))&&(!(null!=t.suffix&&!t.suffix.test(T.suffix))&&!0!==t.handler.call(e,s,T))}));A&&n.preventDefault()}}}}))}}]),t}(C.default);function L(e,t){var n,r=e===D.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},A(n,r,/^$/),A(n,"handler",(function(n){var r=n.index;e===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof v.default.Embed)||(e===D.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function z(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),c=l[0];if(null!=c&&c.length()>1){var u=o.formats(),h=this.quill.getFormat(e.index-1,1);a=m.default.attributes.diff(u,h)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,y.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,y.default.sources.USER),this.quill.focus()}}function P(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),l=s[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),u=i(c,1),h=u[0];if(h){var d=l.formats(),f=this.quill.getFormat(e.index,1);r=m.default.attributes.diff(d,f)||{},o=h.length()}}this.quill.deleteText(e.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,y.default.sources.USER)}}function I(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=m.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,y.default.sources.USER),this.quill.setSelection(e.index,y.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],y.default.sources.USER))}))}function F(e){return{key:D.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,d=l.newlineIndex(u+c+o),f=l.domNode.textContent.slice(h,d).split("\n");c=0,f.forEach((function(t,i){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,o,y.default.sources.SILENT)}}}}function B(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],y.default.sources.USER)}}}function j(e){if("string"===typeof e||"number"===typeof e)return j({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=D.keys[e.key.toUpperCase()])e.key=D.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[N]=e.shortKey,delete e.shortKey),e}D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":F(!0),"outdent code-block":F(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,y.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,y.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,y.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,h.default)({},r.formats(),{list:"checked"}),s=(new f.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new f.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",y.default.sources.USER),this.quill.history.cutoff();var c=(new f.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,y.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new f.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,y.default.sources.USER)}},"embed left":L(D.keys.LEFT,!1),"embed left shift":L(D.keys.LEFT,!0),"embed right":L(D.keys.RIGHT,!1),"embed right shift":L(D.keys.RIGHT,!0)}},t.default=D,t.SHORTKEY=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=h,t.sanitize=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=O(r),o=n(5),a=O(o),s=n(4),l=O(s),c=n(16),u=O(c),h=n(25),d=O(h),f=n(24),p=O(f),m=n(35),g=O(m),v=n(6),b=O(v),y=n(22),w=O(y),x=n(7),k=O(x),C=n(55),T=O(C),A=n(42),S=O(A),E=n(23),M=O(E);function O(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":u.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":b.default,"blots/scroll":w.default,"blots/text":k.default,"modules/clipboard":T.default,"modules/history":S.default,"modules/keyboard":M.default}),i.default.register(l.default,u.default,p.default,b.default,w.default,k.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function g(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=P(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",u.default.sources.USER),this.quill.setSelection(r+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(k.default);function P(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=z,t.default=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(es?n(r,e-s,Math.min(t,s+c-e)):n(r,0,Math.min(c,e+t-s)),s+=c}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},u=t,h=0;u.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),a=u.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;ot.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[r,l.substring(0,u)],[i,c],[r,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[r,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],m=d[2],g=d[3],v=d[4],b=o(f,m),y=o(p,g);return b.concat([[i,v]],y)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),h=new Array(c),d=0;di)g+=2;else if(k>o)m+=2;else if(p){var C=s+f-w;if(C>=0&&C=T)return l(e,t,E,k)}}}for(var A=-y+v;A<=y-b;A+=2){C=s+A;T=A==-y||A!=y&&h[C-1]i)b+=2;else if(S>o)v+=2;else if(!p){x=s+f-A;if(x>=0&&x=T)return l(e,t,E,k)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,h]:null}var o,a,s,l,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(t=c(h,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=h.substring(0,t):(e.splice(0,0,[i,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,h]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,E({},x.default.blotName,t[x.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=U(this.container,a,s);return j(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new c.default).retain(l.length()-1).delete(1))),D.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new c.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new c.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,f.default.sources.USER),t.quill.setSelection(r.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[L]=e[L]||[],e[L].push(s)}));break}})),[t,n]}}]),t}(v.default);function F(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return F(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},E({},t,n),r.attributes))}),new c.default)}function B(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length