@pdftron/webviewer 11.6.0-20250524 → 11.6.0-20250525
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
CHANGED
|
@@ -2427,7 +2427,7 @@ callbackId:ia,error:ja})};ma.prototype.jW=function(){if(void 0 in this.vk)return
|
|
|
2427
2427
|
ma.prototype.postMessage=function(ja){"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&Object(la.g)("PDFWorker","".concat(performance.now()," Sent ").concat(JSON.stringify(ja)));if(this.Lo){var ia=this.SEa(ja);this.Mp.postMessage(ja,ia)}else this.Mp.postMessage(ja)};ma.prototype.aaa=function(ja,ia){var ea=this;null!==ja&&"object"===typeof ja&&(ja instanceof Uint8Array?ia.push(ja.buffer):ja instanceof ArrayBuffer?ia.push(ja):Object.keys(ja).forEach(function(y){ja.hasOwnProperty(y)&&ea.aaa(ja[y],
|
|
2428
2428
|
ia)}))};ma.prototype.SEa=function(ja){var ia=[];this.aaa(ja,ia);return 0===ia.length?void 0:ia};ma.prototype.gw=function(ja){var ia=this,ea=ja.data;"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&Object(la.g)("PDFWorker","".concat(performance.now()," Received ").concat(JSON.stringify(ea)));var y=this.Ap,x=this.kra;ja=this.vk;var h=this.pdfnetActiveCommands;if(ea.isReply)y=ea.callbackId,y in ja?(x=ja[y],delete ja[y],h.has(y)&&h.delete(y),"error"in ea?x.reject(ea.error):x.resolve(ea.data)):
|
|
2429
2429
|
Object(la.b)("Cannot resolve callback ".concat(y));else if(ea.action in y){var e=y[ea.action];ea.callbackId?Promise.resolve().then(function(){return e[0].call(e[1],ea.data)}).then(function(b){ia.postMessage({isReply:!0,callbackId:ea.callbackId,data:b})},function(b){ia.cP(b,ea.callbackId)}):e[0].call(e[1],ea.data)}else ea.action in x?(e=x[ea.action],ea.callbackId?e[0].call(e[1],ea).then(function(b){ia.postMessage({isReply:!0,callbackId:ea.callbackId,data:b});ia.NN()},function(b){ia.cP(b,ea.callbackId);
|
|
2430
|
-
ia.NN()}):e[0].call(e[1],ea).then(function(){ia.NN()},function(){ia.NN()})):Object(la.f)("Unknown action from worker: ".concat(ea.action))};return ma}();va.a=ya},function(ya,va,n){function la(){return"
|
|
2430
|
+
ia.NN()}):e[0].call(e[1],ea).then(function(){ia.NN()},function(){ia.NN()})):Object(la.f)("Unknown action from worker: ".concat(ea.action))};return ma}();va.a=ya},function(ya,va,n){function la(){return"NS8yNS8yMDI1fDhhNGVhNmExMQ=="}function na(){return"11.6.0"}n.d(va,"b",function(){return na});n.d(va,"a",function(){return la})},function(ya,va){va.a=function(){return function(n,la,na,ma,ja,ia){this.vR=n;this.hJ=la;this.gJ=na;this.cR=ma;this.LJ=ja;this.KJ=ia;this.vR=n;this.hJ=la||0;this.gJ=na||0;this.cR=
|
|
2431
2431
|
ma;this.LJ=ja||0;this.KJ=ia||0}}()},function(ya,va,n){n.d(va,"a",function(){return la});var la=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");va.b=function(){return function(na,ma){this.rca=ma&&("r"===ma||"w"===ma);this.text=(ma&&"w"===ma?na.replace(/(\*+|.|\n)/g,function(ja){if("*"===ja.charAt(0)){if(1===ja.length)return".*?";var ia=ja.length/2|0;return 1===((ja.length|0)&1)?"".concat("*".repeat(ia).replace(la,"\\$&"),".*?"):"*".repeat(ia).replace(la,"\\$&")}return ja.replace(la,"\\$&")}):na).replaceAll("\n",
|
|
2432
2432
|
" ")}}()},function(ya,va,n){var la=n(0),na=n(16),ma=n(42),ja=n(315);ya=n(53);n=function(){function ia(ea,y,x,h,e){void 0===x&&(x=!1);this.id=ea;this.Spa=y;this.Tpa=x;this.transport=h;this.Hs=e;this.isValid=!1;this.listeners=[];this.NB=window.createPromiseCapability()}ia.create=function(ea,y){return Object(la.b)(this,arguments,Promise,function(x,h,e,b){var f,r;void 0===e&&(e=!1);void 0===b&&(b=!1);return Object(la.d)(this,function(a){switch(a.label){case 0:return[4,x.Fs()];case 1:f=a.aa();if("id"in
|
|
2433
2433
|
f)return r=new ia(f.id,e,b,x,h),r.GM(f),[2,r];throw Error("Cursor ID not found");}})})};ia.prototype.GM=function(ea){if("cmd"in ea)switch(ea.cmd){case "invalidateCursor":this.Mba();break;case "resolveCursor":if("page"in ea&&"stream"in ea&&"paragraph"in ea&&"offset"in ea&&"style"in ea&&"listType"in ea){var y=ea.stream;y=new ma.b(y===na.b.BODY?ea.page:this.Hs.AF,y,ea.paragraph,ea.offset);var x=na.e.$b(ea.style);this.resolve(y,x,ea.listType)}else throw Error("Invalid cursor resolve reply");}else throw Error("Invalid command");
|