@pdftron/pdfjs-express 8.7.1 → 8.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/23.chunk.js +5 -5
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ContentEdit.chunk.js +19 -19
- package/public/core/ExternalAnnotationMerger.chunk.js +3 -3
- package/public/core/ExternalPdfPartRetriever.chunk.js +3 -3
- package/public/core/HttpPartRetriever.chunk.js +3 -3
- package/public/core/LocalPartRetriever.chunk.js +1 -1
- package/public/core/PDFInfoVersion1.chunk.js +10 -10
- package/public/core/SelectionInfoOld.chunk.js +13 -13
- package/public/core/StreamingPartRetriever.chunk.js +3 -3
- package/public/core/WebDBPartRetriever.chunk.js +1 -1
- package/public/core/WebViewerServerPartRetriever.chunk.js +13 -13
- package/public/core/pdfjs/pdf.worker.js +50 -48
- package/public/core/pikaday.chunk.js +14 -14
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.ascii85.quill.chunk.js +11 -11
- package/public/core/vendors.pako.chunk.js +65 -65
- package/public/core/vendors.quill.chunk.js +103 -103
- package/public/core/webviewer-core.min.js +1666 -1664
- package/public/ui/style.css +1 -1
- package/public/ui/style.css.map +1 -1
- package/webviewer.min.js +1 -1
|
@@ -1547,54 +1547,56 @@ switch(majorVersion){case 1:break a;case 2:_readTrueTypeCollecti.dsigTag=ttc.get
|
|
|
1547
1547
|
numFonts=readOpenTypeHeader(ttc);offsetTable=readTables(ttc,numFonts.numTables);if(!offsetTable.name)throw new _util.FormatError('TrueType Collection font must contain a "name" table.');i=readNameTable(offsetTable.name);for(var j=0,jj=i.length;j<jj;j++)for(var k=0,kk=i[j].length;k<kk;k++){var nameEntry=i[j][k];if(nameEntry&&nameEntry.replace(/\s/g,"")===fontName)return{header:numFonts,tables:offsetTable}}}throw new _util.FormatError('TrueType Collection does not contain "'.concat(fontName,'" font.'));
|
|
1548
1548
|
}function readCmapTable(cmap,font,isSymbolicFont,hasEncoding){if(!cmap)return(0,_util.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var segment;cmap=(font.start?font.start:0)+cmap.offset;font.pos=cmap;font.getUint16();var numTables=font.getUint16(),potentialTable,canBreak=!1;for(segment=0;segment<numTables;segment++){var platformId=font.getUint16(),encodingId=font.getUint16(),offset=font.getInt32()>>>0,useTable=!1;if(!potentialTable||potentialTable.platformId!==
|
|
1549
1549
|
platformId||potentialTable.encodingId!==encodingId)if(0===platformId&&0===encodingId?useTable=!0:1===platformId&&0===encodingId?useTable=!0:3!==platformId||1!==encodingId||!hasEncoding&&potentialTable?isSymbolicFont&&3===platformId&&0===encodingId&&(canBreak=useTable=!0):(useTable=!0,isSymbolicFont||(canBreak=!0)),useTable&&(potentialTable={platformId:platformId,encodingId:encodingId,offset:offset}),canBreak)break}potentialTable&&(font.pos=cmap+potentialTable.offset);if(!potentialTable||-1===font.peekByte())return(0,
|
|
1550
|
-
_util.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};cmap=font.getUint16();font.getUint16();font.getUint16();hasEncoding=!1;isSymbolicFont=[];if(0===cmap){for(segment=0;256>segment;segment++)(
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
0
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
0;maxpNumGlyphs
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
inFDEF
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
0
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
0
|
|
1585
|
-
tables.
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
_encodings.
|
|
1590
|
-
|
|
1591
|
-
(
|
|
1592
|
-
(
|
|
1593
|
-
|
|
1594
|
-
0));
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1550
|
+
_util.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};cmap=font.getUint16();font.getUint16();font.getUint16();hasEncoding=!1;isSymbolicFont=[];if(0===cmap){for(segment=0;256>segment;segment++)(hasEncoding=font.getByte())&&isSymbolicFont.push({charCode:segment,glyphId:hasEncoding});hasEncoding=!0}else if(2===cmap){cmap=[];for(numTables=segment=0;256>numTables;numTables++)canBreak=font.getUint16()>>3,cmap.push(canBreak),segment=Math.max(canBreak,
|
|
1551
|
+
segment);canBreak=[];for(numTables=0;numTables<=segment;numTables++)canBreak.push({firstCode:font.getUint16(),entryCount:font.getUint16(),idDelta:signedInt16(font.getByte(),font.getByte()),idRangePos:font.pos+font.getUint16()});for(platformId=0;256>platformId;platformId++)if(0===cmap[platformId])font.pos=canBreak[0].idRangePos+2*platformId,numTables=font.getUint16(),isSymbolicFont.push({charCode:platformId,glyphId:numTables});else for(encodingId=canBreak[cmap[platformId]],segment=0;segment<encodingId.entryCount;segment++)offset=
|
|
1552
|
+
(platformId<<8)+segment+encodingId.firstCode,font.pos=encodingId.idRangePos+2*segment,numTables=font.getUint16(),0!==numTables&&(numTables=(numTables+encodingId.idDelta)%65536),isSymbolicFont.push({charCode:offset,glyphId:numTables})}else if(4===cmap){canBreak=font.getUint16()>>1;font.getBytes(6);encodingId=[];for(platformId=0;platformId<canBreak;platformId++)encodingId.push({end:font.getUint16()});font.getUint16();for(platformId=0;platformId<canBreak;platformId++)encodingId[platformId].start=font.getUint16();
|
|
1553
|
+
for(platformId=0;platformId<canBreak;platformId++)encodingId[platformId].delta=font.getUint16();for(platformId=cmap=0;platformId<canBreak;platformId++)segment=encodingId[platformId],(numTables=font.getUint16())?(offset=(numTables>>1)-(canBreak-platformId),segment.offsetIndex=offset,cmap=Math.max(cmap,offset+segment.end-segment.start+1)):segment.offsetIndex=-1;useTable=[];for(segment=0;segment<cmap;segment++)useTable.push(font.getUint16());for(platformId=0;platformId<canBreak;platformId++){segment=
|
|
1554
|
+
encodingId[platformId];cmap=segment.start;font=segment.end;var delta=segment.delta;offset=segment.offsetIndex;for(segment=cmap;segment<=font;segment++)65535!==segment&&(numTables=0>offset?segment:useTable[offset+segment-cmap],numTables=numTables+delta&65535,isSymbolicFont.push({charCode:segment,glyphId:numTables}))}}else if(6===cmap)for(cmap=font.getUint16(),canBreak=font.getUint16(),segment=0;segment<canBreak;segment++)numTables=font.getUint16(),isSymbolicFont.push({charCode:cmap+segment,glyphId:numTables});
|
|
1555
|
+
else return(0,_util.warn)("cmap table has unsupported format: "+cmap),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};isSymbolicFont.sort(function(a,b){return a.charCode-b.charCode});for(segment=1;segment<isSymbolicFont.length;segment++)isSymbolicFont[segment-1].charCode===isSymbolicFont[segment].charCode&&(isSymbolicFont.splice(segment,1),segment--);return{platformId:potentialTable.platformId,encodingId:potentialTable.encodingId,mappings:isSymbolicFont,hasShortCmap:hasEncoding}}function sanitizeGlyph(source,
|
|
1556
|
+
sourceStart,sourceEnd,dest,destStart,hintsValid){var glyphProfile={length:0,sizeOfInstructions:0};if(12>=sourceEnd-sourceStart)return glyphProfile;source=source.subarray(sourceStart,sourceEnd);var contoursCount=signedInt16(source[0],source[1]);if(0>contoursCount)return source[1]=-1,source[0]=16777215,dest.set(source,destStart),glyphProfile.length=source.length,glyphProfile;sourceEnd=10;var flagsCount=0;for(sourceStart=0;sourceStart<contoursCount;sourceStart++)flagsCount=(source[sourceEnd]<<8|source[sourceEnd+
|
|
1557
|
+
1])+1,sourceEnd+=2;contoursCount=sourceEnd;var instructionsLength=source[sourceEnd]<<8|source[sourceEnd+1];glyphProfile.sizeOfInstructions=instructionsLength;var instructionsEnd=sourceEnd+=2+instructionsLength,coordinatesLength=0;for(sourceStart=0;sourceStart<flagsCount;sourceStart++){var flag=source[sourceEnd++];flag&192&&(source[sourceEnd-1]=flag&63);var xyLength=(flag&2?1:flag&16?0:2)+(flag&4?1:flag&32?0:2);coordinatesLength+=xyLength;flag&8&&(flag=source[sourceEnd++],sourceStart+=flag,coordinatesLength+=
|
|
1558
|
+
flag*xyLength)}if(0===coordinatesLength)return glyphProfile;sourceStart=sourceEnd+coordinatesLength;if(sourceStart>source.length)return glyphProfile;if(!hintsValid&&0<instructionsLength)return dest.set(source.subarray(0,contoursCount),destStart),dest.set([0,0],destStart+contoursCount),dest.set(source.subarray(instructionsEnd,sourceStart),destStart+contoursCount+2),sourceStart-=instructionsLength,3<source.length-sourceStart&&(sourceStart=sourceStart+3&-4),glyphProfile.length=sourceStart,glyphProfile;
|
|
1559
|
+
if(3<source.length-sourceStart)return sourceStart=sourceStart+3&-4,dest.set(source.subarray(0,sourceStart),destStart),glyphProfile.length=sourceStart,glyphProfile;dest.set(source,destStart);glyphProfile.length=source.length;return glyphProfile}function sanitizeGlyphLocations(loca,glyf,numGlyphs,isGlyphLocationsLong,hintsValid,dupFirstEntry,maxSizeOfInstructions){if(isGlyphLocationsLong){isGlyphLocationsLong=4;var itemDecode=function(data,offset){return data[offset]<<24|data[offset+1]<<16|data[offset+
|
|
1560
|
+
2]<<8|data[offset+3]};var itemEncode=function(data,offset,value){data[offset]=value>>>24&255;data[offset+1]=value>>16&255;data[offset+2]=value>>8&255;data[offset+3]=value&255}}else isGlyphLocationsLong=2,itemDecode=function(data,offset){return data[offset]<<9|data[offset+1]<<1},itemEncode=function(data,offset,value){data[offset]=value>>9&255;data[offset+1]=value>>1&255};var numGlyphsOut=dupFirstEntry?numGlyphs+1:numGlyphs,locaDataSize=isGlyphLocationsLong*(1+numGlyphsOut),locaData=new Uint8Array(locaDataSize);
|
|
1561
|
+
locaData.set(loca.data.subarray(0,locaDataSize));loca.data=locaData;var oldGlyfData=glyf.data,oldGlyfDataLength=oldGlyfData.length,newGlyfData=new Uint8Array(oldGlyfDataLength),startOffset=itemDecode(locaData,0),writeOffset=0;locaDataSize=Object.create(null);itemEncode(locaData,0,writeOffset);var j;var i=0;for(j=isGlyphLocationsLong;i<numGlyphs;i++,j+=isGlyphLocationsLong){var endOffset=itemDecode(locaData,j);0===endOffset&&(endOffset=startOffset);endOffset>oldGlyfDataLength&&(oldGlyfDataLength+3&
|
|
1562
|
+
-4)===endOffset&&(endOffset=oldGlyfDataLength);endOffset>oldGlyfDataLength&&(startOffset=endOffset);startOffset=sanitizeGlyph(oldGlyfData,startOffset,endOffset,newGlyfData,writeOffset,hintsValid);var newLength=startOffset.length;0===newLength&&(locaDataSize[i]=!0);startOffset.sizeOfInstructions>maxSizeOfInstructions&&(maxSizeOfInstructions=startOffset.sizeOfInstructions);writeOffset+=newLength;itemEncode(locaData,j,writeOffset);startOffset=endOffset}if(0===writeOffset){loca=new Uint8Array([0,1,0,
|
|
1563
|
+
0,0,0,0,0,0,0,0,0,0,0,49,0]);i=0;for(j=isGlyphLocationsLong;i<numGlyphsOut;i++,j+=isGlyphLocationsLong)itemEncode(locaData,j,loca.length);glyf.data=loca}else dupFirstEntry?(numGlyphs=itemDecode(locaData,isGlyphLocationsLong),newGlyfData.length>numGlyphs+writeOffset?glyf.data=newGlyfData.subarray(0,numGlyphs+writeOffset):(glyf.data=new Uint8Array(numGlyphs+writeOffset),glyf.data.set(newGlyfData.subarray(0,writeOffset))),glyf.data.set(newGlyfData.subarray(0,numGlyphs),writeOffset),itemEncode(loca.data,
|
|
1564
|
+
locaData.length-isGlyphLocationsLong,writeOffset+numGlyphs)):glyf.data=newGlyfData.subarray(0,writeOffset);return{missingGlyphs:locaDataSize,maxSizeOfInstructions:maxSizeOfInstructions}}function readPostScriptTable(post,properties,maxpNumGlyphs){var start=(font$jscomp$0.start?font$jscomp$0.start:0)+post.offset;font$jscomp$0.pos=start;start+=post.length;var version=font$jscomp$0.getInt32();font$jscomp$0.getBytes(28);post=!0;switch(version){case 65536:var glyphNames=MacStandardGlyphOrdering;break;case 131072:version=
|
|
1565
|
+
font$jscomp$0.getUint16();if(version!==maxpNumGlyphs){post=!1;break}var glyphNameIndexes=[];for(maxpNumGlyphs=0;maxpNumGlyphs<version;++maxpNumGlyphs){var index=font$jscomp$0.getUint16();if(32768<=index){post=!1;break}glyphNameIndexes.push(index)}if(!post)break;index=[];for(glyphNames=[];font$jscomp$0.pos<start;){var stringLength=font$jscomp$0.getByte();glyphNames.length=stringLength;for(maxpNumGlyphs=0;maxpNumGlyphs<stringLength;++maxpNumGlyphs)glyphNames[maxpNumGlyphs]=String.fromCharCode(font$jscomp$0.getByte());
|
|
1566
|
+
index.push(glyphNames.join(""))}glyphNames=[];for(maxpNumGlyphs=0;maxpNumGlyphs<version;++maxpNumGlyphs)start=glyphNameIndexes[maxpNumGlyphs],258>start?glyphNames.push(MacStandardGlyphOrdering[start]):glyphNames.push(index[start-258]);break;case 196608:break;default:(0,_util.warn)("Unknown/unsupported post table version "+version),post=!1,properties.defaultEncoding&&(glyphNames=properties.defaultEncoding)}properties.glyphNames=glyphNames;return post}function readNameTable(nameTable){var start=(font$jscomp$0.start?
|
|
1567
|
+
font$jscomp$0.start:0)+nameTable.offset;font$jscomp$0.pos=start;var names=[[],[]],length=nameTable.length;nameTable=start+length;if(0!==font$jscomp$0.getUint16()||6>length)return names;var numRecords=font$jscomp$0.getUint16();length=font$jscomp$0.getUint16();var records=[],i;for(i=0;i<numRecords&&font$jscomp$0.pos+12<=nameTable;i++){var r={platform:font$jscomp$0.getUint16(),encoding:font$jscomp$0.getUint16(),language:font$jscomp$0.getUint16(),name:font$jscomp$0.getUint16(),length:font$jscomp$0.getUint16(),
|
|
1568
|
+
offset:font$jscomp$0.getUint16()};(1===r.platform&&0===r.encoding&&0===r.language||3===r.platform&&1===r.encoding&&1033===r.language)&&records.push(r)}i=0;for(numRecords=records.length;i<numRecords;i++)if(r=records[i],!(0>=r.length)){var pos=start+length+r.offset;if(!(pos+r.length>nameTable))if(font$jscomp$0.pos=pos,pos=r.name,r.encoding){var str="",j=0;for(r=r.length;j<r;j+=2)str+=String.fromCharCode(font$jscomp$0.getUint16());names[1][pos]=str}else names[0][pos]=(0,_util.bytesToString)(font$jscomp$0.getBytes(r.length))}return names}
|
|
1569
|
+
function sanitizeTTProgram(table,ttContext){for(var data=table.data,i=0,j,n,b,lastEndf=0,lastDeff=0,stack=[],callstack=[],functionsCalled=[],tooComplexToFollowFunctions=ttContext.tooComplexToFollowFunctions,inFDEF=!1,ifLevel=0,inELSE=0,ii=data.length;i<ii;){var op=data[i++];if(64===op)if(n=data[i++],inFDEF||inELSE)i+=n;else for(j=0;j<n;j++)stack.push(data[i++]);else if(65===op)if(n=data[i++],inFDEF||inELSE)i+=2*n;else for(j=0;j<n;j++)b=data[i++],stack.push(b<<8|data[i++]);else if(176===(op&248))if(n=
|
|
1570
|
+
op-176+1,inFDEF||inELSE)i+=n;else for(j=0;j<n;j++)stack.push(data[i++]);else if(184===(op&248))if(n=op-184+1,inFDEF||inELSE)i+=2*n;else for(j=0;j<n;j++)b=data[i++],stack.push(b<<8|data[i++]);else if(43!==op||tooComplexToFollowFunctions)if(44!==op||tooComplexToFollowFunctions)if(45===op)if(inFDEF)inFDEF=!1,lastEndf=i;else{j=callstack.pop();if(!j){(0,_util.warn)("TT: ENDF bad stack");ttContext.hintsValid=!1;return}n=functionsCalled.pop();data=j.data;i=j.i;ttContext.functionsStackDeltas[n]=stack.length-
|
|
1571
|
+
j.stackTop}else if(137===op){if(inFDEF||inELSE)(0,_util.warn)("TT: nested IDEFs not allowed"),tooComplexToFollowFunctions=!0;inFDEF=!0;lastDeff=i}else 88===op?++ifLevel:27===op?inELSE=ifLevel:89===op?(inELSE===ifLevel&&(inELSE=0),--ifLevel):28!==op||inFDEF||inELSE||(n=stack[stack.length-1],0<n&&(i+=n-1));else{if(inFDEF||inELSE)(0,_util.warn)("TT: nested FDEFs not allowed"),tooComplexToFollowFunctions=!0;inFDEF=!0;lastDeff=i;n=stack.pop();ttContext.functionsDefined[n]={data:data,i:i}}else if(!inFDEF&&
|
|
1572
|
+
!inELSE)if(n=stack[stack.length-1],isNaN(n))(0,_util.info)("TT: CALL empty stack (or invalid entry).");else if(ttContext.functionsUsed[n]=!0,n in ttContext.functionsStackDeltas){n=stack.length+ttContext.functionsStackDeltas[n];if(0>n){(0,_util.warn)("TT: CALL invalid functions stack delta.");ttContext.hintsValid=!1;return}stack.length=n}else if(n in ttContext.functionsDefined&&!functionsCalled.includes(n)){callstack.push({data:data,i:i,stackTop:stack.length-1});functionsCalled.push(n);j=ttContext.functionsDefined[n];
|
|
1573
|
+
if(!j){(0,_util.warn)("TT: CALL non-existent function");ttContext.hintsValid=!1;return}data=j.data;i=j.i}if(!inFDEF&&!inELSE){j=142>=op?TTOpsStackDeltas[op]:192<=op&&223>=op?-1:224<=op?-2:0;113<=op&&117>=op&&(n=stack.pop(),isNaN(n)||(j=2*-n));for(;0>j&&0<stack.length;)stack.pop(),j++;for(;0<j;)stack.push(NaN),j--}}ttContext.tooComplexToFollowFunctions=tooComplexToFollowFunctions;ttContext=[data];i>data.length&&ttContext.push(new Uint8Array(i-data.length));lastDeff>lastEndf&&((0,_util.warn)("TT: complementing a missing function tail"),
|
|
1574
|
+
ttContext.push(new Uint8Array([34,45])));if(1<ttContext.length){i=data=0;for(lastEndf=ttContext.length;i<lastEndf;i++)data+=ttContext[i].length;data=data+3&-4;lastDeff=new Uint8Array(data);i=stack=0;for(lastEndf=ttContext.length;i<lastEndf;i++)lastDeff.set(ttContext[i],stack),stack+=ttContext[i].length;table.data=lastDeff;table.length=data}}var VALID_TABLES="OS/2;cmap;head;hhea;hmtx;maxp;name;post;loca;glyf;fpgm;prep;cvt ;CFF ".split(";"),TTOpsStackDeltas=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,
|
|
1575
|
+
-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];font$jscomp$0=new _stream.Stream(new Uint8Array(font$jscomp$0.getBytes()));if(isTrueTypeCollectionFile(font$jscomp$0)){var tables=readTrueTypeCollectionData(font$jscomp$0,
|
|
1576
|
+
this.name);var header$jscomp$0=tables.header;tables=tables.tables}else header$jscomp$0=readOpenTypeHeader(font$jscomp$0),tables=readTables(font$jscomp$0,header$jscomp$0.numTables);var isTrueType=!tables["CFF "];if(isTrueType){if(!tables.loca)throw new _util.FormatError('Required "loca" table is not found');tables.glyf||((0,_util.warn)('Required "glyf" table is not found -- trying to recover.'),tables.glyf={tag:"glyf",data:new Uint8Array(0)});this.isOpenType=!1}else{var isComposite=properties$jscomp$0.composite&&
|
|
1577
|
+
(0<(properties$jscomp$0.cidToGidMap||[]).length||!(properties$jscomp$0.cMap instanceof _cmap.IdentityCMap));if("OTTO"===header$jscomp$0.version&&!isComposite||!tables.head||!tables.hhea||!tables.maxp||!tables.post){var cffFile=new _stream.Stream(tables["CFF "].data);var cff=new CFFFont(cffFile,properties$jscomp$0);adjustWidths(properties$jscomp$0);return this.convert(name,cff,properties$jscomp$0)}delete tables.glyf;delete tables.loca;delete tables.fpgm;delete tables.prep;delete tables["cvt "];this.isOpenType=
|
|
1578
|
+
!0}if(!tables.maxp)throw new _util.FormatError('Required "maxp" table is not found');font$jscomp$0.pos=(font$jscomp$0.start||0)+tables.maxp.offset;var version$jscomp$0=font$jscomp$0.getInt32(),numGlyphs$jscomp$0=font$jscomp$0.getUint16();isComposite=numGlyphs$jscomp$0+1;var dupFirstEntry=!0;65535<isComposite&&(dupFirstEntry=!1,isComposite=numGlyphs$jscomp$0,(0,_util.warn)("Not enough space in glyfs to duplicate first glyph."));var maxFunctionDefs=0,maxSizeOfInstructions=0;65536<=version$jscomp$0&&
|
|
1579
|
+
22<=tables.maxp.length&&(font$jscomp$0.pos+=8,2<font$jscomp$0.getUint16()&&(tables.maxp.data[14]=0,tables.maxp.data[15]=2),font$jscomp$0.pos+=4,maxFunctionDefs=font$jscomp$0.getUint16(),font$jscomp$0.pos+=4,maxSizeOfInstructions=font$jscomp$0.getUint16());tables.maxp.data[4]=isComposite>>8;tables.maxp.data[5]=isComposite&255;maxFunctionDefs=function(fpgm,prep,cvt,maxFunctionDefs){var ttContext={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};
|
|
1580
|
+
fpgm&&sanitizeTTProgram(fpgm,ttContext);prep&&sanitizeTTProgram(prep,ttContext);if(fpgm&&!ttContext.tooComplexToFollowFunctions)if(ttContext.functionsDefined.length>maxFunctionDefs)(0,_util.warn)("TT: more functions defined than expected"),ttContext.hintsValid=!1;else for(fpgm=0,prep=ttContext.functionsUsed.length;fpgm<prep;fpgm++){if(fpgm>maxFunctionDefs){(0,_util.warn)("TT: invalid function id: "+fpgm);ttContext.hintsValid=!1;break}if(ttContext.functionsUsed[fpgm]&&!ttContext.functionsDefined[fpgm]){(0,
|
|
1581
|
+
_util.warn)("TT: undefined function: "+fpgm);ttContext.hintsValid=!1;break}}cvt&&cvt.length&1&&(maxFunctionDefs=new Uint8Array(cvt.length+1),maxFunctionDefs.set(cvt.data),cvt.data=maxFunctionDefs);return ttContext.hintsValid}(tables.fpgm,tables.prep,tables["cvt "],maxFunctionDefs);maxFunctionDefs||(delete tables.fpgm,delete tables.prep,delete tables["cvt "]);(function(font,header,metrics,numGlyphs,dupFirstEntry){header?(font.pos=(font.start?font.start:0)+header.offset,font.pos+=4,font.pos+=2,font.pos+=
|
|
1582
|
+
2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=2,font.pos+=8,font.pos+=2,font=font.getUint16(),font>numGlyphs&&((0,_util.info)("The numOfMetrics ("+font+") should not be greater than the numGlyphs ("+numGlyphs+")"),font=numGlyphs,header.data[34]=(font&65280)>>8,header.data[35]=font&255),header=numGlyphs-font-(metrics.length-4*font>>1),0<header&&(header=new Uint8Array(metrics.length+2*header),header.set(metrics.data),dupFirstEntry&&(header[metrics.length]=
|
|
1583
|
+
metrics.data[2],header[metrics.length+1]=metrics.data[3]),metrics.data=header)):metrics&&(metrics.data=null)})(font$jscomp$0,tables.hhea,tables.hmtx,isComposite,dupFirstEntry);if(!tables.head)throw new _util.FormatError('Required "head" table is not found');(function(head,numGlyphs,locaLength){head=head.data;var version=(head[0]<<24)+(head[1]<<16)+(head[2]<<8)+head[3];1!==version>>16&&((0,_util.info)("Attempting to fix invalid version in head table: "+version),head[0]=0,head[1]=1,head[2]=0,head[3]=
|
|
1584
|
+
0);version=(head[50]<<8)+head[51];if(0>version||1<version)if((0,_util.info)("Attempting to fix invalid indexToLocFormat in head table: "+version),numGlyphs+=1,locaLength===numGlyphs<<1)head[50]=0,head[51]=0;else if(locaLength===numGlyphs<<2)head[50]=0,head[51]=1;else throw new _util.FormatError("Could not fix indexToLocFormat: "+version);})(tables.head,numGlyphs$jscomp$0,isTrueType?tables.loca.length:0);var missingGlyphs=Object.create(null);isTrueType&&(maxSizeOfInstructions=sanitizeGlyphLocations(tables.loca,
|
|
1585
|
+
tables.glyf,numGlyphs$jscomp$0,(tables.head.data[50]<<8)+tables.head.data[51],maxFunctionDefs,dupFirstEntry,maxSizeOfInstructions),missingGlyphs=maxSizeOfInstructions.missingGlyphs,65536<=version$jscomp$0&&22<=tables.maxp.length&&(tables.maxp.data[26]=maxSizeOfInstructions.maxSizeOfInstructions>>8,tables.maxp.data[27]=maxSizeOfInstructions.maxSizeOfInstructions&255));if(!tables.hhea)throw new _util.FormatError('Required "hhea" table is not found');0===tables.hhea.data[10]&&0===tables.hhea.data[11]&&
|
|
1586
|
+
(tables.hhea.data[10]=255,tables.hhea.data[11]=255);version$jscomp$0={unitsPerEm:(tables.head.data[18]<<8)+tables.head.data[19],yMax:(tables.head.data[42]<<8)+tables.head.data[43],yMin:signedInt16(tables.head.data[38],tables.head.data[39]),ascent:(tables.hhea.data[4]<<8)+tables.hhea.data[5],descent:signedInt16(tables.hhea.data[6],tables.hhea.data[7])};this.ascent=version$jscomp$0.ascent/version$jscomp$0.unitsPerEm;this.descent=version$jscomp$0.descent/version$jscomp$0.unitsPerEm;tables.post&&readPostScriptTable(tables.post,
|
|
1587
|
+
properties$jscomp$0,numGlyphs$jscomp$0);tables.post={tag:"post",data:createPostTable(properties$jscomp$0)};var charCodeToGlyphId=[],charCode$jscomp$0;if(properties$jscomp$0.composite){var cidToGidMap=properties$jscomp$0.cidToGidMap||[],isCidToGidMapEmpty=0===cidToGidMap.length;properties$jscomp$0.cMap.forEach(function(charCode,cid){if(65535<cid)throw new _util.FormatError("Max size of CID is 65,535");var glyphId=-1;isCidToGidMapEmpty?glyphId=cid:void 0!==cidToGidMap[cid]&&(glyphId=cidToGidMap[cid]);
|
|
1588
|
+
0<=glyphId&&glyphId<numGlyphs$jscomp$0&&!missingGlyphs[glyphId]&&(charCodeToGlyphId[charCode]=glyphId)})}else{maxFunctionDefs=readCmapTable(tables.cmap,font$jscomp$0,this.isSymbolicFont,properties$jscomp$0.hasEncoding);maxSizeOfInstructions=maxFunctionDefs.platformId;var cmapEncodingId=maxFunctionDefs.encodingId;maxFunctionDefs=maxFunctionDefs.mappings;var cmapMappingsLength=maxFunctionDefs.length;if(properties$jscomp$0.hasEncoding&&(3===maxSizeOfInstructions&&1===cmapEncodingId||1===maxSizeOfInstructions&&
|
|
1589
|
+
0===cmapEncodingId)||-1===maxSizeOfInstructions&&-1===cmapEncodingId&&(0,_encodings.getEncoding)(properties$jscomp$0.baseEncodingName)){var baseEncoding=[];if("MacRomanEncoding"===properties$jscomp$0.baseEncodingName||"WinAnsiEncoding"===properties$jscomp$0.baseEncodingName)baseEncoding=(0,_encodings.getEncoding)(properties$jscomp$0.baseEncodingName);var glyphsUnicodeMap=(0,_glyphlist.getGlyphsUnicode)();for(charCode$jscomp$0=0;256>charCode$jscomp$0;charCode$jscomp$0++){var glyphName;if(glyphName=
|
|
1590
|
+
this.differences&&charCode$jscomp$0 in this.differences?this.differences[charCode$jscomp$0]:charCode$jscomp$0 in baseEncoding&&""!==baseEncoding[charCode$jscomp$0]?baseEncoding[charCode$jscomp$0]:_encodings.StandardEncoding[charCode$jscomp$0]){var standardGlyphName=recoverGlyphName(glyphName,glyphsUnicodeMap);var unicodeOrCharCode;3===maxSizeOfInstructions&&1===cmapEncodingId?unicodeOrCharCode=glyphsUnicodeMap[standardGlyphName]:1===maxSizeOfInstructions&&0===cmapEncodingId&&(unicodeOrCharCode=_encodings.MacRomanEncoding.indexOf(standardGlyphName));
|
|
1591
|
+
for(var found=!1,i$jscomp$0=0;i$jscomp$0<cmapMappingsLength;++i$jscomp$0)if(maxFunctionDefs[i$jscomp$0].charCode===unicodeOrCharCode){charCodeToGlyphId[charCode$jscomp$0]=maxFunctionDefs[i$jscomp$0].glyphId;found=!0;break}!found&&properties$jscomp$0.glyphNames&&(found=properties$jscomp$0.glyphNames.indexOf(glyphName),-1===found&&standardGlyphName!==glyphName&&(found=properties$jscomp$0.glyphNames.indexOf(standardGlyphName)),0<found&&!missingGlyphs[found]&&(charCodeToGlyphId[charCode$jscomp$0]=found))}}}else if(0===
|
|
1592
|
+
maxSizeOfInstructions&&0===cmapEncodingId)for(unicodeOrCharCode=0;unicodeOrCharCode<cmapMappingsLength;++unicodeOrCharCode)charCodeToGlyphId[maxFunctionDefs[unicodeOrCharCode].charCode]=maxFunctionDefs[unicodeOrCharCode].glyphId;else for(unicodeOrCharCode=0;unicodeOrCharCode<cmapMappingsLength;++unicodeOrCharCode)charCode$jscomp$0=maxFunctionDefs[unicodeOrCharCode].charCode,3===maxSizeOfInstructions&&61440<=charCode$jscomp$0&&61695>=charCode$jscomp$0&&(charCode$jscomp$0&=255),charCodeToGlyphId[charCode$jscomp$0]=
|
|
1593
|
+
maxFunctionDefs[unicodeOrCharCode].glyphId}0===charCodeToGlyphId.length&&(charCodeToGlyphId[0]=0);unicodeOrCharCode=isComposite-1;dupFirstEntry||(unicodeOrCharCode=0);dupFirstEntry=adjustMapping(charCodeToGlyphId,function(glyphId){return!missingGlyphs[glyphId]},unicodeOrCharCode);this.toFontChar=dupFirstEntry.toFontChar;tables.cmap={tag:"cmap",data:createCmapTable(dupFirstEntry.charCodeToGlyphId,isComposite)};tables["OS/2"]&&validateOS2Table(tables["OS/2"])||(tables["OS/2"]={tag:"OS/2",data:createOS2Table(properties$jscomp$0,
|
|
1594
|
+
dupFirstEntry.charCodeToGlyphId,version$jscomp$0)});if(!isTrueType)try{cffFile=new _stream.Stream(tables["CFF "].data);cff=(new _cff_parser.CFFParser(cffFile,properties$jscomp$0,!0)).parse();cff.duplicateFirstGlyph();var compiler=new _cff_parser.CFFCompiler(cff);tables["CFF "].data=compiler.compile()}catch(e){(0,_util.warn)("Failed to compile font "+properties$jscomp$0.loadedName)}tables.name?(properties$jscomp$0=readNameTable(tables.name),tables.name.data=createNameTable(name,properties$jscomp$0)):
|
|
1595
|
+
tables.name={tag:"name",data:createNameTable(this.name)};name=new OpenTypeFileBuilder(header$jscomp$0.version);for(var tableTag in tables)name.addTable(tableTag,tables[tableTag].data);return name.toArray()},convert:function(fontName,font,properties){function getCharCodes(charCodeToGlyphId,glyphId){var charCodes=null,charCode;for(charCode in charCodeToGlyphId)glyphId===charCodeToGlyphId[charCode]&&(charCodes||(charCodes=[]),charCodes.push(charCode|0));return charCodes}function createCharCode(charCodeToGlyphId,
|
|
1596
|
+
glyphId){for(var charCode in charCodeToGlyphId)if(glyphId===charCodeToGlyphId[charCode])return charCode|0;newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode]=glyphId;return newMapping.nextAvailableFontCharCode++}properties.fixedPitch=!1;properties.builtInEncoding&&adjustToUnicode(properties,properties.builtInEncoding);var glyphZeroId=1;font instanceof CFFFont&&(glyphZeroId=font.numGlyphs-1);var mapping=font.getGlyphMapping(properties),newMapping=adjustMapping(mapping,font.hasGlyphId.bind(font),
|
|
1597
|
+
glyphZeroId);this.toFontChar=newMapping.toFontChar;var numGlyphs=font.numGlyphs;if((glyphZeroId=font.seacs)&&glyphZeroId.length){var matrix=properties.fontMatrix||_util.FONT_IDENTITY_MATRIX,charset=font.getCharset(),seacMap=Object.create(null);for(glyphId$jscomp$0 in glyphZeroId){glyphId$jscomp$0|=0;var seac=glyphZeroId[glyphId$jscomp$0],accentGlyphName=_encodings.StandardEncoding[seac[3]],baseGlyphId=charset.indexOf(_encodings.StandardEncoding[seac[2]]);accentGlyphName=charset.indexOf(accentGlyphName);
|
|
1598
|
+
if(!(0>baseGlyphId||0>accentGlyphName)){seac={x:seac[0]*matrix[0]+seac[1]*matrix[2]+matrix[4],y:seac[0]*matrix[1]+seac[1]*matrix[3]+matrix[5]};var charCodes=getCharCodes(mapping,glyphId$jscomp$0);if(charCodes)for(var i$jscomp$0=0,ii=charCodes.length;i$jscomp$0<ii;i$jscomp$0++){var charCode$jscomp$0=charCodes[i$jscomp$0],charCodeToGlyphId$jscomp$0=newMapping.charCodeToGlyphId,baseFontCharCode=createCharCode(charCodeToGlyphId$jscomp$0,baseGlyphId);charCodeToGlyphId$jscomp$0=createCharCode(charCodeToGlyphId$jscomp$0,
|
|
1599
|
+
accentGlyphName);seacMap[charCode$jscomp$0]={baseFontCharCode:baseFontCharCode,accentFontCharCode:charCodeToGlyphId$jscomp$0,accentOffset:seac}}}}properties.seacMap=seacMap}mapping=1/(properties.fontMatrix||_util.FONT_IDENTITY_MATRIX)[0];var glyphId$jscomp$0=new OpenTypeFileBuilder("OTTO");glyphId$jscomp$0.addTable("CFF ",font.data);glyphId$jscomp$0.addTable("OS/2",createOS2Table(properties,newMapping.charCodeToGlyphId));glyphId$jscomp$0.addTable("cmap",createCmapTable(newMapping.charCodeToGlyphId,
|
|
1598
1600
|
numGlyphs));glyphId$jscomp$0.addTable("head","\x00\u0001\x00\x00\x00\x00\u0010\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x00"+safeString16(mapping)+"\x00\x00\x00\x00\u009e\x0B~'\x00\x00\x00\x00\u009e\x0B~'\x00\x00"+safeString16(properties.descent)+"\u000f\u00ff"+safeString16(properties.ascent)+string16(properties.italicAngle?2:0)+"\x00\u0011\x00\x00\x00\x00\x00\x00");glyphId$jscomp$0.addTable("hhea","\x00\u0001\x00\x00"+safeString16(properties.ascent)+safeString16(properties.descent)+"\x00\x00\u00ff\u00ff\x00\x00\x00\x00\x00\x00"+
|
|
1599
1601
|
safeString16(properties.capHeight)+safeString16(Math.tan(properties.italicAngle)*properties.xHeight)+"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"+string16(numGlyphs));glyphId$jscomp$0.addTable("hmtx",function(){for(var charstrings=font.charstrings,cffWidths=font.cff?font.cff.widths:null,hmtx="\x00\x00\x00\x00",i=1;i<numGlyphs;i++){var width=0;charstrings?(width=charstrings[i-1],width="width"in width?width.width:0):cffWidths&&(width=Math.ceil(cffWidths[i]||0));hmtx+=string16(width)+string16(0)}return hmtx}());
|
|
1600
1602
|
glyphId$jscomp$0.addTable("maxp","\x00\x00P\x00"+string16(numGlyphs));glyphId$jscomp$0.addTable("name",createNameTable(fontName));glyphId$jscomp$0.addTable("post",createPostTable(properties));return glyphId$jscomp$0.toArray()},get spaceWidth(){if("_shadowWidth"in this)return this._shadowWidth;for(var possibleSpaceReplacements=["space","minus","one","i","I"],width,i=0,ii=possibleSpaceReplacements.length;i<ii;i++){width=possibleSpaceReplacements[i];if(width in this.widths){width=this.widths[width];
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[19],{435:function(ia,ba){!function(e,ea){if("object"==typeof ba){try{var x=require("moment")}catch(ha){}ia.exports=ea(x)}else"function"==typeof define&&define.amd?define(function(e){try{x=e("moment")}catch(ca){}return ea(x)}):e.Pikaday=ea(e.moment)}(this,function(e){function ba(f){var h=this,n=h.config(f);h._onMouseDown=function(e){if(h._v){var f=(e=e||window.event).target||e.srcElement;if(f)if(ja(f,"is-disabled")||(!ja(f,"pika-button")||
|
|
8
8
|
ja(f,"is-empty")||ja(f.parentNode,"is-disabled")?ja(f,"pika-prev")?h.prevMonth():ja(f,"pika-next")?h.nextMonth():ja(f,"pika-set-today")&&(h.setDate(new Date),h.hide()):(h.setDate(new Date(f.getAttribute("data-pika-year"),f.getAttribute("data-pika-month"),f.getAttribute("data-pika-day"))),n.bound&&sa(function(){h.hide();n.blurFieldOnSelect&&n.field&&n.field.blur()},100))),ja(f,"pika-select"))h._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}};h._onChange=function(e){var f=
|
|
9
9
|
(e=e||window.event).target||e.srcElement;f&&(ja(f,"pika-select-month")?h.gotoMonth(f.value):ja(f,"pika-select-year")&&h.gotoYear(f.value))};h._onKeyChange=function(e){if(e=e||window.event,h.isVisible())switch(e.keyCode){case 13:case 27:n.field&&n.field.blur();break;case 37:h.adjustDate("subtract",1);break;case 38:h.adjustDate("subtract",7);break;case 39:h.adjustDate("add",1);break;case 40:h.adjustDate("add",7);break;case 8:case 46:h.setDate(null)}};h._parseFieldValue=function(){if(n.parse)return n.parse(n.field.value,
|
|
10
|
-
n.format);if(la){var f=e(n.field.value,n.format,n.formatStrict);return f&&f.isValid()?f.toDate():null}return new Date(Date.parse(n.field.value))};h._onInputChange=function(e){var f;e.firedBy!==h&&(f=h._parseFieldValue(),r(f)&&h.setDate(f),h._v||h.show())};h._onInputFocus=function(){h.show()};h._onInputClick=function(){h.show()};h._onInputBlur=function(){var e=
|
|
11
|
-
(e=e||window.event).target||e.srcElement;if(e=f){!na&&ja(f,"pika-select")&&(f.onchange||(f.setAttribute("onchange","return;"),
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
n.format);if(la){var f=e(n.field.value,n.format,n.formatStrict);return f&&f.isValid()?f.toDate():null}return new Date(Date.parse(n.field.value))};h._onInputChange=function(e){var f;e.firedBy!==h&&(f=h._parseFieldValue(),r(f)&&h.setDate(f),h._v||h.show())};h._onInputFocus=function(){h.show()};h._onInputClick=function(){h.show()};h._onInputBlur=function(){var e=qa.activeElement;do if(ja(e,"pika-single"))return;while(e=e.parentNode);h._c||(h._b=sa(function(){h.hide()},50));h._c=!1};h._onClick=function(e){var f=
|
|
11
|
+
(e=e||window.event).target||e.srcElement;if(e=f){!na&&ja(f,"pika-select")&&(f.onchange||(f.setAttribute("onchange","return;"),ma(f,"change",h._onChange)));do if(ja(e,"pika-single")||e===n.trigger)return;while(e=e.parentNode);h._v&&f!==n.trigger&&e!==n.trigger&&h.hide()}};h.el=qa.createElement("div");h.el.className="pika-single"+(n.isRTL?" is-rtl":"")+(n.theme?" "+n.theme:"");ma(h.el,"mousedown",h._onMouseDown,!0);ma(h.el,"touchend",h._onMouseDown,!0);ma(h.el,"change",h._onChange);n.keyboardInput&&
|
|
12
|
+
ma(qa,"keydown",h._onKeyChange);n.field&&(n.container?n.container.appendChild(h.el):n.bound?qa.body.appendChild(h.el):n.field.parentNode.insertBefore(h.el,n.field.nextSibling),ma(n.field,"change",h._onInputChange),n.defaultDate||(n.defaultDate=h._parseFieldValue(),n.setDefaultDate=!0));f=n.defaultDate;r(f)?n.setDefaultDate?h.setDate(f,!0):h.gotoDate(f):h.gotoDate(new Date);n.bound?(this.hide(),h.el.className+=" is-bound",ma(n.trigger,"click",h._onInputClick),ma(n.trigger,"focus",h._onInputFocus),
|
|
13
|
+
ma(n.trigger,"blur",h._onInputBlur)):this.show()}function x(e,f,h){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+h+'">'+function(e){var f,h=[];e.showWeekNumber&&h.push("<th></th>");for(f=0;7>f;f++)h.push('<th scope="col"><abbr title="'+w(e,f)+'">'+w(e,f,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?h.reverse():h).join("")+"</tr></thead>"}(e)+("<tbody>"+f.join("")+"</tbody>")+(e.showTodayButton?function(e){var f=[];return f.push('<td colspan="'+
|
|
14
14
|
(e.showWeekNumber?"8":"7")+'"><button class="pika-set-today">'+e.i18n.today+"</button></td>"),"<tfoot>"+(e.isRTL?f.reverse():f).join("")+"</tfoot>"}(e):"")+"</table>"}function ha(e,f,h,n,r,w){var x,y,aa=e._o,ba=h===aa.minYear,da=h===aa.maxYear,ca='<div id="'+w+'" class="pika-title" role="heading" aria-live="assertive">',ea=!0,fa=!0;var ha=[];for(w=0;12>w;w++)ha.push('<option value="'+(h===r?w-f:12+w-f)+'"'+(w===n?' selected="selected"':"")+(ba&&w<aa.minMonth||da&&w>aa.maxMonth?' disabled="disabled"':
|
|
15
15
|
"")+">"+aa.i18n.months[w]+"</option>");r='<div class="pika-label">'+aa.i18n.months[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+ha.join("")+"</select></div>";z(aa.yearRange)?(w=aa.yearRange[0],x=aa.yearRange[1]+1):(w=h-aa.yearRange,x=1+h+aa.yearRange);for(ha=[];w<x&&w<=aa.maxYear;w++)w>=aa.minYear&&ha.push('<option value="'+w+'"'+(w===h?' selected="selected"':"")+">"+w+"</option>");return y='<div class="pika-label">'+h+aa.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+
|
|
16
16
|
ha.join("")+"</select></div>",aa.showMonthAfterYear?ca+=y+r:ca+=r+y,ba&&(0===n||aa.minMonth>=n)&&(ea=!1),da&&(11===n||aa.maxMonth<=n)&&(fa=!1),0===f&&(ca+='<button class="pika-prev'+(ea?"":" is-disabled")+'" type="button">'+aa.i18n.previousMonth+"</button>"),f===e._o.numberOfMonths-1&&(ca+='<button class="pika-next'+(fa?"":" is-disabled")+'" type="button">'+aa.i18n.nextMonth+"</button>"),ca+"</div>"}function ca(e,f,h,n){return'<tr class="pika-row'+(h?" pick-whole-week":"")+(n?" is-selected":"")+'">'+
|
|
17
17
|
(f?e.reverse():e).join("")+"</tr>"}function da(f,h,n,r){f=new Date(n,h,f);la?r=e(f).isoWeek():(f.setHours(0,0,0,0),n=f.getDate(),h=r-1,f.setDate(n+h-(f.getDay()+7-1)%7),r=new Date(f.getFullYear(),0,r),r=1+Math.round(((f.getTime()-r.getTime())/864E5-h+(r.getDay()+7-1)%7)/7));return'<td class="pika-week">'+r+"</td>"}function aa(e){var f=[],h="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';f.push("is-outside-current-month");e.enableSelectionDaysInNextAndPreviousMonths||
|
|
18
18
|
f.push("is-selection-disabled")}return e.isDisabled&&f.push("is-disabled"),e.isToday&&f.push("is-today"),e.isSelected&&(f.push("is-selected"),h="true"),e.hasEvent&&f.push("has-event"),e.isInRange&&f.push("is-inrange"),e.isStartRange&&f.push("is-startrange"),e.isEndRange&&f.push("is-endrange"),'<td data-day="'+e.day+'" class="'+f.join(" ")+'" aria-selected="'+h+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+
|
|
19
|
-
e.day+"</button></td>"}function w(e,f,h){for(f+=e.firstDay;7<=f;)f-=7;return h?e.i18n.weekdaysShort[f]:e.i18n.weekdays[f]}function y(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function n(e,f,n){var r;
|
|
19
|
+
e.day+"</button></td>"}function w(e,f,h){for(f+=e.firstDay;7<=f;)f-=7;return h?e.i18n.weekdaysShort[f]:e.i18n.weekdays[f]}function y(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function n(e,f,n){var r;qa.createEvent?((r=qa.createEvent("HTMLEvents")).initEvent(f,!0,!1),r=h(r,n),e.dispatchEvent(r)):qa.createEventObject&&(r=qa.createEventObject(),r=h(r,n),e.fireEvent("on"+f,r))}function h(e,f,n){var w,
|
|
20
20
|
x;for(w in f)(x=void 0!==e[w])&&"object"==typeof f[w]&&null!==f[w]&&void 0===f[w].nodeName?r(f[w])?n&&(e[w]=new Date(f[w].getTime())):z(f[w])?n&&(e[w]=f[w].slice(0)):e[w]=h({},f[w],n):!n&&x||(e[w]=f[w]);return e}function f(e){r(e)&&e.setHours(0,0,0,0)}function r(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())}function z(e){return/Array/.test(Object.prototype.toString.call(e))}function fa(e,f){var h;e.className=(h=(" "+e.className+" ").replace(" "+f+" "," ")).trim?h.trim():
|
|
21
|
-
h.replace(/^\s+|\s+$/g,"")}function ia(e,f){ja(e,f)||(e.className=""===e.className?f:e.className+" "+f)}function ja(e,f){return-1!==(" "+e.className+" ").indexOf(" "+f+" ")}function
|
|
21
|
+
h.replace(/^\s+|\s+$/g,"")}function ia(e,f){ja(e,f)||(e.className=""===e.className?f:e.className+" "+f)}function ja(e,f){return-1!==(" "+e.className+" ").indexOf(" "+f+" ")}function pa(e,f,h,n){na?e.removeEventListener(f,h,!!n):e.detachEvent("on"+f,h)}function ma(e,f,h,n){na?e.addEventListener(f,h,!!n):e.attachEvent("on"+f,h)}var la="function"==typeof e,na=!!window.addEventListener,qa=window.document,sa=window.setTimeout,Ea={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",
|
|
22
22
|
reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,showTodayButton:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,
|
|
23
23
|
blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",today:"Today",months:"January February March April May June July August September October November December".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0};return ba.prototype={config:function(e){this._o||(this._o=h({},Ea,!0));e=h(this._o,
|
|
24
24
|
e,!0);e.isRTL=!!e.isRTL;e.field=e.field&&e.field.nodeName?e.field:null;e.theme="string"==typeof e.theme&&e.theme?e.theme:null;e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field);e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;e.disableWeekends=!!e.disableWeekends;e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var f=parseInt(e.numberOfMonths,10)||1;(e.numberOfMonths=4<f?4:f,r(e.minDate)||(e.minDate=!1),r(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&
|
|
@@ -29,11 +29,11 @@ this._o.field&&(this._o.field.value=this.toString(),n(this._o.field,"change",{fi
|
|
|
29
29
|
y({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(f(e),
|
|
30
30
|
this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=Ea.minDate,this._o.minYear=Ea.minYear,this._o.minMonth=Ea.minMonth,this._o.startRange=Ea.startRange);this.draw()},setMaxDate:function(e){e instanceof Date?(f(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=Ea.maxDate,this._o.maxYear=Ea.maxYear,this._o.maxMonth=Ea.maxMonth,this._o.endRange=Ea.endRange);this.draw()},setStartRange:function(e){this._o.startRange=
|
|
31
31
|
e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var f=this._o;var h=f.minYear;var n=f.maxYear,r=f.minMonth,w=f.maxMonth;e="";this._y<=h&&(this._y=h,!isNaN(r)&&this._m<r&&(this._m=r));this._y>=n&&(this._y=n,!isNaN(w)&&this._m>w&&(this._m=w));for(n=0;n<f.numberOfMonths;n++)h="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),e+='<div class="pika-lendar">'+ha(this,n,this.calendars[n].year,this.calendars[n].month,this.calendars[0].year,h)+this.render(this.calendars[n].year,
|
|
32
|
-
this.calendars[n].month,h)+"</div>";this.el.innerHTML=e;f.bound&&"hidden"!==f.field.type&&sa(function(){f.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);f.bound&&f.field.setAttribute("aria-label",f.ariaLabel)}},adjustPosition:function(){var e,f,h,n,r,w,x,y,
|
|
33
|
-
x=window.pageYOffset||
|
|
34
|
-
0<ba-n-e.offsetHeight)&&(ba=ba-n-e.offsetHeight,
|
|
35
|
-
w.firstDay)&&(ba+=7);for(var ha=0===h?11:h-1,ia=11===h?0:h+1,ja=0===h?e-1:e,
|
|
36
|
-
w.endRange.getTime()===
|
|
37
|
-
enableSelectionDaysInNextAndPreviousMonths:w.enableSelectionDaysInNextAndPreviousMonths};w.pickWholeWeek&&
|
|
38
|
-
this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&qa
|
|
39
|
-
qa
|
|
32
|
+
this.calendars[n].month,h)+"</div>";this.el.innerHTML=e;f.bound&&"hidden"!==f.field.type&&sa(function(){f.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);f.bound&&f.field.setAttribute("aria-label",f.ariaLabel)}},adjustPosition:function(){var e,f,h,n,r,w,x,y,aa;if(!this._o.container){if(this.el.style.position="absolute",f=e=this._o.trigger,h=this.el.offsetWidth,n=this.el.offsetHeight,r=window.innerWidth||qa.documentElement.clientWidth,w=window.innerHeight||qa.documentElement.clientHeight,
|
|
33
|
+
x=window.pageYOffset||qa.body.scrollTop||qa.documentElement.scrollTop,y=!0,aa=!0,"function"==typeof e.getBoundingClientRect){var z=(f=e.getBoundingClientRect()).left+window.pageXOffset;var ba=f.bottom+window.pageYOffset}else for(z=f.offsetLeft,ba=f.offsetTop+f.offsetHeight;f=f.offsetParent;)z+=f.offsetLeft,ba+=f.offsetTop;(this._o.reposition&&z+h>r||-1<this._o.position.indexOf("right")&&0<z-h+e.offsetWidth)&&(z=z-h+e.offsetWidth,y=!1);(this._o.reposition&&ba+n>w+x||-1<this._o.position.indexOf("top")&&
|
|
34
|
+
0<ba-n-e.offsetHeight)&&(ba=ba-n-e.offsetHeight,aa=!1);0>z&&(z=0);0>ba&&(ba=0);this.el.style.left=z+"px";this.el.style.top=ba+"px";ia(this.el,y?"left-aligned":"right-aligned");ia(this.el,aa?"bottom-aligned":"top-aligned");fa(this.el,y?"right-aligned":"left-aligned");fa(this.el,aa?"top-aligned":"bottom-aligned")}},render:function(e,h,n){var w=this._o,y=new Date,z=[31,0==e%4&&0!=e%100||0==e%400?29:28,31,30,31,30,31,31,30,31,30,31][h],ba=(new Date(e,h,1)).getDay(),ea=[],fa=[];f(y);0<w.firstDay&&0>(ba-=
|
|
35
|
+
w.firstDay)&&(ba+=7);for(var ha=0===h?11:h-1,ia=11===h?0:h+1,ja=0===h?e-1:e,ra=11===h?e+1:e,ka=[31,0==ja%4&&0!=ja%100||0==ja%400?29:28,31,30,31,30,31,31,30,31,30,31][ha],la=z+ba,qa=la;7<qa;)qa-=7;la+=7-qa;qa=!1;for(var oa=0,na=0;oa<la;oa++){var ma=new Date(e,h,oa-ba+1),va=!!r(this._d)&&ma.getTime()===this._d.getTime(),sa=ma.getTime()===y.getTime(),wa=-1!==w.events.indexOf(ma.toDateString()),pa=oa<ba||oa>=z+ba,Ea=oa-ba+1,Oa=h,Ta=e,Nb=w.startRange&&w.startRange.getTime()===ma.getTime(),sc=w.endRange&&
|
|
36
|
+
w.endRange.getTime()===ma.getTime(),bb=w.startRange&&w.endRange&&w.startRange<ma&&ma<w.endRange;pa&&(oa<ba?(Ea=ka+Ea,Oa=ha,Ta=ja):(Ea-=z,Oa=ia,Ta=ra));var lb;!(lb=w.minDate&&ma<w.minDate||w.maxDate&&ma>w.maxDate)&&(lb=w.disableWeekends)&&(lb=ma.getDay(),lb=0===lb||6===lb);ma={day:Ea,month:Oa,year:Ta,hasEvent:wa,isSelected:va,isToday:sa,isDisabled:lb||w.disableDayFn&&w.disableDayFn(ma),isEmpty:pa,isStartRange:Nb,isEndRange:sc,isInRange:bb,showDaysInNextAndPreviousMonths:w.showDaysInNextAndPreviousMonths,
|
|
37
|
+
enableSelectionDaysInNextAndPreviousMonths:w.enableSelectionDaysInNextAndPreviousMonths};w.pickWholeWeek&&va&&(qa=!0);fa.push(aa(ma));7==++na&&(w.showWeekNumber&&fa.unshift(da(oa-ba,h,e,w.firstWeekOfYearMinDays)),ea.push(ca(fa,w.isRTL,w.pickWholeWeek,qa)),fa=[],na=0,qa=!1)}return x(w,ea,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),fa(this.el,"is-hidden"),this._o.bound&&(ma(qa,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&
|
|
38
|
+
this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&pa(qa,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),ia(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide();pa(this.el,"mousedown",this._onMouseDown,!0);pa(this.el,"touchend",this._onMouseDown,!0);pa(this.el,"change",this._onChange);e.keyboardInput&&
|
|
39
|
+
pa(qa,"keydown",this._onKeyChange);e.field&&(pa(e.field,"change",this._onInputChange),e.bound&&(pa(e.trigger,"click",this._onInputClick),pa(e.trigger,"focus",this._onInputFocus),pa(e.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ba})}}]);}).call(this || window)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{447:function(ia,ba,e){(function(e){function x(e){this.
|
|
3
|
-
function(f){return new e(f)},da=function(){return"undefined"===typeof Uint8Array?function(e){return Array(e)}:function(e){return new Uint8Array(e)}}(),aa=String.fromCharCode(0),w=aa+aa+aa+aa,y=ba("<~").Vx(0),n=ba("~>").Vx(0),h=function(){var e=Array(85),f;for(f=0;85>f;f++)e[f]=String.fromCharCode(33+f);return e}(),f=function(){var e=Array(256),f;for(f=0;85>f;f++)e[33+f]=f;return e}();aa=ia.exports=new x;x.prototype.encode=function(f,n){var r=da(5),w=f,x=this.
|
|
4
|
-
w instanceof e||(w=ba(w));n=n||{};if(Array.isArray(n)){f=n;var
|
|
5
|
-
y=
|
|
6
|
-
z){var
|
|
7
|
-
0;
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{447:function(ia,ba,e){(function(e){function x(e){this.Xf=e=e||{};if(Array.isArray(e.table)){var f=[];e.table.forEach(function(e,h){f[e.charCodeAt(0)]=h});e.R9=e.table;e.b7=f}}var ba=e.from||function(){switch(arguments.length){case 1:return new e(arguments[0]);case 2:return new e(arguments[0],arguments[1]);case 3:return new e(arguments[0],arguments[1],arguments[2]);default:throw new Exception("unexpected call.");}},ca=e.allocUnsafe||
|
|
3
|
+
function(f){return new e(f)},da=function(){return"undefined"===typeof Uint8Array?function(e){return Array(e)}:function(e){return new Uint8Array(e)}}(),aa=String.fromCharCode(0),w=aa+aa+aa+aa,y=ba("<~").Vx(0),n=ba("~>").Vx(0),h=function(){var e=Array(85),f;for(f=0;85>f;f++)e[f]=String.fromCharCode(33+f);return e}(),f=function(){var e=Array(256),f;for(f=0;85>f;f++)e[33+f]=f;return e}();aa=ia.exports=new x;x.prototype.encode=function(f,n){var r=da(5),w=f,x=this.Xf,y,aa;"string"===typeof w?w=ba(w,"binary"):
|
|
4
|
+
w instanceof e||(w=ba(w));n=n||{};if(Array.isArray(n)){f=n;var z=x.yB||!1;var ea=x.zJ||!1}else f=n.table||x.R9||h,z=void 0===n.yB?x.yB||!1:!!n.yB,ea=void 0===n.zJ?x.zJ||!1:!!n.zJ;x=0;var ha=Math.ceil(5*w.length/4)+4+(z?4:0);n=ca(ha);z&&(x+=n.write("<~",x));var ia=y=aa=0;for(ha=w.length;ia<ha;ia++){var Ea=w.wL(ia);aa*=256;aa+=Ea;y++;if(!(y%4)){if(ea&&538976288===aa)x+=n.write("y",x);else if(aa){for(y=4;0<=y;y--)Ea=aa%85,r[y]=Ea,aa=(aa-Ea)/85;for(y=0;5>y;y++)x+=n.write(f[r[y]],x)}else x+=n.write("z",
|
|
5
|
+
x);y=aa=0}}if(y)if(aa){w=4-y;for(ia=4-y;0<ia;ia--)aa*=256;for(y=4;0<=y;y--)Ea=aa%85,r[y]=Ea,aa=(aa-Ea)/85;for(y=0;5>y;y++)x+=n.write(f[r[y]],x);x-=w}else for(ia=0;ia<y+1;ia++)x+=n.write(f[0],x);z&&(x+=n.write("~>",x));return n.slice(0,x)};x.prototype.decode=function(h,x){var r=this.Xf,aa=!0,z=!0,da,ea,ha;x=x||r.b7||f;if(!Array.isArray(x)&&(x=x.table||x,!Array.isArray(x))){var ia=[];Object.keys(x).forEach(function(e){ia[e.charCodeAt(0)]=x[e]});x=ia}aa=!x[122];z=!x[121];h instanceof e||(h=ba(h));ia=
|
|
6
|
+
0;if(aa||z){var qa=0;for(ha=h.length;qa<ha;qa++){var sa=h.wL(qa);aa&&122===sa&&ia++;z&&121===sa&&ia++}}var Ea=0;ha=Math.ceil(4*h.length/5)+4*ia+5;r=ca(ha);if(4<=h.length&&h.Vx(0)===y){for(qa=h.length-2;2<qa&&h.Vx(qa)!==n;qa--);if(2>=qa)throw Error("Invalid ascii85 string delimiter pair.");h=h.slice(2,qa)}qa=da=ea=0;for(ha=h.length;qa<ha;qa++)sa=h.wL(qa),aa&&122===sa?Ea+=r.write(w,Ea):z&&121===sa?Ea+=r.write(" ",Ea):void 0!==x[sa]&&(ea*=85,ea+=x[sa],da++,da%5||(Ea=r.pma(ea,Ea),da=ea=0));if(da){h=
|
|
7
|
+
5-da;for(qa=0;qa<h;qa++)ea*=85,ea+=84;qa=3;for(ha=h-1;qa>ha;qa--)Ea=r.qma(ea>>>8*qa&255,Ea)}return r.slice(0,Ea)};aa.kna=new x({table:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split("")});aa.Ima=new x({yB:!0});aa.I_=x}).call(this,e(455).Buffer)}}]);}).call(this || window)
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(ia,ba,e){(function(ea){function x(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,Foa:function(){return 42}};return"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(ia,ba,e){(function(ea){function x(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,Foa:function(){return 42}};return"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(ua){return!1}}function ha(e,f){if((ca.$e?2147483647:1073741823)<f)throw new RangeError("Invalid typed array length");ca.$e?(e=new Uint8Array(f),e.__proto__=ca.prototype):(null===e&&(e=new ca(f)),e.length=f);
|
|
3
3
|
return e}function ca(e,f,h){if(!(ca.$e||this instanceof ca))return new ca(e,f,h);if("number"===typeof e){if("string"===typeof f)throw Error("If encoding is specified then the first argument must be a string");return w(this,e)}return da(this,e,f,h)}function da(e,h,r,w){if("number"===typeof h)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&h instanceof ArrayBuffer){h.byteLength;if(0>r||h.byteLength<r)throw new RangeError("'offset' is out of bounds");
|
|
4
|
-
if(h.byteLength<r+(w||0))throw new RangeError("'length' is out of bounds");h=void 0===r&&void 0===w?new Uint8Array(h):void 0===w?new Uint8Array(h,r):new Uint8Array(h,r,w);ca.$e?(e=h,e.__proto__=ca.prototype):e=y(e,h);h=e}else if("string"===typeof h){w=e;e=r;if("string"!==typeof e||""===e)e="utf8";if(!ca.
|
|
4
|
+
if(h.byteLength<r+(w||0))throw new RangeError("'length' is out of bounds");h=void 0===r&&void 0===w?new Uint8Array(h):void 0===w?new Uint8Array(h,r):new Uint8Array(h,r,w);ca.$e?(e=h,e.__proto__=ca.prototype):e=y(e,h);h=e}else if("string"===typeof h){w=e;e=r;if("string"!==typeof e||""===e)e="utf8";if(!ca.TU(e))throw new TypeError('"encoding" must be a valid string encoding');r=f(h,e)|0;w=ha(w,r);h=w.write(h,e);h!==r&&(w=w.slice(0,h));h=w}else h=n(e,h);return h}function aa(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');
|
|
5
5
|
if(0>e)throw new RangeError('"size" argument must not be negative');}function w(e,f){aa(f);e=ha(e,0>f?0:h(f)|0);if(!ca.$e)for(var n=0;n<f;++n)e[n]=0;return e}function y(e,f){var n=0>f.length?0:h(f.length)|0;e=ha(e,n);for(var r=0;r<n;r+=1)e[r]=f[r]&255;return e}function n(e,f){if(ca.isBuffer(f)){var n=h(f.length)|0;e=ha(e,n);if(0===e.length)return e;f.copy(e,0,0,n);return e}if(f){if("undefined"!==typeof ArrayBuffer&&f.buffer instanceof ArrayBuffer||"length"in f)return(n="number"!==typeof f.length)||
|
|
6
6
|
(n=f.length,n=n!==n),n?ha(e,0):y(e,f);if("Buffer"===f.type&&Ea(f.data))return y(e,f.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function h(e){if(e>=(ca.$e?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(ca.$e?2147483647:1073741823).toString(16)+" bytes");return e|0}function f(e,f){if(ca.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
|
|
7
|
-
(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var h=e.length;if(0===h)return 0;for(var n=!1;;)switch(f){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return sa.NZ(
|
|
7
|
+
(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var h=e.length;if(0===h)return 0;for(var n=!1;;)switch(f){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return sa.NZ(ma(e)).length;default:if(n)return la(e).length;f=(""+f).toLowerCase();n=!0}}function r(e,f,h){var n=!1;if(void 0===f||
|
|
8
8
|
0>f)f=0;if(f>this.length)return"";if(void 0===h||h>this.length)h=this.length;if(0>=h)return"";h>>>=0;f>>>=0;if(h<=f)return"";for(e||(e="utf8");;)switch(e){case "hex":e=f;f=h;h=this.length;if(!e||0>e)e=0;if(!f||0>f||f>h)f=h;n="";for(h=e;h<f;++h)e=n,n=this[h],n=16>n?"0"+n.toString(16):n.toString(16),n=e+n;return n;case "utf8":case "utf-8":return ia(this,f,h);case "ascii":e="";for(h=Math.min(this.length,h);f<h;++f)e+=String.fromCharCode(this[f]&127);return e;case "latin1":case "binary":e="";for(h=Math.min(this.length,
|
|
9
9
|
h);f<h;++f)e+=String.fromCharCode(this[f]);return e;case "base64":return 0===f&&h===this.length?sa.PS(this):sa.PS(this.slice(f,h));case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":f=this.slice(f,h);h="";for(e=0;e<f.length;e+=2)h+=String.fromCharCode(f[e]+256*f[e+1]);return h;default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=!0}}function z(e,f,h,n,r){if(0===e.length)return-1;"string"===typeof h?(n=h,h=0):2147483647<h?h=2147483647:-2147483648>h&&(h=-2147483648);
|
|
10
10
|
h=+h;isNaN(h)&&(h=r?0:e.length-1);0>h&&(h=e.length+h);if(h>=e.length){if(r)return-1;h=e.length-1}else if(0>h)if(r)h=0;else return-1;"string"===typeof f&&(f=ca.from(f,n));if(ca.isBuffer(f))return 0===f.length?-1:fa(e,f,h,n,r);if("number"===typeof f)return f&=255,ca.$e&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,f,h):Uint8Array.prototype.lastIndexOf.call(e,f,h):fa(e,[f],h,n,r);throw new TypeError("val must be string, number or Buffer");}function fa(e,f,h,
|
|
11
11
|
n,r){function w(e,f){return 1===x?e[f]:e.Vx(f*x)}var x=1,z=e.length,y=f.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(2>e.length||2>f.length)return-1;x=2;z/=2;y/=2;h/=2}if(r)for(n=-1;h<z;h++)if(w(e,h)===w(f,-1===n?0:h-n)){if(-1===n&&(n=h),h-n+1===y)return n*x}else-1!==n&&(h-=h-n),n=-1;else for(h+y>z&&(h=z-y);0<=h;h--){z=!0;for(n=0;n<y;n++)if(w(e,h+n)!==w(f,n)){z=!1;break}if(z)return h}return-1}function ia(e,f,h){h=Math.min(e.length,h);
|
|
12
12
|
for(var n=[];f<h;){var r=e[f],w=null,x=239<r?4:223<r?3:191<r?2:1;if(f+x<=h)switch(x){case 1:128>r&&(w=r);break;case 2:var z=e[f+1];128===(z&192)&&(r=(r&31)<<6|z&63,127<r&&(w=r));break;case 3:z=e[f+1];var y=e[f+2];128===(z&192)&&128===(y&192)&&(r=(r&15)<<12|(z&63)<<6|y&63,2047<r&&(55296>r||57343<r)&&(w=r));break;case 4:z=e[f+1];y=e[f+2];var aa=e[f+3];128===(z&192)&&128===(y&192)&&128===(aa&192)&&(r=(r&15)<<18|(z&63)<<12|(y&63)<<6|aa&63,65535<r&&1114112>r&&(w=r))}null===w?(w=65533,x=1):65535<w&&(w-=
|
|
13
|
-
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);f+=x}e=n.length;if(e<=
|
|
14
|
-
if(h+n>e.length)throw new RangeError("Index out of range");}function
|
|
15
|
-
55296<<10|h-56320)+65536}else r&&-1<(f-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--f)break;w.push(h)}else if(2048>h){if(0>(f-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(f-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(f-=4))break;w.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw Error("Invalid code point");}return w}function na(e){for(var f=[],h=0;h<e.length;++h)f.push(e.charCodeAt(h)&255);return f}function
|
|
13
|
+
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);f+=x}e=n.length;if(e<=ra)n=String.fromCharCode.apply(String,n);else{h="";for(f=0;f<e;)h+=String.fromCharCode.apply(String,n.slice(f,f+=ra));n=h}return n}function ja(e,f,h){if(0!==e%1||0>e)throw new RangeError("offset is not uint");if(e+f>h)throw new RangeError("Trying to access beyond buffer length");}function pa(e,f,h,n,r,w){if(!ca.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>r||f<w)throw new RangeError('"value" argument is out of bounds');
|
|
14
|
+
if(h+n>e.length)throw new RangeError("Index out of range");}function ma(e){e=(e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(va,"");if(2>e.length)return"";for(;0!==e.length%4;)e+="=";return e}function la(e,f){f=f||Infinity;for(var h,n=e.length,r=null,w=[],x=0;x<n;++x){h=e.charCodeAt(x);if(55295<h&&57344>h){if(!r){if(56319<h){-1<(f-=3)&&w.push(239,191,189);continue}else if(x+1===n){-1<(f-=3)&&w.push(239,191,189);continue}r=h;continue}if(56320>h){-1<(f-=3)&&w.push(239,191,189);r=h;continue}h=(r-
|
|
15
|
+
55296<<10|h-56320)+65536}else r&&-1<(f-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--f)break;w.push(h)}else if(2048>h){if(0>(f-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(f-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(f-=4))break;w.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw Error("Invalid code point");}return w}function na(e){for(var f=[],h=0;h<e.length;++h)f.push(e.charCodeAt(h)&255);return f}function qa(e,f,h,n){for(var r=0;r<n&&!(r+
|
|
16
16
|
h>=f.length||r>=e.length);++r)f[r+h]=e[r];return r}var sa=e(464);e(465);var Ea=e(466);ba.Buffer=ca;ba.Lma=function(e){+e!=e&&(e=0);return ca.FQ(+e)};ba.t0=50;ca.$e=void 0!==ea.$e?ea.$e:x();ba.opa=ca.$e?2147483647:1073741823;ca.Ppa=8192;ca.pna=function(e){e.__proto__=ca.prototype;return e};ca.from=function(e,f,h){return da(null,e,f,h)};ca.$e&&(ca.prototype.__proto__=Uint8Array.prototype,ca.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.rZ&&ca[Symbol.rZ]===ca&&Object.defineProperty(ca,Symbol.rZ,
|
|
17
|
-
{value:null,configurable:!0}));ca.FQ=function(e){aa(e);return ha(null,e)};ca.allocUnsafe=function(e){return w(null,e)};ca.Ena=function(e){return w(null,e)};ca.isBuffer=function(e){return!(null==e||!e.r3)};ca.compare=function(e,f){if(!ca.isBuffer(e)||!ca.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(e===f)return 0;for(var h=e.length,n=f.length,r=0,w=Math.min(h,n);r<w;++r)if(e[r]!==f[r]){h=e[r];n=f[r];break}return h<n?-1:n<h?1:0};ca.
|
|
17
|
+
{value:null,configurable:!0}));ca.FQ=function(e){aa(e);return ha(null,e)};ca.allocUnsafe=function(e){return w(null,e)};ca.Ena=function(e){return w(null,e)};ca.isBuffer=function(e){return!(null==e||!e.r3)};ca.compare=function(e,f){if(!ca.isBuffer(e)||!ca.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(e===f)return 0;for(var h=e.length,n=f.length,r=0,w=Math.min(h,n);r<w;++r)if(e[r]!==f[r]){h=e[r];n=f[r];break}return h<n?-1:n<h?1:0};ca.TU=function(e){switch(String(e).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;
|
|
18
18
|
default:return!1}};ca.concat=function(e,f){if(!Ea(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ca.FQ(0);var h;if(void 0===f)for(h=f=0;h<e.length;++h)f+=e[h].length;f=ca.allocUnsafe(f);var n=0;for(h=0;h<e.length;++h){var r=e[h];if(!ca.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(f,n);n+=r.length}return f};ca.byteLength=f;ca.prototype.r3=!0;ca.prototype.toString=function(){var e=this.length|0;return 0===e?"":0===
|
|
19
19
|
arguments.length?ia(this,0,e):r.apply(this,arguments)};ca.prototype.vs=function(e){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===ca.compare(this,e)};ca.prototype.inspect=function(){var e="",f=ba.t0;0<this.length&&(e=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(e+=" ... "));return"<Buffer "+e+">"};ca.prototype.compare=function(e,f,h,n,r){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");void 0===f&&(f=0);void 0===h&&
|
|
20
20
|
(h=e?e.length:0);void 0===n&&(n=0);void 0===r&&(r=this.length);if(0>f||h>e.length||0>n||r>this.length)throw new RangeError("out of range index");if(n>=r&&f>=h)return 0;if(n>=r)return-1;if(f>=h)return 1;f>>>=0;h>>>=0;n>>>=0;r>>>=0;if(this===e)return 0;var w=r-n,x=h-f,z=Math.min(w,x);n=this.slice(n,r);e=e.slice(f,h);for(f=0;f<z;++f)if(n[f]!==e[f]){w=n[f];x=e[f];break}return w<x?-1:x<w?1:0};ca.prototype.includes=function(e,f,h){return-1!==this.indexOf(e,f,h)};ca.prototype.indexOf=function(e,f,h){return z(this,
|
|
21
21
|
e,f,h,!0)};ca.prototype.lastIndexOf=function(e,f,h){return z(this,e,f,h,!1)};ca.prototype.write=function(e,f,h,n){if(void 0===f)n="utf8",h=this.length,f=0;else if(void 0===h&&"string"===typeof f)n=f,h=this.length,f=0;else if(isFinite(f))f|=0,isFinite(h)?(h|=0,void 0===n&&(n="utf8")):(n=h,h=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r=this.length-f;if(void 0===h||h>r)h=r;if(0<e.length&&(0>h||0>f)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");
|
|
22
|
-
n||(n="utf8");for(r=!1;;)switch(n){case "hex":f=Number(f)||0;n=this.length-f;h?(h=Number(h),h>n&&(h=n)):h=n;n=e.length;if(0!==n%2)throw new TypeError("Invalid hex string");h>n/2&&(h=n/2);for(n=0;n<h;++n){r=parseInt(e.substr(2*n,2),16);if(isNaN(r))break;this[f+n]=r}return n;case "utf8":case "utf-8":return
|
|
23
|
-
e;r=this.length-f;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var z=n.charCodeAt(x);e=z>>8;z%=256;w.push(z);w.push(e)}return
|
|
24
|
-
this.subarray(e,f),f.__proto__=ca.prototype;else{h=f-e;f=new ca(h,void 0);for(var n=0;n<h;++n)f[n]=this[n+e]}return f};ca.prototype.wL=function(e){ja(e,1,this.length);return this[e]};ca.prototype.Vx=function(e){ja(e,2,this.length);return this[e]<<8|this[e+1]};ca.prototype.qma=function(e,f){e=+e;f|=0;
|
|
22
|
+
n||(n="utf8");for(r=!1;;)switch(n){case "hex":f=Number(f)||0;n=this.length-f;h?(h=Number(h),h>n&&(h=n)):h=n;n=e.length;if(0!==n%2)throw new TypeError("Invalid hex string");h>n/2&&(h=n/2);for(n=0;n<h;++n){r=parseInt(e.substr(2*n,2),16);if(isNaN(r))break;this[f+n]=r}return n;case "utf8":case "utf-8":return qa(la(e,this.length-f),this,f,h);case "ascii":return qa(na(e),this,f,h);case "latin1":case "binary":return qa(na(e),this,f,h);case "base64":return qa(sa.NZ(ma(e)),this,f,h);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":n=
|
|
23
|
+
e;r=this.length-f;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var z=n.charCodeAt(x);e=z>>8;z%=256;w.push(z);w.push(e)}return qa(w,this,f,h);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();r=!0}};ca.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.ona||this,0)}};var ra=4096;ca.prototype.slice=function(e,f){var h=this.length;e=~~e;f=void 0===f?h:~~f;0>e?(e+=h,0>e&&(e=0)):e>h&&(e=h);0>f?(f+=h,0>f&&(f=0)):f>h&&(f=h);f<e&&(f=e);if(ca.$e)f=
|
|
24
|
+
this.subarray(e,f),f.__proto__=ca.prototype;else{h=f-e;f=new ca(h,void 0);for(var n=0;n<h;++n)f[n]=this[n+e]}return f};ca.prototype.wL=function(e){ja(e,1,this.length);return this[e]};ca.prototype.Vx=function(e){ja(e,2,this.length);return this[e]<<8|this[e+1]};ca.prototype.qma=function(e,f){e=+e;f|=0;pa(this,e,f,1,255,0);ca.$e||(e=Math.floor(e));this[f]=e&255;return f+1};ca.prototype.pma=function(e,f){e=+e;f|=0;pa(this,e,f,4,4294967295,0);if(ca.$e)this[f]=e>>>24,this[f+1]=e>>>16,this[f+2]=e>>>8,this[f+
|
|
25
25
|
3]=e&255;else{var h=f;0>e&&(e=4294967295+e+1);for(var n=0,r=Math.min(this.length-h,4);n<r;++n)this[h+n]=e>>>8*(3-n)&255}return f+4};ca.prototype.copy=function(e,f,h,n){h||(h=0);n||0===n||(n=this.length);f>=e.length&&(f=e.length);f||(f=0);0<n&&n<h&&(n=h);if(n===h||0===e.length||0===this.length)return 0;if(0>f)throw new RangeError("targetStart out of bounds");if(0>h||h>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&
|
|
26
26
|
(n=this.length);e.length-f<n-h&&(n=e.length-f+h);var r=n-h;if(this===e&&h<f&&f<n)for(n=r-1;0<=n;--n)e[n+f]=this[n+h];else if(1E3>r||!ca.$e)for(n=0;n<r;++n)e[n+f]=this[n+h];else Uint8Array.prototype.set.call(e,this.subarray(h,h+r),f);return r};ca.prototype.fill=function(e,f,h,n){if("string"===typeof e){"string"===typeof f?(n=f,f=0,h=this.length):"string"===typeof h&&(n=h,h=this.length);if(1===e.length){var r=e.charCodeAt(0);256>r&&(e=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");
|
|
27
|
-
if("string"===typeof n&&!ca.
|
|
27
|
+
if("string"===typeof n&&!ca.TU(n))throw new TypeError("Unknown encoding: "+n);}else"number"===typeof e&&(e&=255);if(0>f||this.length<f||this.length<h)throw new RangeError("Out of range index");if(h<=f)return this;f>>>=0;h=void 0===h?this.length:h>>>0;e||(e=0);if("number"===typeof e)for(n=f;n<h;++n)this[n]=e;else for(e=ca.isBuffer(e)?e:la((new ca(e,n)).toString()),r=e.length,n=0;n<h-f;++n)this[n+f]=e[n%r];return this};var va=/[^+\/0-9A-Za-z-_]/g}).call(this,e(178))},464:function(ia,ba){function e(e){var x=
|
|
28
28
|
e.length;if(0<x%4)throw Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");-1===e&&(e=x);return[e,e===x?0:4-e%4]}function ea(e,aa,w){for(var y=[],n=aa;n<w;n+=3)aa=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),y.push(x[aa>>18&63]+x[aa>>12&63]+x[aa>>6&63]+x[aa&63]);return y.join("")}ba.byteLength=function(x){x=e(x);var aa=x[1];return 3*(x[0]+aa)/4-aa};ba.NZ=function(x){var aa=e(x);var w=aa[0];aa=aa[1];var y=new ca(3*(w+aa)/4-aa),n=0,h=0<aa?w-4:w,f;for(f=0;f<h;f+=4)w=ha[x.charCodeAt(f)]<<
|
|
29
29
|
18|ha[x.charCodeAt(f+1)]<<12|ha[x.charCodeAt(f+2)]<<6|ha[x.charCodeAt(f+3)],y[n++]=w>>16&255,y[n++]=w>>8&255,y[n++]=w&255;2===aa&&(w=ha[x.charCodeAt(f)]<<2|ha[x.charCodeAt(f+1)]>>4,y[n++]=w&255);1===aa&&(w=ha[x.charCodeAt(f)]<<10|ha[x.charCodeAt(f+1)]<<4|ha[x.charCodeAt(f+2)]>>2,y[n++]=w>>8&255,y[n++]=w&255);return y};ba.PS=function(e){for(var aa=e.length,w=aa%3,y=[],n=0,h=aa-w;n<h;n+=16383)y.push(ea(e,n,n+16383>h?h:n+16383));1===w?(e=e[aa-1],y.push(x[e>>2]+x[e<<4&63]+"==")):2===w&&(e=(e[aa-2]<<8)+
|
|
30
30
|
e[aa-1],y.push(x[e>>10]+x[e>>4&63]+x[e<<2&63]+"="));return y.join("")};var x=[],ha=[],ca="undefined"!==typeof Uint8Array?Uint8Array:Array;for(ia=0;64>ia;++ia)x[ia]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ia],ha["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(ia)]=ia;ha[45]=62;ha[95]=63},465:function(ia,ba){ba.read=function(e,ba,x,ha,ca){var da=8*ca-ha-1;var aa=(1<<da)-1,w=aa>>1,y=-7;ca=x?ca-1:0;var n=x?-1:1,h=e[ba+ca];ca+=n;x=h&(1<<-y)-1;h>>=
|