@pdftron/webviewer 11.6.0-20250527 → 11.6.0-20250528
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/19.chunk.js +1 -1
- package/public/core/22.chunk.js +5 -5
- package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
- package/public/core/ExternalPdfPartRetriever.chunk.js +2 -2
- package/public/core/HttpPartRetriever.chunk.js +6 -6
- package/public/core/LocalPartRetriever.chunk.js +2 -2
- package/public/core/LocalPdfPartRetriever.chunk.js +2 -2
- package/public/core/SelectionInfoOld.chunk.js +7 -7
- package/public/core/StreamingPartRetriever.chunk.js +5 -5
- package/public/core/WebViewerServerPartRetriever.chunk.js +25 -25
- package/public/core/WinRTPartRetriever.chunk.js +1 -1
- package/public/core/pdf/full/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetC.br.mem +0 -0
- package/public/core/pdf/full/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/full/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetC.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.br.mem +0 -0
- package/public/core/pdf/lean/PDFNetC.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.br.wasm +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.gz.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetCWasm.js +1 -1
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.js.mem +0 -0
- package/public/core/pdf/lean/optimized/PDFNetThreadedWasm.br.wasm +0 -0
- package/public/core/vendors.ascii85.chunk.js +4 -4
- package/public/core/vendors.pako.chunk.js +31 -31
- package/public/core/webviewer-core.min.js +1885 -1885
- package/public/ui/chunks/chunk.0.js +1 -1
- package/public/ui/chunks/chunk.100.js +1 -1
- package/public/ui/chunks/chunk.101.js +1 -1
- package/public/ui/chunks/chunk.103.js +1 -1
- package/public/ui/chunks/chunk.103.js.map +1 -1
- package/public/ui/chunks/chunk.15.js +1 -1
- package/public/ui/chunks/chunk.24.js +2 -2
- package/public/ui/chunks/chunk.25.js +1 -1
- package/public/ui/chunks/chunk.27.js +1 -1
- package/public/ui/chunks/chunk.28.js +1 -1
- package/public/ui/chunks/chunk.29.js +1 -1
- package/public/ui/chunks/chunk.3.js +1 -1
- package/public/ui/chunks/chunk.30.js +1 -1
- package/public/ui/chunks/chunk.36.js +1 -1
- package/public/ui/chunks/chunk.37.js +1 -1
- package/public/ui/chunks/chunk.37.js.map +1 -1
- package/public/ui/chunks/chunk.38.js +1 -1
- package/public/ui/chunks/chunk.40.js +1 -1
- package/public/ui/chunks/chunk.41.js +1 -1
- package/public/ui/chunks/chunk.42.js +1 -1
- package/public/ui/chunks/chunk.43.js +1 -1
- package/public/ui/chunks/chunk.44.js +1 -1
- package/public/ui/chunks/chunk.46.js +1 -1
- package/public/ui/chunks/chunk.49.js +1 -1
- package/public/ui/chunks/chunk.49.js.map +1 -1
- package/public/ui/chunks/chunk.50.js +1 -1
- package/public/ui/chunks/chunk.50.js.map +1 -1
- package/public/ui/chunks/chunk.51.js +1 -1
- package/public/ui/chunks/chunk.51.js.map +1 -1
- package/public/ui/chunks/chunk.52.js +1 -1
- package/public/ui/chunks/chunk.52.js.map +1 -1
- package/public/ui/chunks/chunk.53.js +1 -1
- package/public/ui/chunks/chunk.53.js.map +1 -1
- package/public/ui/chunks/chunk.54.js +1 -1
- package/public/ui/chunks/chunk.54.js.map +1 -1
- package/public/ui/chunks/chunk.55.js +1 -1
- package/public/ui/chunks/chunk.55.js.map +1 -1
- package/public/ui/chunks/chunk.56.js +1 -1
- package/public/ui/chunks/chunk.56.js.map +1 -1
- package/public/ui/chunks/chunk.57.js +1 -1
- package/public/ui/chunks/chunk.57.js.map +1 -1
- package/public/ui/chunks/chunk.58.js +1 -1
- package/public/ui/chunks/chunk.58.js.map +1 -1
- package/public/ui/chunks/chunk.59.js +1 -1
- package/public/ui/chunks/chunk.59.js.map +1 -1
- package/public/ui/chunks/chunk.60.js +1 -1
- package/public/ui/chunks/chunk.60.js.map +1 -1
- package/public/ui/chunks/chunk.61.js +1 -1
- package/public/ui/chunks/chunk.61.js.map +1 -1
- package/public/ui/chunks/chunk.62.js +1 -1
- package/public/ui/chunks/chunk.62.js.map +1 -1
- package/public/ui/chunks/chunk.63.js +1 -1
- package/public/ui/chunks/chunk.63.js.map +1 -1
- package/public/ui/chunks/chunk.64.js +1 -1
- package/public/ui/chunks/chunk.64.js.map +1 -1
- package/public/ui/chunks/chunk.65.js +1 -1
- package/public/ui/chunks/chunk.66.js +1 -1
- package/public/ui/chunks/chunk.67.js +1 -1
- package/public/ui/chunks/chunk.68.js +1 -1
- package/public/ui/chunks/chunk.69.js +1 -1
- package/public/ui/chunks/chunk.70.js +1 -1
- package/public/ui/chunks/chunk.71.js +1 -1
- package/public/ui/chunks/chunk.72.js +1 -1
- package/public/ui/chunks/chunk.73.js +1 -1
- package/public/ui/chunks/chunk.74.js +1 -1
- package/public/ui/chunks/chunk.75.js +1 -1
- package/public/ui/chunks/chunk.77.js +1 -1
- package/public/ui/chunks/chunk.78.js +1 -1
- package/public/ui/chunks/chunk.79.js +1 -1
- package/public/ui/chunks/chunk.81.js +1 -1
- package/public/ui/chunks/chunk.82.js +1 -1
- package/public/ui/chunks/chunk.86.js +1 -1
- package/public/ui/chunks/chunk.87.js +1 -1
- package/public/ui/chunks/chunk.88.js +1 -1
- package/public/ui/chunks/chunk.89.js +1 -1
- package/public/ui/chunks/chunk.90.js +1 -1
- package/public/ui/chunks/chunk.91.js +1 -1
- package/public/ui/chunks/chunk.92.js +1 -1
- package/public/ui/chunks/chunk.93.js +1 -1
- package/public/ui/chunks/chunk.94.js +1 -1
- package/public/ui/chunks/chunk.94.js.map +1 -1
- package/public/ui/chunks/chunk.95.js +1 -1
- package/public/ui/chunks/chunk.96.js +1 -1
- package/public/ui/chunks/chunk.97.js +1 -1
- package/public/ui/chunks/chunk.98.js +1 -1
- package/public/ui/chunks/chunk.99.js +1 -1
- package/public/ui/i18n/translation-bn.json +2 -2
- package/public/ui/i18n/translation-cs.json +2 -2
- package/public/ui/i18n/translation-de.json +2 -2
- package/public/ui/i18n/translation-el.json +2 -2
- package/public/ui/i18n/translation-en.json +2 -2
- package/public/ui/i18n/translation-es.json +2 -2
- package/public/ui/i18n/translation-fr.json +2 -2
- package/public/ui/i18n/translation-hi.json +2 -2
- package/public/ui/i18n/translation-hu.json +2 -2
- package/public/ui/i18n/translation-id.json +2 -2
- package/public/ui/i18n/translation-it.json +2 -2
- package/public/ui/i18n/translation-ja.json +2 -2
- package/public/ui/i18n/translation-ko.json +2 -2
- package/public/ui/i18n/translation-ms.json +2 -2
- package/public/ui/i18n/translation-nl.json +2 -2
- package/public/ui/i18n/translation-pl.json +2 -2
- package/public/ui/i18n/translation-pt_br.json +2 -2
- package/public/ui/i18n/translation-ro.json +2 -2
- package/public/ui/i18n/translation-ru.json +2 -2
- package/public/ui/i18n/translation-sv.json +2 -2
- package/public/ui/i18n/translation-th.json +2 -2
- package/public/ui/i18n/translation-tr.json +2 -2
- package/public/ui/i18n/translation-uk.json +2 -2
- package/public/ui/i18n/translation-vi.json +2 -2
- package/public/ui/i18n/translation-zh_cn.json +2 -2
- package/public/ui/i18n/translation-zh_tw.json +2 -2
- package/public/ui/webviewer-ui.min.js +1 -1
package/package.json
CHANGED
package/public/core/19.chunk.js
CHANGED
|
@@ -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
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[19],{642:function(ya){(function(){ya.exports={Na:function(){function va(f,r){this.scrollLeft=f;this.scrollTop=r}function n(f){if(null===f||"object"!==typeof f||void 0===f.behavior||"auto"===f.behavior||"instant"===f.behavior)return!0;if("object"===typeof f&&"smooth"===f.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+f.behavior+" is not a valid value for enumeration ScrollBehavior.");}function la(f,r){if("Y"===
|
|
3
3
|
r)return f.clientHeight+b<f.scrollHeight;if("X"===r)return f.clientWidth+b<f.scrollWidth}function na(f,r){f=ea.getComputedStyle(f,null)["overflow"+r];return"auto"===f||"scroll"===f}function ma(f){var r=la(f,"Y")&&na(f,"Y");f=la(f,"X")&&na(f,"X");return r||f}function ja(f){var r=(e()-f.startTime)/468;var a=.5*(1-Math.cos(Math.PI*(1<r?1:r)));r=f.sr+(f.x-f.sr)*a;a=f.sH+(f.y-f.sH)*a;f.method.call(f.WO,r,a);r===f.x&&a===f.y||ea.requestAnimationFrame(ja.bind(ea,f))}function ia(f,r,a){var w=e();if(f===y.body){var z=
|
|
4
|
-
ea;var aa=ea.scrollX||ea.pageXOffset;f=ea.scrollY||ea.pageYOffset;var ca=h.scroll}else z=f,aa=f.scrollLeft,f=f.scrollTop,ca=va;ja({WO:z,method:ca,startTime:w,sr:aa,sH:f,x:r,y:a})}var ea=window,y=document;if(!("scrollBehavior"in y.documentElement.style&&!0!==ea.
|
|
4
|
+
ea;var aa=ea.scrollX||ea.pageXOffset;f=ea.scrollY||ea.pageYOffset;var ca=h.scroll}else z=f,aa=f.scrollLeft,f=f.scrollTop,ca=va;ja({WO:z,method:ca,startTime:w,sr:aa,sH:f,x:r,y:a})}var ea=window,y=document;if(!("scrollBehavior"in y.documentElement.style&&!0!==ea.jYa)){var x=ea.HTMLElement||ea.Element,h={scroll:ea.scroll||ea.scrollTo,scrollBy:ea.scrollBy,d9:x.prototype.scroll||va,scrollIntoView:x.prototype.scrollIntoView},e=ea.performance&&ea.performance.now?ea.performance.now.bind(ea.performance):Date.now,
|
|
5
5
|
b=RegExp("MSIE |Trident/|Edge/").test(ea.navigator.userAgent)?1:0;ea.scroll=ea.scrollTo=function(f,r){void 0!==f&&(!0===n(f)?h.scroll.call(ea,void 0!==f.left?f.left:"object"!==typeof f?f:ea.scrollX||ea.pageXOffset,void 0!==f.top?f.top:void 0!==r?r:ea.scrollY||ea.pageYOffset):ia.call(ea,y.body,void 0!==f.left?~~f.left:ea.scrollX||ea.pageXOffset,void 0!==f.top?~~f.top:ea.scrollY||ea.pageYOffset))};ea.scrollBy=function(f,r){void 0!==f&&(n(f)?h.scrollBy.call(ea,void 0!==f.left?f.left:"object"!==typeof f?
|
|
6
6
|
f:0,void 0!==f.top?f.top:void 0!==r?r:0):ia.call(ea,y.body,~~f.left+(ea.scrollX||ea.pageXOffset),~~f.top+(ea.scrollY||ea.pageYOffset)))};x.prototype.scroll=x.prototype.scrollTo=function(f,r){if(void 0!==f)if(!0===n(f)){if("number"===typeof f&&void 0===r)throw new SyntaxError("Value could not be converted");h.d9.call(this,void 0!==f.left?~~f.left:"object"!==typeof f?~~f:this.scrollLeft,void 0!==f.top?~~f.top:void 0!==r?~~r:this.scrollTop)}else r=f.left,f=f.top,ia.call(this,this,"undefined"===typeof r?
|
|
7
7
|
this.scrollLeft:~~r,"undefined"===typeof f?this.scrollTop:~~f)};x.prototype.scrollBy=function(f,r){void 0!==f&&(!0===n(f)?h.d9.call(this,void 0!==f.left?~~f.left+this.scrollLeft:~~f+this.scrollLeft,void 0!==f.top?~~f.top+this.scrollTop:~~r+this.scrollTop):this.scroll({left:~~f.left+this.scrollLeft,top:~~f.top+this.scrollTop,behavior:f.behavior}))};x.prototype.scrollIntoView=function(f){if(!0===n(f))h.scrollIntoView.call(this,void 0===f?!0:f);else{for(f=this;f!==y.body&&!1===ma(f);)f=f.parentNode||
|
package/public/core/22.chunk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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([[22],{644:function(ya,va,n){n.r(va);var la=n(0),na=n(7),ma=n(2);ya=n(53);var ja=n(36),ia=n(19);n=function(){function ea(){this.init()}ea.prototype.init=function(){this.
|
|
3
|
-
break;case "delete":e="<delete><id>".concat(e.aId,"</id></delete>"),this.ga.st(e)}}};ea.prototype.
|
|
4
|
-
function(y,x,h){var e=this;if(y){e.Ug=x;e.ga=h.ia();h.addEventListener(na.i.DOCUMENT_UNLOADED,function(){e.disableCollaboration()});e.
|
|
5
|
-
dId:y});e.trigger(ea.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[e.Pl[f.id],e.dQ])},function(){e.disableCollaboration()})}catch(r){Object(ma.f)(r.message)}});b.open("GET",Object(ja.l)(this.Ug,"demo/SessionInfo.jsp"));b.withCredentials=!0;b.send();e.
|
|
6
|
-
null);this.connection&&this.connection.Gv();this.ga&&this.ga.Y_("Guest");this.init();this.trigger(ea.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};ea.prototype.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{644:function(ya,va,n){n.r(va);var la=n(0),na=n(7),ma=n(2);ya=n(53);var ja=n(36),ia=n(19);n=function(){function ea(){this.init()}ea.prototype.init=function(){this.rua=!1;this.Ug=this.Gp=this.connection=null;this.Pl={};this.ga=this.dQ=null};ea.prototype.XP=function(y){for(var x=this,h=0;h<y.length;++h){var e=y[h];switch(e.at){case "create":this.Pl[e.author]||(this.Pl[e.author]=e.aName);this.mGa(e);break;case "modify":this.ga.st(e.xfdf).then(function(b){x.ga.Db(b[0])});
|
|
3
|
+
break;case "delete":e="<delete><id>".concat(e.aId,"</id></delete>"),this.ga.st(e)}}};ea.prototype.mGa=function(y){var x=this;this.ga.st(y.xfdf).then(function(h){h=h[0];h.authorId=y.author;x.ga.Db(h);x.ga.trigger(na.d.UPDATE_ANNOTATION_PERMISSION,[h])})};ea.prototype.aFa=function(y,x,h){this.Gp&&this.Gp(y,x,h)};ea.prototype.preloadAnnotations=function(y){this.addEventListener("webViewerServerAnnotationsEnabled",this.aFa.bind(this,y,"add",{imported:!1}),{once:!0})};ea.prototype.initiateCollaboration=
|
|
4
|
+
function(y,x,h){var e=this;if(y){e.Ug=x;e.ga=h.ia();h.addEventListener(na.i.DOCUMENT_UNLOADED,function(){e.disableCollaboration()});e.jWa(y);var b=new XMLHttpRequest;b.addEventListener("load",function(){if(200===b.status&&0<b.responseText.length)try{var f=JSON.parse(b.responseText);e.connection=exports.da.JXa(Object(ja.l)(e.Ug,"blackbox/"),"annot");e.dQ=f.id;e.Pl[f.id]=f.user_name;e.ga.Y_(f.id);e.connection.s0a(function(r){r.t&&r.t.startsWith("a_")&&r.data&&e.XP(r.data)},function(){e.connection.send({t:"a_retrieve",
|
|
5
|
+
dId:y});e.trigger(ea.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[e.Pl[f.id],e.dQ])},function(){e.disableCollaboration()})}catch(r){Object(ma.f)(r.message)}});b.open("GET",Object(ja.l)(this.Ug,"demo/SessionInfo.jsp"));b.withCredentials=!0;b.send();e.rua=!0;e.ga.rha(function(f){return e.Pl[f.Author]||f.Author})}else Object(ma.f)("Document ID required for collaboration")};ea.prototype.disableCollaboration=function(){this.Gp&&(this.ga.removeEventListener(ia.a.Events.ANNOTATION_CHANGED,this.Gp),this.Gp=
|
|
6
|
+
null);this.connection&&this.connection.Gv();this.ga&&this.ga.Y_("Guest");this.init();this.trigger(ea.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};ea.prototype.jWa=function(y){var x=this;this.Gp&&this.ga.removeEventListener(ia.a.Events.ANNOTATION_CHANGED,this.Gp);this.Gp=function(h,e,b){return Object(la.b)(this,void 0,void 0,function(){var f,r,a,w,z,aa,ca,ba,fa;return Object(la.d)(this,function(ha){switch(ha.label){case 0:if(b.imported)return[2];f={t:"a_".concat(e),dId:y,annots:[]};return[4,x.ga.o9()];
|
|
7
7
|
case 1:r=ha.aa();"delete"!==e&&(a=(new DOMParser).parseFromString(r,"text/xml"),w=new XMLSerializer);for(z=0;z<h.length;z++)aa=h[z],ba=ca=void 0,"add"===e?(ca=a.querySelector('[name="'.concat(aa.Id,'"]')),ba=w.serializeToString(ca),fa=null,aa.InReplyTo&&(fa=x.ga.Gi(aa.InReplyTo).authorId||"default"),f.annots.push({at:"create",aId:aa.Id,author:x.dQ,aName:x.Pl[x.dQ],parent:fa,xfdf:"<add>".concat(ba,"</add>")})):"modify"===e?(ca=a.querySelector('[name="'.concat(aa.Id,'"]')),ba=w.serializeToString(ca),
|
|
8
8
|
f.annots.push({at:"modify",aId:aa.Id,xfdf:"<modify>".concat(ba,"</modify>")})):"delete"===e&&f.annots.push({at:"delete",aId:aa.Id});0<f.annots.length&&x.connection.send(f);return[2]}})})}.bind(x);this.ga.addEventListener(ia.a.Events.ANNOTATION_CHANGED,this.Gp)};ea.Events={WEBVIEWER_SERVER_ANNOTATIONS_ENABLED:"webViewerServerAnnotationsEnabled",WEBVIEWER_SERVER_ANNOTATIONS_DISABLED:"webViewerServerAnnotationsDisabled"};return ea}();Object(ya.a)(n);va["default"]=n}}]);}).call(this || window)
|
|
@@ -1,15 +1,15 @@
|
|
|
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([[4],{641:function(ya,va,n){n.r(va);var la=n(0),na=n(663),ma=n(664),ja;(function(ia){ia[ia.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";ia[ia.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";ia[ia.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(ja||(ja={}));ya=function(){function ia(ea){this.ba=ea;this.state=ja.EXTERNAL_XFDF_NOT_REQUESTED}ia.prototype.
|
|
3
|
-
x,h){return Object(la.b)(ea,void 0,void 0,function(){var e,b,f,r,a,w,z,aa=this,ca;return Object(la.d)(this,function(ba){switch(ba.label){case 0:if(this.state!==ja.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.ba.getDocument().Fz();return[4,this.
|
|
4
|
-
[2];r=new DOMParser;a=r.parseFromString(y,"text/xml");x.forEach(function(fa){aa.merge(a,aa.VU,fa-1)});w=new XMLSerializer;z=w.serializeToString(a);h(z);return[2]}})})}};ia.prototype.b0=function(ea){this.
|
|
5
|
-
function(ea,y,x){var h=this;0===x&&(this.
|
|
6
|
-
this,h=this.ZC(ea.querySelector("xfdf"),"annots");Object.keys(y).forEach(function(e){x.Rw(h,'[name="'.concat(e,'"]'),y[e])})};ia.prototype.
|
|
7
|
-
"xfdf > fields","fields");y=y.split(".");this.SZ(ea,y,0,x.value);x.WW=!0};ia.prototype.
|
|
8
|
-
this.ZC(ea,'[name="'.concat(e,'"]'),"field").setAttribute("name",e);ea=ea.querySelectorAll('[name="'.concat(e,'"]'));1===ea.length?this.SZ(ea[0],y,x+1,h):(e=this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[4],{641:function(ya,va,n){n.r(va);var la=n(0),na=n(663),ma=n(664),ja;(function(ia){ia[ia.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";ia[ia.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";ia[ia.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(ja||(ja={}));ya=function(){function ia(ea){this.ba=ea;this.state=ja.EXTERNAL_XFDF_NOT_REQUESTED}ia.prototype.SEa=function(){var ea=this;return function(y,
|
|
3
|
+
x,h){return Object(la.b)(ea,void 0,void 0,function(){var e,b,f,r,a,w,z,aa=this,ca;return Object(la.d)(this,function(ba){switch(ba.label){case 0:if(this.state!==ja.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.ba.getDocument().Fz();return[4,this.iCa(e)];case 1:b=ba.aa(),f=this.yva(b),this.VU=null!==(ca=null===f||void 0===f?void 0:f.parse())&&void 0!==ca?ca:null,this.state=null===this.VU?ja.EXTERNAL_XFDF_NOT_AVAILABLE:ja.EXTERNAL_XFDF_AVAILABLE,ba.label=2;case 2:if(this.state===ja.EXTERNAL_XFDF_NOT_AVAILABLE)return h(y),
|
|
4
|
+
[2];r=new DOMParser;a=r.parseFromString(y,"text/xml");x.forEach(function(fa){aa.merge(a,aa.VU,fa-1)});w=new XMLSerializer;z=w.serializeToString(a);h(z);return[2]}})})}};ia.prototype.b0=function(ea){this.iCa=ea};ia.prototype.Tf=function(){this.VU=void 0;this.state=ja.EXTERNAL_XFDF_NOT_REQUESTED};ia.prototype.yva=function(ea){return ea?Array.isArray(ea)?new na.a(ea):"string"!==typeof ea?null:(new DOMParser).parseFromString(ea,"text/xml").querySelector("xfdf > add")?new na.a(ea):new ma.a(ea):null};ia.prototype.merge=
|
|
5
|
+
function(ea,y,x){var h=this;0===x&&(this.DJa(ea,y.gv),this.FJa(ea,y.zU));var e=y.ea[x];e&&(this.GJa(ea,e.Yu),this.IJa(ea,e.kka,y.WD),this.HJa(ea,e.page,x),this.EJa(ea,e.z8));e=this.ba.wb();if(x===e-1){var b=y.WD;Object.keys(b).forEach(function(f){b[f].WW||h.oda(ea,f,b[f])})}};ia.prototype.DJa=function(ea,y){null!==y&&(ea=this.$C(ea),this.Rw(ea,"calculation-order",y))};ia.prototype.FJa=function(ea,y){null!==y&&(ea=this.$C(ea),this.Rw(ea,"document-actions",y))};ia.prototype.GJa=function(ea,y){var x=
|
|
6
|
+
this,h=this.ZC(ea.querySelector("xfdf"),"annots");Object.keys(y).forEach(function(e){x.Rw(h,'[name="'.concat(e,'"]'),y[e])})};ia.prototype.IJa=function(ea,y,x){var h=this;if(0!==y.length){var e=this.$C(ea);y.forEach(function(b){var f=b.getAttribute("field"),r=x[f];r&&(h.oda(ea,f,r),h.Rw(e,"null",b))})}};ia.prototype.oda=function(ea,y,x){var h=this.$C(ea),e=h.querySelector('ffield[name="'.concat(y,'"]'));null!==x.BL&&null===e&&this.Rw(h,'ffield[name="'.concat(y,'"]'),x.BL);ea=this.ZC(ea.querySelector("xfdf"),
|
|
7
|
+
"xfdf > fields","fields");y=y.split(".");this.SZ(ea,y,0,x.value);x.WW=!0};ia.prototype.HJa=function(ea,y,x){null!==y&&(ea=this.$C(ea),ea=this.ZC(ea,"pages"),this.Rw(ea,'[number="'.concat(x+1,'"]'),y))};ia.prototype.EJa=function(ea,y){Object.keys(y).forEach(function(x){(x=ea.querySelector('annots [name="'.concat(x,'"]')))&&x.parentElement.removeChild(x)})};ia.prototype.SZ=function(ea,y,x,h){if(x===y.length)y=document.createElementNS("","value"),y.textContent=h,this.Rw(ea,"value",y);else{var e=y[x];
|
|
8
|
+
this.ZC(ea,'[name="'.concat(e,'"]'),"field").setAttribute("name",e);ea=ea.querySelectorAll('[name="'.concat(e,'"]'));1===ea.length?this.SZ(ea[0],y,x+1,h):(e=this.mAa(ea),this.SZ(x===y.length-1?e:this.CUa(ea,e),y,x+1,h))}};ia.prototype.mAa=function(ea){for(var y=null,x=0;x<ea.length;x++){var h=ea[x];if(0===h.childElementCount||1===h.childElementCount&&"value"===h.children[0].tagName){y=h;break}}return y};ia.prototype.CUa=function(ea,y){for(var x=0;x<ea.length;x++)if(ea[x]!==y)return ea[x];return null};
|
|
9
9
|
ia.prototype.Rw=function(ea,y,x){y=ea.querySelector(y);null!==y&&ea.removeChild(y);ea.appendChild(x)};ia.prototype.$C=function(ea){var y=ea.querySelector("pdf-info");if(null!==y)return y;y=this.ZC(ea.querySelector("xfdf"),"pdf-info");y.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");y.setAttribute("version","2");y.setAttribute("import-version","4");return y};ia.prototype.ZC=function(ea,y,x){var h=ea.querySelector(y);if(null!==h)return h;h=document.createElementNS("",x||y);ea.appendChild(h);
|
|
10
|
-
return h};return ia}();va["default"]=ya},652:function(ya,va){ya=function(){function n(){}n.prototype.FJ=function(la){var na={gv:null,zU:null,WD:{},ea:{}};la=(new DOMParser).parseFromString(la,"text/xml");na.gv=la.querySelector("pdf-info calculation-order");na.zU=la.querySelector("pdf-info document-actions");na.WD=this.
|
|
11
|
-
{};this.
|
|
12
|
-
function(la,na){na.forEach(function(ma){var ja=ma.getAttribute("name");la[ja]?la[ja].BL=ma:la[ja]={value:null,BL:ma,WW:!1}})};n.prototype.
|
|
13
|
-
10),ea=ja.getAttribute("name");na.aN(ma,ia);ma[ia].Yu[ea]=ja});this.y$(la).forEach(function(ja){var ia=parseInt(ja.getAttribute("page"),10);ja=ja.textContent;na.aN(ma,ia);ma[ia].z8[ja]=!0});return ma};n.prototype.aN=function(la,na){la[na]||(la[na]={Yu:{},z8:{},kka:[],page:null})};return n}();va.a=ya},663:function(ya,va,n){var la=n(0),na=n(1);n.n(na);ya=function(ma){function ja(ia){var ea=ma.call(this)||this;ea.
|
|
14
|
-
this,ea={gv:null,zU:null,WD:{},ea:{}};this.
|
|
15
|
-
Object(la.c)(ma,na);ma.prototype.parse=function(){return this.FJ(this.
|
|
10
|
+
return h};return ia}();va["default"]=ya},652:function(ya,va){ya=function(){function n(){}n.prototype.FJ=function(la){var na={gv:null,zU:null,WD:{},ea:{}};la=(new DOMParser).parseFromString(la,"text/xml");na.gv=la.querySelector("pdf-info calculation-order");na.zU=la.querySelector("pdf-info document-actions");na.WD=this.vLa(la);na.ea=this.JLa(la);return na};n.prototype.vLa=function(la){var na=la.querySelector("fields");la=la.querySelectorAll("pdf-info > ffield");if(null===na&&null===la)return{};var ma=
|
|
11
|
+
{};this.wra(ma,na);this.ura(ma,la);return ma};n.prototype.wra=function(la,na){if(null!==na&&na.children){for(var ma=[],ja=0;ja<na.children.length;ja++){var ia=na.children[ja];ma.push({name:ia.getAttribute("name"),element:ia})}for(;0!==ma.length;)for(na=ma.shift(),ja=0;ja<na.element.children.length;ja++)ia=na.element.children[ja],"value"===ia.tagName?la[na.name]={value:ia.textContent,BL:null,WW:!1}:ia.children&&ma.push({name:"".concat(na.name,".").concat(ia.getAttribute("name")),element:ia})}};n.prototype.ura=
|
|
12
|
+
function(la,na){na.forEach(function(ma){var ja=ma.getAttribute("name");la[ja]?la[ja].BL=ma:la[ja]={value:null,BL:ma,WW:!1}})};n.prototype.JLa=function(la){var na=this,ma={};la.querySelectorAll("pdf-info widget").forEach(function(ja){var ia=parseInt(ja.getAttribute("page"),10)-1;na.aN(ma,ia);ma[ia].kka.push(ja)});la.querySelectorAll("pdf-info page").forEach(function(ja){var ia=parseInt(ja.getAttribute("number"),10)-1;na.aN(ma,ia);ma[ia].page=ja});this.U$(la).forEach(function(ja){var ia=parseInt(ja.getAttribute("page"),
|
|
13
|
+
10),ea=ja.getAttribute("name");na.aN(ma,ia);ma[ia].Yu[ea]=ja});this.y$(la).forEach(function(ja){var ia=parseInt(ja.getAttribute("page"),10);ja=ja.textContent;na.aN(ma,ia);ma[ia].z8[ja]=!0});return ma};n.prototype.aN=function(la,na){la[na]||(la[na]={Yu:{},z8:{},kka:[],page:null})};return n}();va.a=ya},663:function(ya,va,n){var la=n(0),na=n(1);n.n(na);ya=function(ma){function ja(ia){var ea=ma.call(this)||this;ea.Uza=Array.isArray(ia)?ia:[ia];return ea}Object(la.c)(ja,ma);ja.prototype.parse=function(){var ia=
|
|
14
|
+
this,ea={gv:null,zU:null,WD:{},ea:{}};this.Uza.forEach(function(y){ea=Object(na.merge)(ea,ia.FJ(y))});return ea};ja.prototype.U$=function(ia){var ea=[];ia.querySelectorAll("add > *").forEach(function(y){ea.push(y)});ia.querySelectorAll("modify > *").forEach(function(y){ea.push(y)});return ea};ja.prototype.y$=function(ia){return ia.querySelectorAll("delete > *")};return ja}(n(652).a);va.a=ya},664:function(ya,va,n){var la=n(0);ya=function(na){function ma(ja){var ia=na.call(this)||this;ia.Vza=ja;return ia}
|
|
15
|
+
Object(la.c)(ma,na);ma.prototype.parse=function(){return this.FJ(this.Vza)};ma.prototype.U$=function(ja){return ja.querySelectorAll("annots > *")};ma.prototype.y$=function(){return[]};return ma}(n(652).a);va.a=ya}}]);}).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([[5],{631:function(ya,va,n){n.r(va);var la=n(0);ya=n(53);var na=n(246),ma=n(547),ja=n(308),ia=window;n=function(){function ea(y,x){this.hca=function(h){h=h.split(".");return h[h.length-1].match(/(jpg|jpeg|png|gif)$/i)};x=x||{};this.url=y;this.filename=x.filename||y;this.Sf=x.customHeaders;this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[5],{631:function(ya,va,n){n.r(va);var la=n(0);ya=n(53);var na=n(246),ma=n(547),ja=n(308),ia=window;n=function(){function ea(y,x){this.hca=function(h){h=h.split(".");return h[h.length-1].match(/(jpg|jpeg|png|gif)$/i)};x=x||{};this.url=y;this.filename=x.filename||y;this.Sf=x.customHeaders;this.UVa=!!x.useDownloader;this.withCredentials=!!x.withCredentials}ea.prototype.gP=function(y){this.Sf=y};ea.prototype.getCustomHeaders=function(){return this.Sf};
|
|
3
3
|
ea.prototype.getFileData=function(y){var x=this,h=this,e=new XMLHttpRequest,b=0===this.url.indexOf("blob:")?"blob":"arraybuffer";e.open("GET",this.url,!0);e.withCredentials=this.withCredentials;e.responseType=b;this.Sf&&Object.keys(this.Sf).forEach(function(r){e.setRequestHeader(r,x.Sf[r])});var f=/^https?:/i.test(this.url);e.addEventListener("load",function(r){return Object(la.b)(this,void 0,void 0,function(){var a,w,z,aa,ca,ba;return Object(la.d)(this,function(fa){switch(fa.label){case 0:if(200!==
|
|
4
4
|
this.status&&(f||0!==this.status))return[3,10];h.trigger(ea.Events.DOCUMENT_LOADING_PROGRESS,[r.loaded,r.loaded]);if("blob"!==this.responseType)return[3,4];a=this.response;return h.hca(h.filename)?[4,Object(ja.b)(a)]:[3,2];case 1:return w=fa.aa(),h.fileSize=w.byteLength,y(new Uint8Array(w)),[3,3];case 2:z=new FileReader,z.onload=function(ha){ha=new Uint8Array(ha.target.result);h.fileSize=ha.length;y(ha)},z.readAsArrayBuffer(a),fa.label=3;case 3:return[3,9];case 4:fa.fd.push([4,8,,9]);aa=new Uint8Array(this.response);
|
|
5
5
|
if(!h.hca(h.filename))return[3,6];a=new Blob([aa.buffer]);return[4,Object(ja.b)(a)];case 5:return w=fa.aa(),h.fileSize=w.byteLength,y(new Uint8Array(w)),[3,7];case 6:h.fileSize=aa.length,y(aa),fa.label=7;case 7:return[3,9];case 8:return fa.aa(),h.trigger(ea.Events.ERROR,["pdfLoad","Out of memory"]),[3,9];case 9:return[3,11];case 10:ca=r.currentTarget,ba=Object(na.b)(ca),h.trigger(ea.Events.ERROR,["pdfLoad","".concat(this.status," ").concat(ca.statusText),ba]),fa.label=11;case 11:return h.YH=null,
|
|
6
|
-
[2]}})})},!1);e.onprogress=function(r){h.trigger(ea.Events.DOCUMENT_LOADING_PROGRESS,[r.loaded,0<r.total?r.total:0])};e.addEventListener("error",function(){h.trigger(ea.Events.ERROR,["pdfLoad","Network failure"]);h.YH=null},!1);e.send();this.YH=e};ea.prototype.getFile=function(){var y=this;return new Promise(function(x){ia.da.isJSWorker&&x(y.url);if(y.
|
|
6
|
+
[2]}})})},!1);e.onprogress=function(r){h.trigger(ea.Events.DOCUMENT_LOADING_PROGRESS,[r.loaded,0<r.total?r.total:0])};e.addEventListener("error",function(){h.trigger(ea.Events.ERROR,["pdfLoad","Network failure"]);h.YH=null},!1);e.send();this.YH=e};ea.prototype.getFile=function(){var y=this;return new Promise(function(x){ia.da.isJSWorker&&x(y.url);if(y.UVa){var h=Object(la.a)({url:y.url},y.Sf?{customHeaders:y.Sf}:{});x(h)}x(null)})};ea.prototype.abort=function(){this.YH&&(this.YH.abort(),this.YH=null)};
|
|
7
7
|
ea.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",ERROR:"error"};return ea}();Object(ya.a)(n);Object(ma.a)(n);Object(ma.b)(n);va["default"]=n}}]);}).call(this || window)
|
|
@@ -4,11 +4,11 @@ fa;this.withCredentials=ha;this.aoa=a;this.request=new XMLHttpRequest;this.reque
|
|
|
4
4
|
this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=x.a.NOT_STARTED}aa.prototype.start=function(ca){var ba=this,fa=this.request;fa.onreadystatechange=function(){if(ba.aborted)return ba.status=x.a.ABORTED,ca({code:x.a.ABORTED});if(this.readyState===ba.aoa.DONE){ba.nM();var ha=0===window.document.URL.indexOf("file:///");200===fa.status||206===fa.status||ha&&0===fa.status?(ha=f.raa(this),ba.O0(ha,ca)):(ba.status=
|
|
5
5
|
x.a.ERROR,ca({code:ba.status,status:ba.status}))}};this.request.send(null);this.status=x.a.STARTED};aa.prototype.O0=function(ca,ba){this.status=x.a.SUCCESS;if(ba)return ba(!1,ca)};aa.prototype.abort=function(){this.nM();this.aborted=!0;this.request.abort()};aa.prototype.nM=function(){var ca=Object(h.c)(this.url,this.range,b);-1!==ca&&b.splice(ca,1);if(0<e.length){ca=e.shift();var ba=new aa(ca.url,ca.range,this.Sf,this.withCredentials);ca.request=ba;b.push(ca);ba.start(Object(h.d)(ca))}};aa.prototype.extend=
|
|
6
6
|
function(ca){var ba=Object.assign({},this,ca.prototype);ba.constructor=ca;return ba};return aa}(),z=function(aa){function ca(ba,fa,ha,pa,oa){ha=aa.call(this,ba,ha,pa)||this;ha.Om={};ha.nK=fa;ha.url=ba;ha.DISABLE_RANGE_HEADER=!1;ha.AG=w;ha.A2=3;ha.Sf=oa||{};return ha}Object(la.c)(ca,aa);ca.prototype.zD=function(ba,fa,ha){var pa=-1===ba.indexOf("?")?"?":"&";switch(ha){case !1:case y.a.NEVER_CACHE:ba="".concat(ba+pa,"_=").concat(Object(na.uniqueId)());break;case !0:case y.a.CACHE:ba="".concat(ba+pa,
|
|
7
|
-
"_=").concat(fa.start,",").concat(Object(na.isUndefined)(fa.stop)?"":fa.stop)}return ba};ca.prototype.d8=function(ba,fa,ha,pa){void 0===ha&&(ha={});return new this.AG(ba,fa,ha,pa)};ca.prototype.
|
|
8
|
-
ha={url:ba,range:fa,nK:ha,qj:[pa],QN:1};if(0===e.length&&b.length<this.A2)return b.push(ha),ha.request=this.d8(ba,fa,oa,this.withCredentials),ha;e.push(ha);return null};ca.prototype.Ct=function(ba,fa,ha){var pa=this.zD(ba,fa,this.nK);(ba=this.
|
|
9
|
-
1))}};ca.prototype.E$=function(){return{start:-ja.a}};ca.prototype.
|
|
10
|
-
qa.start," but is ").concat(ta.length));fa.Ze.Efa(ta);fa.uT=!0;fa.yK=!1;return ba(!1)})}if(pa)return Object(ma.i)("Error loading end header: ".concat(pa)),ba(pa,oa,ka);oa=Object(ea.a)(oa);if(oa.length!==ha)return ba("Invalid XOD file: Zip end header data is wrong size!");try{fa.Ze=new ia.a(oa)}catch(qa){return ba(qa)}fa.Ze.
|
|
11
|
-
function(ba){ba(Object.keys(this.Ze.Qs))};ca.prototype.VZ=function(ba,fa){var ha=this;if(this.Ze.I7(ba)){var pa=this.Ze.qE(ba);if(pa in this.Om){var oa=this.Tj[ba];oa.My=this.Om[pa];oa.My.Zq++;oa.cancel=oa.My.cancel}else{var ka=this.Ze.
|
|
7
|
+
"_=").concat(fa.start,",").concat(Object(na.isUndefined)(fa.stop)?"":fa.stop)}return ba};ca.prototype.d8=function(ba,fa,ha,pa){void 0===ha&&(ha={});return new this.AG(ba,fa,ha,pa)};ca.prototype.Fza=function(ba,fa,ha,pa,oa){for(var ka=0;ka<e.length;ka++)if(Object(na.isEqual)(e[ka].range,fa)&&Object(na.isEqual)(e[ka].url,ba))return e[ka].qj.push(pa),e[ka].QN++,null;for(ka=0;ka<b.length;ka++)if(Object(na.isEqual)(b[ka].range,fa)&&Object(na.isEqual)(b[ka].url,ba))return b[ka].qj.push(pa),b[ka].QN++,null;
|
|
8
|
+
ha={url:ba,range:fa,nK:ha,qj:[pa],QN:1};if(0===e.length&&b.length<this.A2)return b.push(ha),ha.request=this.d8(ba,fa,oa,this.withCredentials),ha;e.push(ha);return null};ca.prototype.Ct=function(ba,fa,ha){var pa=this.zD(ba,fa,this.nK);(ba=this.Fza(pa,fa,this.nK,ha,this.Sf))&&ba.request.start(Object(h.d)(ba));return function(){var oa=Object(h.c)(pa,fa,b);if(-1!==oa){var ka=--b[oa].QN;0===ka&&b[oa].request&&b[oa].request.abort()}else oa=Object(h.c)(pa,fa,e),-1!==oa&&(ka=--e[oa].QN,0===ka&&e.splice(oa,
|
|
9
|
+
1))}};ca.prototype.E$=function(){return{start:-ja.a}};ca.prototype.fFa=function(){var ba=-(ja.a+ja.e);return{start:ba-ja.d,end:ba}};ca.prototype.uA=function(ba){var fa=this;this.yK=!0;var ha=ja.a;this.Ct(this.url,this.E$(),function(pa,oa,ka){function ra(){var qa=fa.Ze.A$();fa.Ct(fa.url,qa,function(sa,ta){if(sa)return Object(ma.i)("Error loading central directory: ".concat(sa)),ba(sa);ta=Object(ea.a)(ta);if(ta.length!==qa.stop-qa.start)return ba("Invalid XOD file: Zip central directory data is wrong size! Should be ".concat(qa.stop-
|
|
10
|
+
qa.start," but is ").concat(ta.length));fa.Ze.Efa(ta);fa.uT=!0;fa.yK=!1;return ba(!1)})}if(pa)return Object(ma.i)("Error loading end header: ".concat(pa)),ba(pa,oa,ka);oa=Object(ea.a)(oa);if(oa.length!==ha)return ba("Invalid XOD file: Zip end header data is wrong size!");try{fa.Ze=new ia.a(oa)}catch(qa){return ba(qa)}fa.Ze.FIa?fa.Ct(fa.url,fa.fFa(),function(qa,sa){if(qa)return Object(ma.i)("Error loading zip64 header: ".concat(qa)),ba(qa);sa=Object(ea.a)(sa);fa.Ze.lJa(sa);ra()}):ra()})};ca.prototype.jaa=
|
|
11
|
+
function(ba){ba(Object.keys(this.Ze.Qs))};ca.prototype.VZ=function(ba,fa){var ha=this;if(this.Ze.I7(ba)){var pa=this.Ze.qE(ba);if(pa in this.Om){var oa=this.Tj[ba];oa.My=this.Om[pa];oa.My.Zq++;oa.cancel=oa.My.cancel}else{var ka=this.Ze.nCa(ba),ra=this.Ct(this.url,ka,function(sa,ta){sa?(Object(ma.i)('Error loading part "'.concat(ba,'": ').concat(sa)),ha.Ct(ha.url,ka,function(wa,za){if(wa)return fa(wa,ba);ha.Ifa(za,ka,pa,ba,fa)})):ha.Ifa(ta,ka,pa,ba,fa)}),qa=this.Tj[ba];qa&&(qa.cja=!0,qa.cancel=function(){qa.My.Zq--;
|
|
12
12
|
0===qa.My.Zq&&(ra(),delete ha.Om[pa])},this.Om[pa]=new r(pa),qa.My=this.Om[pa],qa.My.cancel=qa.cancel)}}else delete this.Tj[ba],fa(Error('File not found: "'.concat(ba,'"')),ba)};ca.prototype.Ifa=function(ba,fa,ha,pa,oa){if(ba.length!==fa.stop-fa.start)oa(Error("Part data is wrong size!"),pa);else{do{if(!this.Om[ha])return;pa=this.Om[ha].Zq;for(var ka=fa.Sw.length,ra=0;ra<ka;++ra){var qa=fa.Sw[ra];oa(!1,qa.Mw,ba["string"===typeof ba?"substring":"subarray"](qa.start,qa.stop),this.Ze.Wba(qa.Mw));qa.Mw in
|
|
13
|
-
this.Tj&&delete this.Tj[qa.Mw]}}while(pa!==this.Om[ha].Zq);delete this.Om[ha]}};ca.DISABLE_RANGE_HEADER=!1;ca.A2=3;return ca}(ya.a);(function(aa){function ca(ba,fa,ha){var pa=aa.call(this)||this,oa;for(oa in ba)pa[oa]=ba[oa];pa.
|
|
13
|
+
this.Tj&&delete this.Tj[qa.Mw]}}while(pa!==this.Om[ha].Zq);delete this.Om[ha]}};ca.DISABLE_RANGE_HEADER=!1;ca.A2=3;return ca}(ya.a);(function(aa){function ca(ba,fa,ha){var pa=aa.call(this)||this,oa;for(oa in ba)pa[oa]=ba[oa];pa.L_a=ba;pa.startOffset=fa;pa.endOffset=ha;pa.d8=function(ka,ra,qa,sa){Object(na.isUndefined)(ra.stop)?(ra.start+=pa.endOffset,ra.stop=pa.endOffset):(ra.start+=pa.startOffset,ra.stop+=pa.startOffset);ka=pa.zD(pa.url,ra,pa.nK);return new ba.AG(ka,ra,qa,sa)};return pa}Object(la.c)(ca,
|
|
14
14
|
aa);return ca})(z);Object(n.a)(z);Object(n.b)(z);va["default"]=z}}]);}).call(this || window)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{626:function(ya,va,n){n.r(va);var la=n(0),na=n(2),ma=n(220);ya=n(129);var ja=n(367);n=n(547);var ia=window;ya=function(ea){function y(x,h,e){h=ea.call(this,x,h,e)||this;if(x.name&&"xod"!==x.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!ia.FileReader||!ia.File||!ia.Blob)throw Error("File API is not supported in this browser");h.file=x;h.CK=[];h.aU=0;return h}Object(la.c)(y,ea);y.prototype.rY=function(x,
|
|
3
|
-
h,e){var b=this,f=new FileReader;f.onloadend=function(r){if(0<b.CK.length){var a=b.CK.shift();a.
|
|
4
|
-
b.aU++):b.CK.push({
|
|
3
|
+
h,e){var b=this,f=new FileReader;f.onloadend=function(r){if(0<b.CK.length){var a=b.CK.shift();a.rNa.readAsBinaryString(a.file)}else b.aU--;if(f.error){r=f.error;if(r.code===r.ABORT_ERR){Object(na.i)("Request for chunk ".concat(h.start,"-").concat(h.stop," was aborted"));return}return e(r)}if(r=f.content||r.target.result)return e(!1,r);Object(na.i)("No data was returned from FileReader.")};h&&(x=(x.slice||x.webkitSlice||x.mozSlice||x.IZa).call(x,h.start,h.stop));0===b.CK.length&&50>b.aU?(f.readAsBinaryString(x),
|
|
4
|
+
b.aU++):b.CK.push({rNa:f,file:x});return function(){f.abort()}};y.prototype.uA=function(x){var h=this;h.yK=!0;var e=ma.a;h.rY(h.file,{start:-e,stop:h.file.size},function(b,f){if(b)return Object(na.i)("Error loading end header: %s ".concat(b)),x(b);if(f.length!==e)throw Error("Zip end header data is wrong size!");h.Ze=new ja.a(f);var r=h.Ze.A$();h.rY(h.file,r,function(a,w){if(a)return Object(na.i)("Error loading central directory: %s ".concat(a)),x(a);if(w.length!==r.stop-r.start)throw Error("Zip central directory data is wrong size!");
|
|
5
5
|
h.Ze.Efa(w);h.uT=!0;h.yK=!1;return x(!1)})})};y.prototype.VZ=function(x,h){var e=this,b=e.Tj[x];if(e.Ze.I7(x)){var f=e.Ze.sE(x),r=e.rY(e.file,f,function(a,w){delete e.Tj[x];if(a)return Object(na.i)('Error loading part "%s": %s, '.concat(x,", ").concat(a)),h(a);if(w.length!==f.stop-f.start)throw Error("Part data is wrong size!");h(!1,x,w,e.Ze.Wba(x))});b.cja=!0;b.cancel=r}else h(Error('File not found: "'.concat(x,'"')),x)};return y}(ya.a);Object(n.a)(ya);Object(n.b)(ya);va["default"]=ya}}]);}).call(this || window)
|
|
@@ -1,4 +1,4 @@
|
|
|
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([[8],{627:function(ya,va,n){n.r(va);var la=n(0);ya=n(53);var na=n(547),ma=n(308),ja=n(26),ia=window;n=function(){function ea(y){var x=this;this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{627:function(ya,va,n){n.r(va);var la=n(0);ya=n(53);var na=n(547),ma=n(308),ja=n(26),ia=window;n=function(){function ea(y){var x=this;this.JHa=function(h){return h&&("image"===h.type.split("/")[0].toLowerCase()||h.name&&!!h.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=y;this.bIa=new Promise(function(h){return Object(la.b)(x,void 0,void 0,function(){var e;return Object(la.d)(this,function(b){switch(b.label){case 0:return this.JHa(this.file)?
|
|
3
3
|
[4,Object(ma.b)(y)]:[3,2];case 1:e=b.aa(),this.file=ja.r?new Blob([e],{type:y.type}):new File([e],null===y||void 0===y?void 0:y.name,{type:y.type}),b.label=2;case 2:return h(!0),[2]}})})})}ea.prototype.getFileData=function(y){var x=this,h=new FileReader;h.onload=function(e){x.trigger(ea.Events.DOCUMENT_LOADING_PROGRESS,[e.loaded,e.loaded]);y(new Uint8Array(e.target.result))};h.onprogress=function(e){e.lengthComputable&&x.trigger(ea.Events.DOCUMENT_LOADING_PROGRESS,[e.loaded,0<e.total?e.total:0])};
|
|
4
|
-
h.readAsArrayBuffer(this.file)};ea.prototype.getFile=function(){return Object(la.b)(this,void 0,Promise,function(){return Object(la.d)(this,function(y){switch(y.label){case 0:return[4,this.
|
|
4
|
+
h.readAsArrayBuffer(this.file)};ea.prototype.getFile=function(){return Object(la.b)(this,void 0,Promise,function(){return Object(la.d)(this,function(y){switch(y.label){case 0:return[4,this.bIa];case 1:return y.aa(),ia.da.isJSWorker?[2,this.file.path]:[2,this.file]}})})};ea.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return ea}();Object(ya.a)(n);Object(na.a)(n);Object(na.b)(n);va["default"]=n}}]);}).call(this || window)
|
|
@@ -4,12 +4,12 @@ h?(y+=String.fromCharCode(10),x++):128>h?(y+=String.fromCharCode(h),x++):191<h&&
|
|
|
4
4
|
for(var h=x.split(","),e=Object(na.a)(h);e.Jq();){var b=e.current;try{var f=parseInt(b.trim(),10);this.sg.push(f)}catch(ba){}}Object(ma.b)(this.Ad);y.advance();x=y.current.textContent;h=x.split(",");for(var r=Object(na.a)(h);r.Jq();){b=r.current;try{f=parseFloat(b.trim()),this.Ad.push(f)}catch(ba){}}Object(ma.b)(this.fc);y.advance();x=y.current.textContent;h=x.split(",");ea=[];y=[];x=0;for(var a=Object(na.a)(h);a.Jq();){b=a.current;switch(b){case "Q":x=1;break;case "R":x=2;break;case "S":x=3;break;
|
|
5
5
|
default:x=0}if(x)ea.push(0),y.push(x);else try{f=parseFloat(b.trim()),ea.push(f),y.push(x)}catch(ba){return}}x=0;var w=ea.length;e=a=b=h=void 0;for(var z=r=0,aa=0;aa<w;){var ca=y[aa];if(0<ca)x=ca,++aa,3===x&&(r=ea[aa],z=ea[aa+1],aa+=2);else if(1===x)for(f=0;8>f;++f)this.fc.push(ea[aa++]);else 2===x?(h=ea[aa++],b=ea[aa++],a=ea[aa++],e=ea[aa++],this.fc.push(h),this.fc.push(b),this.fc.push(a),this.fc.push(b),this.fc.push(a),this.fc.push(e),this.fc.push(h),this.fc.push(e)):3===x&&(h=ea[aa++],b=r,a=ea[aa++],
|
|
6
6
|
e=z,this.fc.push(h),this.fc.push(b),this.fc.push(a),this.fc.push(b),this.fc.push(a),this.fc.push(e),this.fc.push(h),this.fc.push(e))}}catch(ba){return}this.Xc.length&&this.Xc.length===this.sg.length&&8*this.Xc.length===this.fc.length&&(this.Mg=!0)};ia.prototype.ready=function(){return this.Mg};ia.prototype.uE=function(){var ea=new la.a;if(!this.Ad.length)return ea.Gj(this.Ad,-1,this.Xc,this.fc,0),ea;ea.Gj(this.Ad,1,this.Xc,this.fc,1);return ea};ia.prototype.ag=function(){return this.fc};ia.prototype.getData=
|
|
7
|
-
function(){return{m_Struct:this.Ad,m_Str:this.Xc,m_Offsets:this.sg,m_Quads:this.fc,m_Ready:this.Mg}};return ia}();va["default"]=ya},653:function(ya,va,n){var la=n(134),na=n(71),ma=n(665);ya=function(){function ja(){this.Nf=0;this.
|
|
8
|
-
function(){return Math.abs(this.gh[this.Nf])};ja.prototype.Dq=function(){return 0<this.gh[this.Nf]};ja.prototype.wj=function(){var ia=this.Dq()?6:10,ea=new ma.a;ea.Gj(this.gh,this.Nf+ia,this.Nf,this.Qb,this.
|
|
9
|
-
1],10);if(ia>=this.gh.length)return ia=new ja,ia.Gj(this.gh,-1,this.Qb,this.
|
|
7
|
+
function(){return{m_Struct:this.Ad,m_Str:this.Xc,m_Offsets:this.sg,m_Quads:this.fc,m_Ready:this.Mg}};return ia}();va["default"]=ya},653:function(ya,va,n){var la=n(134),na=n(71),ma=n(665);ya=function(){function ja(){this.Nf=0;this.oc=this.Qb=this.gh=null;this.pd=0;this.Mf=null}ja.prototype.Nd=function(){this.Nf=-1;this.pd=0;this.Mf=[]};ja.prototype.Gj=function(ia,ea,y,x,h){this.Nf=ea;this.pd=h;this.Mf=[];this.gh=ia;this.Qb=y;this.oc=x};ja.prototype.Wd=function(ia){return this.Nf===ia.Nf};ja.prototype.co=
|
|
8
|
+
function(){return Math.abs(this.gh[this.Nf])};ja.prototype.Dq=function(){return 0<this.gh[this.Nf]};ja.prototype.wj=function(){var ia=this.Dq()?6:10,ea=new ma.a;ea.Gj(this.gh,this.Nf+ia,this.Nf,this.Qb,this.oc,1);return ea};ja.prototype.Uaa=function(ia){if(0>ia||ia>=this.co())return ia=new ma.a,ia.Gj(this.gh,-1,-1,this.Qb,this.oc,0),ia;var ea=this.Dq()?6:10,y=this.Dq()?5:11,x=new ma.a;x.Gj(this.gh,this.Nf+ea+y*ia,this.Nf,this.Qb,this.oc,1+ia);return x};ja.prototype.Gk=function(){var ia=this.Nf+parseInt(this.gh[this.Nf+
|
|
9
|
+
1],10);if(ia>=this.gh.length)return ia=new ja,ia.Gj(this.gh,-1,this.Qb,this.oc,0),ia;var ea=new ja;ea.Gj(this.gh,ia,this.Qb,this.oc,this.pd+1);return ea};ja.prototype.getBBox=function(ia){if(this.Dq())ia.x1=this.gh[this.Nf+2+0],ia.y1=this.gh[this.Nf+2+1],ia.x2=this.gh[this.Nf+2+2],ia.y2=this.gh[this.Nf+2+3];else{for(var ea=1.79769E308,y=la.a.MIN,x=1.79769E308,h=la.a.MIN,e=0;4>e;++e){var b=this.gh[this.Nf+2+2*e],f=this.gh[this.Nf+2+2*e+1];ea=Math.min(ea,b);y=Math.max(y,b);x=Math.min(x,f);h=Math.max(h,
|
|
10
10
|
f)}ia.x1=ea;ia.y1=x;ia.x2=y;ia.y2=h}};ja.prototype.YL=function(){if(this.Mf.length)return this.Mf[0];var ia=new na.a,ea=new na.a,y=new ma.a;y.Nd();var x=this.wj(),h=new ma.a;h.Nd();for(var e=this.wj();!e.Wd(y);e=e.Aj())h=e;y=Array(8);e=Array(8);x.xj(0,y);ia.x=(y[0]+y[2]+y[4]+y[6])/4;ia.y=(y[1]+y[3]+y[5]+y[7])/4;h.xj(h.lq()-1,e);ea.x=(e[0]+e[2]+e[4]+e[6])/4;ea.y=(e[1]+e[3]+e[5]+e[7])/4;.01>Math.abs(ia.x-ea.x)&&.01>Math.abs(ia.y-ea.y)&&this.Mf.push(0);ia=Math.atan2(ea.y-ia.y,ea.x-ia.x);ia*=180/3.1415926;
|
|
11
|
-
0>ia&&(ia+=360);this.Mf.push(ia);return 0};return ja}();va.a=ya},665:function(ya,va,n){var la=n(653),na=n(130),ma=n(134);ya=function(){function ja(){this.up=this.lf=0;this.
|
|
12
|
-
2],10)};ja.prototype.Dj=function(){return parseInt(this.Ad[this.lf+1],10)};ja.prototype.Dq=function(){return 0<this.Ad[this.up]};ja.prototype.
|
|
13
|
-
-1:parseInt(this.Ad[this.lf+1],10)+ia};ja.prototype.xj=function(ia,ea){ia=this.
|
|
14
|
-
this.Ad[this.lf+3],x=this.Ad[this.lf+4];if(y>x){var h=y;y=x;x=h}h=new na.a;ea.getBBox(h);ea=h.y1<h.y2?h.y1:h.y2;h=h.y1>h.y2?h.y1:h.y2;ia[0]=y;ia[1]=ea;ia[2]=x;ia[3]=ea;ia[4]=x;ia[5]=h;ia[6]=y;ia[7]=h}else for(y=this.lf+3,x=0;8>x;++x)ia[x]=this.Ad[y+x]};ja.prototype.getBBox=function(ia){var ea=new la.a;ea.Gj(this.Ad,this.up,this.Qb,this.
|
|
11
|
+
0>ia&&(ia+=360);this.Mf.push(ia);return 0};return ja}();va.a=ya},665:function(ya,va,n){var la=n(653),na=n(130),ma=n(134);ya=function(){function ja(){this.up=this.lf=0;this.oc=this.Qb=this.Ad=null;this.pd=0}ja.prototype.Nd=function(){this.up=this.lf=-1;this.pd=0};ja.prototype.Gj=function(ia,ea,y,x,h,e){this.lf=ea;this.up=y;this.Ad=ia;this.Qb=x;this.oc=h;this.pd=e};ja.prototype.Wd=function(ia){return this.lf===ia.lf};ja.prototype.lq=function(){return parseInt(this.Ad[this.lf],10)};ja.prototype.om=function(){return parseInt(this.Ad[this.lf+
|
|
12
|
+
2],10)};ja.prototype.Dj=function(){return parseInt(this.Ad[this.lf+1],10)};ja.prototype.Dq=function(){return 0<this.Ad[this.up]};ja.prototype.ADa=function(){return Math.abs(this.Ad[this.up])};ja.prototype.Aj=function(){var ia=this.Dq(),ea=ia?5:11;if(this.lf>=this.up+(ia?6:10)+(this.ADa()-1)*ea)return ea=new ja,ea.Gj(this.Ad,-1,-1,this.Qb,this.oc,0),ea;ia=new ja;ia.Gj(this.Ad,this.lf+ea,this.up,this.Qb,this.oc,this.pd+1);return ia};ja.prototype.vCa=function(ia){var ea=this.lq();return 0>ia||ia>=ea?
|
|
13
|
+
-1:parseInt(this.Ad[this.lf+1],10)+ia};ja.prototype.xj=function(ia,ea){ia=this.vCa(ia);if(!(0>ia)){var y=new la.a;y.Gj(this.Ad,this.up,this.Qb,this.oc,0);if(y.Dq()){var x=new na.a;y.getBBox(x);y=x.y1<x.y2?x.y1:x.y2;x=x.y1>x.y2?x.y1:x.y2;ia*=8;ea[0]=this.oc[ia];ea[1]=y;ea[2]=this.oc[ia+2];ea[3]=ea[1];ea[4]=this.oc[ia+4];ea[5]=x;ea[6]=this.oc[ia+6];ea[7]=ea[5]}else for(ia*=8,y=0;8>y;++y)ea[y]=this.oc[ia+y]}};ja.prototype.Kk=function(ia){var ea=new la.a;ea.Gj(this.Ad,this.up,this.Qb,this.oc,0);if(ea.Dq()){var y=
|
|
14
|
+
this.Ad[this.lf+3],x=this.Ad[this.lf+4];if(y>x){var h=y;y=x;x=h}h=new na.a;ea.getBBox(h);ea=h.y1<h.y2?h.y1:h.y2;h=h.y1>h.y2?h.y1:h.y2;ia[0]=y;ia[1]=ea;ia[2]=x;ia[3]=ea;ia[4]=x;ia[5]=h;ia[6]=y;ia[7]=h}else for(y=this.lf+3,x=0;8>x;++x)ia[x]=this.Ad[y+x]};ja.prototype.getBBox=function(ia){var ea=new la.a;ea.Gj(this.Ad,this.up,this.Qb,this.oc,0);if(ea.Dq()){var y=this.Ad[this.lf+3],x=this.Ad[this.lf+4];if(y>x){var h=y;y=x;x=h}h=new na.a;ea.getBBox(h);ea=h.y1<h.y2?h.y1:h.y2;h=h.y1>h.y2?h.y1:h.y2;ia[0]=
|
|
15
15
|
y;ia[1]=ea;ia[2]=x;ia[3]=h}else{y=1.79769E308;x=ma.a.MIN;ea=1.79769E308;h=ma.a.MIN;for(var e=this.lf+3,b=0;4>b;++b){var f=this.Ad[e+2*b],r=this.Ad[e+2*b+1];y=Math.min(y,f);x=Math.max(x,f);ea=Math.min(ea,r);h=Math.max(h,r)}ia[0]=y;ia[1]=ea;ia[2]=x;ia[3]=h}};return ja}();va.a=ya}}]);}).call(this || window)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{633:function(ya,va,n){n.r(va);var la=n(0),na=n(1);n.n(na);var ma=n(2),ja=n(220);ya=n(53);var ia=n(129),ea=n(367),y=n(107),x=n(366);n=n(547);var h=window,e=function(){function r(a,w,z){var aa=-1===a.indexOf("?")?"?":"&";switch(w){case y.a.NEVER_CACHE:this.url="".concat(a+aa,"_=").concat(Object(na.uniqueId)());break;default:this.url=a}this.Sf=z;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With",
|
|
3
3
|
"XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=x.a.NOT_STARTED}r.prototype.start=function(a,w){var z=this,aa=this,ca=this.request,ba;aa.CF=0;a&&Object.keys(a).forEach(function(fa){z.request.setRequestHeader(fa,a[fa])});w&&(this.request.withCredentials=w);this.yO=setInterval(function(){var fa=0===window.document.URL.indexOf("file:///");fa=200===ca.status||
|
|
4
|
-
fa&&0===ca.status;if(ca.readyState!==x.b.DONE||fa){try{ca.responseText}catch(ha){return}aa.CF<ca.responseText.length&&(ba=aa.
|
|
4
|
+
fa&&0===ca.status;if(ca.readyState!==x.b.DONE||fa){try{ca.responseText}catch(ha){return}aa.CF<ca.responseText.length&&(ba=aa.WMa())&&aa.trigger(r.Events.DATA,[ba]);0===ca.readyState&&(clearInterval(aa.yO),aa.trigger(r.Events.DONE))}else clearInterval(aa.yO),aa.trigger(r.Events.DONE,["Error received return status ".concat(ca.status)])},1E3);this.request.send(null);this.status=x.a.STARTED};r.prototype.WMa=function(){var a=this.request,w=a.responseText;if(0!==w.length)if(this.CF===w.length)clearInterval(this.yO),
|
|
5
5
|
this.trigger(r.Events.DONE);else return w=Math.min(this.CF+3E6,w.length),a=h.raa(a,this.CF,!0,w),this.CF=w,a};r.prototype.abort=function(){clearInterval(this.yO);var a=this;this.request.onreadystatechange=function(){Object(ma.i)("StreamingRequest aborted");a.status=x.a.ABORTED;return a.trigger(r.Events.ABORTED)};this.request.abort()};r.prototype.finish=function(){var a=this;this.request.onreadystatechange=function(){a.status=x.a.SUCCESS;return a.trigger(r.Events.DONE)};this.request.abort()};r.Events=
|
|
6
|
-
{DONE:"done",DATA:"data",ABORTED:"aborted"};return r}();Object(ya.a)(e);var b;(function(r){r[r.LOCAL_HEADER=0]="LOCAL_HEADER";r[r.FILE=1]="FILE";r[r.CENTRAL_DIR=2]="CENTRAL_DIR"})(b||(b={}));var f=function(r){function a(){var w=r.call(this)||this;w.buffer="";w.state=b.LOCAL_HEADER;w.F0=4;w.Gq=null;w.BA=ja.c;w.Qs={};return w}Object(la.c)(a,r);a.prototype.
|
|
6
|
+
{DONE:"done",DATA:"data",ABORTED:"aborted"};return r}();Object(ya.a)(e);var b;(function(r){r[r.LOCAL_HEADER=0]="LOCAL_HEADER";r[r.FILE=1]="FILE";r[r.CENTRAL_DIR=2]="CENTRAL_DIR"})(b||(b={}));var f=function(r){function a(){var w=r.call(this)||this;w.buffer="";w.state=b.LOCAL_HEADER;w.F0=4;w.Gq=null;w.BA=ja.c;w.Qs={};return w}Object(la.c)(a,r);a.prototype.IMa=function(w){var z;for(w=this.buffer+w;w.length>=this.BA;)switch(this.state){case b.LOCAL_HEADER:this.Gq=z=this.aNa(w.slice(0,this.BA));if(z.oB!==
|
|
7
7
|
ja.g)throw Error("Wrong signature in local header: ".concat(z.oB));w=w.slice(this.BA);this.state=b.FILE;this.BA=z.hT+z.Cw+z.UD+this.F0;this.trigger(a.Events.HEADER,[z]);break;case b.FILE:this.Gq.name=w.slice(0,this.Gq.Cw);this.Qs[this.Gq.name]=this.Gq;z=this.BA-this.F0;var aa=w.slice(this.Gq.Cw+this.Gq.UD,z);this.trigger(a.Events.FILE,[this.Gq.name,aa,this.Gq.JT]);w=w.slice(z);if(w.slice(0,this.F0)===ja.h)this.state=b.LOCAL_HEADER,this.BA=ja.c;else return this.state=b.CENTRAL_DIR,!0}this.buffer=w;
|
|
8
|
-
return!1};a.Events={HEADER:"header",FILE:"file"};return a}(ea.a);Object(ya.a)(f);ya=function(r){function a(w,z,aa,ca,ba){aa=r.call(this,w,aa,ca)||this;aa.url=w;aa.stream=new e(w,z);aa.Ze=new f;aa.Yea=window.createPromiseCapability();aa.Pfa={};aa.Sf=ba;return aa}Object(la.c)(a,r);a.prototype.LG=function(w){var z=this;this.request([this.cn,this.jp,this.bn]);this.stream.addEventListener(e.Events.DATA,function(aa){try{if(z.Ze.
|
|
9
|
-
w(ca),ca;}});this.stream.addEventListener(e.Events.DONE,function(aa){z.
|
|
10
|
-
w.forEach(function(aa){z.Pfa[aa]||z.
|
|
8
|
+
return!1};a.Events={HEADER:"header",FILE:"file"};return a}(ea.a);Object(ya.a)(f);ya=function(r){function a(w,z,aa,ca,ba){aa=r.call(this,w,aa,ca)||this;aa.url=w;aa.stream=new e(w,z);aa.Ze=new f;aa.Yea=window.createPromiseCapability();aa.Pfa={};aa.Sf=ba;return aa}Object(la.c)(a,r);a.prototype.LG=function(w){var z=this;this.request([this.cn,this.jp,this.bn]);this.stream.addEventListener(e.Events.DATA,function(aa){try{if(z.Ze.IMa(aa))return z.stream.finish()}catch(ca){throw z.stream.abort(),z.Jv(ca),
|
|
9
|
+
w(ca),ca;}});this.stream.addEventListener(e.Events.DONE,function(aa){z.bMa=!0;z.Yea.resolve();aa&&(z.Jv(aa),w(aa))});this.Ze.addEventListener(f.Events.HEADER,Object(na.bind)(this.Ofa,this));this.Ze.addEventListener(f.Events.FILE,Object(na.bind)(this.sNa,this));return this.stream.start(this.Sf,this.withCredentials)};a.prototype.jaa=function(w){var z=this;this.Yea.promise.then(function(){w(Object.keys(z.Ze.Qs))})};a.prototype.St=function(){return!0};a.prototype.request=function(w){var z=this;this.bMa&&
|
|
10
|
+
w.forEach(function(aa){z.Pfa[aa]||z.VUa(aa)})};a.prototype.Ofa=function(){};a.prototype.abort=function(){this.stream&&this.stream.abort()};a.prototype.VUa=function(w){this.trigger(ia.a.Events.PART_READY,[{Pb:w,error:"Requested part not found",Xl:!1,Ai:!1}])};a.prototype.sNa=function(w,z,aa){this.Pfa[w]=!0;this.trigger(ia.a.Events.PART_READY,[{Pb:w,data:z,Xl:!1,Ai:!1,error:null,He:aa}])};return a}(ia.a);Object(n.a)(ya);Object(n.b)(ya);va["default"]=ya}}]);}).call(this || window)
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{635:function(ya,va,n){function la(){return!1}function na(z,aa,ca){if(!(aa in w))return!0;aa=w[aa];for(var ba=0;ba<aa.length;ba++){var fa=z;var ha=aa[ba];var pa=ca;if(ha.name in fa){var oa="",ka=!1;fa=fa[ha.name];switch(ha.type){case "s":oa="String";ka=Object(ia.isString)(fa);break;case "a":oa="Array";ka=Object(ia.isArray)(fa);break;case "n":oa="Number";ka=Object(ia.isNumber)(fa)&&Object(ia.isFinite)(fa);break;case "o":oa="Object",
|
|
3
3
|
ka=Object(ia.isObject)(fa)&&!Object(ia.isArray)(fa)}ka||pa.reject('Expected response field "'.concat(ha.name,'" to have type ').concat(oa));ha=ka}else pa.reject('Response missing field "'.concat(ha.name,'"')),ha=!1;if(!ha)return!1}return!0}function ma(z){for(var aa=0,ca=["locale","excelMaxAllowedCellCount","applyPageBreaksToSheet","excelDefaultCellBorderWidth","displayChangeTracking"];aa<ca.length;aa++){var ba=ca[aa],fa=ba;ba=ba.charAt(0).toUpperCase()+ba.slice(1);z[fa]&&(Object.defineProperty(z,
|
|
4
4
|
ba,Object.getOwnPropertyDescriptor(z,fa)),delete z[fa])}return z}n.r(va);var ja=n(0),ia=n(1);n.n(ia);var ea=n(2);ya=n(53);var y=n(36),x=n(654),h=n(129),e=n(547),b=n(52),f=n(246),r=function(){function z(){this.request=this.result=null;this.state=0;var aa=this;aa.promise=new Promise(function(ca,ba){aa.resolve=function(){if(0===aa.state||4===aa.state)aa.state=1,aa.result=arguments[0],ca.apply(null,arguments)};aa.reject=function(){if(0===aa.state||4===aa.state)aa.state=2,ba.apply(null,arguments)}})}z.prototype.nA=
|
|
5
|
-
function(){return 1===(this.state&1)};z.prototype.
|
|
5
|
+
function(){return 1===(this.state&1)};z.prototype.dIa=function(){return 2===(this.state&2)};z.prototype.ym=function(){return!this.dIa()&&!this.nA()};z.prototype.sHa=function(){return 4===(this.state&4)};z.prototype.c0=function(){this.state|=4};return z}(),a=function(){function z(){this.$z={};this.Nc=[]}z.prototype.pop=function(){var aa=this.Nc.pop();this.$z[aa.key]=void 0;return aa};z.prototype.push=function(aa,ca){ca={key:aa,data:ca};this.Nc.push(ca);this.$z[aa]=ca.data};z.prototype.contains=function(aa){return!!this.$z[aa]};
|
|
6
6
|
z.prototype.get=function(aa){return this.$z[aa]};z.prototype.set=function(aa,ca){var ba=this;this.$z[aa]=ca;this.Nc.forEach(function(fa,ha){fa.key===aa&&(ba.Nc[ha]=fa)})};z.prototype.remove=function(aa){var ca=this;this.$z[aa]=void 0;this.Nc.forEach(function(ba,fa){ba.key===aa&&ca.Nc.splice(fa,1)})};z.prototype.length=function(){return this.Nc.length};return z}(),w={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",
|
|
7
7
|
type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],cAnnots:[{name:"annots",type:"a"}],annots:[{name:"url",type:"s"},{name:"name",type:"s"}],image:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],text:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],ApString2Xod:[{name:"url",type:"s"},{name:"rID",type:"s"}]};n=function(){function z(aa,ca,ba){var fa=this;this.G0=this.H8=!1;this.Sj=this.iQ=this.QB=this.wg=this.kD=this.Gt=this.jD=this.Br=
|
|
8
8
|
null;this.Pq=new r;this.ov=new r;this.MK=!1;this.Ph=this.Bg=this.Cg=this.Dh=null;this.ki=[];this.HL=[];this.cache={};this.timeStamp=0;this.Mj=[];this.Jm=[];this.ZU=null;this.t8=!1;this.oha=this.id=null;this.oY=this.tba=la;this.di=0;this.RW=!1;this.Kda=1;this.Em={};this.wy=0;this.YA=new a;ca.endsWith("/")||(ca+="/");ba=ba||{};this.H8=ba.disableWebsockets||!1;this.G0=ba.singleServerMode||!1;null!=ba.customQueryParameters&&Object(b.b)("wvsQueryParameters",ba.customQueryParameters);ca.endsWith("blackbox/")||
|
|
9
|
-
(ca+="blackbox/");this.Br=ba.uploadData||null;this.QB=ba.uriData||null;this.jD=ba.cacheKey||null;if(this.Gt=ba.officeOptions||null)this.Gt=ma(this.Gt);this.wg=ba.rasterizerOptions||null;this.kD=ba.cadOptions||null;this.Ug=ca;this.yU=aa;this.$t(!0);this.Ty=(new x.a(ca,null,this.Pk())).
|
|
10
|
-
"ck");fa.open("GET",ha);fa.withCredentials=aa.Pk();fa.onreadystatechange=function(){fa.readyState===XMLHttpRequest.DONE&&(200===fa.status?ca():ba())};fa.send()})};z.prototype.
|
|
11
|
-
case 1:return aa.aa(),[2]}})})};z.prototype.
|
|
12
|
-
null,this.NO(Object(ia.uniqueId)(),aa)));for(aa=0;aa<this.Jm.length;aa++)this.Jm[aa]&&this.Jm[aa].ym()&&!this.Jm[aa].
|
|
13
|
-
aa.Br.fileHandle.name),aa.Gt&&ca.append("officeOptions",JSON.stringify(aa.Gt)),aa.wg&&ca.append("rasterizerOptions",JSON.stringify(aa.wg)),aa.kD&&ca.append("cadOptions",aa.kD.getJsonString()),aa.jD&&ca.append("cacheKey",aa.jD),ba=aa.Br.loadCallback,ha="upload",fa=aa.Br.extension;else if(aa.QB)ca={uri:aa.QB.uri,
|
|
9
|
+
(ca+="blackbox/");this.Br=ba.uploadData||null;this.QB=ba.uriData||null;this.jD=ba.cacheKey||null;if(this.Gt=ba.officeOptions||null)this.Gt=ma(this.Gt);this.wg=ba.rasterizerOptions||null;this.kD=ba.cadOptions||null;this.Ug=ca;this.yU=aa;this.$t(!0);this.Ty=(new x.a(ca,null,this.Pk())).QAa(!this.H8,function(ha){fa.JKa(ha)},function(){return null},function(){fa.MK=!1},function(){fa.mPa()})}z.prototype.Awa=function(){var aa=this;return new Promise(function(ca,ba){var fa=new XMLHttpRequest,ha="".concat(aa.Ug,
|
|
10
|
+
"ck");fa.open("GET",ha);fa.withCredentials=aa.Pk();fa.onreadystatechange=function(){fa.readyState===XMLHttpRequest.DONE&&(200===fa.status?ca():ba())};fa.send()})};z.prototype.BRa=function(aa){this.tba=aa||la;this.oY=la};z.prototype.qua=function(){this.Cga();return this.Ty.Gv()};z.prototype.Cga=function(){Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return this.ov=new r,this.Pq=new r,this.MK=!1,this.id=null,this.t8=!1,[4,this.Awa().catch(function(){})];
|
|
11
|
+
case 1:return aa.aa(),[2]}})})};z.prototype.mPa=function(){this.tba();this.Cga();this.Dh&&(this.Dh.ym()?this.Xj(this.Dh.request):this.Dh.nA()&&this.oY(this.Dh.result.url,"pdf")&&(this.Dh=null,this.zga()));this.Ph&&this.Ph.ym()&&this.Xj(this.Ph.request);this.Cg&&this.Cg.ym()?this.Xj(this.Cg.request):this.Bg&&this.Bg.ym()&&this.Vaa();var aa;for(aa=0;aa<this.Mj.length;aa++)this.Mj[aa]&&(this.Mj[aa].ym()?this.Xj(this.Mj[aa].request):this.Mj[aa].nA()&&this.oY(this.Mj[aa].result.url,"image")&&(this.Mj[aa]=
|
|
12
|
+
null,this.NO(Object(ia.uniqueId)(),aa)));for(aa=0;aa<this.Jm.length;aa++)this.Jm[aa]&&this.Jm[aa].ym()&&!this.Jm[aa].sHa()&&this.Xj(this.Jm[aa].request);for(aa=0;aa<this.ki.length;aa++)this.ki[aa]&&this.ki[aa].ym()&&this.Xj(this.ki[aa].request)};z.prototype.wGa=function(){return this.MK?Promise.resolve():(this.MK=!0,this.timeStamp=Date.now(),this.Ty.bN())};z.prototype.QVa=function(){var aa=this,ca,ba,fa,ha,pa;return new Promise(function(oa,ka){if(aa.Br)ca=new FormData,ca.append("file",aa.Br.fileHandle,
|
|
13
|
+
aa.Br.fileHandle.name),aa.Gt&&ca.append("officeOptions",JSON.stringify(aa.Gt)),aa.wg&&ca.append("rasterizerOptions",JSON.stringify(aa.wg)),aa.kD&&ca.append("cadOptions",aa.kD.getJsonString()),aa.jD&&ca.append("cacheKey",aa.jD),ba=aa.Br.loadCallback,ha="upload",fa=aa.Br.extension;else if(aa.QB)ca={uri:aa.QB.uri,m0a:aa.QB.shareId},ca=Object.keys(ca).map(function(sa){return"".concat(sa,"=").concat(ca[sa]?encodeURIComponent(ca[sa]):"")}).join("&"),pa="application/x-www-form-urlencoded; charset=UTF-8",
|
|
14
14
|
ba=aa.QB.loadCallback,ha="url",fa=aa.QB.extension;else{oa();return}var ra=new XMLHttpRequest,qa=Object(y.l)(aa.Ug,"AuxUpload");qa=Object(f.a)(qa,{type:ha,ext:fa});ra.open("POST",qa);ra.withCredentials=aa.Pk();pa&&ra.setRequestHeader("Content-Type",pa);ra.addEventListener("load",function(){if(ra.readyState===ra.DONE&&200===ra.status){var sa=JSON.parse(ra.response);aa.yU=sa.uri;ba(sa);oa(sa)}});ra.addEventListener("error",function(){ka("".concat(ra.statusText," ").concat(JSON.stringify(ra)))});aa.Br&&
|
|
15
|
-
null!=aa.Br.onProgress&&(ra.upload.onprogress=function(sa){aa.Br.onProgress(sa)});ra.send(ca)})};z.prototype
|
|
16
|
-
(aa.cacheKey=this.jD);this.Gt&&(aa.officeOptions=this.Gt);this.wg&&(aa.rastOptions=this.wg);this.kD&&(aa.cadOptions=this.kD.mImpl);return aa};z.prototype.
|
|
17
|
-
function(aa){this.wy++;aa=this.vD(aa);this.Ty.send(aa)};z.prototype.Op=function(aa){return aa};z.prototype.sba=function(aa){this.G0&&aa?Object(ea.i)("Server failed health check. Single server mode ignoring check."):!this.
|
|
15
|
+
null!=aa.Br.onProgress&&(ra.upload.onprogress=function(sa){aa.Br.onProgress(sa)});ra.send(ca)})};z.prototype.ZOa=function(aa){this.password=aa||null;this.Pq.nA()||(this.Pq=new r,this.Xj({t:"pages"}));return this.Pq.promise};z.prototype.LG=function(aa){this.ZU=aa||null;this.Pq.nA()||this.Xj({t:"pages"});return this.Pq.promise};z.prototype.vD=function(aa){aa=Object.assign(aa,{uri:encodeURIComponent(this.yU)});this.ZU&&(aa.ext=this.ZU);this.Sj&&(aa.c=this.Sj);this.password&&(aa.pswd=this.password);this.jD&&
|
|
16
|
+
(aa.cacheKey=this.jD);this.Gt&&(aa.officeOptions=this.Gt);this.wg&&(aa.rastOptions=this.wg);this.kD&&(aa.cadOptions=this.kD.mImpl);return aa};z.prototype.eQa=function(){0<this.YA.length()&&10>=this.wy&&this.fQa(this.YA.pop().data)};z.prototype.zta=function(aa){0<this.YA.length()&&this.YA.contains(aa)&&this.YA.remove(aa)};z.prototype.Xj=function(aa){aa=this.vD(aa);this.Ty.send(aa)};z.prototype.jha=function(aa,ca){10<this.wy?this.YA.push(aa,ca):(this.wy++,aa=this.vD(ca),this.Ty.send(aa))};z.prototype.fQa=
|
|
17
|
+
function(aa){this.wy++;aa=this.vD(aa);this.Ty.send(aa)};z.prototype.Op=function(aa){return aa};z.prototype.sba=function(aa){this.G0&&aa?Object(ea.i)("Server failed health check. Single server mode ignoring check."):!this.tZa&&aa&&3>=this.di?(this.RW=!0,this.Ty.Gv()):3<this.di&&(this.G0=!0)};z.prototype.JKa=function(aa){var ca=this,ba=aa.data,fa=aa.err,ha=aa.t;switch(ha){case "upload":fa?this.RVa.reject(fa):this.RVa.resolve("Success");break;case "pages":fa?this.Pq.reject(fa):na(ba,ha,this.Pq)&&this.Pq.resolve(ba);
|
|
18
18
|
break;case "config":if(fa)this.ov.reject(fa);else if(na(ba,ha,this.ov)){this.sba(ba.unhealthy);ba.id&&(this.id=ba.id);if(ba.auth){var pa=Object(b.a)("wvsQueryParameters");pa.auth=ba.auth;Object(b.b)("wvsQueryParameters",pa)}ba.serverVersion&&(this.iQ=ba.serverVersion,Object(ea.g)("[WebViewer Server] server version: ".concat(this.iQ)));ba.serverID?(this.di=ba.serverID===this.oha&&this.RW?this.di+1:0,this.oha=ba.serverID):this.di=0;this.RW=!1;this.ov.resolve(ba)}break;case "health":fa?this.ov.reject(fa):
|
|
19
19
|
na(ba,ha,this.ov)&&this.sba(ba.unhealthy);break;case "pdf":ba.url=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Dh.reject(fa):na(ba,ha,this.Dh)&&this.Dh.resolve(ba);break;case "ApString2Xod":ba.url=Object(f.a)("".concat(this.Ug,"../data/").concat(encodeURI(ba.url)));fa?this.Em[ba.rID].reject(fa):na(ba,ha,this.Em[ba.rID])&&this.Em[ba.rID].resolve(ba);break;case "docmod":ba.url=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Em[ba.rID].reject(fa):na(ba,
|
|
20
20
|
ha,this.Dh)&&this.Em[ba.rID].resolve(ba);break;case "xod":if(fa)this.Cg&&this.Cg.ym()&&this.Cg.reject(fa),this.Bg&&this.Bg.ym()&&this.Bg.reject(fa);else if(ba.notFound)ba.noCreate||this.Cg&&this.Cg.ym()&&this.Cg.resolve(ba),this.Bg&&this.Bg.ym()&&this.Bg.resolve(ba);else{ba.url&&(ba.url=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url))));if(!this.Bg||this.Bg.nA())this.Bg=new r,this.Bg.request={t:"xod",noCreate:!0};this.Cg||(this.Cg=new r,this.Cg.request={t:"xod"});this.Bg.resolve(ba);
|
|
@@ -22,23 +22,23 @@ this.Cg.resolve(ba)}break;case "cAnnots":pa=this.Ph;if(fa)pa.reject(fa);else if(
|
|
|
22
22
|
function(){Qa.readyState===Qa.DONE&&200===Qa.status&&Ka({Fr:Qa.response,Dp:Ca,range:La})});Qa.addEventListener("error",function(){Ia("".concat(Qa.statusText," ").concat(JSON.stringify(Qa)))});Qa.send()})}};var ra=this;for(fa=0;fa<ka.length;fa++)ba(fa);pa.resolve(oa)}break;case "annots":if(fa)this.Ph.reject(fa);else if(na(ba,ha,this.Ph)){this.Ph.c0();var qa=new XMLHttpRequest;pa="".concat(this.Ug,"../").concat(encodeURI(ba.url));var sa=ba.hasAppearance?Object(f.a)("".concat(pa,".xodapp")):null;qa.open("GET",
|
|
23
23
|
Object(f.a)(pa));qa.responseType="text";qa.withCredentials=this.Pk();qa.addEventListener("load",function(){qa.readyState===qa.DONE&&200===qa.status&&ca.Ph.resolve({Fr:qa.response,Dp:sa})});qa.addEventListener("error",function(){ca.Ph.reject("".concat(qa.statusText," ").concat(JSON.stringify(qa)))});qa.send()}break;case "image":this.wy--;var ta=this.Mj[ba.p];fa?ta.promise.reject(fa):na(ba,ha,ta)&&(ta.result=ba,ta.result.url=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ta.result.url))),ta.resolve(ta.result));
|
|
24
24
|
break;case "tiles":this.wy--;ta=ba.rID;pa=this.ki[ta];this.ki[ta]=null;this.HL.push(ta);if(fa)pa.reject(fa);else if(na(ba,ha,pa)){for(fa=0;fa<ba.tiles.length;fa++)ba.tiles[fa]=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ba.tiles[fa])));pa.resolve(ba)}break;case "text":ta=this.Jm[ba.p];if(fa)ta.reject(fa);else if(na(ba,ha,ta)){ta.c0();var wa=new XMLHttpRequest;ba=Object(f.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));wa.open("GET",ba);wa.withCredentials=this.Pk();wa.addEventListener("load",
|
|
25
|
-
function(){wa.readyState===wa.DONE&&200===wa.status&&(ta.result=JSON.parse(wa.response),ta.resolve(ta.result))});wa.addEventListener("error",function(za){ta.reject("".concat(wa.statusText," ").concat(JSON.stringify(za)))});wa.send()}break;case "progress":"loading"===ba.t&&this.trigger(h.a.Events.DOCUMENT_LOADING_PROGRESS,[ba.bytes,ba.total])}this.
|
|
26
|
-
z.prototype.
|
|
27
|
-
reqID:this.Kda++,parts:pa};var ra=this.vD(aa);ha.append("msg",JSON.stringify(ra));this.Em[ra.reqID]=new r;ba.open("POST",fa);ba.withCredentials=this.Pk;fa=new Promise(function(qa,sa){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?qa():sa("An error occurred while sending down appearance strings to the server"))}});ba.send(ha);return fa.then(function(){return ca.Em[ra.reqID].promise})};z.prototype.
|
|
28
|
-
if(3!==ca.length)throw Error("Invalid version length.");for(var ba=0;ba<aa.length;++ba){if(ca.length===ba||aa[ba]>ca[ba])return-1;if(aa[ba]!==ca[ba])return 1}return 0};z.prototype.lv=function(){return 0>=this.
|
|
29
|
-
return this.Mj[ca].promise};z.prototype
|
|
25
|
+
function(){wa.readyState===wa.DONE&&200===wa.status&&(ta.result=JSON.parse(wa.response),ta.resolve(ta.result))});wa.addEventListener("error",function(za){ta.reject("".concat(wa.statusText," ").concat(JSON.stringify(za)))});wa.send()}break;case "progress":"loading"===ba.t&&this.trigger(h.a.Events.DOCUMENT_LOADING_PROGRESS,[ba.bytes,ba.total])}this.eQa();!ha&&aa.echo&&aa&&"apstring2xod"===aa.echo.t&&(aa=aa.echo.reqID)&&(2<=parseInt(this.iQ,10)?this.Em[aa].reject("Message unhandled by server"):this.Em[aa].reject())};
|
|
26
|
+
z.prototype.EBa=function(){return Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return[4,this.wGa()];case 1:return aa.aa(),[2,this.ov.promise]}})})};z.prototype.eBa=function(aa){for(var ca=this,ba=new XMLHttpRequest,fa=Object(f.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={},oa=0;oa<aa.body.length;oa++){var ka=aa.body[oa];pa[ka.id]="".concat(ka.MS.w,";").concat(ka.MS.h);ha.append(ka.id,ka.MS.dataString)}aa={t:"apstring2xod",
|
|
27
|
+
reqID:this.Kda++,parts:pa};var ra=this.vD(aa);ha.append("msg",JSON.stringify(ra));this.Em[ra.reqID]=new r;ba.open("POST",fa);ba.withCredentials=this.Pk;fa=new Promise(function(qa,sa){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?qa():sa("An error occurred while sending down appearance strings to the server"))}});ba.send(ha);return fa.then(function(){return ca.Em[ra.reqID].promise})};z.prototype.vua=function(){var aa=this.iQ.split("-")[0].split("."),ca=["1","5","9"];if(3!==aa.length)throw Error("Invalid WVS version length.");
|
|
28
|
+
if(3!==ca.length)throw Error("Invalid version length.");for(var ba=0;ba<aa.length;++ba){if(ca.length===ba||aa[ba]>ca[ba])return-1;if(aa[ba]!==ca[ba])return 1}return 0};z.prototype.lv=function(){return 0>=this.vua()};z.prototype.pV=function(){this.Ph||(this.Ph=new r,this.lv()?this.Ph.request={t:"cAnnots"}:this.Ph.request={t:"annots"},this.Xj(this.Ph.request));return this.Ph.promise};z.prototype.NO=function(aa,ca){this.Mj[ca]||(this.Mj[ca]=new r,this.Mj[ca].request={t:"image",p:ca},this.jha(aa,this.Mj[ca].request));
|
|
29
|
+
return this.Mj[ca].promise};z.prototype.$Oa=function(aa){this.Jm[aa]||(this.Jm[aa]=new r,this.Jm[aa].request={t:"text",p:aa},this.Xj(this.Jm[aa].request));return this.Jm[aa].promise};z.prototype.aPa=function(aa,ca,ba,fa,ha){var pa=this.ki.length;this.HL.length&&(pa=this.HL.pop());this.ki[pa]=new r;this.ki[pa].request={t:"tiles",p:ca,z:ba,r:fa,size:ha,rID:pa};this.jha(aa,this.ki[pa].request);return this.ki[pa].promise};z.prototype.zga=function(){this.Dh||(this.Dh=new r,this.Dh.request={t:"pdf"},this.t8?
|
|
30
30
|
this.Dh.resolve({url:this.yU}):this.Xj(this.Dh.request));return this.Dh.promise};z.prototype.W$=function(aa){var ca=this,ba=new XMLHttpRequest,fa=Object(f.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={};aa.annots&&(pa.annots="xfdf");aa.watermark&&(pa.watermark="png");aa.redactions&&(pa.redactions="redact");pa={t:"docmod",reqID:this.Kda++,parts:pa};aa.print&&(pa.print=!0);var oa=this.vD(pa);ha.append("msg",JSON.stringify(oa));return Promise.all([aa.annots,aa.watermark,aa.redactions].map(function(ka){return Promise.resolve(ka)})).then(function(ka){var ra=
|
|
31
31
|
ka[0],qa=ka[1];ka=ka[2];ra&&ha.append("annots",ra);qa&&ha.append("watermark",qa);ka&&ha.append("redactions",ka);ca.Em[oa.reqID]=new r;ba.open("POST",fa);ba.withCredentials=ca.Pk;ra=new Promise(function(sa,ta){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?sa():ta("An error occurred while sending down annotation data to the server"))}});ba.send(ha);return ra.then(function(){return ca.Em[oa.reqID].promise})})};z.prototype.Vaa=function(){this.Bg||(this.Bg=new r,this.Bg.request=
|
|
32
|
-
{t:"xod",noCreate:!0},this.Xj(this.Bg.request));return this.Bg.promise};z.prototype.
|
|
32
|
+
{t:"xod",noCreate:!0},this.Xj(this.Bg.request));return this.Bg.promise};z.prototype.bPa=function(){this.Cg||(this.Cg=new r,this.Cg.request={t:"xod"},this.Xj(this.Cg.request));return this.Cg.promise};z.prototype.St=function(){return!0};z.prototype.request=function(){};z.prototype.Ofa=function(){};z.prototype.abort=function(){for(var aa=0;aa<this.ki.length;aa++)this.ki[aa]&&(this.ki[aa].resolve(null),this.ki[aa]=null,this.HL.push(aa));this.close()};z.prototype.gP=function(aa){this.Sj=this.Sj||{};this.Sj.headers=
|
|
33
33
|
aa};z.prototype.$t=function(aa){this.Sj=this.Sj||{};this.Sj.internal=this.Sj.internal||{};this.Sj.internal.withCredentials=aa};z.prototype.Pk=function(){return this.Sj&&this.Sj.internal?this.Sj.internal.withCredentials:null};z.prototype.getFileData=function(){return Promise.reject()};return z}();Object(ya.a)(n);Object(e.a)(n);Object(e.b)(n);va["default"]=n},654:function(ya,va,n){var la=n(0),na=n(2),ma=n(36),ja=n(52),ia=n(246),ea=n(109),y=function(){function h(e,b,f,r,a,w){void 0===f&&(f=null);void 0===
|
|
34
|
-
r&&(r=null);void 0===a&&(a=null);void 0===w&&(w=null);this.UW=!1;this.di=0;this.IF=8;this.Pga=3E3;this.DP=!1;this.K6=this.
|
|
35
|
-
h.prototype.bN=function(){return Object(la.b)(this,void 0,void 0,function(){var e,b=this;return Object(la.d)(this,function(){e=Object(ja.a)("wvsQueryParameters");e.bcid=Object(ma.m)(8);Object(ja.b)("wvsQueryParameters",e);return[2,new Promise(function(f,r){var a=Object(ia.a)(b.url);b.DP=!1;b.ou=new WebSocket(a);b.ou.onopen=function(){b.UW=!1;b.di=0;b.bG&&b.bG();f()};b.ou.onerror=function(){b.UW=!0};b.ou.onclose=function(w){w=w.code;b.tD&&b.tD();1E3!==w&&3E3!==w&&b.
|
|
36
|
-
w.data&&(w=JSON.parse(w.data),w.hb?b.send({hb:!0}):w.end?close():b.gU(w))}})]})})};h.prototype.
|
|
37
|
-
h.prototype.Gv=function(){var e;void 0===e&&(e=!1);this.di=0;this.DP=!0;e?this.ou.close(3E3):this.ou.close();return Promise.resolve()};return h}(),x=function(){function h(e,b,f,r,a,w,z){void 0===r&&(r=null);void 0===a&&(a=null);void 0===w&&(w=null);void 0===z&&(z=null);this.di=this.MO=this.id=0;this.VE=!1;this.request=null;this.IF=8;this.Pga=3E3;e=this.
|
|
38
|
-
e.lastIndexOf("/");0>b&&(b=e.length);return e.slice(0,b)};h.prototype
|
|
39
|
-
e.bN();f()},3E3)})]:[3,2];case 1:b.aa(),b.label=2;case 2:return[2]}})})};h.prototype.
|
|
40
|
-
[3,5];case 4:b.hb&&Number(b.id)===this.id?this.send({hb:!0}):this.VE||this.gU(b),r.label=5;case 5:return++f,[3,1];case 6:return[2]}})})};h.prototype.
|
|
41
|
-
0),this.
|
|
42
|
-
e.request=new XMLHttpRequest;e.request.withCredentials=e.bQ;var a=Object(ia.a)(e.url,0!==e.id?{id:String(e.id),uc:String(e.MO)}:{uc:String(e.MO)});e.MO++;e.request.open("GET",a,!0);e.request.setRequestHeader("Cache-Control","no-cache");e.request.setRequestHeader("X-Requested-With","XMLHttpRequest");e.request.onreadystatechange=function(){e.
|
|
34
|
+
r&&(r=null);void 0===a&&(a=null);void 0===w&&(w=null);this.UW=!1;this.di=0;this.IF=8;this.Pga=3E3;this.DP=!1;this.K6=this.sWa(e);this.url=b?"".concat(this.K6,"/").concat(b):"".concat(this.K6,"/ws");this.gU=f;this.bG=r;this.tD=a;this.Aga=w}h.prototype.sWa=function(e){var b=e.indexOf("://"),f="ws://";0>b?b=0:(5===b&&(f="wss://"),b+=3);var r=e.lastIndexOf("/");0>r&&(r=e.length);return f+e.slice(b,r)};h.prototype.send=function(e){this.ou.readyState===WebSocket.CLOSED||this.UW||this.ou.send(JSON.stringify(e))};
|
|
35
|
+
h.prototype.bN=function(){return Object(la.b)(this,void 0,void 0,function(){var e,b=this;return Object(la.d)(this,function(){e=Object(ja.a)("wvsQueryParameters");e.bcid=Object(ma.m)(8);Object(ja.b)("wvsQueryParameters",e);return[2,new Promise(function(f,r){var a=Object(ia.a)(b.url);b.DP=!1;b.ou=new WebSocket(a);b.ou.onopen=function(){b.UW=!1;b.di=0;b.bG&&b.bG();f()};b.ou.onerror=function(){b.UW=!0};b.ou.onclose=function(w){w=w.code;b.tD&&b.tD();1E3!==w&&3E3!==w&&b.GFa(w,f,r)};b.ou.onmessage=function(w){w&&
|
|
36
|
+
w.data&&(w=JSON.parse(w.data),w.hb?b.send({hb:!0}):w.end?close():b.gU(w))}})]})})};h.prototype.GFa=function(e,b,f){Object(la.b)(this,void 0,void 0,function(){var r=this;return Object(la.d)(this,function(){if(this.DP)return b(),[2];this.di<this.IF?setTimeout(function(){r.DP?b():(r.di++,Object(na.i)("Failed to connect to server with WebSocket close code ".concat(e,". Reconnecting to WebViewer Server, attempt ").concat(r.di," of ").concat(r.IF," ...")),r.bN().then(b).catch(f))},this.Pga):f(ea.a);return[2]})})};
|
|
37
|
+
h.prototype.Gv=function(){var e;void 0===e&&(e=!1);this.di=0;this.DP=!0;e?this.ou.close(3E3):this.ou.close();return Promise.resolve()};return h}(),x=function(){function h(e,b,f,r,a,w,z){void 0===r&&(r=null);void 0===a&&(a=null);void 0===w&&(w=null);void 0===z&&(z=null);this.di=this.MO=this.id=0;this.VE=!1;this.request=null;this.IF=8;this.Pga=3E3;e=this.GMa(e);this.url=b?"".concat(e,"/").concat(b,"pf"):"".concat(e,"/pf");this.bQ=f;this.gU=r;this.bG=a;this.tD=w;this.Aga=z}h.prototype.GMa=function(e){var b=
|
|
38
|
+
e.lastIndexOf("/");0>b&&(b=e.length);return e.slice(0,b)};h.prototype.Zva=function(e){e=e.split("\n");for(e[e.length-1]&&e.pop();0<e.length&&3>e[e.length-1].length;)"]"===e.pop()&&(this.id=0);0<e.length&&3>e[0].length&&e.shift();for(var b=0;b<e.length;++b)e[b].endsWith(",")&&(e[b]=e[b].substr(0,e[b].length-1));return e};h.prototype.Oga=function(){return Object(la.b)(this,void 0,void 0,function(){var e=this;return Object(la.d)(this,function(b){switch(b.label){case 0:return this.di++<this.IF?[4,new Promise(function(f){return setTimeout(function(){e.Aga();
|
|
39
|
+
e.bN();f()},3E3)})]:[3,2];case 1:b.aa(),b.label=2;case 2:return[2]}})})};h.prototype.LMa=function(e){Object(la.b)(this,void 0,void 0,function(){var b,f;return Object(la.d)(this,function(r){switch(r.label){case 0:b=null,f=0,r.label=1;case 1:if(!(f<e.length))return[3,6];b=JSON.parse(e[f]);if(!b)return[3,5];if(!b.end)return[3,2];close();return[3,5];case 2:if(!b.id||Number(b.id)===this.id)return[3,4];Object(na.i)("Reconnecting, new server detected");this.Gv();return[4,this.Oga()];case 3:return r.aa(),
|
|
40
|
+
[3,5];case 4:b.hb&&Number(b.id)===this.id?this.send({hb:!0}):this.VE||this.gU(b),r.label=5;case 5:return++f,[3,1];case 6:return[2]}})})};h.prototype.EKa=function(e){Object(la.b)(this,void 0,void 0,function(){var b,f,r;return Object(la.d)(this,function(a){switch(a.label){case 0:if(!(3<=e.readyState))return[3,2];try{b=e.responseText.length}catch(w){return Object(na.g)("caught exception"),[2]}if(0<b)try{f=this.Zva(e.responseText),0===this.id&&0<f.length&&(r=JSON.parse(f.shift()),this.id=r.id,this.di=
|
|
41
|
+
0),this.LMa(f)}catch(w){}return this.VE?[3,2]:[4,this.A9()];case 1:a.aa(),a.label=2;case 2:return[2]}})})};h.prototype.A9=function(){return Object(la.b)(this,void 0,void 0,function(){var e=this;return Object(la.d)(this,function(){return[2,new Promise(function(b,f){function r(){return Object(la.b)(e,void 0,void 0,function(){return Object(la.d)(this,function(w){switch(w.label){case 0:f(),this.Gv(),w.label=1;case 1:return this.VE&&this.di<this.IF?[4,this.Oga()]:[3,3];case 2:return w.aa(),[3,1];case 3:return[2]}})})}
|
|
42
|
+
e.request=new XMLHttpRequest;e.request.withCredentials=e.bQ;var a=Object(ia.a)(e.url,0!==e.id?{id:String(e.id),uc:String(e.MO)}:{uc:String(e.MO)});e.MO++;e.request.open("GET",a,!0);e.request.setRequestHeader("Cache-Control","no-cache");e.request.setRequestHeader("X-Requested-With","XMLHttpRequest");e.request.onreadystatechange=function(){e.EKa(e.request)};e.request.addEventListener("error",r);e.request.addEventListener("timeout",r);e.request.addEventListener("load",function(){e.bG&&e.bG();b()});e.request.send()})]})})};
|
|
43
43
|
h.prototype.bN=function(){var e=Object(ja.a)("wvsQueryParameters");e.bcid=Object(ma.m)(8);Object(ja.b)("wvsQueryParameters",e);this.MO=this.id=0;this.VE=!1;return this.A9()};h.prototype.send=function(e){var b=this,f=new XMLHttpRequest;f.withCredentials=this.bQ;var r=Object(ia.a)(this.url,{id:String(this.id)}),a=new FormData;a.append("data",JSON.stringify(e));f.addEventListener("error",function(){b.Gv()});f.open("POST",r);f.setRequestHeader("X-Requested-With","XMLHttpRequest");f.send(a)};h.prototype.Gv=
|
|
44
|
-
function(){this.id=0;this.VE=!0;this.tD&&this.tD();this.request.abort();return Promise.resolve()};return h}();ya=function(){function h(e,b,f){this.F7=e;this.target=b;this.bQ=f}h.prototype.
|
|
44
|
+
function(){this.id=0;this.VE=!0;this.tD&&this.tD();this.request.abort();return Promise.resolve()};return h}();ya=function(){function h(e,b,f){this.F7=e;this.target=b;this.bQ=f}h.prototype.QAa=function(e,b,f,r,a){void 0===e&&(e=!0);void 0===b&&(b=null);void 0===f&&(f=null);void 0===r&&(r=null);void 0===a&&(a=null);return e?new y(this.F7,this.target,b,f,r,a):new x(this.F7,this.target,this.bQ,b,f,r,a)};return h}();va.a=ya}}]);}).call(this || window)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{634:function(ya,va,n){n.r(va);var la=n(0),na=n(366);ya=n(624);var ma=n(129);n=n(547);var ja={},ia=function(ea){function y(x,h){var e=ea.call(this,x,h)||this;e.url=x;e.range=h;e.status=na.a.NOT_STARTED;return e}Object(la.c)(y,ea);y.prototype.start=function(x){var h=this;"undefined"===typeof ja[this.range.start]&&(ja[this.range.start]={O0:function(e){var b=atob(e),f,r=b.length;e=new Uint8Array(r);for(f=0;f<r;++f)e[f]=b.charCodeAt(f);
|
|
3
|
-
b=e.length;f="";for(var a=0;a<b;)r=e.subarray(a,a+1024),a+=1024,f+=String.fromCharCode.apply(null,r);h.O0(f,x)},
|
|
3
|
+
b=e.length;f="";for(var a=0;a<b;)r=e.subarray(a,a+1024),a+=1024,f+=String.fromCharCode.apply(null,r);h.O0(f,x)},HZa:function(){h.status=na.a.ERROR;x({code:h.status})}},window.external.notify(this.url),this.status=na.a.STARTED);h.nM()};return y}(ya.ByteRangeRequest);ya=function(ea){function y(x,h,e,b){x=ea.call(this,x,e,b)||this;x.AG=ia;return x}Object(la.c)(y,ea);y.prototype.zD=function(x,h){return"".concat(x,"?").concat(h.start,"&").concat(h.stop?h.stop:"")};return y}(ma.a);Object(n.a)(ya);Object(n.b)(ya);
|
|
4
4
|
va["default"]=ya}}]);}).call(this || window)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|