removed WebViewer code commit

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2022-03-31 23:44:18 +05:30
parent f332dd00ae
commit 100f05a79c
421 changed files with 0 additions and 274047 deletions

View File

@ -1,8 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{400:function(ia,da,e){e.r(da);var ba=e(1),ea=e(12),aa=e(2);ia=e(48);var ha=e(29),ca=e(10);e=function(){function e(){this.init()}e.prototype.init=function(){this.w2=!1;this.df=this.uk=this.connection=null;this.Mq={};this.fa=this.lD=null};e.prototype.oha=function(e){for(var w=this,r=0;r<e.length;++r){var n=e[r];switch(n.at){case "create":this.Mq[n.author]||(this.Mq[n.author]=n.aName);this.P9(n);break;case "modify":this.fa.Uk(n.xfdf).then(function(e){w.fa.Gb(e[0])});
break;case "delete":this.fa.Uk("<delete><id>"+n.aId+"</id></delete>")}}};e.prototype.P9=function(e){var w=this;this.fa.Uk(e.xfdf).then(function(r){r=r[0];r.authorId=e.author;w.fa.Gb(r);w.fa.trigger(ea.a.UPDATE_ANNOTATION_PERMISSION,[r])})};e.prototype.o9=function(e,y,r){this.uk&&this.uk(e,y,r)};e.prototype.preloadAnnotations=function(e){this.addEventListener("webViewerServerAnnotationsEnabled",this.o9.bind(this,e,"add",{imported:!1}),{once:!0})};e.prototype.initiateCollaboration=function(w,y,r){var n=
this;if(w){n.df=y;n.fa=r.ta();r.addEventListener(ea.c.DOCUMENT_UNLOADED,function(){n.disableCollaboration()});n.Oha(w);var h=new XMLHttpRequest;h.addEventListener("load",function(){if(200===h.status&&0<h.responseText.length)try{var f=JSON.parse(h.responseText);n.connection=exports.Ya.oia(Object(ha.j)(n.df,"blackbox/"),"annot");n.lD=f.id;n.Mq[f.id]=f.user_name;n.fa.bK(f.id);n.connection.IK(function(e){e.t&&e.t.startsWith("a_")&&e.data&&n.oha(e.data)},function(){n.connection.send({t:"a_retrieve",dId:w});
n.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[n.Mq[f.id],n.lD])},function(){n.disableCollaboration()})}catch(x){Object(aa.f)(x.message)}});h.open("GET",Object(ha.j)(this.df,"demo/SessionInfo.jsp"));h.withCredentials=!0;h.send();n.w2=!0;n.fa.wV(function(e){return n.Mq[e.Author]||e.Author})}else Object(aa.f)("Document ID required for collaboration")};e.prototype.disableCollaboration=function(){this.uk&&(this.fa.removeEventListener(ca.a.Events.ANNOTATION_CHANGED,this.uk),this.uk=null);this.connection&&
this.connection.lG();this.fa&&this.fa.bK("Guest");this.init();this.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};e.prototype.Oha=function(e){var w=this;this.uk&&this.fa.removeEventListener(ca.a.Events.ANNOTATION_CHANGED,this.uk);this.uk=function(r,n,h){return Object(ba.b)(this,void 0,void 0,function(){var f,x,y,z,aa,ca,da,ea,ha;return Object(ba.d)(this,function(ba){switch(ba.label){case 0:if(h.imported)return[2];f={t:"a_"+n,dId:e,annots:[]};return[4,w.fa.qG()];case 1:x=ba.da();"delete"!==
n&&(y=(new DOMParser).parseFromString(x,"text/xml"),z=new XMLSerializer);for(aa=0;aa<r.length;aa++)ca=r[aa],ea=da=void 0,"add"===n?(da=y.querySelector('[name="'+ca.Id+'"]'),ea=z.serializeToString(da),ha=null,ca.InReplyTo&&(ha=w.fa.Mf(ca.InReplyTo).authorId||"default"),f.annots.push({at:"create",aId:ca.Id,author:w.lD,aName:w.Mq[w.lD],parent:ha,xfdf:"<add>"+ea+"</add>"})):"modify"===n?(da=y.querySelector('[name="'+ca.Id+'"]'),ea=z.serializeToString(da),f.annots.push({at:"modify",aId:ca.Id,xfdf:"<modify>"+
ea+"</modify>"})):"delete"===n&&f.annots.push({at:"delete",aId:ca.Id});0<f.annots.length&&w.connection.send(f);return[2]}})})}.bind(w);this.fa.addEventListener(ca.a.Events.ANNOTATION_CHANGED,this.uk)};e.Events={WEBVIEWER_SERVER_ANNOTATIONS_ENABLED:"webViewerServerAnnotationsEnabled",WEBVIEWER_SERVER_ANNOTATIONS_DISABLED:"webViewerServerAnnotationsDisabled"};return e}();Object(ia.a)(e);da["default"]=e}}]);}).call(this || window)

View File

@ -1,3 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[3],{387:function(ia,da,e){e.r(da);var ba=e(1),ea=e(232);ia=e(383);e=e(351);var aa=window,ha=function(e){function z(w,y){var r=e.call(this,w,y)||this;r.url=w;r.range=y;r.request=new XMLHttpRequest;r.request.open("GET",r.url,!0);aa.Uint8Array&&(r.request.responseType="arraybuffer");r.request.setRequestHeader("X-Requested-With","XMLHttpRequest");r.status=ea.a.NOT_STARTED;return r}Object(ba.c)(z,e);return z}(ia.ByteRangeRequest);ia=
function(e){function z(w,y,r,n){w=e.call(this,w,y,r,n)||this;w.pw=ha;return w}Object(ba.c)(z,e);z.prototype.zu=function(e,y){return e+"/bytes="+y.start+","+(y.stop?y.stop:"")};return z}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,2 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[4],{388:function(ia,da,e){e.r(da);ia=e(48);e=e(351);var ba=function(){function e(e){this.buffer=e;this.fileSize=null===e||void 0===e?void 0:e.byteLength}e.prototype.getFileData=function(e){e(new Uint8Array(this.buffer))};e.prototype.getFile=function(){return Promise.resolve(null)};return e}();Object(ia.a)(ba);Object(e.a)(ba);Object(e.b)(ba);da["default"]=ba}}]);}).call(this || window)

View File

@ -1,3 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[5],{389:function(ia,da,e){e.r(da);var ba=e(1),ea=e(138);ia=e(383);e=e(351);ia=function(e){function aa(aa,z,w,y){return e.call(this,aa,z,w,y)||this}Object(ba.c)(aa,e);aa.prototype.OQ=function(){return{start:this.eQ-ea.a,stop:this.eQ}};aa.prototype.Vr=function(aa){var z=this;this.Um(this.url,{start:0,stop:1},function(w,y,r){if(w)return aa(w);w=r.request.getResponseHeader("Content-Range");z.eQ=w.split("/")[1];e.prototype.Vr.call(z,
aa)})};return aa}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,3 +0,0 @@
(function(){(function(e){function c(a){if(d[a])return d[a].exports;var b=d[a]={i:a,l:!1,exports:{}};e[a].call(b.exports,b,b.exports,c);b.l=!0;return b.exports}var d={};c.m=e;c.c=d;c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:d})};c.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};c.t=function(a,b){b&1&&(a=c(a));if(b&8||b&4&&"object"===typeof a&&a&&a.__esModule)return a;
var d=Object.create(null);c.r(d);Object.defineProperty(d,"default",{enumerable:!0,value:a});if(b&2&&"string"!=typeof a)for(var e in a)c.d(d,e,function(b){return a[b]}.bind(null,e));return d};c.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};c.p="/core/";return c(c.s=0)})([function(e,c,d){e.exports=d(1)},function(e,c,d){self.onmessage=function(a){if("init"===a.data.action){var b=
a.data.path;b&&(self.workerBasePath=b,self.pdfWorkerPath="".concat(b,"pdf/"),self.officeWorkerPath="".concat(b,"office/"),self.legacyOfficeWorkerPath="".concat(b,"legacyOffice/"));importScripts(a.data.file);self.onmessage(a)}}}]);}).call(this || window)

View File

@ -1,24 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[6],{159:function(ia,da,e){function ba(e,h,n,r){return Object(la.b)(void 0,void 0,void 0,function(){var w,x,y,z;return Object(la.d)(this,function(aa){switch(aa.label){case 0:return w=za.getDocument(),x=[1],[4,Object(ra.c)(h,{extension:"pdf"})];case 1:return y=aa.da(),z=!0,[4,w.Bg(y,x,e,z)];case 2:return aa.da(),[4,w.uh([e+1],z)];case 3:return aa.da(),za.getDocument().zJ(),za.yJ(e),za.Je(),ha(e),f(e,n.galleys,r),f(e,n.objects,r),[2]}})})}
function ea(e){e=(new DOMParser).parseFromString(e,"text/html").documentElement.querySelector("body");e.querySelectorAll("p").forEach(function(e){e.querySelectorAll("span").forEach(function(e){var f=e.getAttribute("style");f=aa(f,e.innerHTML);e.innerHTML=f});var f=e.getAttribute("style"),h=e.innerHTML.Mj("<br>","");e.innerHTML=aa(f,h)});return e.innerHTML.trim()}function aa(e,f){e.includes("bold")&&(f="<strong>"+f+"</strong>");e.includes("italic")&&(f="<em>"+f+"</em>");e.includes("text-decoration: underline")&&
(f="<u>"+f+"</u>");return f}function ha(e){var f=za.ta(),h=f.Cb().filter(function(f){return f.jh()&&f.PageNumber===e});f.Wh(h,{force:!0,source:"contentEditTool"})}function ca(e,f){f.forEach(function(f){Da[e]||(Da[e]=[]);Da[e].find(function(e){return e.id===f.id})||Da[e].push(f)})}function z(e,f){f.forEach(function(f){ta[e]||(ta[e]=[]);ta[e].find(function(e){return e.id===f.id})||ta[e].push(f)})}function w(e,f,h,n){this.top=e;this.left=f;this.bottom=h;this.right=n;this.topVal=function(){return Math.round(this.top)};
this.bottomVal=function(){return Math.round(this.bottom)};this.leftVal=function(){return Math.round(this.left)};this.rightVal=function(){return Math.round(this.right)};this.height=function(){return Math.round(Math.abs(this.top-this.bottom))};this.width=function(){return Math.round(this.right-this.left)};this.KO=function(e){return this.topVal()!=e.topVal()||this.leftVal()!=e.leftVal()||this.bottomVal()!=e.bottomVal()||this.rightVal()!=e.rightVal()}}function y(e,f,h,n,r){this.id=e;this.pagenum=f;this.galleysContents=
h;this.contents=n;this.galleyBox=r}function r(e,f,h,n){this.id=f;this.type=e;this.bbox=h;this.pagenum=n}function n(e,f,h,n,r){this.id=e;this.pagecount=f;this.pageBBox=h;this.galleys=n;this.objects=r}function h(e,f,h,n,r){var w=[];(new DOMParser).parseFromString(n,"text/html").documentElement.querySelectorAll("p").forEach(function(e,f){w[f]=e.innerHTML});h=(new DOMParser).parseFromString(h,"text/html");var x=null;h.documentElement.querySelectorAll("p").forEach(function(e,f){f<w.length?(e.innerHTML=
w[f],x=e.getAttribute("style"),x=x.replace("font:italic","font:normal"),x=x.replace(" bold "," normal "),x=x.replace("underline:1;","underline:0;"),e.setAttribute("style",x)):e.remove()});for(n=h.documentElement.querySelectorAll("p").length;n<w.length;n++){var y=document.createElement("p");y.setAttribute("id","0");y.innerHTML=w[n];null!=x&&y.setAttribute("style",x);h.documentElement.querySelector("body").appendChild(y)}h=h.documentElement.querySelector("body").innerHTML;var z="";ta[e].forEach(function(e){e.id==
r&&(z=e)});if(""==z)return"";f="<DOC id='"+f.id+"' pagecount='"+f.pagecount+"'>";f=f+("<STORY galley_ids='"+r+"' pagenum='"+e+"'>")+("<galleys>"+z.galleysContents+"</galleys>");z.contents=h;f=f+h+"\n</STORY>";return f+="</DOC>"}function f(e,f,h){var n=[],w=za.getDocument(),x=null;f.forEach(function(f){if(f instanceof r){var z=w.Km(e,f.bbox.leftVal(),f.bbox.topVal());var aa=z.x;var ba=z.y;var ca=w.Km(e,f.bbox.rightVal(),f.bbox.bottomVal());z=ca.x;ca=ca.y}else if(f instanceof y)z=w.Km(e,f.galleyBox.leftVal(),
f.galleyBox.topVal()),aa=z.x,ba=z.y,ca=w.Km(e,f.galleyBox.rightVal(),f.galleyBox.bottomVal()),z=ca.x,ca=ca.y;else return;var da=new window.Core.Annotations.RectangleAnnotation,ea=ka.a.OBJECT;f instanceof y&&(ea=ka.a.TEXT);da.Fea(f,ea);da.PageNumber=f.pagenum;da.X=aa;da.Y=ba;da.Width=z-aa;da.Height=ca-ba;da.StrokeColor=new oa.a("#3183C8");da.FillColor=new oa.a(255,255,255,.01);da.Style="dash";da.Dashes="4,3";da.WF();da.selectionModel=ya.a;n.push(da);"undefined"!==typeof h&&h===f.id&&(x=da)});f=za.ta();
f.kg(n);x&&f.zh(x);f.ce(n)}function x(e,h,n){return Object(la.b)(this,void 0,void 0,function(){var r,w,x,y,aa;return Object(la.d)(this,function(da){switch(da.label){case 0:r=e.data;x=r.cmd;switch(x){case "isReady":return[3,1];case "initialiseInfixServer":return[3,3];case "exportFile":return[3,4];case "importText":return[3,5];case "transformObject":return[3,5];case "deleteObject":return[3,6]}return[3,7];case 1:return[4,Object(ua.b)()];case 2:return y=da.da(),wa.postMessage({cmd:"initialiseInfixServer",
l:y}),[3,7];case 3:return(aa=fa(r.resultsXML))?h():n("License key does not have content edit permission"),[3,7];case 4:return r.exportPerformed?ma(r.pageNumber,r.exportXML,r.objectXML,r.resultsXML):(w=Ea[r.pageNumber],z(r.pageNumber,w.galleys),ca(r.pageNumber,w.objects),ha(r.pageNumber),f(r.pageNumber,w.galleys),f(r.pageNumber,w.objects)),[3,7];case 5:return w=Ea[r.pageNumber],pa(r.pageNumber,r.resultsXML),ba(r.pageNumber,r.pdfBuffer,w,r.id),[3,7];case 6:return w=Ea[r.pageNumber],pa(r.pageNumber,
r.resultsXML),w.galleys=w.galleys.filter(function(e){return e.id!==r.id}),w.objects=w.objects.filter(function(e){return e.id!==r.id}),ba(r.pageNumber,r.pdfBuffer,w),[3,7];case 7:return[2]}})})}function fa(e){e=new Uint8Array(e);var f=(new TextDecoder("utf-8")).decode(e);e=!1;f=(new DOMParser).parseFromString(f,"text/xml").getElementsByTagName("LicenseCheck");null!==f&&0<f.length&&(f=f[0].getElementsByTagName("Status")[0].innerHTML,"error"!=f&&"ok"==f&&(e=!0));return e}function ma(e,h,n,r){var w=new Uint8Array(h),
x=new TextDecoder("utf-8");h=x.decode(w);w=new Uint8Array(n);n=x.decode(w);w=new Uint8Array(r);r=x.decode(w);Ea[e]=na(e,h,n,r);r=Ea[e];z(e,r.galleys);ca(e,r.objects);ha(e);f(e,r.galleys);f(e,r.objects)}function ja(e,f){e=parseFloat(e);return isNaN(f)||f<e?e:f}function na(e,f,h,x){var z;var aa=new DOMParser;x=aa.parseFromString(x,"text/xml");Array.prototype.slice.call(x.getElementsByTagName("BBox")).forEach(function(e){if("CropBox"==e.getAttribute("Name")){var f=parseFloat(e.getElementsByTagName("Top").item(0).innerHTML),
h=parseFloat(e.getElementsByTagName("Bottom").item(0).innerHTML),n=parseFloat(e.getElementsByTagName("Left").item(0).innerHTML);e=parseFloat(e.getElementsByTagName("Right").item(0).innerHTML);z=new w(f,n,h,e)}});aa=new DOMParser;x=aa.parseFromString(f,"text/xml");var ba=[];Array.prototype.slice.call(x.getElementsByTagName("STORY")).forEach(function(f){var h=f.getAttribute("galley_ids"),n=Array.prototype.slice.call(f.getElementsByTagName("g"))[0],r=n.getAttribute("bbox").split(" ");r=new w(parseFloat(r[0]),
parseFloat(r[1]),parseFloat(r[2]),parseFloat(r[3]));n=n.innerHTML;var x=Array.prototype.slice.call(f.getElementsByTagName("galleys"))[0];x.parentNode.removeChild(x);f=f.innerHTML;f=(new DOMParser).parseFromString(f,"text/html").documentElement.querySelector("body").innerHTML.trim();ba.push(new y(h,e,n,f,r))});aa=new DOMParser;var ca=[];f=aa.parseFromString(h,"text/xml").getElementsByTagName("Object");Array.prototype.slice.call(f).forEach(function(f){var h=f.getAttribute("Type"),n=f.getAttribute("OID");
f=Array.prototype.slice.call(f.getElementsByTagName("Point"));var x=Number.NaN,y=Number.NaN,z=Number.NaN,aa=Number.NaN;f.forEach(function(e){var f=e.getAttribute("Name");"TL"==f?(x=ja(e.getAttribute("Y"),x),z=ja(e.getAttribute("X"),z)):"TR"==f?(x=ja(e.getAttribute("Y"),x),aa=ja(e.getAttribute("X"),aa)):"BR"==f?(y=ja(e.getAttribute("Y"),y),aa=ja(e.getAttribute("X"),aa)):"BL"==f&&(y=ja(e.getAttribute("Y"),y),z=ja(e.getAttribute("X"),z))});ca.push(new r(h,n,new w(x,z,y,aa),e))});f=Array.prototype.slice.call(x.getElementsByTagName("DOC"))[0].getAttribute("id");
return new n(f,1,z,ba,ca)}function pa(e,f){var h;f=(new TextDecoder("utf-8")).decode(f);f=(new DOMParser).parseFromString(f,"text/xml");var n=f.getElementsByTagName("Galley").item(0);if(null!=n){var r=n.getAttribute("id");n=f.getElementsByTagName("BBox");n=Array.prototype.slice.call(n);n.forEach(function(e){var f=e.getElementsByTagName("Top"),n=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Left");var r=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Bottom");var x=parseFloat(f.item(0).innerHTML);
f=e.getElementsByTagName("Right");e=parseFloat(f.item(0).innerHTML);h=new w(n,r,x,e)});ta[e].forEach(function(e){e.id==r&&1==h.KO(e.galleyBox)&&(e.galleyBox=h)})}n=f.getElementsByTagName("Object").item(0);if(null!=n){var x=n.getAttribute("OID");n=f.getElementsByTagName("BBox");n=Array.prototype.slice.call(n);n.forEach(function(e){var f=e.getElementsByTagName("Top"),n=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Left");var r=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Bottom");
var x=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Right");e=parseFloat(f.item(0).innerHTML);h=new w(n,r,x,e)});Da[e].forEach(function(e){e.id==x&&1==h.KO(e.bbox)&&(e.bbox=h)})}}e.r(da);var la=e(1),ra=e(63),oa=e(7),ya=e(423),Fa=e(34),ua=e(73),qa=e(2),ka=e(171),wa=null,Aa=null,ta={},Da={},Ea={},za;da["default"]={cca:function(e){return Object(la.b)(void 0,void 0,void 0,function(){return Object(la.d)(this,function(){Aa||(za=e,Aa=new Promise(function(e,f){wa=new Worker(window.Core.getWorkerPath()+
"contentEdit/InfixServerModule.js");wa.onmessage=function(h){x(h,e,f)};wa.postMessage({cmd:"isReady"})}));return[2,Aa]})})},eca:function(e,f,h){return Object(la.b)(void 0,void 0,void 0,function(){var n,r,w,x;return Object(la.d)(this,function(y){switch(y.label){case 0:return ha(f),ta[f]=[],Da[f]=[],[4,e.Lf([f])];case 1:return n=y.da(),r=new TextEncoder,w=r.encode(""),x=w.buffer,wa.postMessage({cmd:"exportFile",pageNumber:f,performExport:h,pdfFile:n,tableData:x},[n,x]),[2]}})})},I3:function(e){return Object(la.b)(void 0,
void 0,void 0,function(){var f,h,n,r,w,x,y,z;return Object(la.d)(this,function(aa){switch(aa.label){case 0:return f=e.id,h=e.isText,n=e.pageNumber,r=za.getDocument(),[4,r.Lf([n])];case 1:return w=aa.da(),x=new TextEncoder,y=x.encode(""),z=y.buffer,wa.postMessage({cmd:"deleteObject",pdfFile:w,pageNumber:n,objectID:f,isText:h,tableData:z},[z]),[2]}})})},bha:function(e){return Object(la.b)(void 0,void 0,void 0,function(){var f,h,n,r,w,x,y,z,aa,ba,ca,da,ea;return Object(la.d)(this,function(fa){switch(fa.label){case 0:return f=
e.id,h=e.position,n=h.top,r=h.left,w=h.bottom,x=h.right,y=e.isText,z=e.pageNumber,aa=za.getDocument(),[4,aa.Lf([z])];case 1:return ba=fa.da(),ca=new TextEncoder,da=ca.encode(""),ea=da.buffer,wa.postMessage({cmd:"transformObject",pdfFile:ba,pageNumber:z,objectID:f,isText:y,topVal:n,leftVal:r,bottomVal:w,rightVal:x,tableData:ea},[ea]),[2]}})})},tha:function(e,f){return Object(la.b)(void 0,void 0,void 0,function(){var n,r,w,x,y,z,aa,ba,ca,da,fa,ha,ia,ja,ka;return Object(la.d)(this,function(la){switch(la.label){case 0:n=
f.replace(/<span style="color: var\(--text-color\);">(.*?)<\/span>/g,"$1");r=e.zt.id;w=e.PageNumber;x=Ea[w];y=x.galleys.find(function(e){return e.id===r});z=ea(y.contents);aa=h(w,x,z,n,r);if(""==aa)return[3,2];ba=new TextEncoder;ca=ba.encode(aa);da=ca.buffer;fa=Object(Fa.c)()||"https://www.pdftron.com/webfonts/v2/";ha=za.getDocument();return[4,ha.Lf([w])];case 1:return ia=la.da(),ba=new TextEncoder,ja=ba.encode(""),ka=ja.buffer,wa.postMessage({cmd:"importText",pdfFile:ia,pageNumber:w,webFontURL:fa,
galleyId:r,importData:da,tableData:ka},[da,ka]),[3,3];case 2:Object(qa.f)("Unable to generate import XML"),la.label=3;case 3:return[2]}})})},C7:function(e){if(e)return ea(e.contents);Object(qa.f)("Unable to extract document content")}}},423:function(ia,da,e){var ba=e(1);ia=e(78);var ea=e(44);e=function(e){function aa(){return null!==e&&e.apply(this,arguments)||this}Object(ba.c)(aa,e);aa.prototype.testSelection=function(e,z,w){return ea.a.sk(e,z,w)};return aa}(ia.a);da.a=e}}]);}).call(this || window)

View File

@ -1,26 +0,0 @@
(function(){(function(n){function f(h){if(e[h])return e[h].g;var k=e[h]={ha:h,N:!1,g:{}};n[h].call(k.g,k,k.g,f);k.N=!0;return k.g}var e={};f.ka=n;f.Z=e;f.d=function(h,k,e){f.O(h,k)||Object.defineProperty(h,k,{enumerable:!0,get:e})};f.r=function(h){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"});Object.defineProperty(h,"__esModule",{value:!0})};f.t=function(h,k){k&1&&(h=f(h));if(k&8||k&4&&"object"===typeof h&&h&&h.v)return h;var e=Object.create(null);
f.r(e);Object.defineProperty(e,"default",{enumerable:!0,value:h});if(k&2&&"string"!=typeof h)for(var w in h)f.d(e,w,function(k){return h[k]}.bind(null,w));return e};f.n=function(h){var k=h&&h.v?function(){return h["default"]}:function(){return h};f.d(k,"a",k);return k};f.O=function(h,k){return Object.prototype.hasOwnProperty.call(h,k)};f.p="/core/";return f(f.pa=4)})([function(n,f,e){var h=e(1);f.a=function(k,e,f){for(var l=[],r=0;16>r;++r){l[r]=r;r<e.length&&(l[r]|=e.charCodeAt(r));var p=f.length+
r-16;0<=p&&(l[r]|=f.charCodeAt(p))}e=[];for(f=0;16>f;++f)e.push(k.charCodeAt(f));k=k.slice(16);l=h.a.c.U(l,e);l.update(h.a.f.createBuffer(k));return l.finish()?l.o.data:{error:"Bad password or file corrupt"}}},function(n,f,e){n=e(2);f.a=n.a},function(n,f,e){function h(a,c,g,m){var b=null;r||w();if(a.constructor==String&&(16==a.length||24==a.length||32==a.length))a=l.f.createBuffer(a);else if(a.constructor==Array&&(16==a.length||24==a.length||32==a.length)){var d=a;a=l.f.createBuffer();for(var t=0;t<
d.length;++t)a.s(d[t])}if(a.constructor!=Array&&(d=a,a=[],t=d.length(),16==t||24==t||32==t)){t>>>=2;for(var h=0;h<t;++h)a.push(d.getInt32())}if(a.constructor==Array&&(4==a.length||6==a.length||8==a.length)){var f=y(a,m),q,e,p,B,z,n;b={o:null,update:function(a){n||q.S(a);for(a=m&&!n?32:16;q.length()>=a;){if(m)for(var b=0;4>b;++b)p[b]=q.getInt32();else for(b=0;4>b;++b)p[b]=z[b]^q.getInt32();k(f,p,B,m);if(m){for(b=0;4>b;++b)e.u(z[b]^B[b]);z=p.slice(0)}else{for(b=0;4>b;++b)e.u(B[b]);z=B}}},finish:function(a){var c=
!0;if(!m)if(a)c=a(16,q,m);else{var g=16==q.length()?16:16-q.length();q.F(g,g)}c&&(n=!0,b.update());m&&(c=0===q.length())&&(a?c=a(16,e,m):(a=e.length(),a=e.w(a-1),16<a?c=!1:e.truncate(a)));return c},start:function(a,c){a=a||z.slice(0);if(a.constructor==String&&16==a.length)a=l.f.createBuffer(a);else if(a.constructor==Array&&16==a.length){var g=a;a=l.f.createBuffer();for(var m=0;16>m;++m)a.s(g[m])}a.constructor!=Array&&(g=a,a=Array(4),a[0]=g.getInt32(),a[1]=g.getInt32(),a[2]=g.getInt32(),a[3]=g.getInt32());
q=l.f.createBuffer();e=c||l.f.createBuffer();z=a.slice(0);p=Array(4);B=Array(4);n=!1;b.o=e}};null!==c&&b.start(c,g)}return b}function k(b,c,g,m){var u=b.length/4-1;if(m){var A=a[0];var t=a[1];var h=a[2];var e=a[3];var q=d}else A=v[0],t=v[1],h=v[2],e=v[3],q=p;var k=c[0]^b[0];var f=c[m?3:1]^b[1];var l=c[2]^b[2];c=c[m?1:3]^b[3];for(var n=3,r=1;r<u;++r){var w=A[k>>>24]^t[f>>>16&255]^h[l>>>8&255]^e[c&255]^b[++n];var y=A[f>>>24]^t[l>>>16&255]^h[c>>>8&255]^e[k&255]^b[++n];var x=A[l>>>24]^t[c>>>16&255]^h[k>>>
8&255]^e[f&255]^b[++n];c=A[c>>>24]^t[k>>>16&255]^h[f>>>8&255]^e[l&255]^b[++n];k=w;f=y;l=x}g[0]=q[k>>>24]<<24^q[f>>>16&255]<<16^q[l>>>8&255]<<8^q[c&255]^b[++n];g[m?3:1]=q[f>>>24]<<24^q[l>>>16&255]<<16^q[c>>>8&255]<<8^q[k&255]^b[++n];g[2]=q[l>>>24]<<24^q[c>>>16&255]<<16^q[k>>>8&255]<<8^q[f&255]^b[++n];g[m?1:3]=q[c>>>24]<<24^q[k>>>16&255]<<16^q[f>>>8&255]<<8^q[l&255]^b[++n]}function y(b,c){b=b.slice(0);for(var g,m=1,d=b.length,h=4*(d+6+1),e=d;e<h;++e)g=b[e-1],0===e%d?(g=p[g>>>16&255]<<24^p[g>>>8&255]<<
16^p[g&255]<<8^p[g>>>24]^x[m]<<24,m++):6<d&&4===e%d&&(g=p[g>>>24]<<24^p[g>>>16&255]<<16^p[g>>>8&255]<<8^p[g&255]),b[e]=b[e-d]^g;if(c){g=a[0];m=a[1];d=a[2];e=a[3];var k=b.slice(0);h=b.length;for(var f=0,l=h-4;f<h;f+=4,l-=4)if(0===f||f===h-4)k[f]=b[l],k[f+1]=b[l+3],k[f+2]=b[l+2],k[f+3]=b[l+1];else for(var n=0;4>n;++n)c=b[l+n],k[f+(3&-n)]=g[p[c>>>24]]^m[p[c>>>16&255]]^d[p[c>>>8&255]]^e[p[c&255]];b=k}return b}function w(){r=!0;x=[0,1,2,4,8,16,32,64,128,27,54];for(var b=Array(256),c=0;128>c;++c)b[c]=c<<
1,b[c+128]=c+128<<1^283;p=Array(256);d=Array(256);v=Array(4);a=Array(4);for(c=0;4>c;++c)v[c]=Array(256),a[c]=Array(256);for(var g=c=0,m,u,e,f,h,k=0;256>k;++k){f=g^g<<1^g<<2^g<<3^g<<4;f=f>>8^f&255^99;p[c]=f;d[f]=c;h=b[f];m=b[c];u=b[m];e=b[u];h^=h<<24^f<<16^f<<8^f;u=(m^u^e)<<24^(c^e)<<16^(c^u^e)<<8^c^m^e;for(var l=0;4>l;++l)v[l][c]=h,a[l][f]=u,h=h<<24|h>>>8,u=u<<24|u>>>8;0===c?c=g=1:(c=m^b[b[b[m^e]]],g^=b[b[g]])}}n=e(3);"undefined"!==typeof window&&((window.G=window.G||{}).c={});var l={c:{}};l.f=n.a;
var r=!1,p,d,x,v,a;l.c.ra=function(a,c,g){return h(a,c,g,!1)};l.c.ba=function(a){return h(a,null,null,!1)};l.c.U=function(a,c){return h(a,c,void 0,!0)};l.c.aa=function(a){return h(a,null,null,!0)};l.c.W=function(a,c){r||w();return y(a,c)};l.c.X=k;f.a=l},function(n,f){function e(a,b,c){var g=null;"undefined"===typeof c&&(c=["web","flash"]);var m=!1,d=null,f;for(f in c){var e=c[f];try{if("flash"===e||"both"===e){if(null===b[0])throw{message:"Flash local storage not available."};g=a.apply(this,b);m=
"flash"===e}if("web"===e||"both"===e)b[0]=localStorage,g=a.apply(this,b),m=!0}catch(C){d=C}if(m)break}if(!m)throw d;return g}function h(a,b){r(a,b,null)}function k(a,b,c){var g=l(a,b);if(null!==g&&c in g){delete g[c];c=!0;for(var m in tmp){c=!1;break}c&&(g=null);r(a,b,g)}}function y(a,b,c){a=l(a,b);null!==a&&(a=c in a?a[c]:null);return a}function w(a,b,c,g){var m=l(a,b);null===m&&(m={});m[c]=g;r(a,b,m)}function l(a,b){if(!a)throw{message:"WebStorage not available."};b=a.getItem(b);if(a.ia)if(null===
b.j){if(b.error)throw b.error;b=null}else b=b.j;null!==b&&(b=JSON.parse(d.l(b)));return b}function r(a,b,c){if(!a)throw{message:"WebStorage not available."};null===c?a=a.removeItem(b):(c=d.m(JSON.stringify(c)),a=a.setItem(b,c));if("undefined"!==typeof a&&!0!==a.j)throw a.error;}function p(a){"@babel/helpers - typeof";return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?
"symbol":typeof a},p(a)}var d={b:function(a){this.data=a||"";this.read=0}};d.b.prototype.length=function(){return this.data.length-this.read};d.b.prototype.M=function(){return 0===this.data.length-this.read};d.b.prototype.s=function(a){this.data+=String.fromCharCode(a)};d.b.prototype.F=function(a,b){a=String.fromCharCode(a);for(var c=this.data;0<b;)b&1&&(c+=a),b>>>=1,0<b&&(a+=a);this.data=c};d.b.prototype.u=function(a){this.data+=String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>
8&255)+String.fromCharCode(a&255)};d.b.prototype.S=function(a){this.data+=a.I()};d.b.prototype.getInt16=function(){var a=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);this.read+=2;return a};d.b.prototype.getInt32=function(){var a=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);this.read+=4;return a};d.b.prototype.I=function(){if(a){var a=Math.min(this.length(),a);var b=this.data.slice(this.read,
this.read+a);this.read+=a}else 0===a?b="":(b=0===this.read?this.data:this.data.slice(this.read),this.clear());return b};d.b.prototype.A=function(){return this.data.slice(this.read)};d.b.prototype.w=function(a){return this.data.charCodeAt(this.read+a)};d.b.prototype.compact=function(){0<this.read&&(this.data=this.data.slice(this.read),this.read=0)};d.b.prototype.clear=function(){this.data="";this.read=0};d.b.prototype.truncate=function(a){a=Math.max(0,this.length()-a);this.data=this.data.substr(this.read,
a);this.read=0};d.b.prototype.V=function(){for(var a="",b=this.read;b<this.data.length;++b){var c=this.data.charCodeAt(b);16>c&&(a+="0");a+=c.toString(16)}return a};d.b.prototype.toString=function(){return d.B(this.A())};d.createBuffer=function(a,b){void 0!==a&&"utf8"===(b||"raw")&&(a=d.D(a));return new d.b(a)};d.da=function(a,b){for(var c="";0<b;)b&1&&(c+=a),b>>>=1,0<b&&(a+=a);return c};d.sa=function(a,b,c){for(var g="",m,d="",e=0,f=0;0<c;--c,++e)m=a.charCodeAt(e)^b.charCodeAt(e),10<=f&&(g+=d,d=
"",f=0),d+=String.fromCharCode(m),++f;return g+d};d.ga=function(a){var b="",c=0;a.length&1&&(c=1,b+=String.fromCharCode(parseInt(a[0],16)));for(;c<a.length;c+=2)b+=String.fromCharCode(parseInt(a.substr(c,2),16));return b};d.Y=function(a){return d.createBuffer(a).V()};d.ja=function(a){return String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var x=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,
8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];d.m=function(a){for(var b="",c,g,d,e=0;e<a.length;)c=a.charCodeAt(e++),g=a.charCodeAt(e++),d=a.charCodeAt(e++),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c>>2),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((c&3)<<4|g>>4),isNaN(g)?b+="==":(b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((g&
15)<<2|d>>6),b+=isNaN(d)?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d&63));return""+b};d.l=function(a){a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");for(var b="",c,g,d,e,f=0;f<a.length;)c=x[a.charCodeAt(f++)-43],g=x[a.charCodeAt(f++)-43],d=x[a.charCodeAt(f++)-43],e=x[a.charCodeAt(f++)-43],b+=String.fromCharCode(c<<2|g>>4),64!==d&&(b+=String.fromCharCode((g&15)<<4|d>>2),64!==e&&(b+=String.fromCharCode((d&3)<<6|e)));return b};d.D=function(a){return unescape(encodeURIComponent(a))};
d.B=function(a){return decodeURIComponent(escape(a))};d.C=function(a){var b;return b=d.l(a.C(d.m(b)).j)};d.L=function(a){a=a.L(d.m(void 0)).j;return null===a?null:d.l(a)};d.setItem=function(a,b,c,g,d){e(w,arguments,d)};d.getItem=function(a,b,c,g){return e(y,arguments,g)};d.removeItem=function(a,b,c,g){e(k,arguments,g)};d.$=function(a,b,c){e(h,arguments,c)};d.oa=function(a){var b=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;b.lastIndex=0;b=b.exec(a);if(a=null===b?null:{H:a,scheme:b[1],host:b[2],port:b[3],
path:b[4]})a.h=a.host,a.port?80!==a.port&&"http"===a.scheme?a.h+=":".concat(a.port):443!==a.port&&"https"===a.scheme&&(a.h+=":".concat(a.port)):"http"===a.scheme?a.port=80:"https"===a.scheme&&(a.port=443),a.H="".concat(a.scheme,"://").concat(a.h);return a};var v=null;d.K=function(a){function b(a){var b={};a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("=");if(0<d){var e=a[c].substring(0,d);d=a[c].substring(d+1)}else e=a[c],d=null;e in b||(b[e]=[]);null!==d&&b[e].push(unescape(d))}return b}
"undefined"===typeof a?(null===v&&(v="undefined"===typeof window?{}:b(window.location.search.substring(1))),a=v):a=b(a);return a};d.P=function(a){var b=a,c="",g=a.indexOf("?");0<g&&(b=a.substring(0,g),c=a.substring(g+1));a=b.split("/");0<a.length&&""==a[0]&&a.shift();g=""==c?{}:d.K(c);return{R:b,T:c,path:a,query:g}};d.ma=function(a){var b=d.P(a),c={path:b.R,query:b.T,J:function(a){return"undefined"===typeof a?b.path:b.path[a]},getQuery:function(a,c){"undefined"===typeof a?a=b.query:(a=b.query[a])&&
"undefined"!==typeof c&&(a=a[c]);return a},fa:function(a,b){return(a=c.getQuery(a))?a[a.length-1]:b}};return c};d.la=function(a,b,c){a=jQuery.isArray(a)?a.join("/"):a;b=jQuery.na(b||{});c=c||"";return a+(0<b.length?"?".concat(b):"")+(0<c.length?"#".concat(c):"")};d.qa=function(a,b,c){if("object"===p(a)&&null!==a)for(var d=0,e=b.length;d<e;){var f=b[d++];if(d==e)a[f]=c;else{var h=f in a;if(!h||h&&"object"!==p(a[f])||h&&null===a[f])a[f]={};a=a[f]}}};d.J=function(a,b,c){for(var d=0,e=b.length,f=!0;f&&
d<e&&"object"===p(a)&&null!==a;){var h=b[d++];(f=h in a)&&(a=a[h])}return f?a:c};d.ca=function(a,b){if("object"===p(a)&&null!==a)for(var c=0,d=b.length;c<d;){var e=b[c++];if(c==d)delete a[e];else{if(!(e in a)||"object"!==p(a[e])||null===a[e])break;a=a[e]}}};d.M=function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0};d.format=function(a){var b=/%./g,c,d,e=0,f=[];for(d=0;c=b.exec(a);)switch(d=a.substring(d,b.lastIndex-2),0<d.length&&f.push(d),d=b.lastIndex,c=c[0][1],c){case "s":case "o":e<
arguments.length?f.push(arguments[e++ +1]):f.push("<?>");break;case "%":f.push("%");break;default:f.push("<%".concat(c,"?>"))}f.push(a.substring(d));return f.join("")};d.i=function(a,b,c,d){var e=isNaN(b=Math.abs(b))?2:b;b=void 0===c?",":c;d=void 0===d?".":d;c=0>a?"-":"";var f="".concat(parseInt(a=Math.abs(+a||0).toFixed(e),10)),g=3<f.length?f.length%3:0;return c+(g?f.substr(0,g)+d:"")+f.substr(g).replace(/(\d{3})(?=\d)/g,"$1".concat(d))+(e?b+Math.abs(a-f).toFixed(e).slice(2):"")};d.ea=function(a){return a=
1073741824<=a?"".concat(d.i(a/1073741824,2,".","")," GiB"):1048576<=a?"".concat(d.i(a/1048576,2,".","")," MiB"):1024<=a?"".concat(d.i(a/1024,0)," KiB"):"".concat(d.i(a,0)," bytes")};f.a=d},function(n,f,e){n.g=e(5)},function(n,f,e){e.r(f);e(6)},function(n,f,e){var h=e(0);self.onmessage=function(e){var f=e.data.data,k=e.data.password,l=e.data.partName;switch(e.data.type){case "AES":e=Object(h.a)(f,k,l);break;default:e=Object(h.a)(f,k,l)}self.postMessage(e)}}]);}).call(this || window)

View File

@ -1,14 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{398:function(ia,da,e){e.r(da);var ba=e(1),ea=e(424),aa=e(425),ha;(function(e){e[e.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";e[e.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";e[e.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(ha||(ha={}));ia=function(){function e(e){this.V=e;this.state=ha.EXTERNAL_XFDF_NOT_REQUESTED}e.prototype.i9=function(){var e=this;return function(w,y,r){return Object(ba.b)(e,
void 0,void 0,function(){var e,h,f,x,z,aa,ca,da=this,ea;return Object(ba.d)(this,function(n){switch(n.label){case 0:if(this.state!==ha.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.V.getDocument().lr();return[4,this.G7(e)];case 1:h=n.da(),f=this.b3(h),this.rG=null!==(ea=null===f||void 0===f?void 0:f.parse())&&void 0!==ea?ea:null,this.state=null===this.rG?ha.EXTERNAL_XFDF_NOT_AVAILABLE:ha.EXTERNAL_XFDF_AVAILABLE,n.label=2;case 2:if(this.state===ha.EXTERNAL_XFDF_NOT_AVAILABLE)return r(w),[2];x=new DOMParser;
z=x.parseFromString(w,"text/xml");y.forEach(function(e){da.merge(z,da.rG,e-1)});aa=new XMLSerializer;ca=aa.serializeToString(z);r(ca);return[2]}})})}};e.prototype.cK=function(e){this.G7=e};e.prototype.be=function(){this.rG=void 0;this.state=ha.EXTERNAL_XFDF_NOT_REQUESTED};e.prototype.b3=function(e){return e?Array.isArray(e)?new ea.a(e):"string"!==typeof e?null:(new DOMParser).parseFromString(e,"text/xml").querySelector("xfdf > add")?new ea.a(e):new aa.a(e):null};e.prototype.merge=function(e,w,y){var r=
this;0===y&&(this.vaa(e,w.io),this.xaa(e,w.ZF));var n=w.ba[y];n&&(this.yaa(e,n.hm),this.Aaa(e,n.iX,w.Pu),this.zaa(e,n.page,y),this.waa(e,n.CP));n=this.V.Jc();if(y===n-1){var h=w.Pu;Object.keys(h).forEach(function(f){h[f].DH||r.YS(e,f,h[f])})}};e.prototype.vaa=function(e,w){null!==w&&(e=this.hu(e),this.Cp(e,"calculation-order",w))};e.prototype.xaa=function(e,w){null!==w&&(e=this.hu(e),this.Cp(e,"document-actions",w))};e.prototype.yaa=function(e,w){var y=this,r=this.gu(e.querySelector("xfdf"),"annots");
Object.keys(w).forEach(function(e){y.Cp(r,'[name="'+e+'"]',w[e])})};e.prototype.Aaa=function(e,w,y){var r=this;if(0!==w.length){var n=this.hu(e);w.forEach(function(h){var f=h.getAttribute("field"),w=y[f];w&&(r.YS(e,f,w),r.Cp(n,"null",h))})}};e.prototype.YS=function(e,w,y){var r=this.hu(e);null!==y.lA&&this.Cp(r,'ffield [name="'+w+'"]',y.lA);e=this.gu(e.querySelector("xfdf"),"fields");w=w.split(".");this.qJ(e,w,0,y.value);y.DH=!0};e.prototype.zaa=function(e,w,y){null!==w&&(e=this.hu(e),e=this.gu(e,
"pages"),this.Cp(e,'[number="'+(y+1)+'"]',w))};e.prototype.waa=function(e,w){Object.keys(w).forEach(function(w){(w=e.querySelector('annots [name="'+w+'"]'))&&w.parentElement.removeChild(w)})};e.prototype.qJ=function(e,w,y,r){if(y===w.length)w=document.createElementNS("","value"),w.textContent=r,this.Cp(e,"value",w);else{var n=w[y];this.gu(e,'[name="'+n+'"]',"field").setAttribute("name",n);e=e.querySelectorAll('[name="'+n+'"]');1===e.length?this.qJ(e[0],w,y+1,r):(n=this.D6(e),this.qJ(y===w.length-
1?n:this.Tga(e,n),w,y+1,r))}};e.prototype.D6=function(e){for(var w=null,y=0;y<e.length;y++){var r=e[y];if(0===r.childElementCount||1===r.childElementCount&&"value"===r.children[0].tagName){w=r;break}}return w};e.prototype.Tga=function(e,w){for(var y=0;y<e.length;y++)if(e[y]!==w)return e[y];return null};e.prototype.Cp=function(e,w,y){w=e.querySelector(w);null!==w&&e.removeChild(w);e.appendChild(y)};e.prototype.hu=function(e){var w=e.querySelector("pdf-info");if(null!==w)return w;w=this.gu(e.querySelector("xfdf"),
"pdf-info");w.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");w.setAttribute("version","2");w.setAttribute("import-version","4");return w};e.prototype.gu=function(e,w,y){var r=e.querySelector(w);if(null!==r)return r;r=document.createElementNS("",y||w);e.appendChild(r);return r};return e}();da["default"]=ia},409:function(ia,da){ia=function(){function e(){}e.prototype.Ry=function(e){var ba={io:null,ZF:null,Pu:{},ba:{}};e=(new DOMParser).parseFromString(e,"text/xml");ba.io=e.querySelector("pdf-info calculation-order");
ba.ZF=e.querySelector("pdf-info document-actions");ba.Pu=this.oba(e);ba.ba=this.Aba(e);return ba};e.prototype.oba=function(e){var ba=e.querySelector("fields");e=e.querySelectorAll("pdf-info > ffield");if(null===ba&&null===e)return{};var aa={};this.E0(aa,ba);this.C0(aa,e);return aa};e.prototype.E0=function(e,da){if(null!==da&&da.children){for(var aa=[],ba=0;ba<da.children.length;ba++){var ca=da.children[ba];aa.push({name:ca.getAttribute("name"),element:ca})}for(;0!==aa.length;)for(da=aa.shift(),ba=
0;ba<da.element.children.length;ba++)ca=da.element.children[ba],"value"===ca.tagName?e[da.name]={value:ca.textContent,lA:null,DH:!1}:ca.children&&aa.push({name:da.name+"."+ca.getAttribute("name"),element:ca})}};e.prototype.C0=function(e,da){da.forEach(function(aa){var ba=aa.getAttribute("name");e[ba]?e[ba].lA=aa:e[ba]={value:null,lA:aa,DH:!1}})};e.prototype.Aba=function(e){var ba=this,aa={};e.querySelectorAll("pdf-info widget").forEach(function(e){var ca=parseInt(e.getAttribute("page"),10)-1;ba.lB(aa,
ca);aa[ca].iX.push(e)});e.querySelectorAll("pdf-info page").forEach(function(e){var ca=parseInt(e.getAttribute("number"),10)-1;ba.lB(aa,ca);aa[ca].page=e});this.XQ(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10),z=e.getAttribute("name");ba.lB(aa,ca);aa[ca].hm[z]=e});this.JQ(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10);e=e.textContent;ba.lB(aa,ca);aa[ca].CP[e]=!0});return aa};e.prototype.lB=function(e,da){e[da]||(e[da]={hm:{},CP:{},iX:[],page:null})};return e}();
da.a=ia},424:function(ia,da,e){var ba=e(1),ea=e(0);e.n(ea);ia=function(e){function aa(aa){var z=e.call(this)||this;z.q6=Array.isArray(aa)?aa:[aa];return z}Object(ba.c)(aa,e);aa.prototype.parse=function(){var e=this,z={io:null,ZF:null,Pu:{},ba:{}};this.q6.forEach(function(w){z=Object(ea.merge)(z,e.Ry(w))});return z};aa.prototype.XQ=function(e){var z=[];e.querySelectorAll("add > *").forEach(function(e){z.push(e)});e.querySelectorAll("modify > *").forEach(function(e){z.push(e)});return z};aa.prototype.JQ=
function(e){return e.querySelectorAll("delete > *")};return aa}(e(409).a);da.a=ia},425:function(ia,da,e){var ba=e(1);ia=function(e){function aa(aa){var ba=e.call(this)||this;ba.r6=aa;return ba}Object(ba.c)(aa,e);aa.prototype.parse=function(){return this.Ry(this.r6)};aa.prototype.XQ=function(e){return e.querySelectorAll("annots > *")};aa.prototype.JQ=function(){return[]};return aa}(e(409).a);da.a=ia}}]);}).call(this || window)

View File

@ -1,7 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{390:function(ia,da,e){e.r(da);var ba=e(1);ia=e(48);var ea=e(158),aa=e(351),ha=e(218),ca=window;e=function(){function e(e,y){this.mS=function(e){e=e.split(".");return e[e.length-1].match(/(jpg|jpeg|png|gif)$/i)};y=y||{};this.url=e;this.filename=y.filename||e;this.Ue=y.customHeaders;this.Cha=!!y.useDownloader;this.withCredentials=!!y.withCredentials}e.prototype.IC=function(e){this.Ue=e};e.prototype.getCustomHeaders=function(){return this.Ue};
e.prototype.getFileData=function(w){var y=this,r=this,n=new XMLHttpRequest,h=0===this.url.indexOf("blob:")?"blob":"arraybuffer";n.open("GET",this.url,!0);n.withCredentials=this.withCredentials;n.responseType=h;this.Ue&&Object.keys(this.Ue).forEach(function(e){n.setRequestHeader(e,y.Ue[e])});var f=/^https?:/i.test(this.url);n.addEventListener("load",function(h){return Object(ba.b)(this,void 0,void 0,function(){var n,x,y,z,aa,ca;return Object(ba.d)(this,function(ba){switch(ba.label){case 0:if(200!==
this.status&&(f||0!==this.status))return[3,10];r.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,h.loaded]);if("blob"!==this.responseType)return[3,4];n=this.response;return r.mS(r.filename)?[4,Object(ha.b)(n)]:[3,2];case 1:return x=ba.da(),r.fileSize=x.byteLength,w(new Uint8Array(x)),[3,3];case 2:y=new FileReader,y.onload=function(e){e=new Uint8Array(e.target.result);r.fileSize=e.length;w(e)},y.readAsArrayBuffer(n),ba.label=3;case 3:return[3,9];case 4:ba.Ci.push([4,8,,9]);z=new Uint8Array(this.response);
if(!r.mS(r.filename))return[3,6];n=new Blob([z.buffer]);return[4,Object(ha.b)(n)];case 5:return x=ba.da(),r.fileSize=x.byteLength,w(new Uint8Array(x)),[3,7];case 6:r.fileSize=z.length,w(z),ba.label=7;case 7:return[3,9];case 8:return ba.da(),r.trigger(e.Events.ERROR,["pdfLoad","Out of memory"]),[3,9];case 9:return[3,11];case 10:aa=h.currentTarget,ca=Object(ea.b)(aa),r.trigger(e.Events.ERROR,["pdfLoad",this.status+" "+aa.statusText,ca]),ba.label=11;case 11:return r.rx=null,[2]}})})},!1);n.onprogress=
function(f){r.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,0<f.total?f.total:0])};n.addEventListener("error",function(){r.trigger(e.Events.ERROR,["pdfLoad","Network failure"]);r.rx=null},!1);n.send();this.rx=n};e.prototype.getFile=function(){var e=this;return new Promise(function(w){ca.utils.isJSWorker&&w(e.url);if(e.Cha){var r=Object(ba.a)({url:e.url},e.Ue?{customHeaders:e.Ue}:{});w(r)}w(null)})};e.prototype.abort=function(){this.rx&&(this.rx.abort(),this.rx=null)};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",
ERROR:"error"};return e}();Object(ia.a)(e);Object(aa.a)(e);Object(aa.b)(e);da["default"]=e}}]);}).call(this || window)

View File

@ -1,13 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[0],{383:function(ia,da,e){e.r(da);e.d(da,"ByteRangeRequest",function(){return ma});var ba=e(1),ea=e(0);e.n(ea);var aa=e(2),ha=e(138);ia=e(88);var ca=e(233),z=e(68),w=e(64),y=e(232),r=e(158);e=e(351);var n=[],h=[],f=window,x=function(){return function(){this.sl=1}}(),fa;(function(f){f[f.UNSENT=0]="UNSENT";f[f.DONE=4]="DONE"})(fa||(fa={}));var ma=function(){function e(e,h,n,r){var w=this;this.url=e;this.range=h;this.Ue=n;this.withCredentials=
r;this.FZ=fa;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);f.Uint8Array&&(this.request.responseType="arraybuffer");r&&(this.request.withCredentials=r);ja.DISABLE_RANGE_HEADER||(Object(ea.isUndefined)(h.stop)?this.request.setRequestHeader("Range","bytes="+h.start):this.request.setRequestHeader("Range",["bytes=",h.start,"-",h.stop-1].join("")));this.request.setRequestHeader("X-Requested-With","XMLHttpRequest");n&&Object.keys(n).forEach(function(f){w.request.setRequestHeader(f,
n[f])});this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(e){var h=this,n=this.request;n.onreadystatechange=function(){if(h.aborted)return h.status=y.a.ABORTED,e({code:y.a.ABORTED});if(this.readyState===h.FZ.DONE){h.NA();var r=0===window.document.URL.indexOf("file:///");200===n.status||206===n.status||r&&0===n.status?(r=f.iR(this),
h.Os(r,e)):(h.status=y.a.ERROR,e({code:h.status,status:h.status}))}};this.request.send(null);this.status=y.a.STARTED};e.prototype.Os=function(f,e){this.status=y.a.SUCCESS;if(e)return e(!1,f)};e.prototype.abort=function(){this.NA();this.aborted=!0;this.request.abort()};e.prototype.NA=function(){var f=Object(r.c)(this.url,this.range,h);-1!==f&&h.splice(f,1);if(0<n.length){f=n.shift();var w=new e(f.url,f.range,this.Ue,this.withCredentials);f.request=w;h.push(f);w.start(Object(r.d)(f))}};e.prototype.extend=
function(f){var e=Object.assign({},this,f.prototype);e.constructor=f;return e};return e}(),ja=function(f){function e(e,h,n,r,w){n=f.call(this,e,n,r)||this;n.ul={};n.oz=h;n.url=e;n.DISABLE_RANGE_HEADER=!1;n.pw=ma;n.AL=3;n.Ue=w||{};return n}Object(ba.c)(e,f);e.prototype.zu=function(f,e,h){var n=-1===f.indexOf("?")?"?":"&";switch(h){case !1:case w.a.NEVER_CACHE:f=f+n+"_="+Object(ea.uniqueId)();break;case !0:case w.a.CACHE:f=f+n+"_="+e.start+","+(Object(ea.isUndefined)(e.stop)?"":e.stop)}return f};e.prototype.sP=
function(f,e,h,n){void 0===h&&(h={});return new this.pw(f,e,h,n)};e.prototype.h6=function(f,e,r,w,x){for(var y=0;y<n.length;y++)if(Object(ea.isEqual)(n[y].range,e)&&Object(ea.isEqual)(n[y].url,f))return n[y].og.push(w),n[y].NB++,null;for(y=0;y<h.length;y++)if(Object(ea.isEqual)(h[y].range,e)&&Object(ea.isEqual)(h[y].url,f))return h[y].og.push(w),h[y].NB++,null;r={url:f,range:e,oz:r,og:[w],NB:1};if(0===n.length&&h.length<this.AL)return h.push(r),r.request=this.sP(f,e,x,this.withCredentials),r;n.push(r);
return null};e.prototype.Um=function(f,e,w){var x=this.zu(f,e,this.oz);(f=this.h6(x,e,this.oz,w,this.Ue))&&f.request.start(Object(r.d)(f));return function(){var f=Object(r.c)(x,e,h);if(-1!==f){var w=--h[f].NB;0===w&&h[f].request&&h[f].request.abort()}else f=Object(r.c)(x,e,n),-1!==f&&(w=--n[f].NB,0===w&&n.splice(f,1))}};e.prototype.OQ=function(){return{start:-ha.a}};e.prototype.r9=function(){var f=-(ha.a+ha.e);return{start:f-ha.d,end:f}};e.prototype.Vr=function(f){var e=this;this.vz=!0;var h=ha.a;
this.Um(this.url,this.OQ(),function(n,r,w){function x(){var h=e.Ld.KQ();e.Um(e.url,h,function(n,r){if(n)return Object(aa.i)("Error loading central directory: "+n),f(n);r=Object(z.a)(r);if(r.length!==h.stop-h.start)return f("Invalid XOD file: Zip central directory data is wrong size! Should be "+(h.stop-h.start)+" but is "+r.length);e.Ld.pU(r);e.yF=!0;e.vz=!1;return f(!1)})}if(n)return Object(aa.i)("Error loading end header: "+n),f(n,r,w);r=Object(z.a)(r);if(r.length!==h)return f("Invalid XOD file: Zip end header data is wrong size!");
try{e.Ld=new ca.a(r)}catch(ka){return f(ka)}e.Ld.S$?e.Um(e.url,e.r9(),function(h,n){if(h)return Object(aa.i)("Error loading zip64 header: "+h),f(h);n=Object(z.a)(n);e.Ld.jaa(n);x()}):x()})};e.prototype.fR=function(f){f(Object.keys(this.Ld.ym))};e.prototype.tJ=function(f,e){var h=this;if(this.Ld.iP(f)){var n=this.Ld.FA(f);if(n in this.ul){var r=this.vh[f];r.Qq=this.ul[n];r.Qq.sl++;r.cancel=r.Qq.cancel}else{var w=this.Ld.N7(f),y=this.Um(this.url,w,function(r,x){r?(Object(aa.i)('Error loading part "'+
f+'": '+r),h.Um(h.url,w,function(r,x){if(r)return e(r,f);h.tU(x,w,n,f,e)})):h.tU(x,w,n,f,e)}),z=this.vh[f];z&&(z.rW=!0,z.cancel=function(){z.Qq.sl--;0===z.Qq.sl&&(y(),delete h.ul[n])},this.ul[n]=new x(n),z.Qq=this.ul[n],z.Qq.cancel=z.cancel)}}else delete this.vh[f],e(Error('File not found: "'+f+'"'),f)};e.prototype.tU=function(f,e,h,n,r){if(f.length!==e.stop-e.start)r(Error("Part data is wrong size!"),n);else{do{if(!this.ul[h])return;n=this.ul[h].sl;for(var w=e.Dp.length,x=0;x<w;++x){var y=e.Dp[x];
r(!1,y.yp,f["string"===typeof f?"substring":"subarray"](y.start,y.stop),this.Ld.dS(y.yp));y.yp in this.vh&&delete this.vh[y.yp]}}while(n!==this.ul[h].sl);delete this.ul[h]}};e.DISABLE_RANGE_HEADER=!1;e.AL=3;return e}(ia.a);(function(f){function e(e,h,n){var r=f.call(this)||this,w;for(w in e)r[w]=e[w];r.bla=e;r.startOffset=h;r.endOffset=n;r.sP=function(f,h,n,w){Object(ea.isUndefined)(h.stop)?(h.start+=r.endOffset,h.stop=r.endOffset):(h.start+=r.startOffset,h.stop+=r.startOffset);f=r.zu(r.url,h,r.oz);
return new e.pw(f,h,n,w)};return r}Object(ba.c)(e,f);return e})(ja);Object(e.a)(ja);Object(e.b)(ja);da["default"]=ja}}]);}).call(this || window)

View File

@ -1,4 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[9],{391:function(ia,da,e){e.r(da);var ba=e(1),ea=e(232);ia=e(383);var aa=e(29);e=e(351);var ha={},ca=function(e){function w(w,r){var n=e.call(this,w,r)||this;n.url=w;n.range=r;n.status=ea.a.NOT_STARTED;return n}Object(ba.c)(w,e);w.prototype.start=function(e){var r=this;ha[this.range.start]={Os:function(h){var f=atob(h),n,w=f.length;h=new Uint8Array(w);for(n=0;n<w;++n)h[n]=f.charCodeAt(n);f=h.length;n="";var y=0;if(Object(aa.q)())for(;y<
f;)w=h.subarray(y,y+1024),y+=1024,n+=String.fromCharCode.apply(null,w);else for(w=Array(1024);y<f;){for(var z=0,ca=Math.min(y+1024,f);y<ca;z++,y++)w[z]=h[y];n+=String.fromCharCode.apply(null,1024>z?w.slice(0,z):w)}r.Os(n,e)},dQ:function(){r.status=ea.a.ERROR;e({code:r.status})}};var n=document.createElement("IFRAME");n.setAttribute("src",this.url);document.documentElement.appendChild(n);n.parentNode.removeChild(n);n=null;this.status=ea.a.STARTED;r.NA()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,
r,n,h){w=e.call(this,w,r,n,h)||this;w.pw=ca;return w}Object(ba.c)(w,e);w.prototype.zu=function(e,r){return e+"#"+r.start+"&"+(r.stop?r.stop:"")};w.gla=function(e,r){var n=ha[r];delete ha[r];n.Os(e)};w.fla=function(e,r){e=ha[r];delete ha[r];e.dQ()};return w}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,5 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[10],{385:function(ia,da,e){e.r(da);var ba=e(1),ea=e(2),aa=e(138);ia=e(88);var ha=e(233);e=e(351);var ca=window;ia=function(e){function w(w,r,n){r=e.call(this,w,r,n)||this;if(w.name&&"xod"!==w.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!ca.FileReader||!ca.File||!ca.Blob)throw Error("File API is not supported in this browser");r.file=w;r.zz=[];r.MF=0;return r}Object(ba.c)(w,e);w.prototype.yI=function(e,r,
n){var h=this,f=new FileReader;f.onloadend=function(e){if(0<h.zz.length){var w=h.zz.shift();w.Mca.readAsBinaryString(w.file)}else h.MF--;if(f.error){e=f.error;if(e.code===e.ABORT_ERR){Object(ea.i)("Request for chunk "+r.start+"-"+r.stop+" was aborted");return}return n(e)}if(e=f.content||e.target.result)return n(!1,e);Object(ea.i)("No data was returned from FileReader.")};r&&(e=(e.slice||e.webkitSlice||e.mozSlice||e.cka).call(e,r.start,r.stop));0===h.zz.length&&50>h.MF?(f.readAsBinaryString(e),h.MF++):
h.zz.push({Mca:f,file:e});return function(){f.abort()}};w.prototype.Vr=function(e){var r=this;r.vz=!0;var n=aa.a;r.yI(r.file,{start:-n,stop:r.file.size},function(h,f){if(h)return Object(ea.i)("Error loading end header: %s "+h),e(h);if(f.length!==n)throw Error("Zip end header data is wrong size!");r.Ld=new ha.a(f);var w=r.Ld.KQ();r.yI(r.file,w,function(f,h){if(f)return Object(ea.i)("Error loading central directory: %s "+f),e(f);if(h.length!==w.stop-w.start)throw Error("Zip central directory data is wrong size!");
r.Ld.pU(h);r.yF=!0;r.vz=!1;return e(!1)})})};w.prototype.tJ=function(e,r){var n=this,h=n.vh[e];if(n.Ld.iP(e)){var f=n.Ld.$u(e),w=n.yI(n.file,f,function(h,w){delete n.vh[e];if(h)return Object(ea.i)('Error loading part "%s": %s, '+e+", "+h),r(h);if(w.length!==f.stop-f.start)throw Error("Part data is wrong size!");r(!1,e,w,n.Ld.dS(e))});h.rW=!0;h.cancel=w}else r(Error('File not found: "'+e+'"'),e)};return w}(ia.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,4 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{386:function(ia,da,e){e.r(da);var ba=e(1);ia=e(48);var ea=e(351),aa=e(218),ha=e(21),ca=window;e=function(){function e(e){var w=this;this.u$=function(e){return e&&("image"===e.type.split("/")[0].toLowerCase()||e.name&&!!e.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=e;this.H$=new Promise(function(r){return Object(ba.b)(w,void 0,void 0,function(){var n;return Object(ba.d)(this,function(h){switch(h.label){case 0:return this.u$(this.file)?
[4,Object(aa.b)(e)]:[3,2];case 1:n=h.da(),this.file=ha.o?new Blob([n],{type:e.type}):new File([n],null===e||void 0===e?void 0:e.name,{type:e.type}),h.label=2;case 2:return r(!0),[2]}})})})}e.prototype.getFileData=function(w){var y=this,r=new FileReader;r.onload=function(n){y.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[n.loaded,n.loaded]);w(new Uint8Array(n.target.result))};r.onprogress=function(n){n.lengthComputable&&y.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[n.loaded,0<n.total?n.total:0])};r.readAsArrayBuffer(this.file)};
e.prototype.getFile=function(){return Object(ba.b)(this,void 0,Promise,function(){return Object(ba.d)(this,function(e){switch(e.label){case 0:return[4,this.H$];case 1:return e.da(),ca.utils.isJSWorker?[2,this.file.path]:[2,this.file]}})})};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return e}();Object(ia.a)(e);Object(ea.a)(e);Object(ea.b)(e);da["default"]=e}}]);}).call(this || window)

View File

@ -1,16 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[12],{397:function(ia,da,e){function ba(f){f.Ia();f.advance();var e=f.current.textContent;f.Za();return e}function ea(f){var e=[];for(f.Ia();f.advance();){var h=f.La();"field"===h?e.push(String(f.ea("name"))):Object(fa.i)("unrecognised field list element: "+h)}f.Za();return e}function aa(f,e){return e?"false"!==f:"true"===f}function ha(f,e){var h=f.La();switch(h){case "javascript":return{name:"JavaScript",javascript:f.current.textContent};
case "uri":return{name:"URI",uri:f.ea("uri")};case "goto":h=null;f.Ia();if(f.advance()){var n=f.ea("fit");h={page:f.ea("page"),fit:n};if("0"===h.page)Object(fa.i)("null page encountered in dest");else switch(e=e(Number(h.page)),n){case "Fit":case "FitB":break;case "FitH":case "FitBH":h.top=e.qa({x:0,y:f.ea("top")||0}).y;break;case "FitV":case "FitBV":h.left=e.qa({x:f.ea("left")||0,y:0}).x;break;case "FitR":n=e.qa({x:f.ea("left")||0,y:f.ea("top")||0});e=e.qa({x:f.ea("right")||0,y:f.ea("bottom")||0});
e=new na.d(n.x,n.y,e.x,e.y);h.top=e.ia;h.left=e.la;h.bottom=e.ja;h.right=e.ma;break;case "XYZ":n=e.qa({x:f.ea("left")||0,y:f.ea("top")||0});h.top=n.y;h.left=n.x;h.zoom=f.ea("zoom")||0;break;default:Object(fa.i)("unknown dest fit: "+n)}h={name:"GoTo",dest:h}}else Object(fa.i)("missing dest in GoTo action");f.Za();return h;case "submit-form":h={name:"SubmitForm",url:f.ea("url"),format:f.ea("format"),method:f.ea("method")||"POST",exclude:aa(f.ea("exclude"),!1)};e=f.ea("flags");h.flags=e?e.split(" "):
[];for(f.Ia();f.advance();)switch(e=f.La(),e){case "fields":h.fields=ea(f);break;default:Object(fa.i)("unrecognised submit-form child: "+e)}f.Za();return h;case "reset-form":h={name:"ResetForm",exclude:aa(f.ea("exclude"),!1)};for(f.Ia();f.advance();)switch(e=f.La(),e){case "fields":h.fields=ea(f);break;default:Object(fa.i)("unrecognised reset-form child: "+e)}f.Za();return h;case "hide":h={name:"Hide",hide:aa(f.ea("hide"),!0)};for(f.Ia();f.advance();)switch(e=f.La(),e){case "fields":h.fields=ea(f);
break;default:Object(fa.i)("unrecognised hide child: "+e)}f.Za();return h;case "named":return{name:"Named",action:f.ea("name")};default:Object(fa.i)("Encountered unexpected action type: "+h)}return null}function ca(f,e,h){var n={};for(f.Ia();f.advance();){var r=f.La();switch(r){case "action":r=f.ea("trigger");if(e?-1!==e.indexOf(r):1){n[r]=[];for(f.Ia();f.advance();){var w=ha(f,h);Object(ma.isNull)(w)||n[r].push(w)}f.Za()}else Object(fa.i)("encountered unexpected trigger on field: "+r);break;default:Object(fa.i)("encountered unknown action child: "+
r)}}f.Za();return n}function z(f){return new pa.a(f.ea("r")||0,f.ea("g")||0,f.ea("b")||0,f.ea("a")||1)}function w(f,e){var h=f.ea("name"),n=f.ea("type")||"Type1",r=f.ea("size"),w=e.qa({x:0,y:0});r=e.qa({x:Number(r),y:0});e=w.x-r.x;w=w.y-r.y;h={name:h,type:n,size:Math.sqrt(e*e+w*w)||0,strokeColor:[0,0,0],fillColor:[0,0,0]};for(f.Ia();f.advance();)switch(n=f.La(),n){case "stroke-color":h.strokeColor=z(f);break;case "fill-color":h.fillColor=z(f);break;default:Object(fa.i)("unrecognised font child: "+
n)}f.Za();return h}function y(f){return{value:f.ea("value"),displayValue:f.ea("display-value")||void 0}}function r(f){var e=[];for(f.Ia();f.advance();){var h=f.La();switch(h){case "option":e.push(y(f));break;default:Object(fa.i)("unrecognised options child: "+h)}}f.Za();return e}function n(f,e){var h=f.ea("name"),n={type:f.ea("type"),quadding:f.ea("quadding")||"Left-justified",maxLen:f.ea("max-len")||-1},x=f.ea("flags");Object(ma.isString)(x)&&(n.flags=x.split(" "));for(f.Ia();f.advance();)switch(x=
f.La(),x){case "actions":n.actions=ca(f,["C","F","K","V"],function(){return e});break;case "default-value":n.defaultValue=ba(f);break;case "font":n.font=w(f,e);break;case "options":n.options=r(f);break;default:Object(fa.i)("unknown field child: "+x)}f.Za();return new window.Annotations.ga.pa(h,n)}function h(f,e){switch(f.type){case "Tx":try{if(Object(ra.c)(f.actions))return new ja.a.DatePickerWidgetAnnotation(f,e)}catch(ua){Object(fa.i)(ua)}return new ja.a.TextWidgetAnnotation(f,e);case "Ch":return f.flags.get(oa.WidgetFlags.COMBO)?
new ja.a.ChoiceWidgetAnnotation(f,e):new ja.a.ListWidgetAnnotation(f,e);case "Btn":return f.flags.get(oa.WidgetFlags.PUSH_BUTTON)?new ja.a.PushButtonWidgetAnnotation(f,e):f.flags.get(oa.WidgetFlags.RADIO)?new ja.a.RadioButtonWidgetAnnotation(f,e):new ja.a.CheckButtonWidgetAnnotation(f,e);case "Sig":return new ja.a.SignatureWidgetAnnotation(f,e);default:Object(fa.i)("Unrecognised field type: "+f.type)}return null}function f(f,e){var h={number:f.ea("number")};for(f.Ia();f.advance();){var n=f.La();switch(n){case "actions":h.actions=
ca(f,["O","C"],e);break;default:Object(fa.i)("unrecognised page child: "+n)}}f.Za();return h}function x(e,r,x,y){var aa=[],ba={};e.Ia();var da=[],ha={},ia=[];Object(la.a)(function(){if(e.advance()){var x=e.La();switch(x){case "calculation-order":da="calculation-order"===e.La()?ea(e):[];break;case "document-actions":ha=ca(e,["Init","Open"],r);break;case "pages":x=[];for(e.Ia();e.advance();){var y=e.La();switch(y){case "page":x.push(f(e,r));break;default:Object(fa.i)("unrecognised page child: "+y)}}e.Za();
ia=x;break;case "field":y=n(e,r(1));ba[y.name]=y;break;case "widget":x={border:{style:"Solid",width:1},backgroundColor:[],fieldName:e.ea("field"),page:e.ea("page"),index:e.ea("index")||0,rotation:e.ea("rotation")||0,flags:[],isImporting:!0};(y=e.ea("appearance"))&&(x.appearance=y);(y=e.ea("flags"))&&(x.flags=y.split(" "));for(e.Ia();e.advance();)switch(y=e.La(),y){case "rect":var ja=e,ka=r(Number(x.page));y=ka.qa({x:ja.ea("x1")||0,y:ja.ea("y1")||0});ja=ka.qa({x:ja.ea("x2")||0,y:ja.ea("y2")||0});y=
new na.d(y.x,y.y,ja.x,ja.y);y.normalize();x.rect={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2};break;case "border":y=e;ja={style:y.ea("style")||"Solid",width:y.ea("width")||1,color:[0,0,0]};for(y.Ia();y.advance();)switch(ka=y.La(),ka){case "color":ja.color=z(y);break;default:Object(fa.i)("unrecognised border child: "+ka)}y.Za();x.border=ja;break;case "background-color":x.backgroundColor=z(e);break;case "actions":x.actions=ca(e,"E X D U Fo Bl PO PC PV PI".split(" "),r);break;case "appearances":y=e;ja=Object(ra.b)(x,
"appearances");for(y.Ia();y.advance();)if(ka=y.La(),"appearance"===ka){ka=y.ea("name");var ua=Object(ra.b)(ja,ka);ka=y;for(ka.Ia();ka.advance();){var oa=ka.La();switch(oa){case "Normal":Object(ra.b)(ua,"Normal").data=ka.current.textContent;break;default:Object(fa.i)("unexpected appearance state: ",oa)}}ka.Za()}else Object(fa.i)("unexpected appearances child: "+ka);y.Za();break;case "extra":y=e;ja=r;ka={};for(y.Ia();y.advance();)switch(ua=y.La(),ua){case "font":ka.font=w(y,ja(1));break;default:Object(fa.i)("unrecognised extra child: "+
ua)}y.Za();y=ka;y.font&&(x.font=y.font);break;case "captions":ja=e;y={};(ka=ja.ea("Normal"))&&(y.Normal=ka);(ka=ja.ea("Rollover"))&&(y.Rollover=ka);(ja=ja.ea("Down"))&&(y.Down=ja);x.captions=y;break;default:Object(fa.i)("unrecognised widget child: "+y)}e.Za();(y=ba[x.fieldName])?(x=h(y,x),aa.push(x)):Object(fa.i)("ignoring widget with no corresponding field data: "+x.fieldName);break;default:Object(fa.i)("Unknown element encountered in PDFInfo: "+x)}return!0}return!1},function(){e.Za();x({calculationOrder:da,
widgets:aa,fields:ba,documentActions:ha,pages:ia,custom:[]})},y)}e.r(da);e.d(da,"parse",function(){return x});var fa=e(2),ma=e(0);e.n(ma);var ja=e(112),na=e(4),pa=e(7),la=e(21),ra=e(98),oa=e(15)}}]);}).call(this || window)

View File

@ -1,15 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{399:function(ia,da,e){e.r(da);var ba=e(410),ea=e(110),aa=e(35),ha=e(71);ia=function(){function e(){this.rb=this.fe=this.Lb=this.Zb=null;this.ze=!1}e.prototype.clear=function(){Object(aa.b)(this.Zb);this.Lb="";Object(aa.b)(this.fe);Object(aa.b)(this.rb);this.ze=!1};e.prototype.Yc=function(){this.Zb=[];this.fe=[];this.rb=[];this.ze=!1};e.prototype.uy=function(e){for(var w="",y=0,r,n,h;y<e.length;)r=e.charCodeAt(y),9==r?(w+=String.fromCharCode(10),
y++):128>r?(w+=String.fromCharCode(r),y++):191<r&&224>r?(n=e.charCodeAt(y+1),w+=String.fromCharCode((r&31)<<6|n&63),y+=2):(n=e.charCodeAt(y+1),h=e.charCodeAt(y+2),w+=String.fromCharCode((r&15)<<12|(n&63)<<6|h&63),y+=3);return w};e.prototype.initData=function(e){this.Zb=[];this.fe=[];this.rb=[];this.ze=!1;try{var w=new ha.a(e);this.Lb="";w.Ia();if(!w.advance())return;var y=w.current.textContent;this.Lb=y=this.uy(y);Object(aa.b)(this.fe);w.advance();y=w.current.textContent;for(var r=y.split(","),n=
Object(ea.a)(r);n.il();){var h=n.current;try{var f=parseInt(h.trim());this.fe.push(f)}catch(la){}}Object(aa.b)(this.Zb);w.advance();y=w.current.textContent;r=y.split(",");for(var x=Object(ea.a)(r);x.il();){h=x.current;try{f=parseFloat(h.trim()),this.Zb.push(f)}catch(la){}}Object(aa.b)(this.rb);w.advance();y=w.current.textContent;r=y.split(",");e=[];w=[];y=0;for(var z=Object(ea.a)(r);z.il();){h=z.current;switch(h){case "Q":y=1;break;case "R":y=2;break;case "S":y=3;break;default:y=0}if(y)e.push(0),
w.push(y);else try{f=parseFloat(h.trim()),e.push(f),w.push(y)}catch(la){return}}y=0;var ba=e.length;n=z=h=r=void 0;for(var ca=x=0,da=0;da<ba;){var ia=w[da];if(0<ia)y=ia,++da,3===y&&(x=e[da],ca=e[da+1],da+=2);else if(1===y)for(f=0;8>f;++f)this.rb.push(e[da++]);else 2===y?(r=e[da++],h=e[da++],z=e[da++],n=e[da++],this.rb.push(r),this.rb.push(h),this.rb.push(z),this.rb.push(h),this.rb.push(z),this.rb.push(n),this.rb.push(r),this.rb.push(n)):3===y&&(r=e[da++],h=x,z=e[da++],n=ca,this.rb.push(r),this.rb.push(h),
this.rb.push(z),this.rb.push(h),this.rb.push(z),this.rb.push(n),this.rb.push(r),this.rb.push(n))}}catch(la){return}this.Lb.length&&this.Lb.length===this.fe.length&&8*this.Lb.length===this.rb.length&&(this.ze=!0)};e.prototype.ready=function(){return this.ze};e.prototype.av=function(){var e=new ba.a;if(!this.Zb.length)return e.Ag(this.Zb,-1,this.Lb,this.rb,0),e;e.Ag(this.Zb,1,this.Lb,this.rb,1);return e};e.prototype.Ye=function(){return this.rb};e.prototype.getData=function(){return{m_Struct:this.Zb,
m_Str:this.Lb,m_Offsets:this.fe,m_Quads:this.rb,m_Ready:this.ze}};return e}();da["default"]=ia},410:function(ia,da,e){var ba=e(80),ea=e(46),aa=e(426);ia=function(){function e(){this.Od=0;this.pb=this.Ca=this.Oe=null;this.Cc=0;this.Nd=null}e.prototype.Yc=function(){this.Od=-1;this.Cc=0;this.Nd=[]};e.prototype.Ag=function(e,z,w,y,r){this.Od=z;this.Cc=r;this.Nd=[];this.Oe=e;this.Ca=w;this.pb=y};e.prototype.qc=function(e){return this.Od===e.Od};e.prototype.ij=function(){return Math.abs(this.Oe[this.Od])};
e.prototype.dl=function(){return 0<this.Oe[this.Od]};e.prototype.vg=function(){var e=this.dl()?6:10,z=new aa.a;z.Ag(this.Oe,this.Od+e,this.Od,this.Ca,this.pb,1);return z};e.prototype.yR=function(e){if(0>e||e>=this.ij())return e=new aa.a,e.Ag(this.Oe,-1,-1,this.Ca,this.pb,0),e;var z=this.dl()?6:10,w=this.dl()?5:11,y=new aa.a;y.Ag(this.Oe,this.Od+z+w*e,this.Od,this.Ca,this.pb,1+e);return y};e.prototype.Em=function(){var aa=this.Od+parseInt(this.Oe[this.Od+1]);if(aa>=this.Oe.length)return aa=new e,aa.Ag(this.Oe,
-1,this.Ca,this.pb,0),aa;var z=new e;z.Ag(this.Oe,aa,this.Ca,this.pb,this.Cc+1);return z};e.prototype.se=function(e){if(this.dl())e.la=this.Oe[this.Od+2+0],e.ia=this.Oe[this.Od+2+1],e.ma=this.Oe[this.Od+2+2],e.ja=this.Oe[this.Od+2+3];else{for(var z=1.79769E308,w=ba.a.MIN,y=1.79769E308,r=ba.a.MIN,n=0;4>n;++n){var h=this.Oe[this.Od+2+2*n],f=this.Oe[this.Od+2+2*n+1];z=Math.min(z,h);w=Math.max(w,h);y=Math.min(y,f);r=Math.max(r,f)}e.la=z;e.ia=y;e.ma=w;e.ja=r}};e.prototype.CA=function(){if(this.Nd.length)return this.Nd[0];
var e=new ea.a,z=new ea.a,w=new aa.a;w.Yc();var y=this.vg(),r=new aa.a;r.Yc();for(var n=this.vg();!n.qc(w);n=n.wg())r=n;w=Array(8);n=Array(8);y.te(0,w);e.x=(w[0]+w[2]+w[4]+w[6])/4;e.y=(w[1]+w[3]+w[5]+w[7])/4;r.te(r.hj()-1,n);z.x=(n[0]+n[2]+n[4]+n[6])/4;z.y=(n[1]+n[3]+n[5]+n[7])/4;.01>Math.abs(e.x-z.x)&&.01>Math.abs(e.y-z.y)&&this.Nd.push(0);e=Math.atan2(z.y-e.y,z.x-e.x);e*=180/3.1415926;0>e&&(e+=360);this.Nd.push(e);return 0};return e}();da.a=ia},426:function(ia,da,e){var ba=e(410),ea=e(89),aa=e(80);
ia=function(){function e(){this.gk=this.sd=0;this.pb=this.Ca=this.Zb=null;this.Cc=0}e.prototype.Yc=function(){this.gk=this.sd=-1;this.Cc=0};e.prototype.Ag=function(e,z,w,y,r,n){this.sd=z;this.gk=w;this.Zb=e;this.Ca=y;this.pb=r;this.Cc=n};e.prototype.qc=function(e){return this.sd===e.sd};e.prototype.hj=function(){return parseInt(this.Zb[this.sd])};e.prototype.di=function(){return parseInt(this.Zb[this.sd+2])};e.prototype.zg=function(){return parseInt(this.Zb[this.sd+1])};e.prototype.dl=function(){return 0<
this.Zb[this.gk]};e.prototype.z8=function(){return Math.abs(this.Zb[this.gk])};e.prototype.wg=function(){var aa=this.dl(),z=aa?5:11;if(this.sd>=this.gk+(aa?6:10)+(this.z8()-1)*z)return z=new e,z.Ag(this.Zb,-1,-1,this.Ca,this.pb,0),z;aa=new e;aa.Ag(this.Zb,this.sd+z,this.gk,this.Ca,this.pb,this.Cc+1);return aa};e.prototype.T7=function(e){var z=this.hj();return 0>e||e>=z?-1:parseInt(this.Zb[this.sd+1])+e};e.prototype.te=function(e,z){e=this.T7(e);if(!(0>e)){var w=new ba.a;w.Ag(this.Zb,this.gk,this.Ca,
this.pb,0);if(w.dl()){var y=new ea.a;w.se(y);w=y.ia<y.ja?y.ia:y.ja;y=y.ia>y.ja?y.ia:y.ja;e*=8;z[0]=this.pb[e];z[1]=w;z[2]=this.pb[e+2];z[3]=z[1];z[4]=this.pb[e+4];z[5]=y;z[6]=this.pb[e+6];z[7]=z[5]}else for(e*=8,w=0;8>w;++w)z[w]=this.pb[e+w]}};e.prototype.Sd=function(e){var z=new ba.a;z.Ag(this.Zb,this.gk,this.Ca,this.pb,0);if(z.dl()){var w=this.Zb[this.sd+3],y=this.Zb[this.sd+4];if(w>y){var r=w;w=y;y=r}r=new ea.a;z.se(r);z=r.ia<r.ja?r.ia:r.ja;r=r.ia>r.ja?r.ia:r.ja;e[0]=w;e[1]=z;e[2]=y;e[3]=z;e[4]=
y;e[5]=r;e[6]=w;e[7]=r}else for(w=this.sd+3,y=0;8>y;++y)e[y]=this.Zb[w+y]};e.prototype.se=function(e){var z=new ba.a;z.Ag(this.Zb,this.gk,this.Ca,this.pb,0);if(z.dl()){var w=this.Zb[this.sd+3],y=this.Zb[this.sd+4];if(w>y){var r=w;w=y;y=r}r=new ea.a;z.se(r);z=r.ia<r.ja?r.ia:r.ja;r=r.ia>r.ja?r.ia:r.ja;e[0]=w;e[1]=z;e[2]=y;e[3]=r}else{w=1.79769E308;y=aa.a.MIN;z=1.79769E308;r=aa.a.MIN;for(var n=this.sd+3,h=0;4>h;++h){var f=this.Zb[n+2*h],x=this.Zb[n+2*h+1];w=Math.min(w,f);y=Math.max(y,f);z=Math.min(z,
x);r=Math.max(r,x)}e[0]=w;e[1]=z;e[2]=y;e[3]=r}};return e}();da.a=ia}}]);}).call(this || window)

View File

@ -1,10 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{392:function(ia,da,e){e.r(da);var ba=e(1),ea=e(0);e.n(ea);var aa=e(2),ha=e(138);ia=e(48);var ca=e(88),z=e(233),w=e(64),y=e(232);e=e(351);var r=window,n=function(){function e(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(f){case w.a.NEVER_CACHE:this.url=e+n+"_="+Object(ea.uniqueId)();break;default:this.url=e}this.Ue=h;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With",
"XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(f,h){var n=this,r=this,w=this.request,x;r.Iv=0;f&&Object.keys(f).forEach(function(e){n.request.setRequestHeader(e,f[e])});h&&(this.request.withCredentials=h);this.jC=setInterval(function(){var f=0===window.document.URL.indexOf("file:///");f=200===w.status||f&&0===w.status;
if(w.readyState!==y.b.DONE||f){try{w.responseText}catch(oa){return}r.Iv<w.responseText.length&&(x=r.tca())&&r.trigger(e.Events.DATA,[x]);0===w.readyState&&(clearInterval(r.jC),r.trigger(e.Events.DONE))}else clearInterval(r.jC),r.trigger(e.Events.DONE,["Error received return status "+w.status])},1E3);this.request.send(null);this.status=y.a.STARTED};e.prototype.tca=function(){var f=this.request,h=f.responseText;if(0!==h.length)if(this.Iv===h.length)clearInterval(this.jC),this.trigger(e.Events.DONE);
else return h=Math.min(this.Iv+3E6,h.length),f=r.iR(f,this.Iv,!0,h),this.Iv=h,f};e.prototype.abort=function(){clearInterval(this.jC);var f=this;this.request.onreadystatechange=function(){Object(aa.i)("StreamingRequest aborted");f.status=y.a.ABORTED;return f.trigger(e.Events.ABORTED)};this.request.abort()};e.prototype.finish=function(){var f=this;this.request.onreadystatechange=function(){f.status=y.a.SUCCESS;return f.trigger(e.Events.DONE)};this.request.abort()};e.Events={DONE:"done",DATA:"data",
ABORTED:"aborted"};return e}();Object(ia.a)(n);var h;(function(e){e[e.LOCAL_HEADER=0]="LOCAL_HEADER";e[e.FILE=1]="FILE";e[e.CENTRAL_DIR=2]="CENTRAL_DIR"})(h||(h={}));var f=function(e){function f(){var f=e.call(this)||this;f.buffer="";f.state=h.LOCAL_HEADER;f.FK=4;f.gl=null;f.Zr=ha.c;f.ym={};return f}Object(ba.c)(f,e);f.prototype.nca=function(e){var n;for(e=this.buffer+e;e.length>=this.Zr;)switch(this.state){case h.LOCAL_HEADER:this.gl=n=this.xca(e.slice(0,this.Zr));if(n.Hs!==ha.g)throw Error("Wrong signature in local header: "+
n.Hs);e=e.slice(this.Zr);this.state=h.FILE;this.Zr=n.pF+n.pp+n.Ou+this.FK;this.trigger(f.Events.HEADER,[n]);break;case h.FILE:this.gl.name=e.slice(0,this.gl.pp);this.ym[this.gl.name]=this.gl;n=this.Zr-this.FK;var r=e.slice(this.gl.pp+this.gl.Ou,n);this.trigger(f.Events.FILE,[this.gl.name,r,this.gl.GF]);e=e.slice(n);if(e.slice(0,this.FK)===ha.h)this.state=h.LOCAL_HEADER,this.Zr=ha.c;else return this.state=h.CENTRAL_DIR,!0}this.buffer=e;return!1};f.Events={HEADER:"header",FILE:"file"};return f}(z.a);
Object(ia.a)(f);ia=function(e){function h(h,r,w,x,y){w=e.call(this,h,w,x)||this;w.url=h;w.stream=new n(h,r);w.Ld=new f;w.$T=window.createPromiseCapability();w.zU={};w.Ue=y;return w}Object(ba.c)(h,e);h.prototype.yw=function(e){var h=this;this.request([this.Ii,this.$j,this.Hi]);this.stream.addEventListener(n.Events.DATA,function(f){try{if(h.Ld.nca(f))return h.stream.finish()}catch(pa){throw h.stream.abort(),h.Lu(pa),e(pa),pa;}});this.stream.addEventListener(n.Events.DONE,function(f){h.Sba=!0;h.$T.resolve();
f&&(h.Lu(f),e(f))});this.Ld.addEventListener(f.Events.HEADER,Object(ea.bind)(this.yU,this));this.Ld.addEventListener(f.Events.FILE,Object(ea.bind)(this.Nca,this));return this.stream.start(this.Ue,this.withCredentials)};h.prototype.fR=function(e){var f=this;this.$T.promise.then(function(){e(Object.keys(f.Ld.ym))})};h.prototype.bn=function(){return!0};h.prototype.request=function(e){var f=this;this.Sba&&e.forEach(function(e){f.zU[e]||f.dha(e)})};h.prototype.yU=function(){};h.prototype.abort=function(){this.stream&&
this.stream.abort()};h.prototype.dha=function(e){this.trigger(ca.a.Events.PART_READY,[{bb:e,error:"Requested part not found",Uh:!1,Jf:!1}])};h.prototype.Nca=function(e,f,h){this.zU[e]=!0;this.trigger(ca.a.Events.PART_READY,[{bb:e,data:f,Uh:!1,Jf:!1,error:null,Vc:h}])};return h}(ca.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,3 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[15],{395:function(ia,da,e){e.r(da);var ba=e(1),ea=e(0);e.n(ea);ia=e(88);e=e(351);ia=function(e){function aa(aa,z,w){z=e.call(this,aa,z,w)||this;z.db=aa;return z}Object(ba.c)(aa,e);aa.prototype.request=function(e){var z=this;Object(ea.each)(e,function(e){z.db.get(e,function(w,r,n){return w?z.trigger("partReady",{bb:e,error:w}):z.trigger("partReady",{bb:e,data:r,Uh:!1,Jf:!1,error:null,Vc:n})})})};aa.prototype.Vr=function(e){e()};return aa}(ia.a);
Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,32 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[16],{394:function(ia,da,e){function ba(e,f,h){f.endsWith("/")||(f+="/");h=h||{};var n=h.disableWebsockets||!1;this.hW=h.singleServerMode||!1;null!=h.customQueryParameters&&Object(x.b)("wvsQueryParameters",h.customQueryParameters);f.endsWith("blackbox/")||(f+="blackbox/");this.sn=h.uploadData||null;this.hx=h.uriData||null;this.QO=h.cacheKey||null;this.mT=h.officeLocale||null;this.yu=Object(r.a)(f,null,n);this.df=f;this.YF=e;this.uf=
null;this.Hj=aa();this.qm=aa();this.Gz=!1;this.lg=this.Vd=this.ne=this.cf=null;this.yf=[];this.qA=[];this.cache={};this.timeStamp=0;this.Vf=[];this.oh=[];this.wG=null;this.PF=!1;this.ZJ=this.id=null;this.xI=this.KR=ha;this.yC=0;this.AH=!1;this.hT=1;this.ki={};this.Fq=0;this.ps=ea();this.Sp(!0)}function ea(){var e={Fr:{},Fb:[],pop:function(){var f=e.Fb.pop();e.Fr[f.key]=void 0;return f},push:function(f,h){h={key:f,data:h};e.Fb.push(h);e.Fr[f]=h.data},contains:function(f){return!!e.Fr[f]},get:function(f){return e.Fr[f]},
set:function(f,h){e.Fr[f]=h;e.Fb.forEach(function(h,n){h.key==f&&(e.Fb[n]=h)})},remove:function(f){e.Fr[f]=void 0;e.Fb.forEach(function(h,n){h.key==f&&e.Fb.splice(n,1)})},length:function(){return e.Fb.length}};return e}function aa(){var e={promise:null,resolve:null,reject:null,state:0,result:null,request:null,Qr:function(){return 1===(e.state&1)},I$:function(){return 2===(e.state&2)},hi:function(){return!e.I$()&&!e.Qr()},l$:function(){return 4===(e.state&4)},CV:function(){e.state|=4}};e.promise=new Promise(function(f,
h){e.resolve=function(){if(0===e.state||4===e.state)e.state=1,e.result=arguments[0],f.apply(null,arguments)};e.reject=function(){if(0===e.state||4===e.state)e.state=2,h.apply(null,arguments)}});return e}function ha(){return!1}function ca(e,f,h){if(!(f in ma))return!0;f=ma[f];for(var n=0;n<f.length;n++){var r=e;var w=f[n];var x=h;if(w.name in r){var y="",aa=!1;r=r[w.name];switch(w.type){case "s":y="String";aa=Object(z.isString)(r);break;case "a":y="Array";aa=Object(z.isArray)(r);break;case "n":y="Number";
aa=Object(z.isNumber)(r)&&Object(z.isFinite)(r);break;case "o":y="Object",aa=Object(z.isObject)(r)&&!Object(z.isArray)(r)}aa||x.reject('Expected response field "'+w.name+'" to have type '+y);w=aa}else x.reject('Response missing field "'+w.name+'"'),w=!1;if(!w)return!1}return!0}e.r(da);var z=e(0);e.n(z);var w=e(2);ia=e(48);var y=e(29),r=e(411),n=e(88),h=e(351),f=e(108),x=e(42),fa=e(158),ma={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],
health:[],tiles:[{name:"z",type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],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"}]};ba.prototype=Object(z.extend)(ba.prototype,{M3:function(){var e=this;return new Promise(function(f,h){var n=new XMLHttpRequest;n.open("GET",
e.df+"ck");n.withCredentials=e.Nk();n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(200===n.status?f():h())};n.send()})},ifa:function(e,f){this.KR=e||ha;this.xI=f||ha},fP:function(){var e=this;this.qm=aa();this.Hj=aa();return this.yu.lG().then(function(){e.Gz=!1;e.id=null;e.PF=!1;return e.M3()})},KJ:function(){this.KR();this.TH();this.cf&&(this.cf.hi()?this.Lg(this.cf.request):this.cf.Qr()&&this.xI(this.cf.result.url,"pdf")&&(this.cf=null,this.aV()));this.lg&&this.lg.hi()&&this.Lg(this.lg.request);
this.ne&&this.ne.hi()?this.Lg(this.ne.request):this.Vd&&this.Vd.hi()&&this.zR(this.Vd.request);var e;for(e=0;e<this.Vf.length;e++)this.Vf[e]&&this.Vf[e]&&(this.Vf[e].hi()?this.Lg(this.Vf[e].request):this.Vf[e].Qr()&&this.xI(this.Vf[e].result.url,"image")&&(this.Vf[e]=null,this.vC(Object(z.uniqueId)(),e)));for(e=0;e<this.oh.length;e++)this.oh[e]&&this.oh[e]&&this.oh[e].hi()&&!this.oh[e].l$()&&this.Lg(this.oh[e].request);for(e=0;e<this.yf.length;e++)this.yf[e]&&this.yf[e].hi()&&this.Lg(this.yf[e].request)},
TH:function(e){var h=this;this.Gz||(this.timeStamp=Date.now(),this.yu.IK(function(e){h.Vaa(e)},function(){return null},function(){return null},!0).then(function(){clearInterval(h.nC);h.nC=null},function(n){h.Gz=!1;if(!h.nC){var r=0;h.PF=!0;h.ZJ=0;h.nC=setInterval(function(){2>r++?h.KJ():(clearInterval(h.nC),e&&e.reject(f.a),Object(w.f)("WebViewerServer connection failed:"+n))},5E3)}}),this.Gz=!0)},zha:function(){var e=this,f=createPromiseCapability();if(this.sn){var h=new FormData;h.append("file",
this.sn.fileHandle,this.sn.fileHandle.name);var n=this.sn.loadCallback;var r="upload";var w=this.sn.extension}else if(this.hx){h={uri:this.hx.uri,zla:this.hx.shareId};h=Object.keys(h).map(function(e){return e+"="+(h[e]?encodeURIComponent(h[e]):"")}).join("&");var x="application/x-www-form-urlencoded; charset=UTF-8";n=this.hx.loadCallback;r="url";w=this.hx.extension}else return Promise.resolve();var z=new XMLHttpRequest,aa=Object(y.j)(e.df,"AuxUpload");aa=Object(fa.a)(aa)+"&type="+r+"&ext="+w;z.open("POST",
aa);z.withCredentials=this.Nk();x&&z.setRequestHeader("Content-Type",x);z.addEventListener("load",function(){if(z.readyState===z.DONE&&200===z.status){var h=JSON.parse(z.response);e.YF=h.uri;n(h);f.resolve(h)}});z.addEventListener("error",function(){f.reject(z.statusText+" "+JSON.stringify(z))});this.sn&&null!=this.sn.onProgress&&(z.upload.onprogress=function(f){e.sn.onProgress(f)});z.send(h);return f.promise},Lda:function(e){this.password=e||null;this.Hj.Qr()||(this.Hj=aa(),this.Lg({t:"pages"}));
return this.Hj.promise},yw:function(e){this.wG=e||null;this.Hj.Qr()||(this.TH(this.Hj),this.Lg({t:"pages"}));return this.Hj.promise},xu:function(e){e=Object.assign(e,{uri:encodeURIComponent(this.YF)});this.wG&&(e.ext=this.wG);this.uf&&(e.c=this.uf);this.password&&(e.pswd=this.password);this.QO&&(e.cacheKey=this.QO);this.mT&&(e.locale=this.mT);return e},oea:function(){0<this.ps.length()&&10>=this.Fq&&this.pea(this.ps.pop().data)},Z1:function(e){return 0<this.ps.length()&&this.ps.contains(e)?(this.ps.remove(e),
!0):!1},Lg:function(e){e=this.xu(e);this.yu.send(e)},rV:function(e,f){10<this.Fq?this.ps.push(e,f):(this.Fq++,e=this.xu(f),this.yu.send(e))},pea:function(e){this.Fq++;e=this.xu(e);this.yu.send(e)},zk:function(e){return e},Vaa:function(e){var f=this,h=e.data,r=e.err,y=e.t;switch(y){case "upload":r?f.Aha.reject(r):f.Aha.resolve("Success");break;case "pages":r?f.Hj.reject(r):ca(h,y,f.Hj)&&f.Hj.resolve(h);break;case "config":if(r)f.qm.reject(r);else if(ca(h,y,f.qm)){h.id&&(f.id=h.id);if(h.auth){var z=
Object(x.a)("wvsQueryParameters");z.auth=h.auth;Object(x.b)("wvsQueryParameters",z)}h.serverVersion&&(f.rX=h.serverVersion,Object(w.g)("[WebViewer Server] server version: "+f.rX));h.serverID?(f.yC=h.serverID===f.ZJ&&f.AH?f.yC+1:0,f.ZJ=h.serverID):f.yC=0;f.AH=!1;f.qm.resolve(h)}break;case "health":r?f.qm.reject(r):ca(h,y,f.qm)&&(h=h.unhealthy,f.hW&&h?Object(w.i)("Server failed health check. Single server mode ignoring check."):!f.Pja&&h&&1>=f.yC&&(f.AH=!0,f.fP().then(function(){f.KJ()},function(){f.KJ()})));
break;case "pdf":h.url=Object(fa.a)(f.df+"../"+encodeURI(h.url));r?f.cf.reject(r):ca(h,y,f.cf)&&f.cf.resolve(h);break;case "ApString2Xod":h.url=Object(fa.a)(f.df+"../data/"+encodeURI(h.url));r?f.ki[h.rID].reject(r):ca(h,y,f.ki[h.rID])&&f.ki[h.rID].resolve(h);break;case "docmod":h.url=Object(fa.a)(f.df+"../"+encodeURI(h.url));r?f.ki[h.rID].reject(r):ca(h,y,f.cf)&&f.ki[h.rID].resolve(h);break;case "xod":if(r)this.ne&&this.ne.hi()&&this.ne.reject(r),this.Vd&&this.Vd.hi()&&this.Vd.reject(r);else if(h.notFound)h.noCreate||
this.ne&&this.ne.hi()&&this.ne.resolve(h),this.Vd&&this.Vd.hi()&&this.Vd.resolve(h);else{h.url&&(h.url=Object(fa.a)(f.df+"../"+encodeURI(h.url)));if(!this.Vd||this.Vd.Qr())this.Vd=aa(),this.Vd.request={t:"xod",noCreate:!0};this.ne||(this.ne=aa(),this.ne.request={t:"xod"});this.Vd.resolve(h);this.ne.resolve(h)}break;case "annots":if(r)f.lg.reject(r);else if(ca(h,y,f.lg)){f.lg.CV();var ba=new XMLHttpRequest;z=f.df+"../"+encodeURI(h.url);var ea=h.hasAppearance?Object(fa.a)(z+".xodapp"):null;ba.open("GET",
Object(fa.a)(z));ba.responseType="text";ba.withCredentials=this.Nk();ba.addEventListener("load",function(){ba.readyState===ba.DONE&&200===ba.status&&f.lg.resolve({cL:ba.response,jz:ea})});ba.addEventListener("error",function(){f.lg.reject(ba.statusText+" "+JSON.stringify(ba))});ba.send()}break;case "image":f.Fq--;var da=this.Vf[h.p];r?da.promise.reject(r):ca(h,y,da)&&(da.result=h,da.result.url=Object(fa.a)(f.df+"../"+encodeURI(da.result.url)),da.resolve(da.result));break;case "tiles":f.Fq--;da=h.rID;
z=this.yf[da];this.yf[da]=null;this.qA.push(da);if(r)z.reject(r);else if(ca(h,y,z)){for(r=0;r<h.tiles.length;r++)h.tiles[r]=Object(fa.a)(f.df+"../"+encodeURI(h.tiles[r]));z.resolve(h)}break;case "text":da=this.oh[h.p];if(r)da.reject(r);else if(ca(h,y,da)){da.CV();var ha=new XMLHttpRequest;h=Object(fa.a)(f.df+"../"+encodeURI(h.url));ha.open("GET",h);ha.withCredentials=this.Nk();ha.addEventListener("load",function(){ha.readyState===ha.DONE&&200===ha.status&&(da.result=JSON.parse(ha.response),da.resolve(da.result))});
ha.addEventListener("error",function(e){da.reject(ha.statusText+" "+JSON.stringify(e))});ha.send()}break;case "progress":"loading"===h.t&&f.trigger(n.a.Events.DOCUMENT_LOADING_PROGRESS,[h.bytes,h.total])}this.oea();!y&&e.echo&&e&&"apstring2xod"==e.echo.t&&(e=e.echo.reqID)&&(2<=parseInt(f.rX)?f.ki[e].reject("Message unhandled by server"):f.ki[e].reject())},GQ:function(){this.TH(this.qm);return this.qm.promise},g7:function(e){for(var f=this,h=new XMLHttpRequest,n=Object(fa.a)(this.df+"aul")+"&id="+
this.id,r=new FormData,w={},x=0;x<e.body.length;x++){var y=e.body[x];w[y.id]=y.eF.w+";"+y.eF.h;r.append(y.id,y.eF.dataString)}e={t:"apstring2xod",reqID:this.hT++,parts:w};var z=this.xu(e);r.append("msg",JSON.stringify(z));f.ki[z.reqID]=aa();h.open("POST",n);h.withCredentials=f.Nk;n=new Promise(function(e,f){h.onreadystatechange=function(){4===h.readyState&&(200===h.status?e():f("An error occurred while sending down appearance strings to the server"))}});h.send(r);return n.then(function(){return f.ki[z.reqID].promise})},
f7:function(){this.lg||(this.lg=aa(),this.lg.request={t:"annots"},this.Lg(this.lg.request));return this.lg.promise},vC:function(e,f){this.Vf[f]||(this.Vf[f]=aa(),this.Vf[f].request={t:"image",p:f},this.rV(e,this.Vf[f].request));return this.Vf[f].promise},Mda:function(e){this.oh[e]||(this.oh[e]=aa(),this.oh[e].request={t:"text",p:e},this.Lg(this.oh[e].request));return this.oh[e].promise},Nda:function(e,f,h,n,r){var w=this.yf.length;this.qA.length&&(w=this.qA.pop());this.yf[w]=aa();this.yf[w].request=
{t:"tiles",p:f,z:h,r:n,size:r,rID:w};this.rV(e,this.yf[w].request);return this.yf[w].promise},aV:function(){this.cf||(this.cf=aa(),this.cf.request={t:"pdf"},this.PF?this.cf.resolve({url:this.YF}):this.Lg(this.cf.request));return this.cf.promise},YQ:function(e){var f=this,h=new XMLHttpRequest,n=Object(fa.a)(this.df+"aul")+"&id="+this.id,r=new FormData,w={};e.annots&&(w.annots="xfdf");e.watermark&&(w.watermark="png");e.redactions&&(w.redactions="redact");w={t:"docmod",reqID:this.hT++,parts:w};e.print&&
(w.print=!0);var x=this.xu(w);r.append("msg",JSON.stringify(x));return Promise.all([e.annots,e.watermark,e.redactions].map(function(e){return Promise.resolve(e)})).then(function(e){var w=e[0],y=e[1],z=e[2];w&&r.append("annots",w);y&&r.append("watermark",e.watermark);z&&r.append("redactions",z);f.ki[x.reqID]=aa();h.open("POST",n);h.withCredentials=f.Nk;e=new Promise(function(e,f){h.onreadystatechange=function(){4===h.readyState&&(200===h.status?e():f("An error occurred while sending down annotation data to the server"))}});
h.send(r);return e.then(function(){return f.ki[x.reqID].promise})})},zR:function(){this.Vd||(this.Vd=aa(),this.Vd.request={t:"xod",noCreate:!0},this.Lg(this.Vd.request));return this.Vd.promise},Oda:function(){this.ne||(this.ne=aa(),this.ne.request={t:"xod"},this.Lg(this.ne.request));return this.ne.promise},bn:function(){return!0},request:function(){},yU:function(){},abort:function(){for(var e=0;e<this.yf.length;e++)this.yf[e]&&(this.yf[e].resolve(null),this.yf[e]=null,this.qA.push(e));this.close()},
IC:function(e){this.uf=this.uf||{};this.uf.headers=e},nka:function(){return this.uf?Object(z.omit)(this.uf.headers,["Cookie","cookie"]):null},Sp:function(e){this.uf=this.uf||{};this.uf.internal=this.uf.internal||{};this.uf.internal.withCredentials=e},Nk:function(){return this.uf&&this.uf.internal?this.uf.internal.withCredentials:null},getFileData:function(){return Promise.reject()}});Object(ia.a)(ba);Object(h.a)(ba);Object(h.b)(ba);da["default"]=ba},411:function(ia,da,e){function ba(e,w,y){function r(e,
f){function h(e){r().then(function(f){da&&!ia?setTimeout(function(){h(e)},1):f.send(JSON.stringify(e))})}function n(e,f,n,r){var x=window.createPromiseCapability(),fa=!1,ja=x;z=e;ba=f;ea=n;y=null;r&&(e=Object(ha.a)("wvsQueryParameters"),e.bcid=Object(aa.k)(8),Object(ha.b)("wvsQueryParameters",e));try{e=Fa?ua+"/"+Fa:ua+"/ws";e=Object(ca.a)(e);var ka=new WebSocket(e);ka.onopen=function(){x.resolve();fa=!0;x=null;da=!1;w.resolve(ka);ba&&ba()};ka.onerror=function(e){da=ia=!0;x&&x.reject(e);y&&y.reject()};
ka.onclose=function(){w=window.createPromiseCapability();da=!0;y||(y=window.createPromiseCapability());y.resolve();ea&&ea();z&&fa&&z({t:"health",data:{unhealthy:!0,isDead:!0}})};ka.onmessage=function(e){e&&e.data&&(e=JSON.parse(e.data),e.hb?h({hb:!0}):e.end?close():z(e))}}catch(Ga){x.reject(Ga),x=null}return ja.promise}function r(){da&&z&&n(z);return w.promise}var w=window.createPromiseCapability(),y=null,z,ba,ea=null,da=!1,ia=!1,Fa=f,ua=function(e){var f=e.indexOf("://"),h="ws://";0>f?f=0:(5===f&&
(h="wss://"),f+=3);var n=e.lastIndexOf("/");0>n&&(n=e.length);return h+e.slice(f,n)}(e);return{send:h,IK:n,lG:function(){return y?y.promise:r().then(function(e){y=window.createPromiseCapability();z=null;e.close();return y.promise})}}}function n(e){var f=e.lastIndexOf("/");0>f&&(f=e.length);return e.slice(0,f)}return window.WebSocket&&!y?r(e,w):function(e,f){function h(e){(da?da.promise:Promise.resolve(ba)).then(function(f){var h=new XMLHttpRequest,n=aa?z+"/"+aa+"pf":z+"/pf";n=Object(ca.a)(n)+"&id="+
f;f=new FormData;f.append("data",JSON.stringify(e));h.open("POST",n);h.withCredentials=!0;h.send(f)})}function r(){ba=0;da||(da=window.createPromiseCapability())}function w(){y=new XMLHttpRequest;var e=z+"/pf";e+=0!==ba?"?id="+ba+"&uc="+ua:"?uc="+ua;ua++;y.open("GET",e,!0);y.withCredentials=!0;y.setRequestHeader("Cache-Control","no-cache");y.setRequestHeader("X-Requested-With","XMLHttpRequest");var f=y,n=!1;y.onreadystatechange=function(){a:if(3<=f.readyState&&!n){try{var e=f.responseText.length}catch(Ea){Object(ea.g)("caught exception");
break a}if(0<e)try{var x=f.responseText.split("\n");for(x[x.length-1]&&x.pop();0<x.length&&3>x[x.length-1].length;)"]"===x.pop()&&r();0<x.length&&3>x[0].length&&x.shift();for(e=0;e<x.length;++e)x[e].endsWith(",")&&(x[e]=x[e].substr(0,x[e].length-1));0===ba&&0<x.length&&(ba=JSON.parse(x.shift()).id,e=da,da=null,e.resolve(ba));var y;for(e=0;e<x.length;++e)(y=JSON.parse(x[e]))&&y.end?close():y&&y.hb&&y.id===ba?h({hb:!0}):Fa(y)}catch(Ea){}ha||(n=!0,w())}};y.send()}var y,z=n(e),aa=f,ba=0,da=window.createPromiseCapability(),
ha=!1,ia=null,Fa=null,ua=0;return{send:h,IK:function(e,f,h){Fa=e;ia=h;ha=!1;r();w();f&&f();return Promise.resolve()},lG:function(){r();Fa=null;ha=!0;ia&&ia();y.abort();return Promise.resolve()}}}(e,w)}e.d(da,"a",function(){return ba});var ea=e(2),aa=e(29),ha=e(42),ca=e(158)}}]);}).call(this || window)

View File

@ -1,3 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[17],{393:function(ia,da,e){e.r(da);var ba=e(1),ea=e(232);ia=e(383);var aa=e(88);e=e(351);var ha={},ca=function(e){function w(w,r){var n=e.call(this,w,r)||this;n.url=w;n.range=r;n.status=ea.a.NOT_STARTED;return n}Object(ba.c)(w,e);w.prototype.start=function(e){var r=this;"undefined"===typeof ha[this.range.start]&&(ha[this.range.start]={Os:function(n){var h=atob(n),f,w=h.length;n=new Uint8Array(w);for(f=0;f<w;++f)n[f]=h.charCodeAt(f);
h=n.length;f="";for(var y=0;y<h;)w=n.subarray(y,y+1024),y+=1024,f+=String.fromCharCode.apply(null,w);r.Os(f,e)},dQ:function(){r.status=ea.a.ERROR;e({code:r.status})}},window.external.Vka(this.url),this.status=ea.a.STARTED);r.NA()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,r,n,h){w=e.call(this,w,n,h)||this;w.pw=ca;return w}Object(ba.c)(w,e);w.prototype.zu=function(e,r){return e+"?"+r.start+"&"+(r.stop?r.stop:"")};return w}(aa.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

View File

@ -1,123 +0,0 @@
(function(){var P="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function Q(n){var f=0;return function(){return f<n.length?{done:!1,value:n[f++]}:{done:!0}}}var T="function"==typeof Object.defineProperties?Object.defineProperty:function(n,f,l){n!=Array.prototype&&n!=Object.prototype&&(n[f]=l.value)};function U(){U=function(){};P.Symbol||(P.Symbol=V)}var V=function(){var n=0;return function(f){return"jscomp_symbol_"+(f||"")+n++}}();
function X(){U();var n=P.Symbol.iterator;n||(n=P.Symbol.iterator=P.Symbol("iterator"));"function"!=typeof Array.prototype[n]&&T(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return aa(Q(this))}});X=function(){}}function aa(n){X();n={next:n};n[P.Symbol.iterator]=function(){return this};return n}function Y(n,f){return Object.prototype.hasOwnProperty.call(n,f)}
function Z(n,f){if(f){var l=P;n=n.split(".");for(var h=0;h<n.length-1;h++){var d=n[h];d in l||(l[d]={});l=l[d]}n=n[n.length-1];h=l[n];f=f(h);f!=h&&null!=f&&T(l,n,{configurable:!0,writable:!0,value:f})}}
Z("WeakMap",function(n){function f(d){this.wb=(y+=Math.random()+1).toString();if(d){var p="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];for(d=p?p.call(d):{next:Q(d)};!(p=d.next()).done;)p=p.value,this.set(p[0],p[1])}}function l(){}function h(d){Y(d,D)||T(d,D,{value:new l})}function d(d){var p=Object[d];p&&(Object[d]=function(b){if(b instanceof l)return b;h(b);return p(b)})}if(function(){if(!n||!Object.seal)return!1;try{var d=Object.seal({}),p=Object.seal({}),b=new n([[d,2],[p,3]]);
if(2!=b.get(d)||3!=b.get(p))return!1;b.delete(d);b.set(p,4);return!b.has(d)&&4==b.get(p)}catch(a){return!1}}())return n;var D="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var y=0;f.prototype.set=function(d,p){h(d);if(!Y(d,D))throw Error("WeakMap key fail: "+d);d[D][this.wb]=p;return this};f.prototype.get=function(d){return Y(d,D)?d[D][this.wb]:void 0};f.prototype.has=function(d){return Y(d,D)&&Y(d[D],this.wb)};f.prototype.delete=function(d){return Y(d,D)&&Y(d[D],this.wb)?
delete d[D][this.wb]:!1};return f});Z("String.fromCodePoint",function(n){return n?n:function(f){for(var l="",h=0;h<arguments.length;h++){var d=Number(arguments[h]);if(0>d||1114111<d||d!==Math.floor(d))throw new RangeError("invalid_code_point "+d);65535>=d?l+=String.fromCharCode(d):(d-=65536,l+=String.fromCharCode(d>>>10&1023|55296),l+=String.fromCharCode(d&1023|56320))}return l}});
function ba(n,f){X();n instanceof String&&(n+="");var l=0,h={next:function(){if(l<n.length){var d=l++;return{value:f(d,n[d]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h}Z("Array.prototype.keys",function(n){return n?n:function(){return ba(this,function(f){return f})}});
(function(n){function f(h){if(l[h])return l[h].la;var d=l[h]={Af:h,ue:!1,la:{}};n[h].call(d.la,d,d.la,f);d.ue=!0;return d.la}var l={};f.Gf=n;f.c=l;f.d=function(h,d,D){f.xe(h,d)||Object.defineProperty(h,d,{enumerable:!0,get:D})};f.r=function(h){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"});Object.defineProperty(h,"__esModule",{value:!0})};f.t=function(h,d){d&1&&(h=f(h));if(d&8||d&4&&"object"===typeof h&&h&&h.kd)return h;var D=Object.create(null);
f.r(D);Object.defineProperty(D,"default",{enumerable:!0,value:h});if(d&2&&"string"!=typeof h)for(var y in h)f.d(D,y,function(d){return h[d]}.bind(null,y));return D};f.n=function(h){var d=h&&h.kd?function(){return h["default"]}:function(){return h};f.d(d,"a",d);return d};f.xe=function(h,d){return Object.prototype.hasOwnProperty.call(h,d)};f.p="/core/";return f(f.Hf=9)})([function(n,f,l){function h(d,h){d.splice(h,1)}function d(d){return d.length?d[d.length-1]:null}l.d(f,"a",function(){return d});l.d(f,
"b",function(){return h});l(6)},function(n,f,l){function h(d,h){var b;y[d]=h;null===(b=D[d])||void 0===b?void 0:b.forEach(function(a){a(h)})}function d(d){return y[d]}l.d(f,"a",function(){return d});l.d(f,"b",function(){return h});var D={},y={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null}},function(n,f,l){function h(h,f){Object(d.a)("disableLogs")||(f?console.warn(h+": "+f):console.warn(h))}
l.d(f,"a",function(){return h});var d=l(1)},function(n,f){n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;f.assign=function(d){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var f=h.shift();if(f){if("object"!==typeof f)throw new TypeError(f+"must be non-object");for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&(d[l]=f[l])}}return d};f.shrinkBuf=function(d,h){if(d.length===h)return d;if(d.subarray)return d.subarray(0,h);d.length=
h;return d};var l={arraySet:function(d,h,f,l,p){if(h.subarray&&d.subarray)d.set(h.subarray(f,f+l),p);else for(var b=0;b<l;b++)d[p+b]=h[f+b]},flattenChunks:function(d){var h,f;var l=f=0;for(h=d.length;l<h;l++)f+=d[l].length;var p=new Uint8Array(f);l=f=0;for(h=d.length;l<h;l++){var b=d[l];p.set(b,f);f+=b.length}return p}},h={arraySet:function(d,h,f,l,p){for(var b=0;b<l;b++)d[p+b]=h[f+b]},flattenChunks:function(d){return[].concat.apply([],d)}};f.ze=function(d){d?(f.Buf8=Uint8Array,f.kb=Uint16Array,f.lb=
Int32Array,f.assign(f,l)):(f.Buf8=Array,f.kb=Array,f.lb=Array,f.assign(f,h))};f.ze(n)},function(n,f){n=function(){function f(h){this.depth=this.index=0;this.M=h;this.location={start:0,Rb:1,Sb:1,end:!!h.length,empty:!0};this.xb=[this.location];this.oc=!1;"?"===this.M.charAt(1)&&this.dd();this.location.empty=!1}f.prototype.advance=function(){this.Ea=null;this.dd();var h=this.location.start;++h;this.location.empty=!1;if("/"!==this.M.charAt(h))return this.location.empty="/"===this.M.charAt(this.M.indexOf(">",
h)-1),!0;this.location.end=!0;return!1};f.prototype.gd=function(){var h=this.location.start+1,d=this.M.indexOf(">",h);this.location.empty&&--d;h=this.M.substring(h,d);this.Ea={};d=h.indexOf(" ");if(-1!==d){this.bd=h.substring(0,d);h=h.slice(d);h=h.split('"');d=h.length-1;for(var f=0;f<d;++f){var l=h[f],n=h[++f];this.Ea[l.substring(1,l.length-1)]=n}}else this.bd=h};f.prototype.dd=function(){if(this.oc)this.oc=!1,this.location.start=this.M.indexOf("<",this.location.start+1);else{var h=this.location.Rb;
if(!this.location.empty)for(var d=this.location.Sb;0<d;)h=this.M.indexOf("<",h),"/"===this.M.charAt(++h)?--d:(h=this.M.indexOf(">",h),"/"!==this.M.charAt(h-1)&&++d);this.location.start=this.M.indexOf("<",h)}this.location.Rb=this.location.start+1;this.location.Sb=1};f.prototype.mark=function(){this.M.mark&&this.M.mark(this.location.start)};f.prototype.O=function(){null!==this.Ea&&"undefined"!==typeof this.Ea||this.gd();return this.bd};f.prototype.J=function(){++this.depth;this.location={start:this.location.start};
this.xb[this.xb.length]=this.location;this.oc=!0};f.prototype.I=function(){--this.depth;this.Ea=null;var h=this.location.Rb,d=this.location.Sb,f=this.location.empty,l=this.location.end;this.xb.pop();this.location=this.xb[this.xb.length-1];this.location.Rb=h;this.location.Sb=l?0:f?d:d+1};f.prototype.V=function(){return this.location.empty?!0:"/"===this.M.charAt(this.M.indexOf("<",this.location.start+1)+1)};f.prototype.D=function(h){null!==this.Ea&&"undefined"!==typeof this.Ea||this.gd();return this.Be(this.Ea[h])};
f.prototype.Be=function(h){if(h)return h.replace(/&[^;]*;/g,function(d){switch(d.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===d.charAt(2)?String.fromCharCode(parseInt(d.substring(3,d.length-1),16)):String.fromCharCode(parseInt(d.substring(2,d.length-1),10))}return d})};return f}();f.a=n},function(n,f,l){function h(h){return new d(h)}l.d(f,"a",function(){return h});var d=function(){function d(d){this.uc=d;this.Ha=-1;this.current=null}d.prototype.ve=
function(){this.Ha++;this.current=this.uc[this.Ha];return this.Ha<this.uc.length};d.prototype.reset=function(){this.Ha=-1;this.current=null};return d}()},function(n,f,l){function h(){for(var d=0,h=0,f=arguments.length;h<f;h++)d+=arguments[h].length;d=Array(d);var l=0;for(h=0;h<f;h++)for(var p=arguments[h],b=0,a=p.length;b<a;b++,l++)d[l]=p[b];return d}l.d(f,"a",function(){return h})},function(n,f,l){function h(d){if("string"!==typeof d){for(var h="",f=0,l=d.length,p;f<l;)p=d.subarray(f,f+1024),f+=
1024,h+=String.fromCharCode.apply(null,p);return h}return d}l.d(f,"a",function(){return h})},function(n,f,l){function h(A){if(!(this instanceof h))return new h(A);var m=this.options=y.assign({chunkSize:16384,windowBits:0,to:""},A||{});m.raw&&0<=m.windowBits&&16>m.windowBits&&(m.windowBits=-m.windowBits,0===m.windowBits&&(m.windowBits=-15));!(0<=m.windowBits&&16>m.windowBits)||A&&A.windowBits||(m.windowBits+=32);15<m.windowBits&&48>m.windowBits&&0===(m.windowBits&15)&&(m.windowBits|=15);this.err=0;
this.msg="";this.ended=!1;this.chunks=[];this.strm=new a;this.strm.avail_out=0;A=D.inflateInit2(this.strm,m.windowBits);if(A!==p.Z_OK)throw Error(b[A]);this.header=new k;D.inflateGetHeader(this.strm,this.header);if(m.dictionary&&("string"===typeof m.dictionary?m.dictionary=v.string2buf(m.dictionary):"[object ArrayBuffer]"===e.call(m.dictionary)&&(m.dictionary=new Uint8Array(m.dictionary)),m.raw&&(A=D.inflateSetDictionary(this.strm,m.dictionary),A!==p.Z_OK)))throw Error(b[A]);}function d(a,e){e=new h(e);
e.push(a,!0);if(e.err)throw e.msg||b[e.err];return e.result}var D=l(13),y=l(3),v=l(18),p=l(19),b=l(20),a=l(21),k=l(22),e=Object.prototype.toString;h.prototype.push=function(a,b){var k=this.strm,m=this.options.chunkSize,A=this.options.dictionary,t=!1;if(this.ended)return!1;b=b===~~b?b:!0===b?p.Z_FINISH:p.Z_NO_FLUSH;"string"===typeof a?k.input=v.binstring2buf(a):"[object ArrayBuffer]"===e.call(a)?k.input=new Uint8Array(a):k.input=a;k.next_in=0;k.avail_in=k.input.length;do{0===k.avail_out&&(k.output=
new y.Buf8(m),k.next_out=0,k.avail_out=m);a=D.inflate(k,p.Z_NO_FLUSH);a===p.Z_NEED_DICT&&A&&(a=D.inflateSetDictionary(this.strm,A));a===p.Z_BUF_ERROR&&!0===t&&(a=p.Z_OK,t=!1);if(a!==p.Z_STREAM_END&&a!==p.Z_OK)return this.onEnd(a),this.ended=!0,!1;if(k.next_out&&(0===k.avail_out||a===p.Z_STREAM_END||0===k.avail_in&&(b===p.Z_FINISH||b===p.Z_SYNC_FLUSH)))if("string"===this.options.to){var d=v.utf8border(k.output,k.next_out);var h=k.next_out-d;var f=v.buf2string(k.output,d);k.next_out=h;k.avail_out=m-
h;h&&y.arraySet(k.output,k.output,d,h,0);this.onData(f)}else this.onData(y.shrinkBuf(k.output,k.next_out));0===k.avail_in&&0===k.avail_out&&(t=!0)}while((0<k.avail_in||0===k.avail_out)&&a!==p.Z_STREAM_END);a===p.Z_STREAM_END&&(b=p.Z_FINISH);if(b===p.Z_FINISH)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===p.Z_OK;b===p.Z_SYNC_FLUSH&&(this.onEnd(p.Z_OK),k.avail_out=0);return!0};h.prototype.onData=function(a){this.chunks.push(a)};h.prototype.onEnd=function(a){a===p.Z_OK&&(this.result=
"string"===this.options.to?this.chunks.join(""):y.flattenChunks(this.chunks));this.chunks=[];this.err=a;this.msg=this.strm.msg};f.Inflate=h;f.inflate=d;f.inflateRaw=function(a,b){b=b||{};b.raw=!0;return d(a,b)};f.ungzip=d},function(n,f,l){n.la=l(10)},function(n,f,l){l.r(f);l(4);l(11);l(12)},function(n,f,l){function h(d){"@babel/helpers - typeof";return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===
Symbol&&d!==Symbol.prototype?"symbol":typeof d},h(d)}var d=l(2),D=l(5),y=l(0);(function(f){function p(a,b){this.v=[];this.A=[];a&&this.L(a,b)}var b=f.trn||{};f.trn=b;String.fromCodePoint||function(){function a(){var a=[],b=-1,k=arguments.length;if(!k)return"";for(var A="";++b<k;){var t=Number(arguments[b]);if(!isFinite(t)||0>t||1114111<t||d(t)!==t)throw RangeError("Invalid code point: ".concat(t));if(65535>=t)a.push(t);else{t-=65536;var h=(t>>10)+55296;t=t%1024+56320;a.push(h,t)}if(b+1===k||16384<
a.length)A+=e.apply(void 0,a),a.length=0}return A}var b=function(){try{var a={},b=Object.defineProperty;var e=b(a,a,a)&&b}catch(R){}return e}(),e=String.fromCharCode,d=Math.floor;b?b(String,"fromCodePoint",{value:a,configurable:!0,writable:!0}):String.fromCodePoint=a}();Array.prototype.Pa&&Object(d.a)("Overriding existing Array.prototype.equals. Possible causes: New API defines the method, there's a framework conflict or you've got double inclusions in your code.");Array.prototype.Pa=function(a){if(!a||
this.length!==a.length)return!1;for(var b=0,e=this.length;b<e;b++)if(this[b]instanceof Array&&a[b]instanceof Array){if(!this[b].Pa(a[b]))return!1}else if(this[b]!==a[b])return!1;return!0};Object.defineProperty(Array.prototype,"equals",{enumerable:!1,writable:!0});p.prototype={C:function(a){this.v=this.v.concat(a.v);this.A=this.A.concat(a.A)},L:function(a,b){this.v.push(a);a=h(b);this.A.push("object"===a?b:"undefined"===a?null:[b])},Pa:function(a){return this.v.Pa(a.v)&&this.A.Pa(a.A)},save:function(){this.v.push(b.f.Nd);
this.A.push(null)},restore:function(){this.L(b.f.Md,null)}};b.f=function(a,k,e,d){this.done=!1;this.Hc=2E3;this.Ja={};this.La=0;this.P=[];this.Jb=[];this.fa=[];this.fa.push({});this.g=a;this.Lc=this.zb("Width");this.Kc=this.zb("Height");this.P.push(b.Sa.se(this.Lc,this.Kc));this.ca=!1;this.Ib=e;this.ce=-1<navigator.userAgent.indexOf("Android")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Firefox");this.v=[];this.A=[];this.g.J();this.g.advance();this.lc=d;a=this.g.O();
b.f.m(a,"FixedPage.Resources",b.f.l)&&(this.g.J(),this.g.advance(),this.Qc(),this.g.I());this.Ia=!1};b.f.m=function(a,b,e){return a===b?!0:a===e+b};b.f.ad=function(a){return b.f.ne(a)};b.f.ne=function(a){var b=3,e=Math.abs(a);.5>e&&(b=5E-4>e?5E-7>e?9:7:5);b=Math.pow(10,b);a=Math.round(a*b)/b;return a.toString()};b.f.H=function(a,b){if(!a)throw Error(b);};b.f.zf=function(a){return(new b.f(a,!1)).Td()};b.f.prototype={$d:function(){return this.ac()},Wb:function(a,k,e){var d=this.Sd(),m=this.g.O();if(b.f.m(m,
"Path",b.f.l))var h=this.Zb();else b.f.m(m,"Canvas",b.f.l)?h=this.Fb():b.f.m(m,"Glyphs",b.f.l)?h=this.Yb():(h=null,b.f.H(!1,"Invalid Element ".concat(m)));h.gb(d);if(h.te()){d=this.$d();m=this.Ua();d.mtx=[m.W,m.X,m.Y,m.Z,m.ba,m.da];if(a){a={operators:a.v,data:a.A};var f=this.g.D("RenderTransform");if(null!=f){var p=new b.K;p.$(f);f=new b.K;f.bc(m);f.Ga(p);m=f}a.mtx=[m.W,m.X,m.Y,m.Z,m.ba,m.da]}this.L(b.f.Qd,[d,{x1:h.s,y1:h.u,x2:h.s+h.G,y2:h.u+h.F},k,a,e]);this.Mc=!0}else this.ca=!1},Fb:function(){var a=
new b.ha;this.aa();var k=this.g.D("RenderTransform");if(null!=k){var e=new b.K;e.$(k);this.S(e)}k=this.g.D("Clip");null!=k&&(a=this.Ba(k));k=null;if(!this.g.V()){for(this.g.J();this.g.advance();)e=this.g.O(),b.f.m(e,"Canvas.Clip",b.f.l)?(b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(e=new b.K,e.$(this.B("Transform")),this.S(e),a.gb(this.Ba(this.B("Figures"))),e=e.Va(),this.S(e)),this.g.I()):b.f.m(e,"Path",b.f.l)?null!=k?k.sc(this.Zb()):k=this.Zb():
b.f.m(e,"Glyphs",b.f.l)?null!=k?k.sc(this.Yb()):k=this.Yb():b.f.m(e,"Canvas",b.f.l)&&(null!=k?k.sc(this.Fb()):k=this.Fb());this.g.I()}null!=k&&a.gb(k);this.qa();return a},ge:function(){var a=this.sa("trn:BlendMode","source-over");a=this.ca?"source-over":a;var k=this.hc();k||(this.save(),this.aa());var e=null,A=this.g.D("OpacityMask");null!=A&&(Object(d.a)("Uh oh OpacityMask Resource!"),e=this.Ca(A));A=this.ma("Opacity",1);if(!this.g.V()){for(this.g.J();this.g.advance();){var m=this.g.O();if(b.f.m(m,
"Canvas.Resources",b.f.l))this.g.V()?b.f.H(!1,"Canvas.Resources must contain ResourceDictionary element"):(this.g.J(),this.g.advance(),this.Qc(),this.g.I());else if(b.f.m(m,"Canvas.Clip",b.f.l))b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(k||(this.save(),k=!0,this.aa()),m=new b.K,m.$(this.B("Transform")),this.C(this.S(m)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),this.Pb(this.B("Figures")),m=m.Va(),this.C(this.S(m))),
this.g.I();else if(b.f.m(m,"Canvas.OpacityMask",b.f.l))this.ca||(this.g.J(),this.g.advance(),e=this.Ta(b.f.na,new p(b.f.Cb)),this.g.I());else if(b.f.m(m,"Path",b.f.l)||b.f.m(m,"Glyphs",b.f.l)||b.f.m(m,"Canvas",b.f.l)||b.f.m(m,"trn:Glyphs",b.f.l)){if(null!=e||"source-over"!==a||1>A&&!this.ca){this.vb();this.g.I();this.ca=!0;this.Wb(e,a,A);return}this.Ia=!1;break}}this.Ia&&this.g.I()}this.Ia&&this.vb();this.ca=!1},vb:function(){this.restore();this.qa()},zb:function(a){a=this.g.D(a);b.f.H(null!=a,"".concat(this.g.O(),
": ").concat(a," is not defined"));return parseFloat(a)},ma:function(a,b){a=this.g.D(a);return null!=a?parseFloat(a):b},B:function(a){a=this.g.D(a);b.f.H(null!=a,"".concat(this.g.O(),": ").concat(a," is not defined"));return a},sa:function(a,b){a=this.g.D(a);return null!=a?a:b},cd:function(){var a=this.g.D("x:Key");b.f.H(null!=a,"Key must be defined for elements in a resource dictionary");return a},hc:function(){0===this.La&&this.g.mark();var a=!1,b=this.ma("Opacity",1);1>b&&!this.ca&&(a||(a=!0,this.save(),
this.aa()),this.C(this.Ra(b)));b=this.g.D("RenderTransform");null!=b&&(a||(a=!0,this.save(),this.aa()),this.ie(b));b=this.g.D("Clip");null!=b&&(a||(this.save(),this.aa()),this.Pb(b),a=!0);return a},Pb:function(a){var k=!0;a&&"F"===a[0]&&(k=!1);this.Sc(k?"evenodd":"nonzero");this.be(this.Ba(a));this.Oc(a);this.v.push(b.f.rd);this.A.push(k?["evenodd"]:[])},fe:function(a){var k=[];for(a=Object(D.a)(a.split(";"));a.ve();){var e=a.current,d=new b.Ha;e=e.split(",");if(1<=e.length){if(0<e[0].length){var m=
e[0].split(")");if(2<=m.length){var h=m[0].substr(1).split(":");d.rb=parseInt(h[0]);d.dc=parseInt(h[1])}d.Mb=parseInt(m[m.length-1]);d.ub=!0}2<=e.length&&(0<e[1].length&&(d.cc=parseFloat(e[1]),d.fc=!0),3<=e.length&&(0<e[2].length&&(d.Nb=parseFloat(e[2])),4<=e.length&&0<e[3].length&&(d.Ob=parseFloat(e[3]))))}k.push(d)}return k},ae:function(){var a=this.B("UnicodeString"),b="",e=0;for(2<=a.length&&"{"===a.charAt(0)&&"}"===a.charAt(1)&&(a=a.substr(2));e<a.length;){var h=a.charCodeAt(e);if(9==h)b+=String.fromCharCode(10),
e++;else if(128>h)b+=String.fromCharCode(h),e++;else if(191<h)if(224>h){var m=a.charCodeAt(e+1);b+=String.fromCharCode((h&31)<<6|m&63);e+=2}else if(240>h){m=a.charCodeAt(e+1);var f=a.charCodeAt(e+2);b+=String.fromCharCode((h&15)<<12|(m&63)<<6|f&63);e+=3}else{m=a.charCodeAt(e+1);f=a.charCodeAt(e+2);var p=a.charCodeAt(e+3);b+=String.fromCodePoint((h&7)<<18|(m&63)<<12|(f&63)<<6|p&63);e+=4}else Object(d.a)("Invalid UTF-8 character")}return b},Yb:function(){var a=new b.ha,k=this.g.D("Clip");null!=k&&(a=
this.Ba(k));return a},$b:function(a,k){return this.ce&&1===a.length?k===b.f.wc?b.f.yd:k===b.f.Xb?b.f.Xb:b.f.zd:k},tc:function(a){return 0===Object.keys(a).length&&a.constructor===Object},Nc:function(a){var k=this.sa("trn:BlendMode","source-over");k=this.ca?"source-over":k;var e="source-over"!=k&&!this.Ib,h=this.hc();this.Ib&&this.Rc(k);var m=this.zb("OriginX"),f=this.zb("OriginY"),E=this.B("FontUri");this.qb[E]=null;var l=this.zb("FontRenderingEmSize"),t=this.fe(this.sa("Indices",""));if(200>l){var z=
l/200;h||(this.aa(),this.save(),h=!0);var n=new b.K;n.ob(z,0,0,z,m,f);l=200;f=0;this.v.push(b.f.Eb);this.A.push(n.Gb())}var C=0;m=new p;var w=this.ae(),g=0,y=0,D=l/100,v="";n=null;var O=this.g.D("Stroke");a=O?b.f.Xb:a?b.f.wc:b.f.xd;m.L(b.f.Od,0);for(var K={},x,r=0;r<t.length;){var q=t[r],M=w.charCodeAt(C);M=55296<=M&&57344>M?Math.max(2,q.rb):q.rb;if(g!==q.Nb||y!==q.Ob)v&&(m.L(this.$b(x,a),[v,g?g*D:0,f-y*D]),m.L(b.f.yc,[v])),g=q.Nb,y=q.Ob,v="";q.ub&&(K[v.length]=w.substr(C,q.rb));q.fc?(this.tc(K)||
m.L(b.f.Bc,[K]),x=v+(q.ub?String.fromCharCode(q.Mb+57344):w.substr(C,M)),m.L(this.$b(x,a),[x,g?g*D:0,f-y*D]),v&&m.L(b.f.yc,[v]),m.L(b.f.od,[q.cc*D]),K={},v=""):v+=q.ub?String.fromCharCode(q.Mb+57344):w.substr(C,M);r+=q.dc;C+=M}if(v||C<w.length)this.tc(K)||m.L(b.f.Bc,[K]),x=v+w.substr(C,w.length-C),m.L(this.$b(x,a),[x,0,0]);f=x=null;g=this.g.D("Fill");C=!1;null!=g&&(this.Hb(g)?x=this.Ca(g,b.f.na,m):(C=!0,x=this.nb(g,b.f.na,m)));t=!1;null!=O&&(this.Hb(O)?n=this.Ca(O,b.f.Aa,m):(t=!0,n=this.nb(O,b.f.Aa,
m)));g=this.g.D("OpacityMask");null!=g&&(Object(d.a)("Uh oh OpacityMask Resource!"),f=this.Ca(g));if(!this.g.V()&&!a){for(this.g.J();this.g.advance();)a=this.g.O(),b.f.m(a,"Glyphs.Clip",b.f.l)?(b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(h||(h=!0,this.save(),this.aa()),a=new b.K,a.$(this.B("Transform")),this.v.push(b.f.Eb),this.A.push(a.Gb()),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),O=this.B("Figures"),
this.Pb(O),a=a.Va(),this.v.push(b.f.Eb),this.A.push(a.Gb())),this.g.I()):b.f.m(a,"Glyphs.Fill",b.f.l)?(this.g.J(),this.g.advance(),x=this.Ta(b.f.na,m),this.g.I()):b.f.m(a,"Glyphs.OpacityMask",b.f.l)&&!this.ca&&(this.g.J(),this.g.advance(),f=this.Ta(b.f.na,new p(b.f.Cb)),this.g.I());this.g.I()}if(null==f||e)"otf"===E.substr(E.indexOf(".")+1)?(E=E.substr(0,E.length-4),E=parseInt(E.substr(7))):E=parseInt(E.substr(35,8),16),E="f".concat(this.lc,"-").concat(E),this.Ja[E]?10>this.Ja[E].length&&(this.Ja[E]+=
w.substr(0,10-this.Ja[E].length)):this.Ja[E]=w.substr(0,10),this.ke("".concat(b.f.ad(l),"px ").concat(E)),null!==x&&(C||(x=new p(b.f.na,"#000000"),x.C(m)),this.ic(x,m)),null!=n&&(l=this.ma("StrokeThickness",1),E=this.g.D("RenderTransform"),w=new b.K,null!=E&&w.$(E),this.jc(l/(z*w.Qa())),this.Tc(this.Ec(this.sa("StrokeStartLineCap","Flat"))),this.Uc(this.sa("StrokeLineJoin","miter").toLowerCase()),this.Vc(this.ma("StrokeMiterLimit",10)),t||(n=new p(b.f.Aa,"#000000"),n.C(m)),this.Wc(n,m));h&&(this.restore(),
this.qa());if(null!=f||e)this.ca=!0,this.Wb(f,k);this.ca=!1},Dc:function(){var a=[];this.g.J();b.f.H(this.g.advance(),"Gradient brushes must contain GradientStops");for(this.g.J();this.g.advance();){var k=this.B("Color"),e=this.B("Offset");a.push(e);a.push(this.Cc(k))}this.g.I();this.g.I();return a},Wd:function(a,k,e){var d=this.g.D("Transform"),m=new p;m.save();this.aa();null!=d&&(e.$(d),m.C(this.S(e)));e=this.ma("Opacity",1);1>e&&m.C(this.Ra(e));d=this.B("StartPoint").split(",");e=parseFloat(d[0]);
d=parseFloat(d[1]);var h=this.B("EndPoint").split(",");e={type:b.f.Hd,x0:e,y0:d,x1:parseFloat(h[0]),y1:parseFloat(h[1]),stops:this.Dc()};m.L(a,[e]);m.C(k);m.restore();this.qa();return m},Yd:function(a,k,e){var d=this.g.D("Transform"),m=new p,h=this.B("RadiusX"),f=this.B("RadiusY"),l=this.B("GradientOrigin"),t=this.B("Center");m.save();this.aa();var z=parseFloat(h),n=parseFloat(f);b.f.H(0<z&&0<n,"Invalid radius value");var C=t.split(",");t=parseFloat(C[0]);C=parseFloat(C[1]);var w=l.split(",");l=parseFloat(w[0]);
w=parseFloat(w[1]);if(null!=d||h!==f)null!=d&&e.$(d),d=n/z,w/=d,C/=d,f=new b.K,f.ob(1,0,0,d,0,0),e.Ga(f),m.C(this.S(e));e=this.ma("Opacity",1);1>e&&m.C(this.Ra(e));h={type:b.f.Kd,x0:l,y0:w,x1:t,y1:C,r:h,stops:this.Dc()};m.L(a,[h]);m.C(k);m.restore();this.qa();return m},le:function(){b.f.H(!this.Lb,"Incorrect custom glyph start");this.v.push(b.f.td);this.A.push(null);this.Lb=!0},Rd:function(){b.f.H(this.Lb,"Incorrect custom glyph end");this.v.push(b.f.ud);this.A.push(null);this.Lb=!1},C:p.prototype.C,
L:p.prototype.L,Wc:function(a,k){var e=Object(y.a)(this.P);a.Pa(e.cb)?k?this.C(k):this.L(b.f.Db,null):(a.v[0]===b.f.Aa&&(e.cb=a),this.C(a))},ic:function(a,k){var e=Object(y.a)(this.P);a.Pa(e.Xa)?this.C(k):(a.v[0]===b.f.na&&(e.Xa=a),this.C(a))},Rc:function(a){var k=Object(y.a)(this.P);a!==k.tb&&(k.tb=a,this.L(b.f.Cd,[a]))},Ra:function(a){var k=Object(y.a)(this.P);k.Ka*=a;return new p(b.f.Bd,[k.Ka])},Sc:function(a){var b=Object(y.a)(this.P);a!==b.Wa&&(b.Wa=a)},jc:function(a){var k=Object(y.a)(this.P);
a!==k.ab&&(k.ab=a,this.v.push(b.f.Gd),this.A.push([a,this.Ua().Qa()]))},Tc:function(a){var k=Object(y.a)(this.P);a!==k.Za&&(k.Za=a,this.v.push(b.f.Ed),this.A.push([a]))},Uc:function(a){var k=Object(y.a)(this.P);a!==k.$a&&(k.$a=a,this.v.push(b.f.Fd),this.A.push([a]))},Vc:function(a){var k=Object(y.a)(this.P);a!==k.bb&&(k.bb=a,this.v.push(b.f.Id),this.A.push([a]))},ke:function(a){var k=Object(y.a)(this.P);a!==k.Ya&&(k.Ya=a,this.v.push(b.f.Ad),this.A.push([a]))},S:function(a){Object(y.a)(this.P).wa.Ga(a);
return new p(b.f.Eb,a.Gb())},Ua:function(){return Object(y.a)(this.P).wa},Sd:function(){return Object(y.a)(this.P).ta},be:function(a){Object(y.a)(this.P).ta.gb(a)},aa:function(a){a=a?Object(y.a)(this.P).we():Object(y.a)(this.P).clone();this.P.push(a);this.fa.push({})},qa:function(){this.P.pop();for(var a=Object.keys(this.fa[this.fa.length-1]),k=0;k<a;++k)this.L(b.f.wd);Object(y.b)(this.fa,this.fa.length-1)},Ud:function(a,k,e){var d=new p,m=this.g.D("Transform");d.save();this.aa();var h=this.B("Viewbox"),
f=new b.ha;f.fb(h);h=this.B("Viewport");var l=new b.ha;l.fb(h);if(null!=m||f!==l){h=l.G/f.G;var t=l.F/f.F,z=l.s-f.s*h;f=l.u-f.u*t;null!=m&&e.$(m);m=new b.K;m.ob(h,0,0,t,z,f);e.Ga(m);d.C(this.S(e))}e=this.ma("Opacity",1);1>e&&d.C(this.Ra(e));e=this.sa("TileMode","None");m=this.B("ImageSource");this.qb[m]=null;d.L(a,[{type:b.f.Dd,name:"i".concat(this.lc,"-").concat(parseInt(m.split("/")[2])),tm:"None"===e?"no-repeat":"repeat"}]);d.C(k);d.restore();this.qa();return d},Vd:function(){var a=new p,k=this.g.D("Transform");
a.save();this.aa();var e=this.B("Viewbox"),d=new b.ha;d.fb(e);e=this.B("Viewport");var m=new b.ha;m.fb(e);if(null!=k||d!==m){e=m.G/d.G;var h=m.F/d.F,f=m.s-d.s*e;d=m.u-d.u*h;m=new b.K;null!=k&&m.$(k);k=new b.K;k.ob(e,0,0,h,f,d);m.Ga(k);a.C(this.S(m))}k=this.ma("Opacity",1);1>k&&a.C(this.Ra(k));this.sa("TileMode","None");k=this.B("ImageSource");this.qb[k]=null;k="i".concat(this.lc,"-").concat(parseInt(k.split("/")[2]));e="false"!==this.sa("trn:smooth","true");a.L(b.f.vd,[k,this.Ua().Qa(),e]);a.restore();
this.qa();return a},ie:function(a){if(null!=a){var k=new b.K;k.$(a);this.C(this.S(k))}},o:function(a){for(var b,e=b=a.N,d=a.ga,m=d[b];" "!==m&&","!==m;)++b,m=d[b];e=d.substring(e,b);++b;a.N=b;return parseFloat(e)},Ba:function(a){var k=" ",e=new b.Vb(a,null,0),d=new b.ha,m=!0;d.initData(0,0,0,0);if(e.N<e.ga.length)for(;" "===e.ga.charAt(e.N);)e.N++;for(;e.N<a.length;){if("A"<=e.ga.charAt(e.N)&&"Z">=e.ga.charAt(e.N)||"a"<=e.ga.charAt(e.N)&&"z">=e.ga.charAt(e.N))k=e.ga.charAt(e.N),e.N++;else switch("a">
k&&("H"!==k&&(e.j=0),"V"!==k&&(e.i=0)),k){case "m":case "M":e.i+=this.o(e);e.j+=this.o(e);m?(d.initData(e.i,e.j,e.i,e.j),m=!1):d.ia(e.i,e.j);e.T=!1;break;case "l":case "L":e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;case "c":case "C":var h=this.o(e)+e.i;var f=this.o(e)+e.j;d.ia(h,f);e.T=!0;e.oa=this.o(e)+e.i;e.pa=this.o(e)+e.j;d.ia(e.oa,e.pa);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);break;case "q":case "Q":h=this.o(e)+e.i;f=this.o(e)+e.j;d.ia(h,f);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,
e.j);e.T=!1;break;case "s":case "S":e.T||(e.oa=e.i,e.pa=e.j);h=2*e.i-e.oa;f=2*e.j-e.pa;d.ia(h,f);e.T=!0;e.oa=this.o(e)+e.i;e.pa=this.o(e)+e.j;d.ia(e.oa,e.pa);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);break;case "h":case "H":e.i+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;case "v":case "V":e.j+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;default:this.o(e),e.T=!1}for(;" "===a.charAt(e.N);)++e.N}return d.qe(this.Ua())},Zb:function(){var a=null;this.aa();var k=this.g.D("RenderTransform");if(null!=k){var e=new b.K;
e.$(k);this.S(e)}e=this.g.D("Stroke");var d=this.ma("StrokeThickness",1);k=this.g.D("Clip");null!=k&&(a=this.Ba(k));k=this.g.D("Data");if(!this.g.V()){for(this.g.J();this.g.advance();){var m=this.g.O();if(b.f.m(m,"Path.Data",b.f.l)&&!this.g.V()){this.g.J();this.g.advance()&&(k=new b.K,k.$(this.B("Transform")),this.S(k),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Data must contain PathGeometry"),k=this.B("Figures"));this.g.I();break}else b.f.m(m,"Path.Clip",b.f.l)?(b.f.H(!this.g.V(),"Path.Clip: Must contain PathGeometry element"),
this.g.J(),this.g.advance()&&(m=new b.K,m.$(this.B("Transform")),this.S(m),a=this.Ba(this.B("Figures")),m=m.Va(),this.S(m)),this.g.I()):b.f.m(m,"Path.Stroke",b.f.l)&&(e=!0)}this.g.I()}null!=a?a.gb(this.Ba(k)):a=this.Ba(k);this.qa();e&&a.inflate(d);return a},pb:function(a,k,e){a.T=!1;if(null==a.ua)this.v.push(b.f.xc),this.A.push([a.i,a.j]);else for(var d=a.ua.length,m=a.i-k,h=a.j-e,f=h/m,p=Math.sqrt(m*m+h*h);1E-10<p;){var t=a.ua[a.Kb%d]-a.sb,l=t>p;l&&(a.sb+=p,t=p);if(m){var n=Math.sqrt(t*t/(1+f*f));
0>m&&(n=-n);k+=n;e+=f*n}else e+=0<h?t:-t;this.v.push(a.Kb%2?b.f.zc:b.f.xc);this.A.push([k,e]);p-=t;l||(++a.Kb,a.sb=0)}},vc:function(a,k,e,d,m){a.T=!0;if(null==a.ua)this.v.push(b.f.qd),this.A.push([d,m,a.oa,a.pa,a.i,a.j]);else{var h=this.Ua().Qa();h*=(Math.abs(a.i-k)+Math.abs(a.j-e))/5;var f=a.i,p=a.j;a.i=k;a.j=e;h=1/parseInt(h);for(var t=0;1>=t;t+=h){var l=1-t,A=a.i,n=a.j;a.i=l*l*l*k+3*l*l*t*d+3*l*t*t*a.oa+t*t*t*f;a.j=l*l*l*e+3*l*l*t*m+3*l*t*t*a.pa+t*t*t*p;this.pb(a,A,n)}}},nd:function(a){if(null==
a.ua)this.v.push(b.f.sd),this.A.push(null);else{var k=a.i,e=a.j;a.i=a.Ic;a.j=a.Jc;this.pb(a,k,e)}},de:function(a){a.Ic=a.i;a.Jc=a.j;this.v.push(b.f.zc);this.A.push([a.i,a.j]);a.T=!1;a.Kb=a.ec;a.sb=a.Da},he:function(a,k){var e=a.i,d=a.j;"a">k&&("H"!==k&&(a.j=0),"V"!==k&&(a.i=0));switch(k){case "m":case "M":a.i+=this.o(a);a.j+=this.o(a);this.de(a);break;case "l":case "L":a.i+=this.o(a);a.j+=this.o(a);this.pb(a,e,d);break;case "c":case "C":k=this.o(a)+a.i;var h=this.o(a)+a.j;a.oa=this.o(a)+a.i;a.pa=
this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.vc(a,e,d,k,h);break;case "q":case "Q":k=this.o(a)+a.i;h=this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.L(b.f.Jd,[k,h,a.i,a.j]);a.T=!1;break;case "s":case "S":a.T||(a.oa=a.i,a.pa=a.j);k=2*a.i-a.oa;h=2*a.j-a.pa;a.T=!0;a.oa=this.o(a)+a.i;a.pa=this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.vc(a,e,d,k,h);break;case "h":case "H":a.i+=this.o(a);this.pb(a,e,d);a.T=!1;break;case "v":case "V":a.j+=this.o(a);this.pb(a,e,d);a.T=!1;break;default:this.o(a),a.T=
!1}},Ec:function(a){if("Flat"===a)return"butt";if("Square"===a)return"square";if("Round"===a||"Triangle"===a)return"round";b.f.H(!1,"Invalid line cap ".concat(a));return""},Oc:function(a){this.Pc(a,null,0)},Pc:function(a,k,e){var d=" ";k=new b.Vb(a,k,e);e=k.ga.charAt(k.N);this.v.push(b.f.pd);this.A.push(null);if(k.N<k.ga.length)for(;" "===e;)k.N++,e=k.ga.charAt(k.N);for(;k.N<a.length;)for("A"<=e&&"Z">=e||"a"<=e&&"z">=e?(d=e,"z"!==e&&"Z"!==e||this.nd(k),k.N++):this.he(k,d),e=k.ga.charAt(k.N);" "===
e;)++k.N,e=k.ga.charAt(k.N)},save:p.prototype.save,restore:p.prototype.restore,je:function(){var a=this.sa("trn:BlendMode","source-over");a=this.ca?"source-over":a;var k="source-over"!=a&&!this.Ib,e=this.g.D("Data"),h=!0;e&&"F"===e[0]&&(h=!1);var m=new p(b.f.Cb,h?["evenodd"]:null),f=!1,l=this.hc(),n=null,t=this.g.D("Fill");null!=t&&(n=this.Hb(t)?this.Ca(t,b.f.na,m):this.nb(t,b.f.na,m));this.Ib&&this.Rc(a);var z=t=null,y=this.ma("StrokeThickness",1),C=this.g.D("Stroke");null!=C&&(this.jc(y),t=this.Hb(C)?
this.Ca(C,b.f.Aa,new p(b.f.Db)):this.nb(C,b.f.Aa,new p(b.f.Db)));C=null;var w=this.g.D("OpacityMask");null!=w&&(Object(d.a)("Uh oh OpacityMask Resource!"),C=this.Ca(w));w=null;if(!this.g.V()){for(this.g.J();this.g.advance();){var g=this.g.O();b.f.m(g,"Path.Clip",b.f.l)?(b.f.H(!this.g.V(),"Path.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(l||(l=!0,this.save(),this.aa()),w=new b.K,w.$(this.B("Transform")),this.C(this.S(w)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),
g=this.B("Figures"),this.Pb(g),w=w.Va()),this.g.I()):b.f.m(g,"Path.Data",b.f.l)&&!this.g.V()?(this.g.J(),this.g.advance()&&(e=new b.K,e.$(this.B("Transform")),null!=w?w.Ga(e):w=e,this.C(this.S(w)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Data must contain PathGeometry"),e=this.B("Figures")),this.g.I()):b.f.m(g,"Path.Fill",b.f.l)?(this.g.J(),this.g.advance(),null!=C||k||"ImageBrush"!==this.g.O()?n=this.Ta(b.f.na,m):(f=!0,this.C(this.Vd())),this.g.I()):b.f.m(g,"Path.OpacityMask",b.f.l)?this.ca||
(this.g.J(),this.g.advance(),C=this.Ta(b.f.na,m),this.g.I()):b.f.m(g,"Path.Stroke",b.f.l)&&(this.g.J(),this.g.advance(),t=this.Ta(b.f.Aa,new p(b.f.Db),y),this.g.I())}this.g.I()}if(null==C&&!k&&!f){b.f.H(null!=e,"Paths must have Data defined");f=this.g.D("StrokeDashArray");if(null!=f)for(f=f.split(" "),z=Array(f.length),w=0;w<f.length;++w)if(z[w]=parseFloat(f[w])*y,!z[w]||.02>z[w])z[w]=.02;this.Sc(h?"evenodd":"nonzero");h=this.ma("StrokeDashOffset",0);null!=z&&null!=n&&(this.Oc(e),null!=n&&this.ic(n,
m),n=null);this.Pc(e,z,h);null!=n&&this.ic(n,m);null!=t&&(this.Tc(this.Ec(this.sa("StrokeStartLineCap","Flat"))),this.Uc(this.sa("StrokeLineJoin","miter").toLowerCase()),this.Vc(this.ma("StrokeMiterLimit",10)),this.Wc(t))}l&&(this.restore(),this.qa());if(null!=C||k)this.ca=!0,this.Wb(C,a);this.ca=!1},Cc:function(a){var k=1,e=[255,255,255,255];if("#"===a.charAt(0)){if(7===a.length)return a;b.f.H(9===a.length,"Color ".concat(a," is invalid in a XOD file"));k=a.substr(1,2);var d=a.substr(3,2);var h=
a.substr(5,2);a=a.substr(7,2);k=parseInt(k,16)/255;e[0]=parseInt(d,16);e[1]=parseInt(h,16);e[2]=parseInt(a,16)}else"s"===a.charAt(0)?(d=a.split("#")[1].split(","),3<d.length?(k=parseFloat(d[0]),h=255*parseFloat(d[1]),e[0]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[2]),e[1]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[3]),e[2]=parseInt(0>h?0:255<h?255:h)):(h=255*parseFloat(d[0]),e[0]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[1]),e[1]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[2]),e[2]=
parseInt(0>h?0:255<h?255:h))):b.f.H(!1,"Invalid color for a XOD file");return"rgba(".concat(e[0],",").concat(e[1],",").concat(e[2],",").concat(b.f.ad(k),")")},Zd:function(a,b){return this.nb(this.B("Color"),a,b)},nb:function(a,b,e){a=new p(b,this.Cc(a));a.C(e);return a},ac:function(){var a=this.La,k=this.v,e=this.A;this.v=[];this.A=[];this.La=this.g.depth;this.aa(!0);if(!this.g.V()||!b.f.m(this.g.O(),"Canvas",b.f.l))for(this.Ia=!1;this.gc(););this.qa();var d={operators:this.v,data:this.A};this.La=
a;this.v=k;this.A=e;return d},Fc:function(a,k,e,d){var h=new p,f=this.B("Viewbox"),l=new b.ha;l.fb(f);f=this.B("Viewport");var n=new b.ha;n.fb(f);f=this.g.D("Transform");h.save();this.aa();if(!this.g.V()){for(this.g.J();this.g.advance();){var t=this.g.O();if(b.f.m(t,"VisualBrush.Visual",b.f.l)){this.g.J();b.f.H(this.g.advance(),"VisualBrush.Visual must contain Canvas, Path or Glyphs element");this.aa(!0);Object(y.a)(this.P).wa=new b.K;var z=this.Fb();this.qa();this.g.I()}}this.g.I()}if("undefined"!==
typeof z&&0!==z.F&&0!==z.G){t=n.s-l.s;var A=n.u-l.u;l.gb(z);n=l;n.s+=t;n.u+=A}if(0===l.G||0===l.F)return a=new p(a,"rgba(0,0,0,0)"),a.C(k),a;if(null!=f||l!==n)z=n.G/l.G,t=n.F/l.F,A=n.s-l.s*z,n=n.u-l.u*t,null!=f&&e.$(f),f=new b.K,f.ob(z,0,0,t,A,n),e.Ga(f),h.C(this.S(e));n=this.Ua().Qa();f=Math.min(l.G,l.F);z=this.ma("Opacity",1);1>z&&h.C(this.Ra(z));z=this.sa("TileMode","None");t={};A=this.g.D("Visual");null!=A&&(A=this.Ca(A),t.operators={operators:A.v,data:A.A});if(!this.g.V()){for(this.g.J();this.g.advance();)A=
this.g.O(),b.f.m(A,"VisualBrush.Visual",b.f.l)&&(this.g.J(),b.f.H(this.g.advance(),"VisualBrush.Visual must contain Canvas, Path or Glyphs element"),t.operators=this.ac(),this.g.I());this.g.I()}t.type=b.f.Pd;t.tm="None"===z?"no-repeat":"repeat";a===b.f.Aa&&(t.strokeAdjust=d/e.Qa());if(l.s||l.u)t.x=l.s,t.y=l.u;t.w=l.G;t.h=l.F;t.minwh=f;t.scale=n;h.L(a,[t]);h.C(k);h.restore();this.qa();return h},Hb:function(a){return"{"===a.charAt(0)},Ca:function(a){var k=a.indexOf("StaticResource");b.f.H(0<k,"Invalid resource reference: ".concat(a));
k+=15;a=a.substr(k,a.length-1-k);k=null;for(var e=this.fa.length-1;0<=e;--e)if(this.fa[e][a]){k=this.fa[e][a];break}b.f.H(null!=k,"Dictionary key ".concat(a," does not exist."));return new p(b.f.Ld,[a])},gc:function(){if(this.Ia){if(this.g.depth===this.La)return b.f.m(this.g.O(),"Canvas",b.f.l)&&this.vb(),!1;var a=this.g.advance();if(!a){this.g.I();if(Object(y.a)(this.Jb)===this.g.depth)return this.Jb.pop(),this.Rd(),!0;if(this.g.depth===this.La)return b.f.m(this.g.O(),"Canvas",b.f.l)&&this.vb(),
!1;this.vb();return!0}}this.Ia=!0;a=this.g.O();b.f.m(a,"Canvas",b.f.l)?this.ge():b.f.m(a,"Path",b.f.l)?this.je():b.f.m(a,"Glyphs",b.f.l)?this.Nc(!1):b.f.m(a,"trn:Glyphs",b.f.l)&&(this.g.V()||this.Jb.push(this.g.depth),this.Nc(!0),this.g.V()||(this.g.J(),this.le()));return!0},md:function(){var a=b.f.na,k=new p(b.f.Cb);a=this.Fc(a,k,new b.K);k=this.cd();this.fa[this.fa.length-1][k]=a;this.L(b.f.Ac,[k,a.v,a.A])},ld:function(a){a=this.ac();var k=this.cd();this.fa[this.fa.length-1][k]=a;this.L(b.f.Ac,
[k,a.operators,a.data])},Ta:function(a,k,e){var d=new b.K,h=this.g.O();if(b.f.m(h,"VisualBrush",b.f.l))var f=this.Fc(a,k,d,e);else b.f.m(h,"ImageBrush",b.f.l)?f=this.Ud(a,k,d):b.f.m(h,"LinearGradientBrush",b.f.l)?f=this.Wd(a,k,d):b.f.m(h,"RadialGradientBrush",b.f.l)?f=this.Yd(a,k,d):b.f.m(h,"SolidColorBrush",b.f.l)?f=this.Zd(a,k):b.f.H(!1,"Invalid Brush Type: ".concat(h)),"undefined"!==typeof e&&(this.S(d),this.jc(e/d.Qa()),this.S(d.Va()));return f},Qc:function(){var a=this.g.O();if(b.f.m(a,"ResourceDictionary",
b.f.l)&&!this.g.V()){for(this.g.J();this.g.advance();)a=this.g.O(),b.f.m(a,"VisualBrush",b.f.l)?this.md():b.f.m(a,"Canvas",b.f.l)?this.ld():b.f.H(!1,"Resource type is invalid: ".concat(a));this.g.I()}},Td:function(){for(var a="";!this.done;)a+=this.hb();return a},hb:function(){this.Mc=!1;for(this.qb={};this.v.length<this.Hc&&!this.Mc&&this.gc(););this.gc()||(this.done=!0);var a={operators:this.v,data:this.A};this.v=[];this.A=[];return a},oe:function(){var a=[],b=this.qb,e;for(e in b)a.push(e.substr(1));
return a},done:!1,Ia:!1,ca:!1,Lc:0,Kc:0,Hc:0,Ja:null,qb:null,La:0,fa:null,P:null,g:null,Jb:null,Lb:!1};b.Ha=function(){this.fc=this.ub=!1;this.rb=this.dc=1;this.cc=this.Nb=this.Ob=this.Mb=0};b.Ha.prototype={ub:!1,fc:!1,rb:0,dc:0,Mb:0,cc:0,Nb:0,Ob:0};b.Sa=function(){};b.Sa.se=function(a,k){var e=new b.Sa;e.cb="black";e.Xa="black";e.Wa="nonzero";e.Ka=1;e.tb="source-over";e.ab=1;e.Za="butt";e.$a="miter";e.bb=10;e.Ya="10px sans-serif";e.wa=new b.K;e.ta=new b.ha;e.ta.initData(0,0,a,k);return e};b.Sa.prototype=
{clone:function(){var a=new b.Sa;a.cb=this.cb;a.Xa=this.Xa;a.Wa=this.Wa;a.Ka=this.Ka;a.tb=this.tb;a.ab=this.ab;a.Za=this.Za;a.$a=this.$a;a.bb=this.bb;a.Ya=this.Ya;a.wa=new b.K;a.wa.bc(this.wa);a.ta=new b.ha;a.ta.initData(this.ta.s,this.ta.u,this.ta.G,this.ta.F);return a},we:function(){var a=new b.Sa;a.cb="black";a.Xa="black";a.Wa="nonzero";a.Ka=1;a.tb="source-over";a.ab=1;a.Za="butt";a.$a="miter";a.bb=10;a.Ya="10px sans-serif";a.wa=new b.K;a.wa.bc(this.wa);a.ta=new b.ha;return a},cb:null,Xa:null,
Wa:null,Ka:0,ab:0,Za:null,$a:null,bb:0,Ya:null,wa:null,ta:null};b.mb=function(a,b){this.x=a;this.y=b};b.mb.prototype={x:0,y:0};b.ha=function(){this.u=this.s=-1E6;this.G=this.F=2E6};b.ha.prototype={initData:function(a,b,e,d){this.s=a;this.u=b;this.G=e;this.F=d},te:function(){return 0<this.G&&0<this.F},fb:function(a){a=a.split(",");b.f.H(4===a.length,"Rectangles should contain 4 numbers");this.s=parseFloat(a[0]);this.u=parseFloat(a[1]);this.G=parseFloat(a[2]);this.F=parseFloat(a[3])},qe:function(a){if(a.Gc())return this;
var d=new b.mb(this.s,this.u),e=new b.mb(this.s,this.u+this.F),h=new b.mb(this.s+this.G,this.u),f=new b.mb(this.s+this.G,this.u+this.F);a.Ub(d);a.Ub(e);a.Ub(h);a.Ub(f);a=Math.min(d.x,e.x,h.x,f.x);var l=Math.min(d.y,e.y,h.y,f.y),p=new b.ha;p.initData(a,l,Math.max(d.x,e.x,h.x,f.x)-a,Math.max(d.y,e.y,h.y,f.y)-l);return p},ia:function(a,b){a<this.s?(this.G+=this.s-a,this.s=a):a>this.s+this.G&&(this.G=a-this.s);b<this.u?(this.F+=this.u-b,this.u=b):b>this.u+this.F&&(this.F=b-this.u)},sc:function(a){this.ia(a.s,
a.u);this.ia(a.s+a.G,a.u+a.F)},gb:function(a){var b=this.s;var e=this.s+this.G;var d=this.u;var h=this.u+this.F;var f=a.s;var l=a.s+a.G;var p=a.u;a=a.u+a.F;e<f||l<b||h<p||a<d?this.s=this.G=this.u=this.F=0:(this.s=b<f?f:b,this.G=(e<l?e:l)-this.s,this.u=d<p?p:d,this.F=(h<a?h:a)-this.u,this.G&&this.F||(this.s=this.G=this.u=this.F=0))},inflate:function(a){this.s-=a;this.u-=a;this.G+=2*a;this.F+=2*a},s:0,u:0,G:0,F:0};b.K=function(){};b.K.prototype={W:1,X:0,Y:0,Z:1,ba:0,da:0,$:function(a){var b=[1,0,0,
1,0,0];a=a.split(",");for(var e=0;e<a.length&&6>e;++e)b[e]=parseFloat(a[e]);this.W=b[0];this.X=b[1];this.Y=b[2];this.Z=b[3];this.ba=b[4];this.da=b[5]},ob:function(a,b,e,d,h,f){this.W=a;this.X=b;this.Y=e;this.Z=d;this.ba=h;this.da=f},bc:function(a){this.W=a.W;this.X=a.X;this.Y=a.Y;this.Z=a.Z;this.ba=a.ba;this.da=a.da},Ga:function(a){var b=this.W,e=this.X,d=this.Y,h=this.Z;this.W=a.W*b+a.X*d;this.X=a.W*e+a.X*h;this.Y=a.Y*b+a.Z*d;this.Z=a.Y*e+a.Z*h;this.ba=a.ba*b+a.da*d+this.ba;this.da=a.ba*e+a.da*h+
this.da},Va:function(){var a=new b.K,d=this.W*this.Z-this.X*this.Y;if(!d)return a;a.W=this.Z/d;a.Y=-this.Y/d;a.ba=(this.Y*this.da-this.ba*this.Z)/d;a.X=-this.X/d;a.Z=this.W/d;a.da=-(this.W*this.da-this.ba*this.X)/d;return a},Ub:function(a){var b=a.x*this.X+a.y*this.Z+this.da;a.x=a.x*this.W+a.y*this.Y+this.ba;a.y=b},Qa:function(){var a=.707106781*this.W+.707106781*this.X,b=.707106781*this.Y+.707106781*this.Z;return Math.sqrt(a*a+b*b)},Gc:function(){return 1!==this.W||this.X||this.Y||1!==this.Z||this.ba||
this.da?!1:!0},Gb:function(){return this.Xd()},Xd:function(){return this.Gc()?null:[this.W,this.X,this.Y,this.Z,this.ba,this.da]}};b.Vb=function(a,b,e){this.ga=a;this.i=this.j=this.N=0;this.T=!1;this.ua=b;if(null!=this.ua){for(b=a=0;b<this.ua.length;++b)a+=this.ua[b];this.Da=e%a;0>this.Da&&(this.Da+=a);for(e=this.ec=0;this.Da>this.ua[e];++e)this.Da-=this.ua[e],++this.ec}};b.Vb.prototype={ga:null,N:0,ua:null,Kb:0,sb:0,ec:0,Da:0,i:0,j:0,Ic:0,Jc:0,T:!1,oa:0,pa:0};b.ee=function(){};b.ee.prototype={};
b.f.ff="http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key";b.f.mf="http://schemas.openxps.org/oxps/v1.0/resourcedictionary-key";b.f.tf="http://schemas.microsoft.com/winfx/2006/xaml";b.f.l="http://schemas.microsoft.com/xps/2005/06";b.f.uf="http://schemas.microsoft.com/winfx/2006/xaml/presentation";b.f.nf="http://schemas.openxps.org/oxps/v1.0";b.f.wf="http://schemas.microsoft.com/xps/2005/06/documentstructure";b.f.lf="http://schemas.openxps.org/oxps/v1.0/documentstructure";b.f.rf="http://schemas.openxmlformats.org/package/2006/relationships";
b.f.Ye="http://schemas.openxmlformats.org/package/2006/content-types";b.f.gf="http://schemas.openxmlformats.org/markup-compatibility/2006";b.f.Ze="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";b.f.$e="http://purl.org/dc/elements/1.1/";b.f.af="http://purl.org/dc/terms/";b.f.vf="http://www.w3.org/XML/1998/namespace";b.f.sf="clr-namespace:PDFTron.SilverDox.Internal;assembly=SilverDox";b.f.xf="http://schemas.microsoft.com/xps/2005/06/restricted-font";b.f.pf="http://schemas.openxps.org/oxps/v1.0/restricted-font";
b.f.hf="application/vnd.ms-package.obfuscated-opentype";b.f.qf="http://www.pdftron.com/silverdox/2010/09";b.f.Nd=0;b.f.Md=1;b.f.Eb=2;b.f.ef=3;b.f.Gd=4;b.f.Ed=5;b.f.Aa=6;b.f.na=7;b.f.Bd=8;b.f.Ac=9;b.f.wd=10;b.f.od=11;b.f.Ld=12;b.f.pd=13;b.f.sd=14;b.f.Cb=15;b.f.Db=16;b.f.rd=17;b.f.zc=18;b.f.xc=19;b.f.Jd=20;b.f.qd=21;b.f.Ad=22;b.f.xd=23;b.f.yc=24;b.f.Od=25;b.f.Id=26;b.f.Fd=27;b.f.vd=28;b.f.df=29;b.f.cf=30;b.f.zd=31;b.f.td=32;b.f.ud=33;b.f.Cd=34;b.f.Bc=35;b.f.Qd=36;b.f.bf=37;b.f.wc=38;b.f.yd=39;b.f.Xb=
40;b.f.Pd=1;b.f.Hd=2;b.f.Kd=3;b.f.Dd=4;b.f.jf="S r t T w c s f a L R P A b z F X C M l q B n x m W i j I Z d D e xw cgb cge g bO tm".split(" ");b.f.kf="S r t T w c s f a L R P A b z F X C M l q B n xc m W i j I Z d D e xcw cgb cge g bO tm".split(" ")})("undefined"!==typeof window?window:self)},function(n,f,l){var h=l(7),d=l(4),D=l(8);l.n(D);(function(f){f.trn.f||(f.trn=trn);var l=function k(a){this.M="";this.data=a;this.ed=new D.Inflate({windowBits:-15,chunkSize:k.prototype.chunkSize});this.pc();
this.start=0};l.prototype={chunkSize:102400,mark:function(a){var d=a-this.start;d>l.prototype.chunkSize&&(this.M=this.M.slice(d),this.start=a)},indexOf:function(a,d){d-=this.start;do var e=this.M.indexOf(a,d);while(-1===e&&this.pc());return e+this.start},charAt:function(a){a-=this.start;a>=this.M.length&&this.pc();return this.M.charAt(a)},substring:function(a,d){a-=this.start;d-=this.start;return this.M.substring(a,d)},pe:function(){var a="";this.ed.onData=function(d){a+=Object(h.a)(d)};this.ed.push(this.data.slice(0,
l.prototype.chunkSize),2);this.data=this.data.slice(l.prototype.chunkSize);return a},pc:function(){var a=this.pe();return a.length?(this.M+=a,!0):!1}};f.hb=function(){if(f.Na.done)return f.postMessage({command:"done"}),f.Na=null,!1;var a=f.Na.hb();f.postMessage({command:"nextChunk",resources:f.Na.oe(),dataString:a});return!0};var p=function(){var a=navigator.userAgent.toLowerCase();return(a=/(msie) ([\w.]+)/.exec(a)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(a))?parseInt(a[2],10):a}();f.Yc=function(){if(9===
p)for(;f.hb(););else setTimeout(function(){f.Na&&f.hb()&&f.Yc()},0)};f.jd=l;f.Xc=!1;f.onmessage=function(a){switch(a.data.command){case "data":var h=new d.a(new f.jd(a.data.dataString));f.Na=new f.trn.f(h,f.Xc,f.Ae,a.data.docId);f.Zc&&f.Yc();break;case "nextChunk":f.Zc||f.Na&&f.hb();break;case "cancel":f.Na=null;f.postMessage({command:"done"});break;case "options":f.Xc=a.data.imageScaling;f.Ae=a.data.specialBlendSupported;f.Zc=a.data.continueWithoutPrompt;break;default:throw Error("Unknown message command ".concat(a.data.command));
}}})(self)},function(n,f,l){function h(a){return(a>>>24&255)+(a>>>8&65280)+((a&65280)<<8)+((a&255)<<24)}function d(){this.mode=0;this.Tb=!1;this.va=0;this.nc=!1;this.total=this.check=this.Qb=this.flags=0;this.head=null;this.ja=this.za=this.ka=this.jb=0;this.window=null;this.U=this.offset=this.length=this.R=this.Fa=0;this.Oa=this.ya=null;this.ra=this.yb=this.ib=this.hd=this.eb=this.xa=0;this.next=null;this.ea=new a.kb(320);this.Bb=new a.kb(288);this.$c=this.fd=null;this.Ce=this.back=this.qc=0}function D(b){if(!b||
!b.state)return-2;var e=b.state;b.rc=b.Ab=e.total=0;b.msg="";e.va&&(b.Ma=e.va&1);e.mode=1;e.Tb=0;e.nc=0;e.Qb=32768;e.head=null;e.Fa=0;e.R=0;e.ya=e.fd=new a.lb(852);e.Oa=e.$c=new a.lb(592);e.qc=1;e.back=-1;return 0}function y(a){if(!a||!a.state)return-2;var b=a.state;b.ka=0;b.za=0;b.ja=0;return D(a)}function v(a,b){if(!a||!a.state)return-2;var e=a.state;if(0>b){var d=0;b=-b}else d=(b>>4)+1,48>b&&(b&=15);if(b&&(8>b||15<b))return-2;null!==e.window&&e.jb!==b&&(e.window=null);e.va=d;e.jb=b;return y(a)}
function p(a,b){if(!a)return-2;var e=new d;a.state=e;e.window=null;b=v(a,b);0!==b&&(a.state=null);return b}function b(b,e,d,h){var f=b.state;null===f.window&&(f.ka=1<<f.jb,f.ja=0,f.za=0,f.window=new a.Buf8(f.ka));h>=f.ka?(a.arraySet(f.window,e,d-f.ka,f.ka,0),f.ja=0,f.za=f.ka):(b=f.ka-f.ja,b>h&&(b=h),a.arraySet(f.window,e,d-h,b,f.ja),(h-=b)?(a.arraySet(f.window,e,d-h,h,0),f.ja=h,f.za=f.ka):(f.ja+=b,f.ja===f.ka&&(f.ja=0),f.za<f.ka&&(f.za+=b)));return 0}var a=l(3),k=l(14),e=l(15),A=l(16),m=l(17),F=!0,
E,R;f.Df=y;f.Ef=v;f.Ff=D;f.Cf=function(a){return p(a,15)};f.inflateInit2=p;f.inflate=function(d,f){var l,p=new a.Buf8(4),n=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!d||!d.state||!d.output||!d.input&&0!==d.avail_in)return-2;var g=d.state;12===g.mode&&(g.mode=13);var t=d.next_out;var D=d.output;var y=d.avail_out;var v=d.next_in;var z=d.input;var x=d.avail_in;var r=g.Fa;var q=g.R;var M=x;var I=y;var N=0;a:for(;;)switch(g.mode){case 1:if(0===g.va){g.mode=13;break}for(;16>q;){if(0===x)break a;
x--;r+=z[v++]<<q;q+=8}if(g.va&2&&35615===r){g.check=0;p[0]=r&255;p[1]=r>>>8&255;g.check=e(g.check,p,2,0);q=r=0;g.mode=2;break}g.flags=0;g.head&&(g.head.done=!1);if(!(g.va&1)||(((r&255)<<8)+(r>>8))%31){d.msg="incorrect header check";g.mode=30;break}if(8!==(r&15)){d.msg="unknown compression method";g.mode=30;break}r>>>=4;q-=4;var B=(r&15)+8;if(0===g.jb)g.jb=B;else if(B>g.jb){d.msg="invalid window size";g.mode=30;break}g.Qb=1<<B;d.Ma=g.check=1;g.mode=r&512?10:12;q=r=0;break;case 2:for(;16>q;){if(0===
x)break a;x--;r+=z[v++]<<q;q+=8}g.flags=r;if(8!==(g.flags&255)){d.msg="unknown compression method";g.mode=30;break}if(g.flags&57344){d.msg="unknown header flags set";g.mode=30;break}g.head&&(g.head.text=r>>8&1);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0;g.mode=3;case 3:for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.head&&(g.head.time=r);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,p[2]=r>>>16&255,p[3]=r>>>24&255,g.check=e(g.check,p,4,0));q=r=0;g.mode=4;case 4:for(;16>
q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.head&&(g.head.De=r&255,g.head.ye=r>>8);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0;g.mode=5;case 5:if(g.flags&1024){for(;16>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.length=r;g.head&&(g.head.mc=r);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0}else g.head&&(g.head.U=null);g.mode=6;case 6:if(g.flags&1024){var u=g.length;u>x&&(u=x);u&&(g.head&&(B=g.head.mc-g.length,g.head.U||(g.head.U=Array(g.head.mc)),
a.arraySet(g.head.U,z,v,u,B)),g.flags&512&&(g.check=e(g.check,z,u,v)),x-=u,v+=u,g.length-=u);if(g.length)break a}g.length=0;g.mode=7;case 7:if(g.flags&2048){if(0===x)break a;u=0;do B=z[v+u++],g.head&&B&&65536>g.length&&(g.head.name+=String.fromCharCode(B));while(B&&u<x);g.flags&512&&(g.check=e(g.check,z,u,v));x-=u;v+=u;if(B)break a}else g.head&&(g.head.name=null);g.length=0;g.mode=8;case 8:if(g.flags&4096){if(0===x)break a;u=0;do B=z[v+u++],g.head&&B&&65536>g.length&&(g.head.kc+=String.fromCharCode(B));
while(B&&u<x);g.flags&512&&(g.check=e(g.check,z,u,v));x-=u;v+=u;if(B)break a}else g.head&&(g.head.kc=null);g.mode=9;case 9:if(g.flags&512){for(;16>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(r!==(g.check&65535)){d.msg="header crc mismatch";g.mode=30;break}q=r=0}g.head&&(g.head.re=g.flags>>9&1,g.head.done=!0);d.Ma=g.check=0;g.mode=12;break;case 10:for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}d.Ma=g.check=h(r);q=r=0;g.mode=11;case 11:if(0===g.nc)return d.next_out=t,d.avail_out=y,d.next_in=v,
d.avail_in=x,g.Fa=r,g.R=q,2;d.Ma=g.check=1;g.mode=12;case 12:if(5===f||6===f)break a;case 13:if(g.Tb){r>>>=q&7;q-=q&7;g.mode=27;break}for(;3>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.Tb=r&1;r>>>=1;--q;switch(r&3){case 0:g.mode=14;break;case 1:B=g;if(F){E=new a.lb(512);R=new a.lb(32);for(u=0;144>u;)B.ea[u++]=8;for(;256>u;)B.ea[u++]=9;for(;280>u;)B.ea[u++]=7;for(;288>u;)B.ea[u++]=8;m(1,B.ea,0,288,E,0,B.Bb,{R:9});for(u=0;32>u;)B.ea[u++]=5;m(2,B.ea,0,32,R,0,B.Bb,{R:5});F=!1}B.ya=E;B.xa=9;B.Oa=R;B.eb=
5;g.mode=20;if(6===f){r>>>=2;q-=2;break a}break;case 2:g.mode=17;break;case 3:d.msg="invalid block type",g.mode=30}r>>>=2;q-=2;break;case 14:r>>>=q&7;for(q-=q&7;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if((r&65535)!==(r>>>16^65535)){d.msg="invalid stored block lengths";g.mode=30;break}g.length=r&65535;q=r=0;g.mode=15;if(6===f)break a;case 15:g.mode=16;case 16:if(u=g.length){u>x&&(u=x);u>y&&(u=y);if(0===u)break a;a.arraySet(D,z,v,u,t);x-=u;v+=u;y-=u;t+=u;g.length-=u;break}g.mode=12;break;case 17:for(;14>
q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.ib=(r&31)+257;r>>>=5;q-=5;g.yb=(r&31)+1;r>>>=5;q-=5;g.hd=(r&15)+4;r>>>=4;q-=4;if(286<g.ib||30<g.yb){d.msg="too many length or distance symbols";g.mode=30;break}g.ra=0;g.mode=18;case 18:for(;g.ra<g.hd;){for(;3>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.ea[n[g.ra++]]=r&7;r>>>=3;q-=3}for(;19>g.ra;)g.ea[n[g.ra++]]=0;g.ya=g.fd;g.xa=7;u={R:g.xa};N=m(0,g.ea,0,19,g.ya,0,g.Bb,u);g.xa=u.R;if(N){d.msg="invalid code lengths set";g.mode=30;break}g.ra=0;g.mode=19;
case 19:for(;g.ra<g.ib+g.yb;){for(;;){var H=g.ya[r&(1<<g.xa)-1];u=H>>>24;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(16>H)r>>>=u,q-=u,g.ea[g.ra++]=H;else{if(16===H){for(B=u+2;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=u;q-=u;if(0===g.ra){d.msg="invalid bit length repeat";g.mode=30;break}B=g.ea[g.ra-1];u=3+(r&3);r>>>=2;q-=2}else if(17===H){for(B=u+3;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=u;q-=u;B=0;u=3+(r&7);r>>>=3;q-=3}else{for(B=u+7;q<B;){if(0===x)break a;x--;
r+=z[v++]<<q;q+=8}r>>>=u;q-=u;B=0;u=11+(r&127);r>>>=7;q-=7}if(g.ra+u>g.ib+g.yb){d.msg="invalid bit length repeat";g.mode=30;break}for(;u--;)g.ea[g.ra++]=B}}if(30===g.mode)break;if(0===g.ea[256]){d.msg="invalid code -- missing end-of-block";g.mode=30;break}g.xa=9;u={R:g.xa};N=m(1,g.ea,0,g.ib,g.ya,0,g.Bb,u);g.xa=u.R;if(N){d.msg="invalid literal/lengths set";g.mode=30;break}g.eb=6;g.Oa=g.$c;u={R:g.eb};N=m(2,g.ea,g.ib,g.yb,g.Oa,0,g.Bb,u);g.eb=u.R;if(N){d.msg="invalid distances set";g.mode=30;break}g.mode=
20;if(6===f)break a;case 20:g.mode=21;case 21:if(6<=x&&258<=y){d.next_out=t;d.avail_out=y;d.next_in=v;d.avail_in=x;g.Fa=r;g.R=q;A(d,I);t=d.next_out;D=d.output;y=d.avail_out;v=d.next_in;z=d.input;x=d.avail_in;r=g.Fa;q=g.R;12===g.mode&&(g.back=-1);break}for(g.back=0;;){H=g.ya[r&(1<<g.xa)-1];u=H>>>24;B=H>>>16&255;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(B&&0===(B&240)){var L=u;var W=B;for(l=H;;){H=g.ya[l+((r&(1<<L+W)-1)>>L)];u=H>>>24;B=H>>>16&255;H&=65535;if(L+u<=q)break;if(0===
x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=L;q-=L;g.back+=L}r>>>=u;q-=u;g.back+=u;g.length=H;if(0===B){g.mode=26;break}if(B&32){g.back=-1;g.mode=12;break}if(B&64){d.msg="invalid literal/length code";g.mode=30;break}g.U=B&15;g.mode=22;case 22:if(g.U){for(B=g.U;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.length+=r&(1<<g.U)-1;r>>>=g.U;q-=g.U;g.back+=g.U}g.Ce=g.length;g.mode=23;case 23:for(;;){H=g.Oa[r&(1<<g.eb)-1];u=H>>>24;B=H>>>16&255;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(0===
(B&240)){L=u;W=B;for(l=H;;){H=g.Oa[l+((r&(1<<L+W)-1)>>L)];u=H>>>24;B=H>>>16&255;H&=65535;if(L+u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=L;q-=L;g.back+=L}r>>>=u;q-=u;g.back+=u;if(B&64){d.msg="invalid distance code";g.mode=30;break}g.offset=H;g.U=B&15;g.mode=24;case 24:if(g.U){for(B=g.U;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.offset+=r&(1<<g.U)-1;r>>>=g.U;q-=g.U;g.back+=g.U}if(g.offset>g.Qb){d.msg="invalid distance too far back";g.mode=30;break}g.mode=25;case 25:if(0===y)break a;
u=I-y;if(g.offset>u){u=g.offset-u;if(u>g.za&&g.qc){d.msg="invalid distance too far back";g.mode=30;break}u>g.ja?(u-=g.ja,B=g.ka-u):B=g.ja-u;u>g.length&&(u=g.length);L=g.window}else L=D,B=t-g.offset,u=g.length;u>y&&(u=y);y-=u;g.length-=u;do D[t++]=L[B++];while(--u);0===g.length&&(g.mode=21);break;case 26:if(0===y)break a;D[t++]=g.length;y--;g.mode=21;break;case 27:if(g.va){for(;32>q;){if(0===x)break a;x--;r|=z[v++]<<q;q+=8}I-=y;d.Ab+=I;g.total+=I;I&&(d.Ma=g.check=g.flags?e(g.check,D,I,t-I):k(g.check,
D,I,t-I));I=y;if((g.flags?r:h(r))!==g.check){d.msg="incorrect data check";g.mode=30;break}q=r=0}g.mode=28;case 28:if(g.va&&g.flags){for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(r!==(g.total&4294967295)){d.msg="incorrect length check";g.mode=30;break}q=r=0}g.mode=29;case 29:N=1;break a;case 30:N=-3;break a;case 31:return-4;default:return-2}d.next_out=t;d.avail_out=y;d.next_in=v;d.avail_in=x;g.Fa=r;g.R=q;if((g.ka||I!==d.avail_out&&30>g.mode&&(27>g.mode||4!==f))&&b(d,d.output,d.next_out,I-d.avail_out))return g.mode=
31,-4;M-=d.avail_in;I-=d.avail_out;d.rc+=M;d.Ab+=I;g.total+=I;g.va&&I&&(d.Ma=g.check=g.flags?e(g.check,D,I,d.next_out-I):k(g.check,D,I,d.next_out-I));d.me=g.R+(g.Tb?64:0)+(12===g.mode?128:0)+(20===g.mode||15===g.mode?256:0);(0===M&&0===I||4===f)&&0===N&&(N=-5);return N};f.inflateEnd=function(a){if(!a||!a.state)return-2;var b=a.state;b.window&&(b.window=null);a.state=null;return 0};f.inflateGetHeader=function(a,b){if(!a||!a.state)return-2;a=a.state;if(0===(a.va&2))return-2;a.head=b;b.done=!1;return 0};
f.inflateSetDictionary=function(a,d){var e=d.length;if(!a||!a.state)return-2;var f=a.state;if(0!==f.va&&11!==f.mode)return-2;if(11===f.mode){var h=k(1,d,e,0);if(h!==f.check)return-3}if(b(a,d,e,e))return f.mode=31,-4;f.nc=1;return 0};f.Bf="pako inflate (from Nodeca project)"},function(n){n.la=function(f,l,h,d){var n=f&65535|0;f=f>>>16&65535|0;for(var y;0!==h;){y=2E3<h?2E3:h;h-=y;do n=n+l[d++]|0,f=f+n|0;while(--y);n%=65521;f%=65521}return n|f<<16|0}},function(n){var f=function(){for(var f,h=[],d=0;256>
d;d++){f=d;for(var n=0;8>n;n++)f=f&1?3988292384^f>>>1:f>>>1;h[d]=f}return h}();n.la=function(l,h,d,n){d=n+d;for(l^=-1;n<d;n++)l=l>>>8^f[(l^h[n])&255];return l^-1}},function(n){n.la=function(f,l){var h=f.state;var d=f.next_in;var n=f.input;var y=d+(f.avail_in-5);var v=f.next_out;var p=f.output;l=v-(l-f.avail_out);var b=v+(f.avail_out-257);var a=h.Qb;var k=h.ka;var e=h.za;var A=h.ja;var m=h.window;var F=h.Fa;var E=h.R;var R=h.ya;var t=h.Oa;var z=(1<<h.xa)-1;var ca=(1<<h.eb)-1;a:do{15>E&&(F+=n[d++]<<
E,E+=8,F+=n[d++]<<E,E+=8);var C=R[F&z];b:for(;;){var w=C>>>24;F>>>=w;E-=w;w=C>>>16&255;if(0===w)p[v++]=C&65535;else if(w&16){var g=C&65535;if(w&=15)E<w&&(F+=n[d++]<<E,E+=8),g+=F&(1<<w)-1,F>>>=w,E-=w;15>E&&(F+=n[d++]<<E,E+=8,F+=n[d++]<<E,E+=8);C=t[F&ca];c:for(;;){w=C>>>24;F>>>=w;E-=w;w=C>>>16&255;if(w&16){C&=65535;w&=15;E<w&&(F+=n[d++]<<E,E+=8,E<w&&(F+=n[d++]<<E,E+=8));C+=F&(1<<w)-1;if(C>a){f.msg="invalid distance too far back";h.mode=30;break a}F>>>=w;E-=w;w=v-l;if(C>w){w=C-w;if(w>e&&h.qc){f.msg=
"invalid distance too far back";h.mode=30;break a}var G=0;var J=m;if(0===A){if(G+=k-w,w<g){g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}}else if(A<w){if(G+=k+A-w,w-=A,w<g){g-=w;do p[v++]=m[G++];while(--w);G=0;if(A<g){w=A;g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}}}else if(G+=A-w,w<g){g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}for(;2<g;)p[v++]=J[G++],p[v++]=J[G++],p[v++]=J[G++],g-=3;g&&(p[v++]=J[G++],1<g&&(p[v++]=J[G++]))}else{G=v-C;do p[v++]=p[G++],p[v++]=p[G++],p[v++]=p[G++],g-=3;while(2<g);g&&(p[v++]=
p[G++],1<g&&(p[v++]=p[G++]))}}else if(0===(w&64)){C=t[(C&65535)+(F&(1<<w)-1)];continue c}else{f.msg="invalid distance code";h.mode=30;break a}break}}else if(0===(w&64)){C=R[(C&65535)+(F&(1<<w)-1)];continue b}else{w&32?h.mode=12:(f.msg="invalid literal/length code",h.mode=30);break a}break}}while(d<y&&v<b);g=E>>3;d-=g;E-=g<<3;f.next_in=d;f.next_out=v;f.avail_in=d<y?5+(y-d):5-(d-y);f.avail_out=v<b?257+(b-v):257-(v-b);h.Fa=F&(1<<E)-1;h.R=E}},function(n,f,l){var h=l(3),d=[3,4,5,6,7,8,9,10,11,13,15,17,
19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.la=function(f,b,a,k,e,l,m,n){var p=n.R,A,t,z,F,C,w,g=0,G=new h.kb(16);var J=new h.kb(16);var S,O=0;for(A=0;15>=A;A++)G[A]=
0;for(t=0;t<k;t++)G[b[a+t]]++;var K=p;for(z=15;1<=z&&0===G[z];z--);K>z&&(K=z);if(0===z)return e[l++]=20971520,e[l++]=20971520,n.R=1,0;for(p=1;p<z&&0===G[p];p++);K<p&&(K=p);for(A=F=1;15>=A;A++)if(F<<=1,F-=G[A],0>F)return-1;if(0<F&&(0===f||1!==z))return-1;J[1]=0;for(A=1;15>A;A++)J[A+1]=J[A]+G[A];for(t=0;t<k;t++)0!==b[a+t]&&(m[J[b[a+t]]++]=t);if(0===f){var x=S=m;var r=19}else 1===f?(x=d,g-=257,S=D,O-=257,r=256):(x=y,S=v,r=-1);t=C=0;A=p;var q=l;k=K;J=0;var M=-1;var I=1<<K;var N=I-1;if(1===f&&852<I||2===
f&&592<I)return 1;for(;;){var B=A-J;if(m[t]<r){var u=0;var H=m[t]}else m[t]>r?(u=S[O+m[t]],H=x[g+m[t]]):(u=96,H=0);F=1<<A-J;p=w=1<<k;do w-=F,e[q+(C>>J)+w]=B<<24|u<<16|H|0;while(0!==w);for(F=1<<A-1;C&F;)F>>=1;0!==F?(C&=F-1,C+=F):C=0;t++;if(0===--G[A]){if(A===z)break;A=b[a+m[t]]}if(A>K&&(C&N)!==M){0===J&&(J=K);q+=p;k=A-J;for(F=1<<k;k+J<z;){F-=G[k+J];if(0>=F)break;k++;F<<=1}I+=1<<k;if(1===f&&852<I||2===f&&592<I)return 1;M=C&N;e[M]=K<<24|k<<16|q-l|0}}0!==C&&(e[q+C]=A-J<<24|4194304);n.R=K;return 0}},function(n,
f,l){function h(f,b){if(65534>b&&(f.subarray&&y||!f.subarray&&D))return String.fromCharCode.apply(null,d.shrinkBuf(f,b));for(var a="",h=0;h<b;h++)a+=String.fromCharCode(f[h]);return a}var d=l(3),D=!0,y=!0,v=new d.Buf8(256);for(n=0;256>n;n++)v[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;v[254]=v[254]=1;f.string2buf=function(f){var b,a,h=f.length,e=0;for(b=0;b<h;b++){var l=f.charCodeAt(b);if(55296===(l&64512)&&b+1<h){var m=f.charCodeAt(b+1);56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),
b++)}e+=128>l?1:2048>l?2:65536>l?3:4}var p=new d.Buf8(e);for(b=a=0;a<e;b++)l=f.charCodeAt(b),55296===(l&64512)&&b+1<h&&(m=f.charCodeAt(b+1),56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),b++)),128>l?p[a++]=l:(2048>l?p[a++]=192|l>>>6:(65536>l?p[a++]=224|l>>>12:(p[a++]=240|l>>>18,p[a++]=128|l>>>12&63),p[a++]=128|l>>>6&63),p[a++]=128|l&63);return p};f.yf=function(d){return h(d,d.length)};f.binstring2buf=function(f){for(var b=new d.Buf8(f.length),a=0,h=b.length;a<h;a++)b[a]=f.charCodeAt(a);return b};
f.buf2string=function(d,b){var a,f=b||d.length,e=Array(2*f);for(b=a=0;b<f;){var l=d[b++];if(128>l)e[a++]=l;else{var m=v[l];if(4<m)e[a++]=65533,b+=m-1;else{for(l&=2===m?31:3===m?15:7;1<m&&b<f;)l=l<<6|d[b++]&63,m--;1<m?e[a++]=65533:65536>l?e[a++]=l:(l-=65536,e[a++]=55296|l>>10&1023,e[a++]=56320|l&1023)}}}return h(e,a)};f.utf8border=function(d,b){var a;b=b||d.length;b>d.length&&(b=d.length);for(a=b-1;0<=a&&128===(d[a]&192);)a--;return 0>a||0===a?b:a+v[d[a]]>b?a:b}},function(n){n.la={Z_NO_FLUSH:0,Se:1,
Z_SYNC_FLUSH:2,Pe:3,Z_FINISH:4,He:5,We:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Me:-1,Ue:-2,Ie:-3,Z_BUF_ERROR:-5,Re:0,Fe:1,Ee:9,Je:-1,Ne:1,Qe:2,Te:3,Oe:4,Ke:0,Ge:0,Ve:1,Xe:2,Le:8}},function(n){n.la={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(n){n.la=function(){this.input=null;this.rc=this.avail_in=this.next_in=0;this.output=null;this.Ab=this.avail_out=this.next_out=
0;this.msg="";this.state=null;this.me=2;this.Ma=0}},function(n){n.la=function(){this.ye=this.De=this.time=this.text=0;this.U=null;this.mc=0;this.kc=this.name="";this.re=0;this.done=!1}}]);}).call(this || window)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,11 +0,0 @@
(function(){(function(l){function b(d){if(g[d])return g[d].exports;var e=g[d]={i:d,l:!1,exports:{}};l[d].call(e.exports,e,e.exports,b);e.l=!0;return e.exports}var g={};b.m=l;b.c=g;b.d=function(d,e,k){b.o(d,e)||Object.defineProperty(d,e,{enumerable:!0,get:k})};b.r=function(d){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});Object.defineProperty(d,"__esModule",{value:!0})};b.t=function(d,e){e&1&&(d=b(d));if(e&8||e&4&&"object"===typeof d&&d&&d.__esModule)return d;
var k=Object.create(null);b.r(k);Object.defineProperty(k,"default",{enumerable:!0,value:d});if(e&2&&"string"!=typeof d)for(var g in d)b.d(k,g,function(e){return d[e]}.bind(null,g));return k};b.n=function(d){var e=d&&d.__esModule?function(){return d["default"]}:function(){return d};b.d(e,"a",e);return e};b.o=function(d,e){return Object.prototype.hasOwnProperty.call(d,e)};b.p="/core/contentEdit";return b(b.s=0)})([function(l,b,g){l.exports=g(1)},function(l,b,g){function d(a,d,c){commandFName="importCommand"+
c+".xml";FS.writeFile(commandFName,"<InfixServer>"+a+"</InfixServer>");p.ccall("wasmRunXML","number",["string","string"],[commandFName,d]);FS.unlink(commandFName)}function e(){1==r?postMessage({cmd:"isReady"}):setTimeout(e,300)}function k(a,f,c,e,b){f?(c=new Uint8Array(c),f="inputFile"+a+".pdf",FS.writeFile(f,c),e=new Uint8Array(e),e=(new TextDecoder("utf-8")).decode(e),exportedFName="exported"+a+".xml",objectFName="objects"+a+".xml",resultsFName="results"+a+".xml",c='<Commands><Command Name="LoadPDF">'+
("<File>"+f+"</File></Command>")+'<Command Name="Page BBox"><StartPage>1</StartPage><EndPage>1</EndPage></Command>',""!=e&&(c+='<Command Name="AddTableBoxes">'+e+"</Command>"),c=c+'<Command Name="Translate Export">'+("<File>"+exportedFName+"</File><TransXML>coreTransXML.cfg</TransXML>"),c=c+'<StartPage>1</StartPage><EndPage>1</EndPage></Command><Command Name="Edit Page">'+("<Output>"+objectFName+"</Output><ImagesOnly/></Command>"),d(c,resultsFName,1),n=a,b&&(b=FS.readFile(f).buffer,f=FS.readFile(exportedFName).buffer,
e=FS.readFile(objectFName).buffer,c=FS.readFile(resultsFName).buffer,FS.unlink(resultsFName),FS.unlink(exportedFName),FS.unlink(objectFName),hasBeenExported=!0,postMessage({cmd:"exportFile",pageNumber:a,exportPerformed:!0,pdfBuffer:b,exportXML:f,objectXML:e,resultsXML:c},[b,f,c]))):postMessage({cmd:"exportFile",pageNumber:a,exportPerformed:!1})}var r=!1,n=-1,p={noInitialRun:!0,onRuntimeInitialized:function(){r=!0}};self.Module=p;importScripts("InfixServer.js");onmessage=function(a){a=a.data;switch(a.cmd){case "isReady":e();
break;case "initialiseInfixServer":a=a.l;p.callMain([""]);p.ccall("wasmInitInfixServer","number",["string","string","string"],["infixcore.cfg",a,"results"]);a=FS.readFile("results").buffer;postMessage({cmd:"initialiseInfixServer",resultsXML:a},[a]);break;case "exportFile":k(a.pageNumber,a.performExport,a.pdfFile,a.tableData,!0);break;case "importText":var f=a.pdfFile,c=a.pageNumber,b=a.webFontURL,g=a.galleyId,m=a.tableData;a=new Uint8Array(a.importData);var h=(new TextDecoder("utf-8")).decode(a);
c!=n&&k(c,!0,f,m,!1);a="editText"+c+".xml";FS.writeFile(a,h);f="outputFile"+c+".pdf";m=resultsFName="results"+c+".xml";h='<Commands><Command Name="Translate Import">'+("<File>"+a+"</File><StartPage>1</StartPage><EndPage>LastPage</EndPage>")+'<AutoSubstitute/><AutoDeleteParas/><Fitting><Shrink><FontSize Min="0.65">true</FontSize><Leading>False</Leading></Shrink><Stretch><FontSize>False</FontSize>';h+="<Leading>False</Leading></Stretch></Fitting>";h+="<ResetLetterSpacing/><IgnoreFlightCheck/>";h+="<MissingFont>Noto Sans Regular</MissingFont><SubstituteAllChars/>";
h+="<WebFontURL>"+b+"</WebFontURL>";h+="<TargetLang>en</TargetLang></Command>";h+='<Command Name="SavePDF"><File>'+f+"</File></Command>";h+='<Command Name="DumpObjectBBox"><GID>'+g+"</GID></Command></Commands>";d(h,m,c);b=FS.readFile(f).buffer;m=FS.readFile(resultsFName).buffer;FS.unlink(f);FS.unlink(resultsFName);FS.unlink(a);postMessage({cmd:"importText",pageNumber:c,pdfBuffer:b,resultsXML:m,id:g},[b,m]);break;case "transformObject":c=a.pageNumber;g=a.objectID;var l=a.isText;b=a.topVal;f=a.leftVal;
m=a.bottomVal;h=a.rightVal;var q='<Commands><Command Name="TransformToRect">';c!=n&&k(c,!0,a.pdfFile,a.tableData,!1);a="outputFile"+c+".pdf";resultsFName="results"+c+".xml";l=!0===l?"<GID>"+g+"</GID>":"<OID>"+g+"</OID>";q=q+l+("<Rect><Top>"+b+"</Top><Left>"+f+"</Left>")+("<Bottom>"+m+"</Bottom><Right>"+h+"</Right></Rect></Command>");q+='<Command Name="SavePDF"><File>'+a+"</File></Command>";d(q+('<Command Name="DumpObjectBBox">'+l+"</Command></Commands>"),resultsFName,c);b=FS.readFile(a).buffer;f=
FS.readFile(resultsFName).buffer;FS.unlink(a);FS.unlink(resultsFName);postMessage({cmd:"transformObject",pageNumber:c,pdfBuffer:b,resultsXML:f,id:g},[b,f]);break;case "deleteObject":c=a.pageNumber,g=a.objectID,b=a.isText,c!=n&&k(c,!0,a.pdfFile,a.tableData,!1),a="outputFile"+c+".pdf",resultsFName="results"+c+".xml",f='<Commands><Command Name="DeleteObject">',f=(!0===b?f+("<GID>"+g+"</GID></Command>"):f+("<OID>"+g+"</OID></Command>"))+('<Command Name="SavePDF"><File>'+a+"</File>")+"</Command></Commands>",
d(f,resultsFName,c),b=FS.readFile(a).buffer,f=FS.readFile(resultsFName).buffer,FS.unlink(a),FS.unlink(resultsFName),postMessage({cmd:"deleteObject",pageNumber:c,pdfBuffer:b,resultsXML:f,id:g},[b,f])}}}]);}).call(this || window)

View File

@ -1,337 +0,0 @@
(function(global) {
global.createPromiseCapability = function() {
var promiseCapability = {};
var promise = new Promise(function(resolve, reject) {
promiseCapability.resolve = resolve;
promiseCapability.reject = reject;
});
promiseCapability.promise = promise;
return promiseCapability;
};
//
// Check for native Promise and it has correct interface
//
var NativePromise = global['Promise'];
var nativePromiseSupported =
NativePromise &&
// Some of these methods are missing from
// Firefox/Chrome experimental implementations
'resolve' in NativePromise &&
'reject' in NativePromise &&
'all' in NativePromise &&
'race' in NativePromise &&
// Older version of the spec had a resolver object
// as the arg rather than a function
(function() {
var resolve;
new NativePromise(function(r) {
resolve = r;
});
return typeof resolve === 'function';
})();
//
// export if necessary
//
if (typeof exports !== 'undefined' && exports) {
// node.js
exports.Promise = nativePromiseSupported ? NativePromise : Promise;
exports.Polyfill = Promise;
} else {
// AMD
if (typeof define == 'function' && define.amd) {
define(function() {
return nativePromiseSupported ? NativePromise : Promise;
});
} else {
// in browser add to global
if (!nativePromiseSupported)
global['Promise'] = Promise;
}
}
//
// Polyfill
//
var PENDING = 'pending';
var SEALED = 'sealed';
var FULFILLED = 'fulfilled';
var REJECTED = 'rejected';
var NOOP = function() {};
function isArray(value) {
return Object.prototype.toString.call(value) === '[object Array]';
}
// async calls
var asyncSetTimer = typeof setImmediate !== 'undefined' ? setImmediate : setTimeout;
var asyncQueue = [];
var asyncTimer;
function asyncFlush() {
// run promise callbacks
for (var i = 0; i < asyncQueue.length; i++)
asyncQueue[i][0](asyncQueue[i][1]);
// reset async asyncQueue
asyncQueue = [];
asyncTimer = false;
}
function asyncCall(callback, arg) {
asyncQueue.push([callback, arg]);
if (!asyncTimer) {
asyncTimer = true;
asyncSetTimer(asyncFlush, 0);
}
}
function invokeResolver(resolver, promise) {
function resolvePromise(value) {
resolve(promise, value);
}
function rejectPromise(reason) {
reject(promise, reason);
}
try {
resolver(resolvePromise, rejectPromise);
} catch (e) {
rejectPromise(e);
}
}
function invokeCallback(subscriber) {
var owner = subscriber.owner;
var settled = owner.state_;
var value = owner.data_;
var callback = subscriber[settled];
var promise = subscriber.then;
if (typeof callback === 'function') {
settled = FULFILLED;
try {
value = callback(value);
} catch (e) {
reject(promise, e);
}
}
if (!handleThenable(promise, value)) {
if (settled === FULFILLED)
resolve(promise, value);
if (settled === REJECTED)
reject(promise, value);
}
}
function handleThenable(promise, value) {
var resolved;
try {
if (promise === value)
throw new TypeError('A promises callback cannot return that same promise.');
if (value && (typeof value === 'function' || typeof value === 'object')) {
var then = value.then; // then should be retrived only once
if (typeof then === 'function') {
then.call(value, function(val) {
if (!resolved) {
resolved = true;
if (value !== val)
resolve(promise, val);
else
fulfill(promise, val);
}
}, function(reason) {
if (!resolved) {
resolved = true;
reject(promise, reason);
}
});
return true;
}
}
} catch (e) {
if (!resolved)
reject(promise, e);
return true;
}
return false;
}
function resolve(promise, value) {
if (promise === value || !handleThenable(promise, value))
fulfill(promise, value);
}
function fulfill(promise, value) {
if (promise.state_ === PENDING) {
promise.state_ = SEALED;
promise.data_ = value;
asyncCall(publishFulfillment, promise);
}
}
function reject(promise, reason) {
if (promise.state_ === PENDING) {
promise.state_ = SEALED;
promise.data_ = reason;
asyncCall(publishRejection, promise);
}
}
function publish(promise) {
var callbacks = promise.then_;
promise.then_ = undefined;
for (var i = 0; i < callbacks.length; i++) {
invokeCallback(callbacks[i]);
}
}
function publishFulfillment(promise) {
promise.state_ = FULFILLED;
publish(promise);
}
function publishRejection(promise) {
promise.state_ = REJECTED;
publish(promise);
}
/**
* @class
*/
function Promise(resolver) {
if (typeof resolver !== 'function')
throw new TypeError('Promise constructor takes a function argument');
if (this instanceof Promise === false)
throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
this.then_ = [];
invokeResolver(resolver, this);
}
Promise.prototype = {
constructor: Promise,
state_: PENDING,
then_: null,
data_: undefined,
then: function(onFulfillment, onRejection) {
var subscriber = {
owner: this,
then: new this.constructor(NOOP),
fulfilled: onFulfillment,
rejected: onRejection
};
if (this.state_ === FULFILLED || this.state_ === REJECTED) {
// already resolved, call callback async
asyncCall(invokeCallback, subscriber);
} else {
// subscribe
this.then_.push(subscriber);
}
return subscriber.then;
},
'catch': function(onRejection) {
return this.then(null, onRejection);
}
};
Promise.all = function(promises) {
var Class = this;
if (!isArray(promises))
throw new TypeError('You must pass an array to Promise.all().');
return new Class(function(resolve, reject) {
var results = [];
var remaining = 0;
function resolver(index) {
remaining++;
return function(value) {
results[index] = value;
if (!--remaining)
resolve(results);
};
}
for (var i = 0, promise; i < promises.length; i++) {
promise = promises[i];
if (promise && typeof promise.then === 'function')
promise.then(resolver(i), reject);
else
results[i] = promise;
}
if (!remaining)
resolve(results);
});
};
Promise.race = function(promises) {
var Class = this;
if (!isArray(promises))
throw new TypeError('You must pass an array to Promise.race().');
return new Class(function(resolve, reject) {
for (var i = 0, promise; i < promises.length; i++) {
promise = promises[i];
if (promise && typeof promise.then === 'function')
promise.then(resolve, reject);
else
resolve(promise);
}
});
};
Promise.resolve = function(value) {
var Class = this;
if (value && typeof value === 'object' && value.constructor === Class)
return value;
return new Class(function(resolve) {
resolve(value);
});
};
Promise.reject = function(reason) {
var Class = this;
return new Class(function(resolve, reject) {
reject(reason);
});
};
})(typeof window != 'undefined' ? window : typeof global != 'undefined' ? global : typeof self != 'undefined' ? self : this);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif}.pika-single:after,.pika-single:before{content:' ';display:table}.pika-single:after{clear:both}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;-webkit-box-shadow:0 5px 15px -5px rgba(0,0,0,.5);box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;opacity:0}.pika-next,.pika-prev{display:block;cursor:pointer;position:relative;outline:0;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{float:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==)}.is-rtl .pika-prev,.pika-next{float:right;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=)}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table td,.pika-table th{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-box-sizing:border-box;outline:0;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.has-event .pika-button,.is-selected .pika-button{color:#fff;font-weight:700;background:#3af;-webkit-box-shadow:inset 0 1px 3px #178fe5;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.has-event .pika-button{background:#005da9;-webkit-box-shadow:inset 0 1px 3px #0076c9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{color:#fff;background:#6cb31d;-webkit-box-shadow:none;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;-webkit-box-shadow:none;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{pointer-events:none;cursor:default}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{color:#fff;background:#ff8000;-webkit-box-shadow:none;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}

View File

@ -1 +0,0 @@
.ql-container{margin:0}.ql-container .ql-editor{height:100%;outline:0;overflow-x:hidden;overflow-y:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ql-container .ql-editor p{margin:0;padding:0}.ql-container .ql-editor>*{cursor:text}.ql-clipboard{position:fixed;height:1px;top:50%;left:50%;overflow-y:hidden}.ql-clipboard p{margin:0;padding:0}_:-ms-fullscreen, :root .ql-clipboard{position:absolute} .ql-blank {width: 1px}

File diff suppressed because one or more lines are too long

View File

@ -1,84 +0,0 @@
(function(){/*
*****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var c=0;return function(){return c<b.length?{done:!1,value:b[c++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var c="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return c?c.call(b):$jscomp.arrayIterator(b)};
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,f){b!=Array.prototype&&b!=Object.prototype&&(b[c]=f.value)};
$jscomp.polyfill=function(b,c,f,a){if(c){f=$jscomp.global;b=b.split(".");for(a=0;a<b.length-1;a++){var g=b[a];g in f||(f[g]={});f=f[g]}b=b[b.length-1];a=f[b];c=c(a);c!=a&&null!=c&&$jscomp.defineProperty(f,b,{configurable:!0,writable:!0,value:c})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(b){function c(){this.batch_=null}function f(a){return a instanceof g?a:new g(function(d,e){d(a)})}if(b&&!$jscomp.FORCE_POLYFILL_PROMISE)return b;c.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};c.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var a=$jscomp.global.setTimeout;c.prototype.asyncExecuteFunction=function(b){a(b,
0)};c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var d=0;d<a.length;++d){var e=a[d];a[d]=null;try{e()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};c.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var g=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var d=this.createResolveAndReject_();try{a(d.resolve,d.reject)}catch(e){d.reject(e)}};g.prototype.createResolveAndReject_=
function(){function a(a){return function(b){e||(e=!0,a.call(d,b))}}var d=this,e=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};g.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof g)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var d=null!=a;break a;case "function":d=!0;break a;default:d=!1}d?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};g.prototype.resolveToNonPromiseObj_=function(a){var d=
void 0;try{d=a.then}catch(e){this.reject_(e);return}"function"==typeof d?this.settleSameAsThenable_(d,a):this.fulfill_(a)};g.prototype.reject_=function(a){this.settle_(2,a)};g.prototype.fulfill_=function(a){this.settle_(1,a)};g.prototype.settle_=function(a,d){if(0!=this.state_)throw Error("Cannot settle("+a+", "+d+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=d;this.executeOnSettledCallbacks_()};g.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
0;a<this.onSettledCallbacks_.length;++a)h.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};var h=new c;g.prototype.settleSameAsPromise_=function(a){var d=this.createResolveAndReject_();a.callWhenSettled_(d.resolve,d.reject)};g.prototype.settleSameAsThenable_=function(a,d){var e=this.createResolveAndReject_();try{a.call(d,e.resolve,e.reject)}catch(l){e.reject(l)}};g.prototype.then=function(a,d){function e(a,e){return"function"==typeof a?function(e){try{b(a(e))}catch(p){c(p)}}:
e}var b,c,f=new g(function(a,e){b=a;c=e});this.callWhenSettled_(e(a,b),e(d,c));return f};g.prototype.catch=function(a){return this.then(void 0,a)};g.prototype.callWhenSettled_=function(a,d){function e(){switch(b.state_){case 1:a(b.result_);break;case 2:d(b.result_);break;default:throw Error("Unexpected state: "+b.state_);}}var b=this;null==this.onSettledCallbacks_?h.asyncExecute(e):this.onSettledCallbacks_.push(e)};g.resolve=f;g.reject=function(a){return new g(function(b,e){e(a)})};g.race=function(a){return new g(function(b,
e){for(var d=$jscomp.makeIterator(a),g=d.next();!g.done;g=d.next())f(g.value).callWhenSettled_(b,e)})};g.all=function(a){var b=$jscomp.makeIterator(a),e=b.next();return e.done?f([]):new g(function(a,d){function g(e){return function(b){c[e]=b;l--;0==l&&a(c)}}var c=[],l=0;do c.push(void 0),l++,f(e.value).callWhenSettled_(g(c.length-1),d),e=b.next();while(!e.done)})};return g},"es6","es3");
$jscomp.checkStringArgs=function(b,c,f){if(null==b)throw new TypeError("The 'this' value for String.prototype."+f+" must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype."+f+" must not be a regular expression");return b+""};
$jscomp.polyfill("String.prototype.endsWith",function(b){return b?b:function(b,f){var a=$jscomp.checkStringArgs(this,b,"endsWith");b+="";void 0===f&&(f=a.length);f=Math.max(0,Math.min(f|0,a.length));for(var g=b.length;0<g&&0<f;)if(a[--f]!=b[--g])return!1;return 0>=g}},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var b={},c=Object.create(new $jscomp.global.Proxy(b,{get:function(f,a,g){return f==b&&"q"==a&&g==c}}));return!0===c.q}catch(f){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+b++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.asyncIterator;b||(b=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.owns=function(b,c){return Object.prototype.hasOwnProperty.call(b,c)};
$jscomp.polyfill("WeakMap",function(b){function c(){if(!b||!Object.seal)return!1;try{var a=Object.seal({}),d=Object.seal({}),g=new b([[a,2],[d,3]]);if(2!=g.get(a)||3!=g.get(d))return!1;g.delete(a);g.set(d,4);return!g.has(a)&&4==g.get(d)}catch(v){return!1}}function f(){}function a(a){if(!$jscomp.owns(a,h)){var e=new f;$jscomp.defineProperty(a,h,{value:e})}}function g(e){var b=Object[e];b&&(Object[e]=function(e){if(e instanceof f)return e;a(e);return b(e)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&
$jscomp.ES6_CONFORMANCE)return b}else if(c())return b;var h="$jscomp_hidden_"+Math.random();g("freeze");g("preventExtensions");g("seal");var k=0,d=function(a){this.id_=(k+=Math.random()+1).toString();if(a){a=$jscomp.makeIterator(a);for(var e;!(e=a.next()).done;)e=e.value,this.set(e[0],e[1])}};d.prototype.set=function(e,b){a(e);if(!$jscomp.owns(e,h))throw Error("WeakMap key fail: "+e);e[h][this.id_]=b;return this};d.prototype.get=function(a){return $jscomp.owns(a,h)?a[h][this.id_]:void 0};d.prototype.has=
function(a){return $jscomp.owns(a,h)&&$jscomp.owns(a[h],this.id_)};d.prototype.delete=function(a){return $jscomp.owns(a,h)&&$jscomp.owns(a[h],this.id_)?delete a[h][this.id_]:!1};return d},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(b){function c(){if($jscomp.ASSUME_NO_NATIVE_MAP||!b||"function"!=typeof b||!b.prototype.entries||"function"!=typeof Object.seal)return!1;try{var a=Object.seal({x:4}),d=new b($jscomp.makeIterator([[a,"s"]]));if("s"!=d.get(a)||1!=d.size||d.get({x:4})||d.set({x:4},"t")!=d||2!=d.size)return!1;var g=d.entries(),c=g.next();if(c.done||c.value[0]!=a||"s"!=c.value[1])return!1;c=g.next();return c.done||4!=c.value[0].x||"t"!=c.value[1]||!g.next().done?!1:!0}catch(q){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&$jscomp.ES6_CONFORMANCE)return b}else if(c())return b;$jscomp.initSymbolIterator();var f=new WeakMap,a=function(a){this.data_={};this.head_=k();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var e;!(e=a.next()).done;)e=e.value,this.set(e[0],e[1])}};a.prototype.set=function(a,b){a=0===a?0:a;var e=g(this,a);e.list||(e.list=this.data_[e.id]=[]);e.entry?e.entry.value=b:(e.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,
value:b},e.list.push(e.entry),this.head_.previous.next=e.entry,this.head_.previous=e.entry,this.size++);return this};a.prototype.delete=function(a){a=g(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.data_[a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};a.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=k();this.size=0};a.prototype.has=function(a){return!!g(this,a).entry};
a.prototype.get=function(a){return(a=g(this,a).entry)&&a.value};a.prototype.entries=function(){return h(this,function(a){return[a.key,a.value]})};a.prototype.keys=function(){return h(this,function(a){return a.key})};a.prototype.values=function(){return h(this,function(a){return a.value})};a.prototype.forEach=function(a,b){for(var e=this.entries(),d;!(d=e.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};a.prototype[Symbol.iterator]=a.prototype.entries;var g=function(a,b){var e=b&&typeof b;"object"==
e||"function"==e?f.has(b)?e=f.get(b):(e=""+ ++d,f.set(b,e)):e="p_"+b;var g=a.data_[e];if(g&&$jscomp.owns(a.data_,e))for(a=0;a<g.length;a++){var c=g[a];if(b!==b&&c.key!==c.key||b===c.key)return{id:e,list:g,index:a,entry:c}}return{id:e,list:g,index:-1,entry:void 0}},h=function(a,b){var e=a.head_;return $jscomp.iteratorPrototype(function(){if(e){for(;e.head!=a.head_;)e=e.previous;for(;e.next!=e.head;)return e=e.next,{done:!1,value:b(e)};e=null}return{done:!0,value:void 0}})},k=function(){var a={};return a.previous=
a.next=a.head=a},d=0;return a},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},c={};try{return c.__proto__=b,c.a}catch(f){}return!1};$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,c){b.__proto__=c;if(b.__proto__!==c)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.polyfill("Object.setPrototypeOf",function(b){return b||$jscomp.setPrototypeOf},"es6","es5");
$jscomp.assign="function"==typeof Object.assign?Object.assign:function(b,c){for(var f=1;f<arguments.length;f++){var a=arguments[f];if(a)for(var g in a)$jscomp.owns(a,g)&&(b[g]=a[g])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");
(function(b){function c(a){if(f[a])return f[a].exports;var g=f[a]={i:a,l:!1,exports:{}};b[a].call(g.exports,g,g.exports,c);g.l=!0;return g.exports}var f={};c.m=b;c.c=f;c.d=function(a,b,f){c.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:f})};c.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};c.t=function(a,b){b&1&&(a=c(a));if(b&8||b&4&&"object"===typeof a&&a&&a.__esModule)return a;
var g=Object.create(null);c.r(g);Object.defineProperty(g,"default",{enumerable:!0,value:a});if(b&2&&"string"!=typeof a)for(var f in a)c.d(g,f,function(b){return a[b]}.bind(null,f));return g};c.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};c.p="/core/office/";return c(c.s=13)})([function(b,c,f){f.d(c,"c",function(){return g});f.d(c,"a",function(){return k});f.d(c,"b",
function(){return h});var a=f(2),g=function(b,e){Object(a.a)("disableLogs")||(e?console.warn(b+": "+e):console.warn(b))},h=function(a,b,c){var e=c.pop();c=c.length?c.join(", ")+" and "+e:e;g("'"+b+"' is deprecated since version "+a+". Please use "+c+" instead.")},k=function(a,b){}},function(b,c,f){f.d(c,"a",function(){return u});f.d(c,"b",function(){return A});f.d(c,"c",function(){return E});var a=f(8),g=f(0),h=f(4),k=f(3),d="undefined"===typeof window?self:window,e=d.importScripts,l=!1,y=function(a,
b){l||(e(d.basePath+"decode.min.js"),l=!0);a=self.BrotliDecode(Object(k.b)(a));return b?a:Object(k.a)(a)},v=function(b,e){return Object(a.a)(void 0,void 0,Promise,function(){var d;return Object(a.b)(this,function(a){switch(a.label){case 0:return l?[3,2]:[4,Object(h.a)(self.Core.getWorkerPath()+"external/decode.min.js","Failed to download decode.min.js",window)];case 1:a.sent(),l=!0,a.label=2;case 2:return d=self.BrotliDecode(Object(k.b)(b)),[2,e?d:Object(k.a)(d)]}})})};(function(){function a(){this.remainingDataArrays=
[]}a.prototype.processRaw=function(a){return a};a.prototype.processBrotli=function(a){this.remainingDataArrays.push(a);return null};a.prototype.GetNextChunk=function(a){this.decodeFunction||(this.decodeFunction=0===a[0]&&97===a[1]&&115===a[2]&&109===a[3]?this.processRaw:this.processBrotli);return this.decodeFunction(a)};a.prototype.End=function(){if(this.remainingDataArrays.length){for(var a=this.arrays,b=0,e=0;e<a.length;++e)b+=a[e].length;b=new Uint8Array(b);var d=0;for(e=0;e<a.length;++e){var c=
a[e];b.set(c,d);d+=c.length}return y(b,!0)}return null};return a})();var q=!1,r=function(a){q||(e(d.basePath+"pako_inflate.min.js"),q=!0);var b=10;if("string"===typeof a){if(a.charCodeAt(3)&8){for(;0!==a.charCodeAt(b);++b);++b}}else if(a[3]&8){for(;0!==a[b];++b);++b}a=Object(k.b)(a);a=a.subarray(b,a.length-8);return d.pako.inflate(a,{windowBits:-15})},t=function(a,b){return b?a:Object(k.a)(a)},p=function(a){var b=!a.shouldOutputArray,d=new XMLHttpRequest;d.open("GET",a.url,a.isAsync);var c=b&&d.overrideMimeType;
d.responseType=c?"text":"arraybuffer";c&&d.overrideMimeType("text/plain; charset=x-user-defined");d.send();var f=function(){var f=Date.now();var h=c?d.responseText:new Uint8Array(d.response);Object(g.a)("worker","Result length is "+h.length);h.length<a.compressedMaximum?(h=a.decompressFunction(h,a.shouldOutputArray),Object(g.c)("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this."),
e&&Object(g.a)("worker","Decompressed length is "+h.length)):b&&(h=Object(k.a)(h));e&&Object(g.a)("worker",a.url+" Decompression took "+(Date.now()-f));return h};if(a.isAsync)var h=new Promise(function(b,e){d.onload=function(){200===this.status||0===this.status?b(f()):e("Download Failed "+a.url)};d.onerror=function(){e("Network error occurred "+a.url)}});else{if(200===d.status||0===d.status)return f();throw Error("Failed to load "+a.url);}return h},u=function(a){var b=a.lastIndexOf("/");-1===b&&(b=
0);var d=a.slice(b).replace(".",".br.");e||(d.endsWith(".js.mem")?d=d.replace(".js.mem",".mem"):d.endsWith(".js")&&(d=d.concat(".mem")));return a.slice(0,b)+d},w=function(a,b){var e=a.lastIndexOf("/");-1===e&&(e=0);var d=a.slice(e).replace(".",".gz.");b.url=a.slice(0,e)+d;b.decompressFunction=r;return p(b)},n=function(a,b){b.url=u(a);b.decompressFunction=e?y:v;return p(b)},m=function(a,b){a.endsWith(".js.mem")?a=a.slice(0,-4):a.endsWith(".mem")&&(a=a.slice(0,-4)+".js.mem");b.url=a;b.decompressFunction=
t;return p(b)},x=function(a,b,e,d){return a.catch(function(a){Object(g.c)(a);return d(b,e)})},z=function(a,b,e){var d;if(e.isAsync){var c=b[0](a,e);for(d=1;d<b.length;++d)c=x(c,a,e,b[d]);return c}for(d=0;d<b.length;++d)try{return b[d](a,e)}catch(I){Object(g.c)(I.message)}throw Error("");},E=function(a,b,d,e){return z(a,[w,n,m],{compressedMaximum:b,isAsync:d,shouldOutputArray:e})},A=function(a,b,d,e){return z(a,[n,w,m],{compressedMaximum:b,isAsync:d,shouldOutputArray:e})}},function(b,c,f){f.d(c,"a",
function(){return h});f.d(c,"b",function(){return k});var a={},g={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},h=function(a){return g[a]},k=function(b,e){var d;g[b]=e;null===(d=a[b])||void 0===d?void 0:d.forEach(function(a){a(e)})}},function(b,c,f){f.d(c,"b",function(){return a});f.d(c,"a",function(){return g});var a=function(a){if("string"===typeof a){for(var b=new Uint8Array(a.length),
d=a.length,e=0;e<d;e++)b[e]=a.charCodeAt(e);return b}return a},g=function(a){if("string"!==typeof a){for(var b="",d=0,e=a.length,c;d<e;)c=a.subarray(d,d+1024),d+=1024,b+=String.fromCharCode.apply(null,c);return b}return a}},function(b,c,f){function a(a,b,d){return new Promise(function(e){if(!a)return e();var c=d.document.createElement("script");c.type="text/javascript";c.onload=function(){e()};c.onerror=function(){b&&Object(g.c)(b);e()};c.src=a;d.document.getElementsByTagName("head")[0].appendChild(c)})}
f.d(c,"a",function(){return a});var g=f(0)},function(b,c,f){function a(a,b,c){function e(l){f=f||Date.now();return l?(Object(g.a)("load","Try instantiateStreaming"),fetch(Object(h.a)(a)).then(function(a){return WebAssembly.instantiateStreaming(a,b)}).catch(function(b){Object(g.a)("load","instantiateStreaming Failed "+a+" message "+b.message);return e(!1)})):Object(h.b)(a,c,!0,!0).then(function(a){d=Date.now();Object(g.a)("load","Request took "+(d-f)+" ms");return WebAssembly.instantiate(a,b)})}var d,
f;return e(!!WebAssembly.instantiateStreaming).then(function(a){Object(g.a)("load","WASM compilation took "+(Date.now()-(d||f))+" ms");return a})}f.d(c,"a",function(){return a});var g=f(0),h=f(1),k=f(4);f.d(c,"b",function(){return k.a})},function(b,c,f){f.d(c,"c",function(){return v});f.d(c,"b",function(){return q});f.d(c,"a",function(){return r});f(0);var a="undefined"===typeof window?self:window;b=function(){var a=navigator.userAgent.toLowerCase();return(a=/(msie) ([\w.]+)/.exec(a)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(a))?
parseInt(a[2],10):a}();var g=function(){var b=a.navigator.userAgent.match(/OPR/),e=a.navigator.userAgent.match(/Maxthon/),d=a.navigator.userAgent.match(/Edge/);return a.navigator.userAgent.match(/Chrome\/(.*?) /)&&!b&&!e&&!d}();(function(){if(!g)return null;var b=a.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return b?parseInt(b[1],10):b})();var h=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&a.navigator.userAgent.match(/Chrome\/(.*?) /);(function(){if(!h)return null;
var b=a.navigator.userAgent.match(/Edg\/([0-9]+)\./);return b?parseInt(b[1],10):b})();c=/iPad|iPhone|iPod/.test(a.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;var k=function(){var b=a.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return b?parseFloat(b[1]):b}(),d=/^((?!chrome|android).)*safari/i.test(a.navigator.userAgent)||/^((?!chrome|android).)*$/.test(a.navigator.userAgent)&&c;/Android/i.test(navigator.userAgent);var e=a.navigator.userAgent.match(/Firefox/);
(function(){if(!e)return null;var b=a.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return b?parseInt(b[1],10):b})();b||/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);a.navigator.userAgent.indexOf("Android");var l=/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(a.navigator.userAgent),y=a.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)?14<=parseInt(a.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3]):
!1,v=function(){return!y&&(d&&14>k||l)},q=!(!self.WebAssembly||!self.WebAssembly.validate),r=-1<a.navigator.userAgent.indexOf("Edge/16")||-1<a.navigator.userAgent.indexOf("MSAppHost")},function(b,c){c=function(){return this}();try{c=c||(new Function("return this"))()}catch(f){"object"===typeof window&&(c=window)}b.exports=c},function(b,c,f){function a(a,b,d,e){function c(a){return a instanceof d?a:new d(function(b){b(a)})}return new (d||(d=Promise))(function(d,g){function f(a){try{l(e.next(a))}catch(u){g(u)}}
function h(a){try{l(e["throw"](a))}catch(u){g(u)}}function l(a){a.done?d(a.value):c(a.value).then(f,h)}l((e=e.apply(a,b||[])).next())})}function g(a,b){function d(a){return function(b){return e([a,b])}}function e(d){if(g)throw new TypeError("Generator is already executing.");for(;c;)try{if(g=1,f&&(h=d[0]&2?f["return"]:d[0]?f["throw"]||((h=f["return"])&&h.call(f),0):f.next)&&!(h=h.call(f,d[1])).done)return h;if(f=0,h)d=[d[0]&2,h.value];switch(d[0]){case 0:case 1:h=d;break;case 4:return c.label++,{value:d[1],
done:!1};case 5:c.label++;f=d[1];d=[0];continue;case 7:d=c.ops.pop();c.trys.pop();continue;default:if(!(h=c.trys,h=0<h.length&&h[h.length-1])&&(6===d[0]||2===d[0])){c=0;continue}if(3===d[0]&&(!h||d[1]>h[0]&&d[1]<h[3]))c.label=d[1];else if(6===d[0]&&c.label<h[1])c.label=h[1],h=d;else if(h&&c.label<h[2])c.label=h[2],c.ops.push(d);else{h[2]&&c.ops.pop();c.trys.pop();continue}}d=b.call(a,c)}catch(p){d=[6,p],f=0}finally{g=h=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}var c={label:0,sent:function(){if(h[0]&
1)throw h[1];return h[1]},trys:[],ops:[]},g,f,h,k;return k={next:d(0),"throw":d(1),"return":d(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k}f.d(c,"a",function(){return a});f.d(c,"b",function(){return g})},function(b,c,f){c.a=function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){void 0===a&&(a=0);void 0===b&&(b=this.byteLength);a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);
b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),f=new Uint8Array(c);a=new Uint8Array(this,a,b-a);f.set(a);return c})}},function(b,c,f){f.d(c,"a",function(){return a});f(11);var a=function(a,b){return function(){}}},function(b,c,f){c.a=function(a){var b={};decodeURIComponent(a.slice(1)).split("&").forEach(function(a){a=a.split("=",2);b[a[0]]=a[1]});return b}},function(b,c,f){f.d(c,"a",function(){return d});var a=f(1),g=f(5),h=f(6),k=function(){function a(a){var b=
this;this.promise=a.then(function(a){b.response=a;b.status=200})}a.prototype.addEventListener=function(a,b){this.promise.then(b)};return a}(),d=function(b,d,c){if(!h.b||h.a||Object(h.c)()||c){c=Object(a.b)((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+b+".js.mem",d[".js.mem"],!1);var e=Object(a.c)((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+b+".mem",d[".mem"],!0,!0);self.Module.memoryInitializerRequest=new k(e)}else self.Module.instantiateWasm=function(a,
e){return Object(g.a)(b+"Wasm.wasm",a,d["Wasm.wasm"]).then(function(a){e(a.instance)})},c=Object(a.b)(b+"Wasm.js.mem",d["Wasm.js.mem"],!1,!1);c=new Blob([c],{type:"application/javascript"});importScripts(URL.createObjectURL(c))}},function(b,c,f){b.exports=f(14)},function(b,c,f){f.r(c);f(15);f(20);b=f(9);f(21);Object(b.a)()},function(b,c,f){(function(a,b){function c(a){"@babel/helpers - typeof";return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&
"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},c(a)}(function(a){function d(){for(var a=0;a<C.length;a++)C[a][0](C[a][1]);C=[];F=!1}function e(a,b){C.push([a,b]);F||(F=!0,H(d,0))}function g(a,b){function d(a){q(b,a)}function c(a){t(b,a)}try{a(d,c)}catch(D){c(D)}}function h(a){var b=a.owner,d=b.state_;b=b.data_;var c=a[d];a=a.then;if("function"===typeof c){d=A;try{b=c(b)}catch(D){t(a,D)}}k(a,b)||(d===A&&q(a,b),d===B&&t(a,b))}function k(a,b){var d;try{if(a===
b)throw new TypeError("A promises callback cannot return that same promise.");if(b&&("function"===typeof b||"object"===c(b))){var e=b.then;if("function"===typeof e)return e.call(b,function(c){d||(d=!0,b!==c?q(a,c):r(a,c))},function(b){d||(d=!0,t(a,b))}),!0}}catch(D){return d||t(a,D),!0}return!1}function q(a,b){a!==b&&k(a,b)||r(a,b)}function r(a,b){a.state_===z&&(a.state_=E,a.data_=b,e(u,a))}function t(a,b){a.state_===z&&(a.state_=E,a.data_=b,e(w,a))}function p(a){var b=a.then_;a.then_=void 0;for(a=
0;a<b.length;a++)h(b[a])}function u(a){a.state_=A;p(a)}function w(a){a.state_=B;p(a)}function n(a){if("function"!==typeof a)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof n))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[];g(a,this)}a.createPromiseCapability=function(){var a={};a.promise=new n(function(b,d){a.resolve=b;a.reject=d});return a};var m=a.Promise,
x=m&&"resolve"in m&&"reject"in m&&"all"in m&&"race"in m&&function(){var a;new m(function(b){a=b});return"function"===typeof a}();"undefined"!==typeof exports&&exports?(exports.Promise=x?m:n,exports.Polyfill=n):"function"===typeof define&&f(19)?define(function(){return x?m:n}):x||(a.Promise=n);var z="pending",E="sealed",A="fulfilled",B="rejected",G=function(){},H="undefined"!==typeof b?b:setTimeout,C=[],F;n.prototype={constructor:n,state_:z,then_:null,data_:void 0,then:function(a,b){a={owner:this,
then:new this.constructor(G),fulfilled:a,rejected:b};this.state_===A||this.state_===B?e(h,a):this.then_.push(a);return a.then},"catch":function(a){return this.then(null,a)}};n.all=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.all().");return new this(function(b,d){function c(a){f++;return function(d){e[a]=d;--f||b(e)}}for(var e=[],f=0,g=0,h;g<a.length;g++)(h=a[g])&&"function"===typeof h.then?h.then(c(g),d):e[g]=h;f||b(e)})};
n.race=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.race().");return new this(function(b,d){for(var c=0,e;c<a.length;c++)(e=a[c])&&"function"===typeof e.then?e.then(b,d):b(e)})};n.resolve=function(a){return a&&"object"===c(a)&&a.constructor===this?a:new this(function(b){b(a)})};n.reject=function(a){return new this(function(b,d){d(a)})}})("undefined"!==typeof window?window:"undefined"!==typeof a?a:"undefined"!==typeof self?
self:void 0)}).call(this,f(7),f(16).setImmediate)},function(b,c,f){(function(a){function b(a,b){this._id=a;this._clearFn=b}var h="undefined"!==typeof a&&a||"undefined"!==typeof self&&self||window,k=Function.prototype.apply;c.setTimeout=function(){return new b(k.call(setTimeout,h,arguments),clearTimeout)};c.setInterval=function(){return new b(k.call(setInterval,h,arguments),clearInterval)};c.clearTimeout=c.clearInterval=function(a){a&&a.close()};b.prototype.unref=b.prototype.ref=function(){};b.prototype.close=
function(){this._clearFn.call(h,this._id)};c.enroll=function(a,b){clearTimeout(a._idleTimeoutId);a._idleTimeout=b};c.unenroll=function(a){clearTimeout(a._idleTimeoutId);a._idleTimeout=-1};c._unrefActive=c.active=function(a){clearTimeout(a._idleTimeoutId);var b=a._idleTimeout;0<=b&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},b))};f(17);c.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof a&&a.setImmediate||this&&this.setImmediate;c.clearImmediate=
"undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof a&&a.clearImmediate||this&&this.clearImmediate}).call(this,f(7))},function(b,c,f){(function(a,b){(function(a,c){function d(a){delete u[a]}function e(a){if(w)setTimeout(e,0,a);else{var b=u[a];if(b){w=!0;try{var f=b.callback,g=b.args;switch(g.length){case 0:f();break;case 1:f(g[0]);break;case 2:f(g[0],g[1]);break;case 3:f(g[0],g[1],g[2]);break;default:f.apply(c,g)}}finally{d(a),w=!1}}}}function f(){m=function(a){b.nextTick(function(){e(a)})}}
function g(){if(a.postMessage&&!a.importScripts){var b=!0,d=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=d;return b}}function h(){var b="setImmediate$"+Math.random()+"$",d=function(d){d.source===a&&"string"===typeof d.data&&0===d.data.indexOf(b)&&e(+d.data.slice(b.length))};a.addEventListener?a.addEventListener("message",d,!1):a.attachEvent("onmessage",d);m=function(d){a.postMessage(b+d,"*")}}function k(){var a=new MessageChannel;a.port1.onmessage=function(a){e(a.data)};
m=function(b){a.port2.postMessage(b)}}function r(){var a=n.documentElement;m=function(b){var d=n.createElement("script");d.onreadystatechange=function(){e(b);d.onreadystatechange=null;a.removeChild(d);d=null};a.appendChild(d)}}function t(){m=function(a){setTimeout(e,0,a)}}if(!a.setImmediate){var p=1,u={},w=!1,n=a.document,m,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a;"[object process]"==={}.toString.call(a.process)?f():g()?h():a.MessageChannel?k():n&&"onreadystatechange"in
n.createElement("script")?r():t();x.setImmediate=function(a){"function"!==typeof a&&(a=new Function(""+a));for(var b=Array(arguments.length-1),d=0;d<b.length;d++)b[d]=arguments[d+1];u[p]={callback:a,args:b};m(p);return p++};x.clearImmediate=d}})("undefined"===typeof self?"undefined"===typeof a?this:a:self)}).call(this,f(7),f(18))},function(b,c){function f(){throw Error("setTimeout has not been defined");}function a(){throw Error("clearTimeout has not been defined");}function g(a){if(y===setTimeout)return setTimeout(a,
0);if((y===f||!y)&&setTimeout)return y=setTimeout,setTimeout(a,0);try{return y(a,0)}catch(w){try{return y.call(null,a,0)}catch(n){return y.call(this,a,0)}}}function h(b){if(v===clearTimeout)return clearTimeout(b);if((v===a||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(b);try{return v(b)}catch(w){try{return v.call(null,b)}catch(n){return v.call(this,b)}}}function k(){r&&t&&(r=!1,t.length?q=t.concat(q):p=-1,q.length&&d())}function d(){if(!r){var a=g(k);r=!0;for(var b=q.length;b;){t=q;for(q=
[];++p<b;)t&&t[p].run();p=-1;b=q.length}t=null;r=!1;h(a)}}function e(a,b){this.fun=a;this.array=b}function l(){}b=b.exports={};try{var y="function"===typeof setTimeout?setTimeout:f}catch(u){y=f}try{var v="function"===typeof clearTimeout?clearTimeout:a}catch(u){v=a}var q=[],r=!1,t,p=-1;b.nextTick=function(a){var b=Array(arguments.length-1);if(1<arguments.length)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];q.push(new e(a,b));1!==q.length||r||g(d)};e.prototype.run=function(){this.fun.apply(null,
this.array)};b.title="browser";b.browser=!0;b.env={};b.argv=[];b.version="";b.versions={};b.on=l;b.addListener=l;b.once=l;b.off=l;b.removeListener=l;b.removeAllListeners=l;b.emit=l;b.prependListener=l;b.prependOnceListener=l;b.listeners=function(a){return[]};b.binding=function(a){throw Error("process.binding is not supported");};b.cwd=function(){return"/"};b.chdir=function(a){throw Error("process.chdir is not supported");};b.umask=function(){return 0}},function(b,c){b.exports={}},function(b,c,f){(function(a){"undefined"===
typeof a.crypto&&(a.crypto={getRandomValues:function(a){for(var b=0;b<a.length;b++)a[b]=256*Math.random()}})})("undefined"===typeof window?self:window)},function(b,c,f){function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}var g=f(10),h=f(12),k=null;(function(b){function d(){r=function(){}}function c(b){var d=
[];return{resource_array:d,msg:JSON.stringify(b.data,function(b,c){if("object"===a(c)&&(b=null,c instanceof Uint8Array?b=c:c instanceof ArrayBuffer&&(b=new Uint8Array(c)),b)){c=p(b.length);var e=u(c);e&&(new Uint8Array(Module.HEAPU8.buffer,e,b.length)).set(b);d.push(c);return{__trn_res_id:c}}return c})}}function f(a){m||(m=[]);m.push(a)}function v(){w=!0;postMessage({type:"abort",data:{error:"Office worker has terminated unexpectedly"}})}function q(a){if(!w)try{var b=c(a);t(b.msg)}catch(B){v(B)}}
var r,t,p,u,w=!1;b.basePath="../";var n=b.officeWorkerPath||"";b.workerBasePath&&(b.basePath=b.workerBasePath);b.basePath=b.externalPath?b.externalPath:b.basePath+"external/";importScripts("".concat(b.basePath,"Promise.js"));var m=[];b.ContinueFunc=function(a){r("ContinueFunc called");setTimeout(function(){onmessage({data:{action:"continue"}})},a)};if(b.pdfWorkerPath)var x=b.pdfWorkerPath;if(b.officeAsmPath)var z=b.officeAsmPath;b.Module={memoryInitializerPrefixURL:x,asmjsPrefix:z,onRuntimeInitialized:function(){r||
d();var a=Date.now()-k;Object(g.a)("load","time duration from start to ready: ".concat(JSON.stringify(a)));t=function(a){if(null!==a&&void 0!==a&&0!==a&&!w){var b=(a.length<<2)+1,c=Module._malloc(b);0<stringToUTF8(a,c,b)&&Module._TRN_OnMessage(c)}};p=function(a){return Module._TRN_CreateBufferResource(a)};u=function(a){return Module._TRN_GetResourcePointer(a)};r("OnReady called");onmessage=q;Module._TRN_InitWorker();for(a=0;a<m.length;++a)onmessage(m[a]);m=null},fetchSelf:function(){k=Date.now();
Object(h.a)("".concat(n,"WebOfficeWorker"),{"Wasm.wasm":5E6,"Wasm.js.mem":1E5,".js.mem":5E6,".mem":3E6},!!navigator.userAgent.match(/Edge/i)||b.wasmDisabled)},onAbort:v,noExitRuntime:!0};b.onmessage=function(a){"init"===a.data.action&&(b.wasmDisabled=!a.data.wasm,b.externalPath=a.data.externalPath,b.officeAsmPath=a.data.officeAsmPath,b.pdfWorkerPath=a.data.pdfWorkerPath,b.onmessage=f,b.Module.fetchSelf())}})("undefined"===typeof window?self:window)}]);}).call(this || window)

View File

@ -1,10 +0,0 @@
{
"program": {
"portable":{
"pnacl-translate": {
"url" : "WebOfficeWorker.pexe",
"optlevel": 0
}
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,229 +0,0 @@
(function(){/*
*****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*****************************************************************************/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};$jscomp.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):$jscomp.arrayIterator(e)};
$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,g){e!=Array.prototype&&e!=Object.prototype&&(e[n]=g.value)};
$jscomp.polyfill=function(e,n,g,d){if(n){g=$jscomp.global;e=e.split(".");for(d=0;d<e.length-1;d++){var m=e[d];m in g||(g[m]={});g=g[m]}e=e[e.length-1];d=g[e];n=n(d);n!=d&&null!=n&&$jscomp.defineProperty(g,e,{configurable:!0,writable:!0,value:n})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(e){function n(){this.batch_=null}function g(c){return c instanceof m?c:new m(function(a,b){a(c)})}if(e&&!$jscomp.FORCE_POLYFILL_PROMISE)return e;n.prototype.asyncExecute=function(c){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(c);return this};n.prototype.asyncExecuteBatch_=function(){var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})};var d=$jscomp.global.setTimeout;n.prototype.asyncExecuteFunction=function(c){d(c,
0)};n.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var a=0;a<c.length;++a){var b=c[a];c[a]=null;try{b()}catch(h){this.asyncThrow_(h)}}}this.batch_=null};n.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};var m=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var a=this.createResolveAndReject_();try{c(a.resolve,a.reject)}catch(b){a.reject(b)}};m.prototype.createResolveAndReject_=
function(){function c(h){return function(c){b||(b=!0,h.call(a,c))}}var a=this,b=!1;return{resolve:c(this.resolveTo_),reject:c(this.reject_)}};m.prototype.resolveTo_=function(c){if(c===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(c instanceof m)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var a=null!=c;break a;case "function":a=!0;break a;default:a=!1}a?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};m.prototype.resolveToNonPromiseObj_=function(c){var a=
void 0;try{a=c.then}catch(b){this.reject_(b);return}"function"==typeof a?this.settleSameAsThenable_(a,c):this.fulfill_(c)};m.prototype.reject_=function(c){this.settle_(2,c)};m.prototype.fulfill_=function(c){this.settle_(1,c)};m.prototype.settle_=function(c,a){if(0!=this.state_)throw Error("Cannot settle("+c+", "+a+"): Promise already settled in state"+this.state_);this.state_=c;this.result_=a;this.executeOnSettledCallbacks_()};m.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var d=
0;d<this.onSettledCallbacks_.length;++d)c.asyncExecute(this.onSettledCallbacks_[d]);this.onSettledCallbacks_=null}};var c=new n;m.prototype.settleSameAsPromise_=function(c){var a=this.createResolveAndReject_();c.callWhenSettled_(a.resolve,a.reject)};m.prototype.settleSameAsThenable_=function(c,a){var b=this.createResolveAndReject_();try{c.call(a,b.resolve,b.reject)}catch(h){b.reject(h)}};m.prototype.then=function(c,a){function b(a,b){return"function"==typeof a?function(b){try{h(a(b))}catch(t){v(t)}}:
b}var h,v,d=new m(function(a,b){h=a;v=b});this.callWhenSettled_(b(c,h),b(a,v));return d};m.prototype.catch=function(c){return this.then(void 0,c)};m.prototype.callWhenSettled_=function(d,a){function b(){switch(h.state_){case 1:d(h.result_);break;case 2:a(h.result_);break;default:throw Error("Unexpected state: "+h.state_);}}var h=this;null==this.onSettledCallbacks_?c.asyncExecute(b):this.onSettledCallbacks_.push(b)};m.resolve=g;m.reject=function(c){return new m(function(a,b){b(c)})};m.race=function(c){return new m(function(a,
b){for(var h=$jscomp.makeIterator(c),v=h.next();!v.done;v=h.next())g(v.value).callWhenSettled_(a,b)})};m.all=function(c){var a=$jscomp.makeIterator(c),b=a.next();return b.done?g([]):new m(function(h,c){function v(a){return function(b){p[a]=b;d--;0==d&&h(p)}}var p=[],d=0;do p.push(void 0),d++,g(b.value).callWhenSettled_(v(p.length-1),c),b=a.next();while(!b.done)})};return m},"es6","es3");
$jscomp.checkStringArgs=function(e,n,g){if(null==e)throw new TypeError("The 'this' value for String.prototype."+g+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+g+" must not be a regular expression");return e+""};
$jscomp.polyfill("String.prototype.endsWith",function(e){return e?e:function(e,g){var d=$jscomp.checkStringArgs(this,e,"endsWith");e+="";void 0===g&&(g=d.length);g=Math.max(0,Math.min(g|0,d.length));for(var m=e.length;0<m&&0<g;)if(d[--g]!=e[--m])return!1;return 0>=m}},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(g,d,m){return g==e&&"q"==d&&m==n}}));return!0===n.q}catch(g){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var e=0;return function(n){return $jscomp.SYMBOL_PREFIX+(n||"")+e++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.asyncIterator;e||(e=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){if(!e||!Object.seal)return!1;try{var a=Object.seal({}),h=Object.seal({}),c=new e([[a,2],[h,3]]);if(2!=c.get(a)||3!=c.get(h))return!1;c.delete(a);c.set(h,4);return!c.has(a)&&4==c.get(h)}catch(y){return!1}}function g(){}function d(a){if(!$jscomp.owns(a,c)){var b=new g;$jscomp.defineProperty(a,c,{value:b})}}function m(a){var b=Object[a];b&&(Object[a]=function(a){if(a instanceof g)return a;d(a);return b(a)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&
$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var c="$jscomp_hidden_"+Math.random();m("freeze");m("preventExtensions");m("seal");var r=0,a=function(a){this.id_=(r+=Math.random()+1).toString();if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};a.prototype.set=function(a,h){d(a);if(!$jscomp.owns(a,c))throw Error("WeakMap key fail: "+a);a[c][this.id_]=h;return this};a.prototype.get=function(a){return $jscomp.owns(a,c)?a[c][this.id_]:void 0};a.prototype.has=
function(a){return $jscomp.owns(a,c)&&$jscomp.owns(a[c],this.id_)};a.prototype.delete=function(a){return $jscomp.owns(a,c)&&$jscomp.owns(a[c],this.id_)?delete a[c][this.id_]:!1};return a},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var a=Object.seal({x:4}),h=new e($jscomp.makeIterator([[a,"s"]]));if("s"!=h.get(a)||1!=h.size||h.get({x:4})||h.set({x:4},"t")!=h||2!=h.size)return!1;var c=h.entries(),d=c.next();if(d.done||d.value[0]!=a||"s"!=d.value[1])return!1;d=c.next();return d.done||4!=d.value[0].x||"t"!=d.value[1]||!c.next().done?!1:!0}catch(p){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;$jscomp.initSymbolIterator();var g=new WeakMap,d=function(a){this.data_={};this.head_=r();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};d.prototype.set=function(a,c){a=0===a?0:a;var b=m(this,a);b.list||(b.list=this.data_[b.id]=[]);b.entry?b.entry.value=c:(b.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,
value:c},b.list.push(b.entry),this.head_.previous.next=b.entry,this.head_.previous=b.entry,this.size++);return this};d.prototype.delete=function(a){a=m(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.data_[a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=r();this.size=0};d.prototype.has=function(a){return!!m(this,a).entry};
d.prototype.get=function(a){return(a=m(this,a).entry)&&a.value};d.prototype.entries=function(){return c(this,function(a){return[a.key,a.value]})};d.prototype.keys=function(){return c(this,function(a){return a.key})};d.prototype.values=function(){return c(this,function(a){return a.value})};d.prototype.forEach=function(a,c){for(var b=this.entries(),h;!(h=b.next()).done;)h=h.value,a.call(c,h[1],h[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var m=function(b,c){var h=c&&typeof c;"object"==
h||"function"==h?g.has(c)?h=g.get(c):(h=""+ ++a,g.set(c,h)):h="p_"+c;var d=b.data_[h];if(d&&$jscomp.owns(b.data_,h))for(b=0;b<d.length;b++){var p=d[b];if(c!==c&&p.key!==p.key||c===p.key)return{id:h,list:d,index:b,entry:p}}return{id:h,list:d,index:-1,entry:void 0}},c=function(a,c){var b=a.head_;return $jscomp.iteratorPrototype(function(){if(b){for(;b.head!=a.head_;)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:c(b)};b=null}return{done:!0,value:void 0}})},r=function(){var a={};return a.previous=
a.next=a.head=a},a=0;return d},"es6","es3");$jscomp.findInternal=function(e,n,g){e instanceof String&&(e=String(e));for(var d=e.length,m=0;m<d;m++){var c=e[m];if(n.call(g,c,m,e))return{i:m,v:c}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(e){return e?e:function(e,g){return $jscomp.findInternal(this,e,g).v}},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var e={a:!0},n={};try{return n.__proto__=e,n.a}catch(g){}return!1};
$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(e,n){e.__proto__=n;if(e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null;$jscomp.polyfill("Object.setPrototypeOf",function(e){return e||$jscomp.setPrototypeOf},"es6","es5");
$jscomp.assign="function"==typeof Object.assign?Object.assign:function(e,n){for(var g=1;g<arguments.length;g++){var d=arguments[g];if(d)for(var m in d)$jscomp.owns(d,m)&&(e[m]=d[m])}return e};$jscomp.polyfill("Object.assign",function(e){return e||$jscomp.assign},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),m=new e($jscomp.makeIterator([d]));if(!m.has(d)||1!=m.size||m.add(d)!=m||1!=m.size||m.add({x:4})!=m||2!=m.size)return!1;var c=m.entries(),g=c.next();if(g.done||g.value[0]!=d||g.value[1]!=d)return!1;g=c.next();return g.done||g.value[0]==d||4!=g.value[0].x||g.value[1]!=g.value[0]?!1:c.next().done}catch(a){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;$jscomp.initSymbolIterator();var g=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var m;!(m=d.next()).done;)this.add(m.value)}this.size=this.map_.size};g.prototype.add=function(d){d=0===d?0:d;this.map_.set(d,d);this.size=this.map_.size;return this};g.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};g.prototype.clear=function(){this.map_.clear();
this.size=0};g.prototype.has=function(d){return this.map_.has(d)};g.prototype.entries=function(){return this.map_.entries()};g.prototype.values=function(){return this.map_.values()};g.prototype.keys=g.prototype.values;g.prototype[Symbol.iterator]=g.prototype.values;g.prototype.forEach=function(d,m){var c=this;this.map_.forEach(function(e){return d.call(m,e,e,c)})};return g},"es6","es3");
$jscomp.iteratorFromArray=function(e,n){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var g=0,d={next:function(){if(g<e.length){var m=g++;return{value:n(m,e[m]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6","es3");
(function(e){function n(d){if(g[d])return g[d].exports;var m=g[d]={i:d,l:!1,exports:{}};e[d].call(m.exports,m,m.exports,n);m.l=!0;return m.exports}var g={};n.m=e;n.c=g;n.d=function(d,m,c){n.o(d,m)||Object.defineProperty(d,m,{enumerable:!0,get:c})};n.r=function(d){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});Object.defineProperty(d,"__esModule",{value:!0})};n.t=function(d,m){m&1&&(d=n(d));if(m&8||m&4&&"object"===typeof d&&d&&d.__esModule)return d;
var c=Object.create(null);n.r(c);Object.defineProperty(c,"default",{enumerable:!0,value:d});if(m&2&&"string"!=typeof d)for(var e in d)n.d(c,e,function(a){return d[a]}.bind(null,e));return c};n.n=function(d){var m=d&&d.__esModule?function(){return d["default"]}:function(){return d};n.d(m,"a",m);return m};n.o=function(d,m){return Object.prototype.hasOwnProperty.call(d,m)};n.p="/core/pdf/";return n(n.s=18)})([function(e,n,g){g.d(n,"d",function(){return r});g.d(n,"e",function(){return m});g.d(n,"c",function(){return a});
g.d(n,"a",function(){return b});g.d(n,"b",function(){return c});var d=g(3),m=function(a,b){Object(d.a)("disableLogs")||(b?console.warn(a+": "+b):console.warn(a))},c=function(a,b,c){var h=c.pop();c=c.length?c.join(", ")+" and "+h:h;m("'"+b+"' is deprecated since version "+a+". Please use "+c+" instead.")},r=function(a,b){Object(d.a)("disableLogs")||(b?console.log(a+": "+b):console.log(a))},a=function(a){if(!Object(d.a)("disableLogs"))throw console.error(a),Error(a);},b=function(a,b){}},function(e,
n,g){g.d(n,"c",function(){return b});g.d(n,"a",function(){return h});g.d(n,"b",function(){return v});g.d(n,"d",function(){return y});var d=g(15),m=console.log,c=console.warn,r=console.error,a=function(a){void 0===a&&(a=!0);a?(console.log=function(){},console.warn=function(){},console.error=function(){}):(console.log=m,console.warn=c,console.error=r)},b=function(){var b=Object(d.a)(location.search);a("1"===b.disableLogs)},h=function(b){b.on("disableLogs",function(b){a(b.disabled)})},v=function(a,b){return function(){}},
y=function(a,b){b?console.warn(a+": "+b):console.warn(a)}},function(e,n,g){g.d(n,"a",function(){return w});g.d(n,"b",function(){return l});g.d(n,"c",function(){return f});var d=g(12),m=g(0),c=g(8),r=g(4),a="undefined"===typeof window?self:window,b=a.importScripts,h=!1,v=function(k,f){h||(b(a.basePath+"decode.min.js"),h=!0);k=self.BrotliDecode(Object(r.b)(k));return f?k:Object(r.a)(k)},y=function(k,f){return Object(d.a)(void 0,void 0,Promise,function(){var l;return Object(d.b)(this,function(a){switch(a.label){case 0:return h?
[3,2]:[4,Object(c.a)(self.Core.getWorkerPath()+"external/decode.min.js","Failed to download decode.min.js",window)];case 1:a.sent(),h=!0,a.label=2;case 2:return l=self.BrotliDecode(Object(r.b)(k)),[2,f?l:Object(r.a)(l)]}})})};(function(){function k(){this.remainingDataArrays=[]}k.prototype.processRaw=function(k){return k};k.prototype.processBrotli=function(k){this.remainingDataArrays.push(k);return null};k.prototype.GetNextChunk=function(k){this.decodeFunction||(this.decodeFunction=0===k[0]&&97===
k[1]&&115===k[2]&&109===k[3]?this.processRaw:this.processBrotli);return this.decodeFunction(k)};k.prototype.End=function(){if(this.remainingDataArrays.length){for(var k=this.arrays,f=0,l=0;l<k.length;++l)f+=k[l].length;f=new Uint8Array(f);var a=0;for(l=0;l<k.length;++l){var b=k[l];f.set(b,a);a+=b.length}return v(f,!0)}return null};return k})();var p=!1,u=function(k){p||(b(a.basePath+"pako_inflate.min.js"),p=!0);var f=10;if("string"===typeof k){if(k.charCodeAt(3)&8){for(;0!==k.charCodeAt(f);++f);++f}}else if(k[3]&
8){for(;0!==k[f];++f);++f}k=Object(r.b)(k);k=k.subarray(f,k.length-8);return a.pako.inflate(k,{windowBits:-15})},z=function(k,f){return f?k:Object(r.a)(k)},t=function(k){var f=!k.shouldOutputArray,l=new XMLHttpRequest;l.open("GET",k.url,k.isAsync);var a=f&&l.overrideMimeType;l.responseType=a?"text":"arraybuffer";a&&l.overrideMimeType("text/plain; charset=x-user-defined");l.send();var c=function(){var c=Date.now();var h=a?l.responseText:new Uint8Array(l.response);Object(m.a)("worker","Result length is "+
h.length);h.length<k.compressedMaximum?(h=k.decompressFunction(h,k.shouldOutputArray),Object(m.e)("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this."),b&&Object(m.a)("worker","Decompressed length is "+h.length)):f&&(h=Object(r.a)(h));b&&Object(m.a)("worker",k.url+" Decompression took "+(Date.now()-c));return h};if(k.isAsync)var h=
new Promise(function(f,a){l.onload=function(){200===this.status||0===this.status?f(c()):a("Download Failed "+k.url)};l.onerror=function(){a("Network error occurred "+k.url)}});else{if(200===l.status||0===l.status)return c();throw Error("Failed to load "+k.url);}return h},w=function(k){var f=k.lastIndexOf("/");-1===f&&(f=0);var l=k.slice(f).replace(".",".br.");b||(l.endsWith(".js.mem")?l=l.replace(".js.mem",".mem"):l.endsWith(".js")&&(l=l.concat(".mem")));return k.slice(0,f)+l},A=function(f,l){var k=
f.lastIndexOf("/");-1===k&&(k=0);var a=f.slice(k).replace(".",".gz.");l.url=f.slice(0,k)+a;l.decompressFunction=u;return t(l)},q=function(f,l){l.url=w(f);l.decompressFunction=b?v:y;return t(l)},B=function(f,l){f.endsWith(".js.mem")?f=f.slice(0,-4):f.endsWith(".mem")&&(f=f.slice(0,-4)+".js.mem");l.url=f;l.decompressFunction=z;return t(l)},J=function(f,l,a,b){return f.catch(function(f){Object(m.e)(f);return b(l,a)})},F=function(f,l,a){var k;if(a.isAsync){var b=l[0](f,a);for(k=1;k<l.length;++k)b=J(b,
f,a,l[k]);return b}for(k=0;k<l.length;++k)try{return l[k](f,a)}catch(H){Object(m.e)(H.message)}throw Error("");},f=function(f,l,a,b){return F(f,[A,q,B],{compressedMaximum:l,isAsync:a,shouldOutputArray:b})},l=function(f,l,a,b){return F(f,[q,A,B],{compressedMaximum:l,isAsync:a,shouldOutputArray:b})}},function(e,n,g){g.d(n,"a",function(){return c});g.d(n,"b",function(){return r});var d={},m={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},
_trnDebugMode:!1,_logFiltersEnabled:null},c=function(a){return m[a]},r=function(a,b){var c;m[a]=b;null===(c=d[a])||void 0===c?void 0:c.forEach(function(a){a(b)})}},function(e,n,g){g.d(n,"b",function(){return d});g.d(n,"a",function(){return m});var d=function(c){if("string"===typeof c){for(var d=new Uint8Array(c.length),a=c.length,b=0;b<a;b++)d[b]=c.charCodeAt(b);return d}return c},m=function(c){if("string"!==typeof c){for(var d="",a=0,b=c.length,h;a<b;)h=c.subarray(a,a+1024),a+=1024,d+=String.fromCharCode.apply(null,
h);return d}return c}},function(e,n,g){g.d(n,"c",function(){return y});g.d(n,"b",function(){return p});g.d(n,"a",function(){return u});g(0);var d="undefined"===typeof window?self:window;e=function(){var a=navigator.userAgent.toLowerCase();return(a=/(msie) ([\w.]+)/.exec(a)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(a))?parseInt(a[2],10):a}();var m=function(){var a=d.navigator.userAgent.match(/OPR/),b=d.navigator.userAgent.match(/Maxthon/),c=d.navigator.userAgent.match(/Edge/);return d.navigator.userAgent.match(/Chrome\/(.*?) /)&&
!a&&!b&&!c}();(function(){if(!m)return null;var a=d.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return a?parseInt(a[1],10):a})();var c=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&d.navigator.userAgent.match(/Chrome\/(.*?) /);(function(){if(!c)return null;var a=d.navigator.userAgent.match(/Edg\/([0-9]+)\./);return a?parseInt(a[1],10):a})();n=/iPad|iPhone|iPod/.test(d.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;var r=function(){var a=
d.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return a?parseFloat(a[1]):a}(),a=/^((?!chrome|android).)*safari/i.test(d.navigator.userAgent)||/^((?!chrome|android).)*$/.test(d.navigator.userAgent)&&n;/Android/i.test(navigator.userAgent);var b=d.navigator.userAgent.match(/Firefox/);(function(){if(!b)return null;var a=d.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return a?parseInt(a[1],10):a})();e||/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);
d.navigator.userAgent.indexOf("Android");var h=/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(d.navigator.userAgent),v=d.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)?14<=parseInt(d.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3]):!1,y=function(){return!v&&(a&&14>r||h)},p=!(!self.WebAssembly||!self.WebAssembly.validate),u=-1<d.navigator.userAgent.indexOf("Edge/16")||-1<d.navigator.userAgent.indexOf("MSAppHost")},function(e,n,g){function d(a){"@babel/helpers - typeof";
return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},d(a)}var m,c,r;!function(a){"object"===d(n)&&"undefined"!==typeof e?e.exports=a():!(c=[],m=a,r="function"===typeof m?m.apply(n,c):m,void 0!==r&&(e.exports=r))}(function(){return function y(b,c,d){function h(p,e){if(!c[p]){if(!b[p]){if(m)return m(p,!0);e=Error("Cannot find module '".concat(p,
"'"));throw e.code="MODULE_NOT_FOUND",e;}e=c[p]={exports:{}};b[p][0].call(e.exports,function(c){return h(b[p][1][c]||c)},e,e.exports,y,b,c,d)}return c[p].exports}for(var m=!1,e=0;e<d.length;e++)h(d[e]);return h}({1:[function(b,c,d){var h={}.hasOwnProperty,p=function(b,c){function p(){this.constructor=b}for(var d in c)h.call(c,d)&&(b[d]=c[d]);p.prototype=c.prototype;b.prototype=new p;b.__super__=c.prototype;return b};d=b("./PriorityQueue/AbstractPriorityQueue");b=b("./PriorityQueue/ArrayStrategy");
d=function(b){function c(b){b||(b={});b.strategy||(b.strategy=BinaryHeapStrategy);b.comparator||(b.comparator=function(b,c){return(b||0)-(c||0)});c.__super__.constructor.call(this,b)}p(c,b);return c}(d);d.ArrayStrategy=b;c.exports=d},{"./PriorityQueue/AbstractPriorityQueue":2,"./PriorityQueue/ArrayStrategy":3}],2:[function(b,c,d){c.exports=function(){function b(b){if(null==(null!=b?b.strategy:void 0))throw"Must pass options.strategy, a strategy";if(null==(null!=b?b.comparator:void 0))throw"Must pass options.comparator, a comparator";
this.priv=new b.strategy(b);this.length=0}b.prototype.queue=function(b){this.length++;this.priv.queue(b)};b.prototype.dequeue=function(b){if(!this.length)throw"Empty queue";this.length--;return this.priv.dequeue()};b.prototype.peek=function(b){if(!this.length)throw"Empty queue";return this.priv.peek()};b.prototype.remove=function(b){this.priv.remove(b)&&--this.length};b.prototype.find=function(b){return 0<=this.priv.find(b)};b.prototype.removeAllMatching=function(b,c){b=this.priv.removeAllMatching(b,
c);this.length-=b};return b}()},{}],3:[function(b,c,d){var h=function(b,c,h){var d;var p=0;for(d=b.length;p<d;){var e=p+d>>>1;0<=h(b[e],c)?p=e+1:d=e}return p};c.exports=function(){function b(b){var c;this.options=b;this.comparator=this.options.comparator;this.data=(null!=(c=this.options.initialValues)?c.slice(0):void 0)||[];this.data.sort(this.comparator).reverse()}b.prototype.queue=function(b){var c=h(this.data,b,this.comparator);this.data.splice(c,0,b)};b.prototype.dequeue=function(){return this.data.pop()};
b.prototype.peek=function(){return this.data[this.data.length-1]};b.prototype.find=function(b){var c=h(this.data,b,this.comparator)-1;return 0<=c&&!this.comparator(this.data[c],b)?c:-1};b.prototype.remove=function(b){b=this.find(b);return 0<=b?(this.data.splice(b,1),!0):!1};b.prototype.removeAllMatching=function(b,c){for(var h=0,d=this.data.length-1;0<=d;--d)if(b(this.data[d])){var p=this.data.splice(d,1)[0];c&&c(p);++h}return h};return b}()},{}]},{},[1])(1)})},function(e,n,g){(function(d){function e(a,
b){this._id=a;this._clearFn=b}var c="undefined"!==typeof d&&d||"undefined"!==typeof self&&self||window,r=Function.prototype.apply;n.setTimeout=function(){return new e(r.call(setTimeout,c,arguments),clearTimeout)};n.setInterval=function(){return new e(r.call(setInterval,c,arguments),clearInterval)};n.clearTimeout=n.clearInterval=function(a){a&&a.close()};e.prototype.unref=e.prototype.ref=function(){};e.prototype.close=function(){this._clearFn.call(c,this._id)};n.enroll=function(a,b){clearTimeout(a._idleTimeoutId);
a._idleTimeout=b};n.unenroll=function(a){clearTimeout(a._idleTimeoutId);a._idleTimeout=-1};n._unrefActive=n.active=function(a){clearTimeout(a._idleTimeoutId);var b=a._idleTimeout;0<=b&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},b))};g(22);n.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof d&&d.setImmediate||this&&this.setImmediate;n.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof d&&d.clearImmediate||this&&
this.clearImmediate}).call(this,g(10))},function(e,n,g){function d(c,d,a){return new Promise(function(b){if(!c)return b();var h=a.document.createElement("script");h.type="text/javascript";h.onload=function(){b()};h.onerror=function(){d&&Object(m.e)(d);b()};h.src=c;a.document.getElementsByTagName("head")[0].appendChild(h)})}g.d(n,"a",function(){return d});var m=g(0)},function(e,n,g){function d(a,b,h){function d(g){p=p||Date.now();return g?(Object(m.a)("load","Try instantiateStreaming"),fetch(Object(c.a)(a)).then(function(a){return WebAssembly.instantiateStreaming(a,
b)}).catch(function(b){Object(m.a)("load","instantiateStreaming Failed "+a+" message "+b.message);return d(!1)})):Object(c.b)(a,h,!0,!0).then(function(a){e=Date.now();Object(m.a)("load","Request took "+(e-p)+" ms");return WebAssembly.instantiate(a,b)})}var e,p;return d(!!WebAssembly.instantiateStreaming).then(function(a){Object(m.a)("load","WASM compilation took "+(Date.now()-(e||p))+" ms");return a})}g.d(n,"a",function(){return d});var m=g(0),c=g(2),r=g(8);g.d(n,"b",function(){return r.a})},function(e,
n){n=function(){return this}();try{n=n||(new Function("return this"))()}catch(g){"object"===typeof window&&(n=window)}e.exports=n},function(e,n,g){g.d(n,"b",function(){return r});g.d(n,"a",function(){return b});var d=g(2),m=g(9),c=g(5),r=function(){return c.b&&!c.a&&!Object(c.c)()},a=function(){function a(a){var b=this;this.promise=a.then(function(a){b.response=a;b.status=200})}a.prototype.addEventListener=function(a,b){this.promise.then(b)};return a}(),b=function(b,c,e){if(r()&&!e)self.Module.instantiateWasm=
function(a,h){return Object(m.a)(b+"Wasm.wasm",a,c["Wasm.wasm"]).then(function(a){h(a.instance)})},e=Object(d.b)(b+"Wasm.js.mem",c["Wasm.js.mem"],!1,!1);else{e=Object(d.b)((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+b+".js.mem",c[".js.mem"],!1);var h=Object(d.c)((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+b+".mem",c[".mem"],!0,!0);self.Module.memoryInitializerRequest=new a(h)}e=new Blob([e],{type:"application/javascript"});importScripts(URL.createObjectURL(e))}},
function(e,n,g){function d(c,d,a,b){function h(b){return b instanceof a?b:new a(function(a){a(b)})}return new (a||(a=Promise))(function(a,e){function p(a){try{g(b.next(a))}catch(w){e(w)}}function m(a){try{g(b["throw"](a))}catch(w){e(w)}}function g(b){b.done?a(b.value):h(b.value).then(p,m)}g((b=b.apply(c,d||[])).next())})}function m(c,d){function a(a){return function(c){return b([a,c])}}function b(a){if(e)throw new TypeError("Generator is already executing.");for(;h;)try{if(e=1,m&&(p=a[0]&2?m["return"]:
a[0]?m["throw"]||((p=m["return"])&&p.call(m),0):m.next)&&!(p=p.call(m,a[1])).done)return p;if(m=0,p)a=[a[0]&2,p.value];switch(a[0]){case 0:case 1:p=a;break;case 4:return h.label++,{value:a[1],done:!1};case 5:h.label++;m=a[1];a=[0];continue;case 7:a=h.ops.pop();h.trys.pop();continue;default:if(!(p=h.trys,p=0<p.length&&p[p.length-1])&&(6===a[0]||2===a[0])){h=0;continue}if(3===a[0]&&(!p||a[1]>p[0]&&a[1]<p[3]))h.label=a[1];else if(6===a[0]&&h.label<p[1])h.label=p[1],p=a;else if(p&&h.label<p[2])h.label=
p[2],h.ops.push(a);else{p[2]&&h.ops.pop();h.trys.pop();continue}}a=d.call(c,h)}catch(t){a=[6,t],m=0}finally{e=p=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var h={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},e,m,p,g;return g={next:a(0),"throw":a(1),"return":a(2)},"function"===typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}g.d(n,"a",function(){return d});g.d(n,"b",function(){return m})},function(e,n){function g(){throw Error("setTimeout has not been defined");
}function d(){throw Error("clearTimeout has not been defined");}function m(a){if(v===setTimeout)return setTimeout(a,0);if((v===g||!v)&&setTimeout)return v=setTimeout,setTimeout(a,0);try{return v(a,0)}catch(A){try{return v.call(null,a,0)}catch(q){return v.call(this,a,0)}}}function c(a){if(y===clearTimeout)return clearTimeout(a);if((y===d||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(a);try{return y(a)}catch(A){try{return y.call(null,a)}catch(q){return y.call(this,a)}}}function r(){u&&z&&(u=
!1,z.length?p=z.concat(p):t=-1,p.length&&a())}function a(){if(!u){var a=m(r);u=!0;for(var b=p.length;b;){z=p;for(p=[];++t<b;)z&&z[t].run();t=-1;b=p.length}z=null;u=!1;c(a)}}function b(a,b){this.fun=a;this.array=b}function h(){}e=e.exports={};try{var v="function"===typeof setTimeout?setTimeout:g}catch(w){v=g}try{var y="function"===typeof clearTimeout?clearTimeout:d}catch(w){y=d}var p=[],u=!1,z,t=-1;e.nextTick=function(c){var h=Array(arguments.length-1);if(1<arguments.length)for(var d=1;d<arguments.length;d++)h[d-
1]=arguments[d];p.push(new b(c,h));1!==p.length||u||m(a)};b.prototype.run=function(){this.fun.apply(null,this.array)};e.title="browser";e.browser=!0;e.env={};e.argv=[];e.version="";e.versions={};e.on=h;e.addListener=h;e.once=h;e.off=h;e.removeListener=h;e.removeAllListeners=h;e.emit=h;e.prependListener=h;e.prependOnceListener=h;e.listeners=function(a){return[]};e.binding=function(a){throw Error("process.binding is not supported");};e.cwd=function(){return"/"};e.chdir=function(a){throw Error("process.chdir is not supported");
};e.umask=function(){return 0}},function(e,n,g){n.a=function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(d,e){void 0===d&&(d=0);void 0===e&&(e=this.byteLength);d=Math.floor(d);e=Math.floor(e);0>d&&(d+=this.byteLength);0>e&&(e+=this.byteLength);d=Math.min(Math.max(0,d),this.byteLength);e=Math.min(Math.max(0,e),this.byteLength);if(0>=e-d)return new ArrayBuffer(0);var c=new ArrayBuffer(e-d),m=new Uint8Array(c);d=new Uint8Array(this,d,e-d);m.set(d);return c})}},function(e,n,g){n.a=
function(d){var e={};decodeURIComponent(d.slice(1)).split("&").forEach(function(c){c=c.split("=",2);e[c[0]]=c[1]});return e}},function(e,n,g){(function(d){function e(a){"function"!==typeof a&&(a=new Function(""+a));for(var b=Array(arguments.length-1),c=0;c<b.length;c++)b[c]=arguments[c+1];z[u]={callback:a,args:b};A(u);return u++}function c(a){delete z[a]}function g(a){if(t)setTimeout(g,0,a);else{var b=z[a];if(b){t=!0;try{var h=b.callback,f=b.args;switch(f.length){case 0:h();break;case 1:h(f[0]);break;
case 2:h(f[0],f[1]);break;case 3:h(f[0],f[1],f[2]);break;default:h.apply(void 0,f)}}finally{c(a),t=!1}}}}function a(){A=function(a){d.nextTick(function(){g(a)})}}function b(){if(p.postMessage&&!p.importScripts){var a=!0,b=p.onmessage;p.onmessage=function(){a=!1};p.postMessage("","*");p.onmessage=b;return a}}function h(){var a="setImmediate$"+Math.random()+"$",b=function(b){b.source!==p&&b.source!==p.parent||"string"!==typeof b.data||0!==b.data.indexOf(a)||g(+b.data.slice(a.length))};p.addEventListener?
p.addEventListener("message",b,!1):p.attachEvent("onmessage",b);A=function(b){p.postMessage(a+b,"*")}}function v(){var a=w.documentElement;A=function(b){var c=w.createElement("script");c.onreadystatechange=function(){g(b);c.onreadystatechange=null;a.removeChild(c);c=null};a.appendChild(c)}}function y(){A=function(a){setTimeout(g,0,a)}}var p="undefined"===typeof window?self:window,u=1,z={},t=!1,w=p.document,A,q=Object.getPrototypeOf&&Object.getPrototypeOf(p);q=q&&q.setTimeout?q:p;"[object process]"===
{}.toString.call(p.process)?a():b()?h():w&&"onreadystatechange"in w.createElement("script")?v():y();q.setImmediate=e;q.clearImmediate=c;n.a={setImmediate:e,clearImmediate:c}}).call(this,g(13))},function(e,n,g){var d=g(0);e=function(){function e(c,e){this.name=c;this.comObj=e;this.callbackIndex=1;this.postMessageTransfers=!0;this.callbacksCapabilities={};this.actionHandler={};this.actionHandlerAsync={};this.pdfnetCommandChain=this.nextAsync=null;this.pdfnetActiveCommands=new Set;this.actionHandler.console_log=
[function(a){Object(d.d)(a)}];this.actionHandler.console_error=[function(a){Object(d.c)(a)}];this.actionHandler.workerLoaded=[function(){}];this.msgHandler=this.handleMessage.bind(this);e.addEventListener("message",this.msgHandler)}e.prototype.on=function(c,e,a){var b=this.actionHandler;b[c]&&Object(d.c)('There is already an actionName called "'+c+'"');b[c]=[e,a]};e.prototype.clearActionHandlers=function(){this.actionHandler={};this.comObj.removeEventListener("message",this.msgHandler)};e.prototype.reset=
function(){this.clearActionHandlers();this.comObj.reset&&this.comObj.reset()};e.prototype.replace=function(c,d,a){this.actionHandler[c]=[d,a]};e.prototype.onAsync=function(c,e,a){var b=this.actionHandlerAsync;b[c]&&Object(d.c)('There is already an actionName called "'+c+'"');b[c]=[e,a]};e.prototype.replaceAsync=function(c,d,a){var b=this.actionHandlerAsync,h=this.actionHandler;h[c]&&delete h[c];b[c]=[d,a]};e.prototype.onNextAsync=function(c){this.nextAsync=c};e.prototype.send=function(c,d){this.postMessage({action:c,
data:d})};e.prototype.getNextId=function(){return this.callbackIndex++};e.prototype.sendWithPromise=function(c,d,a){var b=this.getNextId();c={action:c,data:d,callbackId:b,priority:a};d=window.createPromiseCapability();this.callbacksCapabilities[b]=d;try{this.postMessage(c)}catch(h){d.reject(h)}return d.promise};e.prototype.sendWithPromiseReturnId=function(c,d,a){var b=this.getNextId();c={action:c,data:d,callbackId:b,priority:a};d=window.createPromiseCapability();this.callbacksCapabilities[b]=d;try{this.postMessage(c)}catch(h){d.reject(h)}return{promise:d.promise,
callbackId:b}};e.prototype.sendWithPromiseWithId=function(c,e,a){e>this.callbackIndex&&Object(d.c)("Can't reuse callbackId "+e+" lesser than callbackIndex "+this.callbackIndex);e in this.callbacksCapabilities&&Object(d.c)("Can't reuse callbackId "+e+". There is a capability waiting to be resolved. ");c={action:c,data:a,callbackId:e};a=window.createPromiseCapability();this.callbacksCapabilities[e]=a;try{this.postMessage(c)}catch(b){a.reject(b)}return a.promise};e.prototype.sendError=function(c,d){if(c.message||
c.errorData){c.message&&c.message.message&&(c.message=c.message.message);var a=c.errorData;c={type:c.type?c.type:"JavascriptError",message:c.message};a&&Object.keys(a).forEach(function(b){a.hasOwnProperty(b)&&(c[b]=a[b])})}this.postMessage({isReply:!0,callbackId:d,error:c})};e.prototype.getPromise=function(c){if(c in this.callbacksCapabilities)return this.callbacksCapabilities[c];Object(d.c)("Cannot get promise for callback "+c)};e.prototype.cancelPromise=function(c){if(c in this.callbacksCapabilities){var e=
this.callbacksCapabilities[c];delete this.callbacksCapabilities[c];this.pdfnetActiveCommands.has(c)&&this.pdfnetActiveCommands.delete(c);e.reject({type:"Cancelled",message:"Request has been cancelled."});this.postMessage({action:"actionCancel",data:{callbackId:c}})}else Object(d.e)("Cannot cancel callback "+c)};e.prototype.postMessage=function(c){if(this.postMessageTransfers){var d=this.getTransfersArray(c);this.comObj.postMessage(c,d)}else this.comObj.postMessage(c)};e.prototype.getObjectTransfers=
function(c,d){var a=this;null!==c&&"object"===typeof c&&(c instanceof Uint8Array?d.push(c.buffer):c instanceof ArrayBuffer?d.push(c):Object.keys(c).forEach(function(b){c.hasOwnProperty(b)&&a.getObjectTransfers(c[b],d)}))};e.prototype.getTransfersArray=function(c){var d=[];this.getObjectTransfers(c,d);return 0===d.length?void 0:d};e.prototype.handleMessage=function(c){var e=this,a=c.data,b=this.actionHandler,h=this.actionHandlerAsync;c=this.callbacksCapabilities;var g=this.pdfnetActiveCommands;if(a.isReply)b=
a.callbackId,b in c?(h=c[b],delete c[b],g.has(b)&&g.delete(b),"error"in a?h.reject(a.error):h.resolve(a.data)):Object(d.a)("Cannot resolve callback "+b);else if(a.action in b){var m=b[a.action];a.callbackId?Promise.resolve().then(function(){return m[0].call(m[1],a.data)}).then(function(b){e.postMessage({isReply:!0,callbackId:a.callbackId,data:b})},function(b){e.sendError(b,a.callbackId)}):m[0].call(m[1],a.data)}else a.action in h?(m=h[a.action],a.callbackId?m[0].call(m[1],a).then(function(b){e.postMessage({isReply:!0,
callbackId:a.callbackId,data:b});e.nextAsync()},function(b){e.sendError(b,a.callbackId);e.nextAsync()}):m[0].call(m[1],a).then(function(){e.nextAsync()},function(){e.nextAsync()})):Object(d.c)("Unknown action from worker: "+a.action)};return e}();n.a=e},function(e,n,g){e.exports=g(19)},function(e,n,g){g.r(n);g(5);e=g(14);g(20);g(21);g(24);g(25);g(26);g(27);g(28);Object(e.a)()},function(e,n,g){(function(d){"undefined"===typeof d.crypto&&(d.crypto={getRandomValues:function(d){for(var c=0;c<d.length;c++)d[c]=
256*Math.random()}})})("undefined"===typeof window?self:window)},function(e,n,g){(function(d,e){function c(d){"@babel/helpers - typeof";return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},c(d)}(function(d){function a(){for(var a=0;a<C.length;a++)C[a][0](C[a][1]);C=[];E=!1}function b(f,l){C.push([f,l]);E||(E=!0,D(a,0))}function h(a,f){function l(a){p(f,
a)}function k(a){z(f,a)}try{a(l,k)}catch(G){k(G)}}function m(a){var f=a.owner,b=f.state_;f=f.data_;var c=a[b];a=a.then;if("function"===typeof c){b=l;try{f=c(f)}catch(G){z(a,G)}}n(a,f)||(b===l&&p(a,f),b===k&&z(a,f))}function n(a,f){var l;try{if(a===f)throw new TypeError("A promises callback cannot return that same promise.");if(f&&("function"===typeof f||"object"===c(f))){var k=f.then;if("function"===typeof k)return k.call(f,function(k){l||(l=!0,f!==k?p(a,k):u(a,k))},function(f){l||(l=!0,z(a,f))}),
!0}}catch(G){return l||z(a,G),!0}return!1}function p(a,f){a!==f&&n(a,f)||u(a,f)}function u(a,l){a.state_===F&&(a.state_=f,a.data_=l,b(w,a))}function z(a,l){a.state_===F&&(a.state_=f,a.data_=l,b(A,a))}function t(a){var f=a.then_;a.then_=void 0;for(a=0;a<f.length;a++)m(f[a])}function w(a){a.state_=l;t(a)}function A(a){a.state_=k;t(a)}function q(a){if("function"!==typeof a)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof q))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
this.then_=[];h(a,this)}d.createPromiseCapability=function(){var a={};a.promise=new q(function(f,l){a.resolve=f;a.reject=l});return a};var B=d.Promise,r=B&&"resolve"in B&&"reject"in B&&"all"in B&&"race"in B&&function(){var a;new B(function(f){a=f});return"function"===typeof a}();"undefined"!==typeof exports&&exports?(exports.Promise=r?B:q,exports.Polyfill=q):"function"===typeof define&&g(23)?define(function(){return r?B:q}):r||(d.Promise=q);var F="pending",f="sealed",l="fulfilled",k="rejected",x=
function(){},D="undefined"!==typeof e?e:setTimeout,C=[],E;q.prototype={constructor:q,state_:F,then_:null,data_:void 0,then:function(a,f){a={owner:this,then:new this.constructor(x),fulfilled:a,rejected:f};this.state_===l||this.state_===k?b(m,a):this.then_.push(a);return a.then},"catch":function(a){return this.then(null,a)}};q.all=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.all().");return new this(function(f,l){function k(a){c++;
return function(l){b[a]=l;--c||f(b)}}for(var b=[],c=0,d=0,e;d<a.length;d++)(e=a[d])&&"function"===typeof e.then?e.then(k(d),l):b[d]=e;c||f(b)})};q.race=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.race().");return new this(function(f,l){for(var k=0,b;k<a.length;k++)(b=a[k])&&"function"===typeof b.then?b.then(f,l):f(b)})};q.resolve=function(a){return a&&"object"===c(a)&&a.constructor===this?a:new this(function(f){f(a)})};
q.reject=function(a){return new this(function(f,l){l(a)})}})("undefined"!==typeof window?window:"undefined"!==typeof d?d:"undefined"!==typeof self?self:void 0)}).call(this,g(10),g(7).setImmediate)},function(e,n,g){(function(d,e){(function(c,d){function a(a){delete w[a]}function b(c){if(A)setTimeout(b,0,c);else{var f=w[c];if(f){A=!0;try{var l=f.callback,k=f.args;switch(k.length){case 0:l();break;case 1:l(k[0]);break;case 2:l(k[0],k[1]);break;case 3:l(k[0],k[1],k[2]);break;default:l.apply(d,k)}}finally{a(c),
A=!1}}}}function h(){B=function(a){e.nextTick(function(){b(a)})}}function g(){if(c.postMessage&&!c.importScripts){var a=!0,f=c.onmessage;c.onmessage=function(){a=!1};c.postMessage("","*");c.onmessage=f;return a}}function m(){var a="setImmediate$"+Math.random()+"$",f=function(f){f.source===c&&"string"===typeof f.data&&0===f.data.indexOf(a)&&b(+f.data.slice(a.length))};c.addEventListener?c.addEventListener("message",f,!1):c.attachEvent("onmessage",f);B=function(f){c.postMessage(a+f,"*")}}function p(){var a=
new MessageChannel;a.port1.onmessage=function(a){b(a.data)};B=function(f){a.port2.postMessage(f)}}function n(){var a=q.documentElement;B=function(f){var l=q.createElement("script");l.onreadystatechange=function(){b(f);l.onreadystatechange=null;a.removeChild(l);l=null};a.appendChild(l)}}function z(){B=function(a){setTimeout(b,0,a)}}if(!c.setImmediate){var t=1,w={},A=!1,q=c.document,B,r=Object.getPrototypeOf&&Object.getPrototypeOf(c);r=r&&r.setTimeout?r:c;"[object process]"==={}.toString.call(c.process)?
h():g()?m():c.MessageChannel?p():q&&"onreadystatechange"in q.createElement("script")?n():z();r.setImmediate=function(a){"function"!==typeof a&&(a=new Function(""+a));for(var f=Array(arguments.length-1),l=0;l<f.length;l++)f[l]=arguments[l+1];w[t]={callback:a,args:f};B(t);return t++};r.clearImmediate=a}})("undefined"===typeof self?"undefined"===typeof d?this:d:self)}).call(this,g(10),g(13))},function(e,n){e.exports={}},function(e,n,g){(function(d){var e=function(c,d){var a=function y(a){a=this["catch"](a);
return{cancel:d,promise:a,then:b.bind(a),"catch":y.bind(a)}},b=function u(b,c){b=this.then(b,c);return{cancel:d,promise:b,then:u.bind(b),"catch":a.bind(b)}};return{cancel:d,promise:c,then:b.bind(c),"catch":a.bind(c)}};d.CancellablePromise=function(c,d){var a=!1,b,h=new Promise(function(e,h){b=function(){a||(d(),h("cancelled"))};(new Promise(c)).then(function(b){a=!0;e(b)},function(b){a=!0;h(b)})});return e(h,b)};d.CancellablePromise.all=function(c){var d=Promise.all(c);return e(d,function(){c.forEach(function(a){a.cancel&&
a.cancel()})})}})("undefined"===typeof self?void 0:self)},function(e,n,g){(function(d,e){var c=g(1);(function(g){g.Module={INITIAL_MEMORY:50331648,noExitRuntime:!0,devicePixelRatio:1,cur_doc:null,cachePtrSize:0,hasBufOwnership:!0,loaded:!1,initCb:null,cachePtr:null,cleanupState:null,docs:{},postEvent:function(a,b,c){Module.workerMessageHandler.send("event",{docId:a,type:b,data:c})},postPagesUpdatedEvent:function(a,b,c,d){a={pageDimensions:Module.GetPageDimensions(a)};if(c)for(var e=0;e<c.length;++e)c[e]in
a.pageDimensions?(a.pageDimensions[c[e]].contentChanged=!0,d&&(a.pageDimensions[c[e]].annotationsUnchanged=!0)):console.warn("Invalid Page Number ".concat(c[e]));Module.postEvent(b,"pagesUpdated",a);return a},postPagesRenamedEvent:function(a,b){var c={};a=Module.PDFDocGetPageIterator(a,1);for(var d=1;Module.IteratorHasNext(a);++d){var e=Module.stackSave(),p=Module.IteratorCurrent(a);c[d]=Module.PageGetId(p);Module.IteratorNext(a);Module.stackRestore(e)}Module.postEvent(b,"pagesRenamed",{pageNumToId:c})},
GetIndividualPageDimensions:function(a,b,c){a=Module.PageGetPageInfo(c);a.id=Module.PageGetId(c);return a},GetPageDimensionsRange:function(a,b,c){for(var d={},e=Module.PDFDocGetPageIterator(a,b);b<c&&Module.IteratorHasNext(e);++b){var h=Module.stackSave(),g=Module.IteratorCurrent(e);d[b]=this.GetIndividualPageDimensions(a,b,g);Module.IteratorNext(e);Module.stackRestore(h)}return d},GetPageDimensionsContentChangedList:function(a,b){b.sort(function(a,b){return a-b});for(var c={},d=b[0],e=b[b.length-
1],p=0,g=Module.PDFDocGetPageIterator(a,d);d<=e&&Module.IteratorHasNext(g);++d){if(b[p]==d){++p;var m=Module.stackSave(),t=Module.IteratorCurrent(g);t=this.GetIndividualPageDimensions(a,d,t);t.contentChanged=!0;c[d]=t;Module.stackRestore(m)}Module.IteratorNext(g)}return c},GetPageDimensions:function(a){try{var b=Module.stackSave();var c=Module.GetPageCount(a);if(0===c)throw"This document has no pages.";return Module.GetPageDimensionsRange(a,1,c+1)}finally{Module.stackRestore(b)}},loadDoc:function(a,
b){"undefined"===typeof Module&&this._main();var c=null;try{var d=Module.stackSave();a.customHandlerId&&Module._TRN_PDFNetAddPDFTronCustomHandler(a.customHandlerId);b=Module.CreateDoc(a,b);var e=Module.GetDoc(b);if(Module.PDFDocInitSecurityHandler(e))return{docId:b,pageDimensions:Module.GetPageDimensions(e)};c={type:"NeedsPassword",errorData:{docId:b},message:"This document requires a password"}}catch(p){c={type:"InvalidPDF",message:p}}finally{Module.stackRestore(d)}throw c;},loadCanvas:function(a,
b,c,d,e,p,g,m){return new Promise(function(h,n){var t=Module.GetDoc(a),q=b+1,v=function(){h(Module.RasterizePage(t,q,c,d,p,e,g,m))},w=Module.docs[a].chunkStorage;if(w){var u=Module.GetDownloadData(t).downloader,f=w.getRequiredChunkOffsetArrays(u,q);w.keepChunks(f.have);u=function(){var a=w.getChunks(f.missing);Module.loadPromise=a.then(function(){var a=Module.loadPromise.cancelled;Module.loadPromise=null;a||v()})["catch"](function(a){"cancelled"!==a?n(a):Module.loadPromise=null})};Module.loadPromise?
Module.loadPromise.then(u,u):u()}else v()})},loadResources:function(a,b){Module.Initialize(b);Object(c.b)("worker","PDFNet initialized!");Module._TRN_PDFNetSetDefaultDiskCachingEnabled(!1);a=new Uint8Array(a);Module.PDFNetSetResourceData(a)},onRuntimeInitialized:function(){"undefined"===typeof Module&&(("undefined"!==typeof window?window:self).Module={});(function(a){a.PDFDocExportXFDF=function(a,c){a=Module.GetDoc(a);var b=Module.stackSave();try{var d=c?Module.PDFDocFDFExtract(a,c):Module.PDFDocFDFExtract(a);
var e=Module.FDFDocSaveAsXFDF(d);Module.stackRestore(b)}catch(u){throw Module.stackRestore(b),u;}return e};a.PageArrayToPageSet=function(a){var b=Module.stackSave();try{var c=Module.PageSetCreate();for(var d=0;d<a.length;++d)Module.PageSetAddPage(c,a[d]);Module.stackRestore(b)}catch(p){throw Module.stackRestore(b),p;}return c};a.cancelCurrent=function(){var a=Module.loadPromise;return a?(a.cancel(),a.cancelled=!0):(a=Module.cleanupState)?(d(a.timeout),a.cleanupArr.reverse().forEach(function(a){a()}),
Module.cleanupState=null,!0):!1};a.SetWorkerRestartCallback=function(a){Module.workerRestartCallback=a};a.XFDFMerge=function(a,d,e){if(d){var b=[];try{Object(c.b)("worker","Merge XFDF of length ".concat(d.length));var h=Module.GetUStringFromJSString(d,!0);b.push(function(){Module.UStringDestroy(h)});var g=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_FDFDocCreateFromXFDF(h,g));var m=Module.getValue(g,"i8*");b.push(function(){Module.FDFDocDestroy(m)});Module.PDFDocFDFUpdate(a,m,e)}finally{b.reverse().forEach(function(a){a()})}}};
a.MergeXFDF=function(a,c,d){return new Promise(function(b,e){var h=[];try{var p=Module.stackSave();h[h.length]=function(){Module.stackRestore(p)};var g=Module.GetDoc(a);Module.XFDFMerge(g,c,d);h.forEach(function(a){a()});b({})}catch(w){h.forEach(function(a){a()}),e(w)}})};a.CreateBufferFile=function(a,c,d){Module.MakeDev(a);var b=new ArrayBuffer(c);b=new Uint8Array(b);d=d?0:255;for(var e=0;e<c;++e)b[e]=d;Module.docs[a]={buffer:b}};a.ReadBufferFile=function(a,c){var b=Module.docs[a].buffer;c&&(Module.docs[a].buffer=
new Uint8Array(b.buffer.slice(0)));return b};a.RemoveBufferFile=function(a){Module.docs[a]=null};a.SaveHelper=function(a,c,d){d="undefined"===typeof d?2:d;Module.MakeDev(c);var b=Module._TRN_PDFDocSave(a,Module.GetUStringFromJSString(c),d,0);Module.docs[c].sink=null;REX(b);d&16&&Module.postPagesRenamedEvent(a,c);return Module.docs[c].buffer.buffer};a.SaveDoc=function(a,c,d,e,p,m,n){return new Promise(function(b,h){var t=[];try{var q=Module.GetDoc(a),w=Module.stackSave();t[t.length]=function(){Module.stackRestore(w)};
Module.XFDFMerge(q,c,n);var u=Module.allocate(8,"i8",Module.ALLOC_STACK),v=Module.allocate(Module.intArrayFromString('{"UseNonStandardRotation": true}'),"i8",Module.ALLOC_STACK);Module.setValue(u,v,"i8*");Module.setValue(u+4,0,"i32");Module._TRN_PDFDocRefreshAnnotAppearances(q,u);if(m){u=function(a){a=new Uint8Array(a);g.FS.writeFile("watermarkFile",a);a=Module.ImageCreateFromFile(q,Module.GetUStringFromJSString("watermarkFile"));g.FS.unlink("watermarkFile");return a};var f=Module.ElementBuilderCreate();
t.push(function(){Module.ElementBuilderDestroy(f)});var l=Module.ElementWriterCreate();t.push(function(){Module.ElementWriterDestroy(l)});try{if(!m.hasOwnProperty("default"))throw Error("Watermark dictionary has no 'default' key!");var k=u(m["default"]),x=Module.PDFDocGetPageIterator(q,1);for(v=-1;Module.IteratorHasNext(x);){var D=Module.IteratorCurrent(x);Module.IteratorNext(x);v++;var C=v.toString();try{var E=void 0;if(m.hasOwnProperty(C)){var H=m[C];if(H)E=u(H);else continue}else E=k;var y=Module.PageGetPageInfo(D),
z=Module.ElementBuilderCreateImage(f,E,0,0,y.width,y.height);Module.ElementWriterBegin(l,D);Module.ElementWriterWritePlacedElement(l,z);Module.ElementWriterEnd(l)}catch(I){console.warn("Watermark for page "+C+"can not be added due to error: "+I)}}}catch(I){console.warn("Watermarks can not be added due to error: "+I)}}k=0;if(e){var r=Module.PDFDocGetRoot(q);(k=Module.ObjFindObj(r,"OpenAction"))&&Module.ObjPut(r,"__OpenActionBackup__",k);var G=Module.ObjPutDict(r,"OpenAction");Module.ObjPutName(G,"Type",
"Action");Module.ObjPutName(G,"S","JavaScript");Module.ObjPutString(G,"JS","this.print()")}var K=Module.SaveHelper(q,a,p);e&&(k?Module.ObjPut(r,"OpenAction",Module.ObjFindObj(r,"__OpenActionBackup__")):Module.ObjErase(r,"OpenAction"));t.reverse().forEach(function(a){a()});if(d)b({fileData:K});else{var L=K.slice(0);b({fileData:L})}}catch(I){t.reverse().forEach(function(a){a()}),h(I)}})};a.SaveDocFromFixedElements=function(a,c,d,e){a=Module.PDFDocCreateFromLayoutEls(a);a=Module.CreateDoc({type:"ptr",
value:a});return Module.SaveDoc(a,c,!0,!1,d,e)};a.GetCurrentCanvasData=function(a){var b=Module.currentRenderData;if(!b)return null;a&&REX(Module._TRN_PDFRasterizerUpdateBuffer(b.rast));var d=Date.now();if(b.bufPtr){a=new Uint8Array(new ArrayBuffer(b.buf_size));for(var e=0,p=0;p<b.out_height;++p)for(var g=b.bufPtr+b.stride*p,m=0;m<b.out_width;++m)a[e++]=Module.HEAPU8[g+2],a[e++]=Module.HEAPU8[g+1],a[e++]=Module.HEAPU8[g],a[e++]=Module.HEAPU8[g+3],g+=4}else a=Module.ReadBufferFile("b",a);Object(c.b)("bufferTiming",
"Copy took ".concat(Date.now()-d));return{pageBuf:a.buffer,pageWidth:b.out_width,pageHeight:b.out_height}};a.RasterizePage=function(a,d,g,m,p,n,r,t){return new Promise(function(b,h){Module.currentRenderData={};var q=Module.currentRenderData;q.out_width=parseInt(g,10);q.out_height=parseInt(m,10);var w=[];w.push(function(){Module.currentRenderData=null});try{var A=Module.stackSave();w[w.length]=function(){Module.stackRestore(A)};var u=Module.GetPage(a,d),f=Module.PageGetPageWidth(u),l=Module.PageGetPageHeight(u);
q.stride=4*q.out_width;q.buf_size=q.out_width*q.out_height*4;Object(c.b)("Memory","Created rasterizer");q.rast=Module.PDFRasterizerCreate();w.push(function(){Object(c.b)("Memory","Destroyed rasterizer");Module._TRN_PDFRasterizerDestroy(q.rast)});if(r){var k=Module.EMSCreateUpdatedLayersContext(a,r);0!==k&&(REX(Module._TRN_PDFRasterizerSetOCGContext(q.rast,k)),w.push(function(){Module._TRN_OCGContextDestroy(k)}))}var x=!1;t.hasOwnProperty("renderAnnots")?(t.renderAnnots&&(x=!0),REX(Module._TRN_PDFRasterizerSetDrawAnnotations(q.rast,
t.renderAnnots?1:0))):REX(Module._TRN_PDFRasterizerSetDrawAnnotations(q.rast,0));t.hasOwnProperty("highlightFields")&&(t.highlightFields&&(x=!0),REX(Module._TRN_PDFRasterizerSetHighlightFields(q.rast,t.highlightFields)));t.hasOwnProperty("antiAliasing")&&REX(Module._TRN_PDFRasterizerSetAntiAliasing(q.rast,t.antiAliasing));t.hasOwnProperty("pathHinting")&&REX(Module._TRN_PDFRasterizerSetPathHinting(q.rast,t.pathHinting));if(t.hasOwnProperty("thinLinePixelGridFit")){var D=!0;t.hasOwnProperty("thinLineStrokeAdjust")&&
(D=t.thinLineStrokeAdjust);REX(Module._TRN_PDFRasterizerSetThinLineAdjustment(q.rast,t.thinLinePixelGridFit,D))}else t.hasOwnProperty("thinLineStrokeAdjust")&&REX(Module._TRN_PDFRasterizerSetThinLineAdjustment(q.rast,!1,t.thinLineStrokeAdjust));t.hasOwnProperty("imageSmoothing")?(D=!1,t.hasOwnProperty("hqImageResampling")&&(D=t.hqImageResampling),REX(Module._TRN_PDFRasterizerSetImageSmoothing(q.rast,t.imageSmoothing,D))):t.hasOwnProperty("hqImageResampling")&&REX(Module._TRN_PDFRasterizerSetImageSmoothing(q.rast,
!0,t.hqImageResampling));t.hasOwnProperty("caching")&&REX(Module._TRN_PDFRasterizerSetCaching(q.rast,t.caching));t.hasOwnProperty("expGamma")&&REX(Module._TRN_PDFRasterizerSetGamma(q.rast,t.expGamma));t.hasOwnProperty("isPrinting")&&(t.isPrinting&&(x=!0),REX(Module._TRN_PDFRasterizerSetPrintMode(q.rast,t.isPrinting)));t.hasOwnProperty("colorPostProcessMode")&&(t.colorPostProcessMode&&(x=!0),REX(Module._TRN_PDFRasterizerSetColorPostProcessMode(q.rast,t.colorPostProcessMode)));var C=Module.PageGetRotation(u);
D=1===n||3===n;C=(1===C||3===C)!==D;var E=Module.allocate(48,"i8",Module.ALLOC_STACK);if(p){p.x1=p[0];p.y1=p[1];p.x2=p[2];p.y2=p[3];var H=Module.PageGetDefaultMatrix(u,0),v=Module.Matrix2DInverse(H);p=Module.Matrix2DMultBBox(v,p);if(p.x2<p.x1){var y=p.x1;p.x1=p.x2;p.x2=y}p.y2<p.y1&&(y=p.y1,p.y1=p.y2,p.y2=y);var z=q.out_width/(C?p.y2-p.y1:p.x2-p.x1);var G=Module.GetDefaultMatrixBox(u,p,n)}else G=Module.PageGetDefaultMatrix(u,n),z=q.out_width/(D?l:f);Module.Matrix2DSet(E,z,0,0,z,0,0);Module.Matrix2DConcat(E,
G);var K=Module.allocate(4,"i8",Module.ALLOC_STACK),L=Module.allocate(4,"i8",Module.ALLOC_STACK);x?(q.bufPtr=Module._malloc(q.buf_size),Module._memset(q.bufPtr,t.pageTransparent?0:255,q.buf_size),w.push(function(){Module._free(q.bufPtr)})):(Module.CreateBufferFile("b",q.buf_size,t.pageTransparent),w.push(function(){Module.RemoveBufferFile("b")}));var I=t.overprintMode;if(10===I){REX(Module._TRN_PDFRasterizerSetOverprint(q.rast,1));var O=Module.PDFRasterizerRasterizeSeparations(q.rast,u,q.out_width,
q.out_height,E,0,0);b({pageBuf:O,pageWidth:q.out_width,pageHeight:q.out_height})}else{REX(Module._TRN_PDFRasterizerSetOverprint(q.rast,I));x?REX(Module._TRN_PDFRasterizerGetChunkRenderer(q.rast,u,q.bufPtr,q.out_width,q.out_height,q.stride,4,!0,E,0,0,0,K)):REX(Module._TRN_PDFRasterizerGetChunkRendererPath(q.rast,u,Module.GetUStringFromJSString("b"),q.out_width,q.out_height,!0,E,0,0,0,K));var M=Module.getValue(K,"i8*");w.push(function(){REX(Module._TRN_ChunkRendererDestroy(M))})}var P=(new Date).getTime(),
S=e(function Q(){try{for(var a=0,f=(new Date).getTime(),l=!1;200>a;){REX(Module._TRN_ChunkRendererRenderNext(M,L));if(!Module.getValue(L,"i8")){l=!0;break}a=(new Date).getTime()-f}if(l){var k=Module.GetCurrentCanvasData(!1);Object(c.b)("worker","Total Page Time ".concat((new Date).getTime()-P));w.reverse().forEach(function(a){a()});b(k)}else Module.cleanupState.timeout=e(Q)}catch(R){w.reverse().forEach(function(a){a()}),h(R)}});Module.cleanupState={cleanupArr:w,timeout:S};w.push(function(){Module.cleanupState=
null})}catch(T){w.reverse().forEach(function(a){a()}),h(T)}})};a.UpdatePassword=function(a,c){try{var b=Module.stackSave();var d=Module.GetDoc(a);return Module.PDFDocInitStdSecurityHandler(d,c)?(d in downloadDataMap&&REX(Module._TRN_PDFDocDownloaderInitialize(d,downloadDataMap[d].downloader)),{success:!0,pageDimensions:Module.GetPageDimensions(d)}):{success:!1}}finally{Module.stackRestore(b)}};a.InsertBlankPages=function(a,c,d,e){return new Promise(function(b,h){var g=[],p=Module.GetDoc(a);try{var m=
Module.stackSave();g[g.length]=function(){Module.stackRestore(m)};for(var n=c.length-1;0<=n;--n){var q=Module.PDFDocGetPageIterator(p,c[n]),u=Module.PDFDocPageCreate(p,d,e);Module.PDFDocPageInsert(p,q,u)}var v=Module.postPagesUpdatedEvent(p,a);g.forEach(function(a){a()});b(v)}catch(F){g.forEach(function(a){a()}),h(F)}})};a.InsertPages=function(a,c,d,e,g,m){return new Promise(function(b,h){var p=[],n=Module.GetDoc(a);try{var q=Module.stackSave();p[p.length]=function(){Module.stackRestore(q)};if(c instanceof
ArrayBuffer){var t=Module.CreateDoc(c);var u=Module.GetDoc(t);p[p.length]=function(){Module.DeleteDoc(t)}}else u=Module.GetDoc(c);for(var v=d.length,f=Module.PageSetCreate(),l=0;l<v;++l)Module.PageSetAddPage(f,d[l]);Module.PDFDocInsertPages(n,e,u,f,g);var k;m||(k=Module.postPagesUpdatedEvent(n,a));p.reverse().forEach(function(a){a()});b(k)}catch(x){p.reverse().forEach(function(a){a()}),h(x)}})};a.MovePages=function(a,c,d){return new Promise(function(b,e){var h=[],g=Module.GetDoc(a);try{var p=Module.stackSave();
h[h.length]=function(){Module.stackRestore(p)};for(var m=c.length,n=Module.PageSetCreate(),q=0;q<m;++q)Module.PageSetAddPage(n,c[q]);Module.PDFDocMovePages(g,d,n);var v=Module.postPagesUpdatedEvent(g,a);h.forEach(function(a){a()});b(v)}catch(J){h.forEach(function(a){a()}),e(J)}})};a.RemovePages=function(a,c,d){return new Promise(function(b,e){var h=Module.GetDoc(a),g=[];try{var p=Module.stackSave();g[g.length]=function(){Module.stackRestore(p)};for(var m=c.length-1;0<=m;--m){var n=Module.PDFDocGetPageIterator(h,
c[m]);Module.IteratorHasNext(n)&&Module.PDFDocPageRemove(h,n)}var q;d||(q=Module.postPagesUpdatedEvent(h,a));g.forEach(function(a){a()});b(q)}catch(B){g.forEach(function(a){a()}),e(B)}})};a.RotatePages=function(a,c,d){return new Promise(function(b,e){var g=Module.GetDoc(a),h=[];try{var p=Module.stackSave();h[h.length]=function(){Module.stackRestore(p)};var m=c.length,n=0,q=Module.PDFDocGetPageIterator(g,c[0]),r=[];h.push(function(){Module._TRN_IteratorDestroy(q)});for(var v=c[0];Module.IteratorHasNext(q)&&
n<c[m-1];++v){if(v===c[n]){var y=Module.IteratorCurrent(q),f=(Module.PageGetRotation(y)+d)%4;Module.PageSetRotation(y,f);r.push(v);n++}Module.IteratorNext(q)}var l=Module.postPagesUpdatedEvent(g,a,r,!0);h.reverse().forEach(function(a){a()});b(l)}catch(k){h.reverse().forEach(function(a){a()}),e(k)}})};a.ExtractPages=function(a,c,d,e,g){return new Promise(function(b,h){var p=[];try{var m=Module.GetDoc(a),n=Module.stackSave();p[p.length]=function(){Module.stackRestore(n)};var q=function(a){p.reverse().forEach(function(a){a()});
h(a)};Module.XFDFMerge(m,d,g);var u=Module.CreateEmptyDoc();p[p.length]=function(){Module.DeleteDoc(u)};var r=Module.InsertPages(u,a,c,1,!0).then(function(){return Module.SaveDoc(u,void 0,!0,!1,void 0,e)}).then(function(a){p.reverse().forEach(function(a){a()});return a})["catch"](q);b(r)}catch(F){q(F)}})};a.CropPages=function(a,c,d,e,g,m){return new Promise(function(b,h){var p=Module.GetDoc(a),n=[];try{var q=Module.stackSave();n[n.length]=function(){Module.stackRestore(q)};var t=c.length,u=0,r=Module.PDFDocGetPageIterator(p,
c[0]);n.push(function(){Module._TRN_IteratorDestroy(r)});for(var f=[],l=c[0];Module.IteratorHasNext(r)&&u<c[t-1];++l){if(l===c[u]){var k=Module.IteratorCurrent(r),x=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetCropBox(k,x));var D=Module.PageGetRotation(k),C=Module.getValue(x,"double"),E=Module.getValue(x+8,"double"),H=Module.getValue(x+16,"double"),v=Module.getValue(x+24,"double");0===D%4?(Module.setValue(x,C+g,"double"),Module.setValue(x+8,E+e,"double"),Module.setValue(x+16,
H-m,"double"),Module.setValue(x+24,v-d,"double")):1===D%4?(Module.setValue(x,C+d,"double"),Module.setValue(x+8,E+g,"double"),Module.setValue(x+16,H-e,"double"),Module.setValue(x+24,v-m,"double")):2===D%4?(Module.setValue(x,C+m,"double"),Module.setValue(x+8,E+d,"double"),Module.setValue(x+16,H-g,"double"),Module.setValue(x+24,v-e,"double")):3===D%4&&(Module.setValue(x,C+e,"double"),Module.setValue(x+8,E+m,"double"),Module.setValue(x+16,H-d,"double"),Module.setValue(x+24,v-g,"double"));Module.setValue(x+
32,0,"double");REX(Module._TRN_PageSetBox(k,0,x));REX(Module._TRN_PageSetBox(k,1,x));f.push(l);u++}Module.IteratorNext(r)}var y=Module.postPagesUpdatedEvent(p,a,f,!0);n.reverse().forEach(function(a){a()});b(y)}catch(N){n.reverse().forEach(function(a){a()}),h(N)}})}})("undefined"===typeof self?this.Module:self.Module);this.loaded=!0;Module.initCb&&Module.initCb()}}})(self)}).call(this,g(7).clearImmediate,g(7).setImmediate)},function(e,n,g){(function(d){function e(a){"@babel/helpers - typeof";return e=
"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(a)}var c=g(1),n="undefined"!==typeof window?window:self;n.global=n;(function(a){a.currentFileString="/current";var b=0,g=0,m={},r=null;Module.chunkMax=200;var p=function(a,l,k,b,c){var f=new XMLHttpRequest;return CancellablePromise(function(d,e){f.open("GET",a,!0);f.responseType="arraybuffer";f.onerror=
function(){e("Network error occurred")};f.onload=function(){if(206===this.status&&f.response.byteLength===k){var a=new Int8Array(f.response);d(a)}else e("Download Failed")};var g=["bytes=",l,"-",l+k-1].join("");f.setRequestHeader("Range",g);c&&(f.withCredentials=c);b&&Object.keys(b).forEach(function(a){f.setRequestHeader(a,b[a])});f.send()},function(){f.abort()})},u=function(a){this.maxChunkNum=a;this.lruList=[];this.chunkMap={}};u.prototype={has:function(a){return a in this.chunkMap},insert:function(a,
l){this.lruList.length>=this.maxChunkNum&&(delete this.chunkMap[this.lruList[0]],this.lruList.shift());this.lruList.push(l);this.chunkMap[l]=a},get:function(a){var f=this.lruList.lastIndexOf(a);0<=f&&this.lruList.splice(f,1);this.lruList.push(a);return this.chunkMap[a]}};var z=function(a){this.file=a;this.filePosition=0;this.fileLength=a.size;this.chunkSize=1048576;this.chunkCache=new u(8);this.reader=new FileReaderSync};z.prototype={read:function(a,l,k){k=this.filePosition+k<=this.fileLength?k:this.fileLength-
this.filePosition;a=a.subarray(l,l+k);l=k;for(var f=this.filePosition%this.chunkSize,b=this.filePosition-f,c=0;0<k;){if(this.chunkCache.has(b))var d=this.chunkCache.get(b);else d=new Int8Array(this.reader.readAsArrayBuffer(this.file.slice(b,b+this.chunkSize))),this.chunkCache.insert(d,b);var e=d.length,g=f+k;g<=e?(a.set(d.subarray(f,g),c),this.filePosition+=k,k=0):(a.set(d.subarray(f),c),this.filePosition+=e-f,f=0,b=this.filePosition,k=g-e,c=l-k)}return l},seek:function(a){this.filePosition=a},close:function(){this.reader=
this.file=null},getPos:function(){return this.filePosition},getTotalSize:function(){return this.fileLength}};var t=function(a){this.data=a;this.position=0;this.length=this.data.length};t.prototype={read:function(a,l,k){k=this.position+k<=this.length?k:this.length-this.position;a=a.subarray(l,l+k);l=this.data.subarray(this.position,this.position+k);a.set(l);this.position+=k;return k},write:function(a,l,k){k=this.position+k<=this.length?k:this.length-this.position;a=a.subarray(l,l+k);this.data.subarray(this.position,
this.position+k).set(a);this.position+=k;return k},seek:function(a){this.position=a},close:function(){this.data=null},getPos:function(){return this.position},getTotalSize:function(){return this.length}};var w=function(a,l,k,b,c){"object"===e(a)?(this.lruList=a.lruList,this.chunkMap=a.chunkMap,this.length=a.length,this.url=a.url,this.customHeaders=a.customHeaders,this.withCredentials=a.withCredentials):(this.lruList=[],this.chunkMap={},this.chunkMap[l]=c,this.length=l,this.url=a,this.customHeaders=
k,this.withCredentials=b)};w.prototype={lruUpdate:function(a){var f=this.lruList.lastIndexOf(a);0<=f&&this.lruList.splice(f,1);this.lruList.push(a)},getChunk:function(a){var f=this;if(this.chunkMap[a])this.lruUpdate(a);else{var k=Math.min(a+1048576,this.length)-1,b=new XMLHttpRequest;b.open("GET",this.url,!1);b.responseType="arraybuffer";b.setRequestHeader("Range",["bytes=",a,"-",k].join(""));this.withCredentials&&(b.withCredentials=this.withCredentials);this.customHeaders&&Object.keys(this.customHeaders).forEach(function(a){b.setRequestHeader(a,
f.customHeaders[a])});b.send();if(200===b.status||206===b.status)this.writeChunk(new Int8Array(b.response),a);else throw Error("Failed to load data from");}return this.chunkMap[a]},hadChunk:function(a){return a in this.chunkMap},hasChunk:function(a){return this.chunkMap[a]},getCacheData:function(){return this.chunkMap[this.length]},getRequiredChunkOffsetArrays:function(a,l){var f={have:[],downloading:[],missing:[]};try{var b=Module.stackSave();var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DownloaderGetRequiredChunksSize(a,
l,c));var d=Module.getValue(c,"i8*");if(d){var e=Module._malloc(4*d);REX(Module._TRN_DownloaderGetRequiredChunks(a,l,e,d));for(a=0;a<d;++a){var g=Module.getValue(e+4*a,"i8*");this.hasChunk(g)?f.have.push(g):this.hadChunk(g)?f.missing.push(g):f.downloading.push(g)}}}finally{e&&Module._free(e),Module.stackRestore(b)}return f},keepVisibleChunks:function(a,l){for(var f=l.length,b=Module.chunkMax/2,c=0,d=0;d<f;++d){var e=this.getRequiredChunkOffsetArrays(a,l[d]),g=e.have,h=g.length;c+=h;if(c>b){this.keepChunks(g.slice(0,
h-c+b));break}this.keepChunks(e.have)}},getChunkAsync:function(a){var f=this,k=a+1048576,b=1048576;k>this.length&&(b-=k-this.length);return p(this.url,a,b,this.customHeaders,this.withCredentials).then(function(l){f.writeChunk(l,a)})},getChunks:function(a){for(var f=a.length,k=Array(f),b=0;b<f;++b)k[b]=this.getChunkAsync(a[b]);return CancellablePromise.all(k)},keepChunks:function(a){for(var f=a.length,k=0;k<f;++k)this.lruUpdate(a[k])},writeChunk:function(a,l,k){k=k||0;var f=this.chunkMap[l],b=a.length,
c=this.lruList.length>=Module.chunkMax&&!f;1048576!==b||a.buffer.byteLength!==b?(c?(f=this.lruList.shift(),c=this.chunkMap[f],1048576>c.length&&(c=new Int8Array(1048576)),this.chunkMap[f]=null):c=f?this.chunkMap[l]:new Int8Array(1048576),c.subarray(k,k+b).set(a),a=c):c&&(f=this.lruList.shift(),this.chunkMap[f]=null);this.lruUpdate(l);this.chunkMap[l]=a}};var A=function(a){this.chunkStorage=a;this.position=0;this.length=this.chunkStorage.length};A.prototype={read:function(a,l,k){var f=this.position+
k<=this.length,b=f?k:this.length-this.position;if(this.position<this.length){var c;for(c=0;c<b;){var d=this.position%1048576;var e=this.position-d;var g=b-c,h=a.subarray(l+c,l+c+g);if(this.chunkStorage.hadChunk(e))e=this.chunkStorage.getChunk(e).subarray(d,d+g),h.set(e),h=e.length,c+=h,this.position+=h;else for(this.position+=g;c<b;++c)h[c]=0}}if(!f){l+=b;if(k-=b)f=this.chunkStorage.getCacheData(),k>f.length&&(k=f.length),c=this.position-this.length,a=a.subarray(l,l+k),e=f.subarray(c,c+k),a.set(e);
this.position+=k;return b+k}return b},write:function(a,l,k){var f=this.position+k<=this.length,b=this.position+k<=this.length?k:this.length-this.position,c=a.subarray(l,l+b),d=this.position%1048576;this.chunkStorage.writeChunk(c,this.position-d,d);this.position+=b;if(!f){c=l+b;if(k-=b)l=this.chunkStorage.getCacheData(),k>l.length&&(k=l.length),f=this.position-this.length,c=a.subarray(c,c+k),l.subarray(f,f+k).set(c);this.position+=k;return b+k}return b},seek:function(a){this.position=a},close:function(){this.chunkStorage=
null},getPos:function(){return this.position},getTotalSize:function(){return this.length}};var q=function(a){this.docId=a;this.length=0;this.data=new Int8Array(8192);this.position=0};q.prototype={seek:function(a){this.position=a},close:function(){var a=new Int8Array(this.data.buffer.slice(0,this.length));Module.ChangeDocBackend(this.docId,{ptr:Module.GetDoc(this.docId),buffer:a});this.data=null},getPos:function(){return this.position},getTotalSize:function(){return this.length},read:function(a,l,
b){var f=this.data.length;b=b+l<f?b:f-l;a=a.subarray(l,l+b);l=this.data.subarray(this.position,this.position+b);a.set(l);this.position+=b;return b},write:function(a,l,b){for(var f=this.position+b,k=this.data.length;f>k;){k=Math.max(k*(16777216<k?1.5:2),f);var c=new Int8Array(k);c.set(this.data.subarray(0,this.length),0);this.data=c}a=a.subarray(l,l+b);this.data.set(a,this.position);this.position+=b;this.position>this.length&&(this.length=this.position);return b}};var B={IsSink:function(a){return 66===
(a.flags&255)},open:function(a){var f=a.path.slice(1);this.IsSink(a)?(a.provider=new q(f),Module.docs[f].sink=a.provider):a.provider=Module.docs[f].sink?new t(Module.docs[f].sink.data):Module.docs[f].chunkStorage?new A(Module.docs[f].chunkStorage):Module.docs[f].buffer?new t(Module.docs[f].buffer):new z(Module.docs[f].file)},close:function(a){a.provider.close()},read:function(a,b,k,c,d){return a.provider.read(b,k,c)},llseek:function(a,b,k){a=a.provider;1===k?b+=a.getPos():2===k&&(b=a.getTotalSize()+
b);if(0>b)throw new FS.ErrnoError(n.ERRNO_CODES.EINVAL);a.seek(b);return b},write:function(a,b,k,c,d){return c?a.provider.write(b,k,c):0}};n.THROW=function(a){throw{type:"InvalidPDF",message:a};};var J=function(f){return"Exception: \n\t Message: ".concat(a.GetJSStringFromCString(Module._TRN_GetMessage(f)),"\n\t Filename: ").concat(a.GetJSStringFromCString(Module._TRN_GetFileName(f)),"\n\t Function: ").concat(a.GetJSStringFromCString(Module._TRN_GetFunction(f)),"\n\t Linenumber: ").concat(a.GetJSStringFromCString(Module._TRN_GetLineNum(f)))};
a.GetErrToString=J;n.REX=function(a){a&&THROW(J(a))};a.Initialize=function(a){var b=Module.stackSave();a=a?Module.allocate(Module.intArrayFromString(a),"i8",Module.ALLOC_STACK):0;REX(Module._TRN_PDFNetInitialize(a));Module.stackRestore(b)};a.GetDoc=function(a){if(a in Module.docs)return Module.docs[a].ptr;throw{type:"InvalidDocReference",message:"Unable to access Document id=".concat(a,". The document appears to be invalid or was deleted.")};};a.clearDocBackend=function(){null!==Module.cachePtr?(Module.hasBufOwnership&&
Module._free(Module.cachePtr),Module.cachePtr=null):Module.docs[a.currentFileString]&&delete Module.docs[a.currentFileString]};a.MakeDev=function(a){if(!m[a]){var b=FS.makedev(3,5);FS.registerDevice(b,B);FS.mkdev(a,511,b);m[a]=!0}};a.CreateDocFileBackend=function(a,b){Module.MakeDev(b);var f=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.docs[b]={file:a};a=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreateFromFilePath(a,f));f=Module.getValue(f,"i8*");
Module.docs[b].ptr=f};a.InsertImageIntoDoc=function(a,b,k){var f=[];try{var l=Module.ElementBuilderCreate();f.push(function(){Module.ElementBuilderDestroy(l)});var c=Module.ElementWriterCreate();f.push(function(){Module.ElementWriterDestroy(c)});if(k){var d=k.width;var e=k.height}else d=Module.ImageGetImageWidth(b),e=Module.ImageGetImageHeight(b),k=d/e,k>612/792?(d=612,e=parseInt(d/k,10)):(e=792,d=parseInt(e*k,10));var g=Module.ElementBuilderCreateImage(l,b,0,0,d,e),h=Module.PDFDocPageCreate(a,d,
e);Module.ElementWriterBegin(c,h);Module.ElementWriterWritePlacedElement(c,g);Module.ElementWriterEnd(c);Module.PDFDocPagePushBack(a,h)}finally{f.reverse().forEach(function(a){a()})}};var F=function(a,b,k){"object"===e(a)?(this.m_pages=a.m_pages,this.m_has_named_dests=a.m_has_named_dests,this.m_finished_download=a.m_finished_download,this.m_has_outline=a.m_has_outline,this.m_current_page=a.m_current_page,this.m_id=a.m_id,this.size=a.size,this.timeout=a.timeout,this.eventPageArray=a.eventPageArray,
this.requirePageCallbacks=a.requirePageCallbacks):(this.m_pages=[],this.m_has_outline=this.m_finished_download=this.m_has_named_dests=!1,this.m_current_page=1,this.m_id=k,this.size=a,this.timeout=null,this.eventPageArray=[],this.requirePageCallbacks={});this.downloadUserData=Module.createDownloadUserData(b,k)};F.prototype={getJSUrl:function(){return Module.extractDownloadUserData(this.downloadUserData).url},getDocId:function(){return Module.extractDownloadUserData(this.downloadUserData).docId},destroyUserData:function(){this.m_id in
Module.withCredentials&&delete Module.withCredentials[this.m_id];this.m_id in Module.customHeadersMap&&delete Module.customHeadersMap[this.m_id];Module.destroyDownloadUserData(this.downloadUserData)}};a.createDownloadUserData=function(a,b){a=Module.allocate(Module.intArrayFromString(a),"i8",Module.ALLOC_NORMAL);var f=Module.allocate(8,"i8",Module.ALLOC_NORMAL);Module.setValue(f,a,"i8*");Module.setValue(f+4,parseInt(b,10),"i32");return this.downloadUserData=f};a.extractDownloadUserData=function(b){var f=
Module.getValue(b,"i8*");f=a.GetJSStringFromCString(f);b=Module.getValue(b+4,"i32").toString();return{url:f,docId:b}};a.destroyDownloadUserData=function(a){Module._free(Module.getValue(a,"i8*"));Module._free(a)};n.downloadDataMap={};Module.customHeadersMap={};Module.withCredentials={};a.GetDownloadData=function(a){if(a in downloadDataMap)return downloadDataMap[a]};a.DownloaderHint=function(a,b){var f=Module.GetDoc(a),c=downloadDataMap[f];b.currentPage&&(c.m_current_page=b.currentPage);if(b.visiblePages){var l=
b.visiblePages;for(b=0;b<l.length;++b)++l[b];Object.keys(c.requirePageCallbacks).forEach(function(a){c.requirePageCallbacks.hasOwnProperty(a)&&l.push(parseInt(a,10))});(b=Module.docs[a].chunkStorage)&&b.keepVisibleChunks(c.downloader,l);a=l.length;var d=Module.allocate(4*a,"i8",Module.ALLOC_STACK);for(b=0;b<a;++b)Module.setValue(d+4*b,l[b],"i32");REX(Module._TRN_PDFDocDownloadPages(f,d,a,1,0))}};a.RequirePage=function(a,b){return new Promise(function(f,c){c=Module.GetDoc(a);var k=downloadDataMap[c];
!k||k.m_finished_download||k.m_pages[b]?f():(b in k.requirePageCallbacks?k.requirePageCallbacks[b].push(f):k.requirePageCallbacks[b]=[f],f=Module.allocate(4,"i8",Module.ALLOC_STACK),Module.setValue(f,b,"i32"),Module._TRN_PDFDocDownloadPages(c,f,1,0,0))})};a.IsLinearizationValid=function(a){a=Module.GetDoc(a);if(a=downloadDataMap[a]){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DownloaderIsLinearizationValid(a.downloader,b));return 0!==Module.getValue(b,"i8")}return!1};a.ShouldRunRender=
function(a,b){a=Module.GetDoc(a);return(a=downloadDataMap[a])?a.m_finished_download?!0:a.m_pages[b]:!0};a.postPagesDownloadedEvent=function(a,b,c){a={pageDimensions:Module.GetPageDimensionsContentChangedList(a,c),pageNumbers:c};Module.postEvent(b,"pagesDownloaded",a);return a};a.createCallbacksStruct=function(a){if(!r){var b=function(a){return function(b){var c=arguments;b in downloadDataMap?a.apply(this,c):d(function(){b in downloadDataMap&&a.apply(this,c)},0)}};r={downloadProc:Module.addFunction(function(a,
b,c,f,l){f=Module.extractDownloadUserData(f);var k=f.docId;p(f.url,b,c,Module.customHeadersMap[k],Module.withCredentials[k]).then(function(f){k in Module.docs&&Module.docs[k].chunkStorage&&Module.docs[k].chunkStorage.writeChunk(f,b);Module._TRN_DownloadComplete(0,b,c,a)})},"viiiii"),notifyUpdatePage:Module.addFunction(b(function(a,b,c,f){var k=downloadDataMap[a];k.m_pages[b]=!0;var l=k.eventPageArray;if(b in k.requirePageCallbacks)for(c=k.requirePageCallbacks[b],f=0;f<c.length;++f)c[f]();k.timeout?
l.push(b):(l=k.eventPageArray=[b],k.timeout=setTimeout(function(){Module.postPagesDownloadedEvent(a,k.m_id,l);k.timeout=null},100))}),"viiii"),notifyUpdateOutline:Module.addFunction(b(function(a,b){a=downloadDataMap[a];a.m_has_outline||(a.m_has_outline=!0,Module.postEvent(a.m_id,"bookmarksUpdated",{}))}),"vii"),notifyUpdateNamedDests:Module.addFunction(b(function(a,b){a=downloadDataMap[a];a.m_has_named_dests||(a.m_has_named_dests=!0)}),"vii"),notifyUpdateThumb:Module.addFunction(b(function(a,b){}),
"viiii"),notifyFinishedDownload:Module.addFunction(b(function(a,b){a=downloadDataMap[a];a.m_finished_download||(a.m_finished_download=!0,Module.postEvent(a.m_id,"documentComplete",{}))}),"vii"),notifyDocumentError:Module.addFunction(function(a,b){},"viii"),getCurrentPage:Module.addFunction(function(a,b){return downloadDataMap[a].m_current_page},"iii")}}b=Module.allocate(40,"i8",Module.ALLOC_STACK);Module.setValue(b,r.downloadProc,"i8*");Module.setValue(b+4,a,"i8*");Module.setValue(b+8,r.notifyUpdatePage,
"i8*");Module.setValue(b+12,r.notifyUpdateOutline,"i8*");Module.setValue(b+16,r.notifyUpdateNamedDests,"i8*");Module.setValue(b+20,r.notifyUpdateThumb,"i8*");Module.setValue(b+24,r.notifyFinishedDownload,"i8*");Module.setValue(b+28,r.notifyDocumentError,"i8*");Module.setValue(b+32,r.getCurrentPage,"i8*");Module.setValue(b+36,0,"i8*");return b};a.CreateDocDownloaderBackend=function(a,b,c){var f=a.url,k=a.size,l=a.customHeaders,d=a.withCredentials;l&&(Module.customHeadersMap[c]=l);d&&(Module.withCredentials[c]=
d);var e=a.downloadData?new F(a.downloadData,f,c,l,d):new F(a.size,f,c,l,d);var g=Module.createCallbacksStruct(e.downloadUserData),h=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.MakeDev(c);a.chunkStorage?f=new w(a.chunkStorage):(a=new Int8Array(new ArrayBuffer(Math.ceil((a.size+1048576-1)/1048576/8))),f=new w(f,k,l,d,a));Module.docs[c]={chunkStorage:f};REX(Module._TRN_DownloaderCreate(g,k,Module.GetUStringFromJSString(c),h));e.downloader=Module.getValue(h,"i8*");if(k=Module._TRN_PDFDocCreateFromFilter(e.downloader,
b))Module._TRN_FilterDestroy(e.downloader),REX(k);b=Module.getValue(b,"i8*");Module.docs[c].ptr=b;Module.PDFDocInitSecurityHandler(b)&&REX(Module._TRN_PDFDocDownloaderInitialize(b,e.downloader));downloadDataMap[b]=e};a.CreateDocBackend=function(c,l){var f=c.value,d=c.extension,g=c.type,h=Module.allocate(4,"i8",Module.ALLOC_STACK),p=Module.stackSave();try{if(f)if("ptr"===g)Module.docs[l]={ptr:f};else{var m="object"===e(f)&&f.url;g=d&&"pdf"!==d;if(m)a.CreateDocDownloaderBackend(f,h,l);else{var n=f instanceof
ArrayBuffer;m=n?"buffer":"file";if(n&&(f=new Uint8Array(f),10485760>f.length+b&&!g)){b+=f.length;var q=f.length,t=Module._malloc(f.length);Module.HEAPU8.set(f,t);REX(Module._TRN_PDFDocCreateFromBuffer(t,q,h));var w=Module.getValue(h,"i8*");Module.docs[l]={ptr:w,bufPtr:t,bufPtrSize:q,ownership:!0};Module.docs[l].extension=d;return}Module.MakeDev(l);n={};n[m]=f;Module.docs[l]=n;if(g){if(c.pageSizes&&c.pageSizes.length)var r=c.pageSizes[0];else c.defaultPageSize&&(r=c.defaultPageSize);var u=Module.GetUStringFromJSString(l);
REX(Module._TRN_PDFDocCreate(h));w=Module.getValue(h,"i8*");var v=Module.ImageCreateFromFile(w,u);Module.InsertImageIntoDoc(w,v,r)}else{var A=Module.allocate(Module.intArrayFromString(l),"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreateFromFilePath(A,h));w=Module.getValue(h,"i8*")}Module.docs[l].extension=d;Module.docs[l].ptr=w}}else REX(Module._TRN_PDFDocCreate(h)),w=Module.getValue(h,"i8*"),Module.docs[l]={ptr:w},Module.docs[l].extension=d}finally{Module.stackRestore(p)}};a.ChangeDocBackend=
function(a,l){var f=Module.docs[a];f?(f.bufPtr&&f.ownership&&(Module._free(f.bufPtr),b-=f.bufPtrSize),delete Module.docs[a]):Object(c.d)("Trying to delete document ".concat(a," that does not exist."));Module.docs[a]=l};a.DeleteDoc=function(a){var f=Module.docs[a];f?(f.ptr&&(f.ptr in downloadDataMap&&(clearTimeout(downloadDataMap[f.ptr].timeout),downloadDataMap[f.ptr].destroyUserData(),delete downloadDataMap[f.ptr]),Module.PDFDocDestroy(f.ptr)),f.bufPtr&&f.ownership&&(Module._free(f.bufPtr),b-=f.bufPtrSize),
delete Module.docs[a]):Object(c.d)("Trying to delete document ".concat(a," that does not exist."))};a.CreateDoc=function(b,c){if("id"===b.type)return Module.docPtrStringToIdMap[b.value];if(!c){do c=(++g).toString();while(c in Module.docs)}Module.hasBufOwnership=!0;a.CreateDocBackend(b,c);return c};a.CreateEmptyDoc=function(){var a=(++g).toString(),b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreate(b));b=Module.getValue(b,"i8*");Module.docs[a]={ptr:b};return a};a.PDFDocCreateFromLayoutEls=
function(a){var b=new Uint8Array(a);a=Module._malloc(b.length);var c=Module.stackSave(),f=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.HEAPU8.set(b,a);b=Module._TRN_PDFDocCreateFromLayoutEls(a,b.length,f);f=Module.getValue(f,"i8*");Module._free(a);Module.stackRestore(c);REX(b);return f};a.GetPageCount=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetPageCount(a,b));return Module.getValue(b,"i8*")};a.GetPage=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);
REX(Module._TRN_PDFDocGetPage(a,b,c));a=Module.getValue(c,"i8*");Module.PageIsValid(a)||THROW("Trying to access page that doesn't exist at index ".concat(b));return a};a.PageGetPageWidth=function(a){var b=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetPageWidth(a,1,b));return Module.getValue(b,"double")};a.PageGetPageHeight=function(a){var b=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetPageHeight(a,1,b));return Module.getValue(b,"double")};a.PageGetDefaultMatrix=
function(a,b){var c=Module.allocate(48,"i8",Module.ALLOC_STACK);b||(b=0);REX(Module._TRN_PageGetDefaultMatrix(a,!0,1,b,c));return c};a.GetMatrixAsArray=function(a){for(var b=[],c=0;6>c;++c)b[c]=Module.getValue(a+8*c,"double");return b};a.PageGetPageInfo=function(a){var b=Module.allocate(48,"i8",Module.ALLOC_STACK),c=Module.allocate(8,"i8",Module.ALLOC_STACK),f=Module.allocate(8,"i8",Module.ALLOC_STACK),d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetPageInfo(a,!0,1,0,c,f,b,d));
return{rotation:Module.getValue(d,"i8*"),width:Module.getValue(c,"double"),height:Module.getValue(f,"double"),matrix:Module.GetMatrixAsArray(b)}};a.GetUStringFromJSString=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK),f=2*(a.length+1),d=Module.allocate(f,"i8",b?Module.ALLOC_NORMAL:Module.ALLOC_STACK);Module.stringToUTF16(a,d,f);a=Module._TRN_UStringCreateFromString(d,c);b&&Module._free(d);REX(a);return Module.getValue(c,"i8*")};a.GetJSStringFromUString=function(a){var b=Module.allocate(4,
"i16*",Module.ALLOC_STACK);REX(Module._TRN_UStringCStr(a,b));return Module.UTF16ToString(Module.getValue(b,"i16*"))};a.GetJSStringFromCString=function(a){return Module.UTF8ToString(a)};a.PDFNetSetResourceData=function(a){Module.res_ptr=Module._malloc(a.length);Module.HEAPU8.set(a,Module.res_ptr);REX(Module._TRN_PDFNetSetResourceData(Module.res_ptr,a.length));Module.res_ptr_size=a.length};a.PDFDocDestroy=function(a){REX(Module._TRN_PDFDocDestroy(a))};a.VectorGetSize=function(a){var b=Module.allocate(4,
"i8",Module.ALLOC_STACK);REX(Module._TRN_VectorGetSize(a,b));return Module.getValue(b,"i32")};a.VectorGetAt=function(a,b){var c=Module.allocate(1,"i8*",Module.ALLOC_STACK);REX(Module._TRN_VectorGetAt(a,b,c));return Module.getValue(c,"i8*")};a.VectorDestroy=function(a){REX(Module._TRN_VectorDestroy(a))};a.PDFRasterizerCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFRasterizerCreate(0,a));return Module.getValue(a,"i8*")};a.ExtractSeparationData=function(a){var b=
Module.getValue(a,"i8*"),c=Module.getValue(a+4,"i32"),f=Module.getValue(a+8,"i8*"),d=Module.HEAPU8[a+12],e=Module.HEAPU8[a+13],g=Module.HEAPU8[a+14];a=Module.HEAPU8[a+15];var h=new Uint8Array(c);h.set(Module.HEAPU8.subarray(b,b+c));b=Module.GetJSStringFromUString(f);return{color:[d,e,g,a],data:h.buffer,name:b}};a.PDFRasterizerRasterizeSeparations=function(a,b,c,d,e,g,h){var f=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFRasterizerRasterizeSeparations(a,b,c,d,e,g,h,f));a=Module.getValue(f,
"i8*");b=Module.VectorGetSize(a);c=Array(b);for(d=0;d<b;++d)e=Module.VectorGetAt(a,d),c[d]=Module.ExtractSeparationData(e);Module.VectorDestroy(a);return c};a.PageGetRotation=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetRotation(a,b));return Module.getValue(b,"i8*")};a.PageGetId=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetSDFObj(a,b));b=Module.getValue(b,"i8*");a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetObjNum(b,
a));a=Module.getValue(a,"i32");var c=Module.allocate(2,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetGenNum(b,c));c=Module.getValue(c,"i16");return"".concat(a,"-").concat(c)};a.PageSetRotation=function(a,b){REX(Module._TRN_PageSetRotation(a,b))};a.GetDefaultMatrixBox=function(a,b,c){var f=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetRotation(a,f));a=(Module.getValue(f,"i32")+c)%4;c=Module.allocate(48,"i8",Module.ALLOC_STACK);switch(a){case 0:return REX(Module._TRN_Matrix2DSet(c,
1,0,0,-1,-b.x1,b.y2)),c;case 1:return REX(Module._TRN_Matrix2DSet(c,0,1,1,0,-b.y1,-b.x1)),c;case 2:return REX(Module._TRN_Matrix2DSet(c,-1,0,0,1,b.x2,-b.y1)),c;case 3:return REX(Module._TRN_Matrix2DSet(c,0,-1,-1,0,b.y2,b.x2)),c}throw Error("Yikes, we don't support that rotation type");};a.Matrix2DMultBBox=function(a,b){var c=Module.allocate(8,"i8",Module.ALLOC_STACK),f=Module.allocate(8,"i8",Module.ALLOC_STACK);Module.setValue(c,b.x1,"double");Module.setValue(f,b.y1,"double");REX(Module._TRN_Matrix2DMult(a,
c,f));b.x1=Module.getValue(c,"double");b.y1=Module.getValue(f,"double");Module.setValue(c,b.x2,"double");Module.setValue(f,b.y2,"double");REX(Module._TRN_Matrix2DMult(a,c,f));b.x2=Module.getValue(c,"double");b.y2=Module.getValue(f,"double");return b};a.Matrix2DMult=function(a,b){var c=Module.allocate(8,"i8",Module.ALLOC_STACK),f=Module.allocate(8,"i8",Module.ALLOC_STACK);Module.setValue(c,b.x,"double");Module.setValue(f,b.y,"double");REX(Module._TRN_Matrix2DMult(a,c,f));b.x=Module.getValue(c,"double");
b.y=Module.getValue(f,"double");return b};a.Matrix2DConcat=function(a,b){var c=Module.getValue(b,"double"),f=Module.getValue(b+8,"double"),d=Module.getValue(b+16,"double"),e=Module.getValue(b+24,"double"),l=Module.getValue(b+32,"double");b=Module.getValue(b+40,"double");REX(Module._TRN_Matrix2DConcat(a,c,f,d,e,l,b))};a.Matrix2DSet=function(a,b,c,d,e,g,h){REX(Module._TRN_Matrix2DSet(a,b,c,d,e,g,h))};a.IteratorHasNext=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_IteratorHasNext(a,
b));return 0!==Module.getValue(b,"i8")};a.IteratorCurrent=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_IteratorCurrent(a,b));return Module.getValue(Module.getValue(b,"i8*"),"i8*")};a.IteratorNext=function(a){REX(Module._TRN_IteratorNext(a))};a.PageGetNumAnnots=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetNumAnnots(a,b));return Module.getValue(b,"i32")};a.PageGetAnnot=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);
REX(Module._TRN_PageGetAnnot(a,b,c));return Module.getValue(c,"i8*")};a.PageAnnotRemove=function(a,b){REX(Module._TRN_PageAnnotRemoveByIndex(a,b))};a.AnnotGetType=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_AnnotGetType(a,b));return Module.getValue(b,"i32")};a.AnnotHasAppearance=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_AnnotGetAppearance(a,0,0,b));return 0!==Module.getValue(b,"i8*")};a.AnnotRefreshAppearance=function(a){REX(Module._TRN_AnnotRefreshAppearance(a))};
a.ObjErase=function(a,b){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjEraseFromKey(a,b))};a.GetJSDoubleArrFromCore=function(a,b){for(var c=Array(b),d=0;d<b;++d)c[d]=Module.getValue(a,"double"),a+=8;return c};a.GetJSIntArrayFromCore=function(a,b){for(var c=Array(b),d=0;d<b;++d)c[d]=Module.getValue(a,"i32"),a+=4;return c};a.BookmarkIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkIsValid(a,b));return 0!==Module.getValue(b,
"i8")};a.BookmarkGetNext=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetNext(a,b));return Module.getValue(b,"i8*")};a.BookmarkGetFirstChild=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetFirstChild(a,b));return Module.getValue(b,"i8*")};a.BookmarkHasChildren=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkHasChildren(a,b));return 0!==Module.getValue(b,"i8")};a.BookmarkGetAction=function(a){var b=
Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetAction(a,b));return Module.getValue(b,"i8*")};a.BookmarkGetTitle=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetTitle(a,b));a=Module.getValue(b,"i8*");return Module.GetJSStringFromUString(a)};a.ActionIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionIsValid(a,b));return 0!==Module.getValue(b,"i8")};a.ActionGetType=function(a){var b=Module.allocate(4,
"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionGetType(a,b));return Module.getValue(b,"i32")};a.ActionGetDest=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionGetDest(a,b));return Module.getValue(b,"i8*")};a.DestinationIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationIsValid(a,b));return 0!==Module.getValue(b,"i8")};a.DestinationGetPage=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetPage(a,
b));return Module.getValue(b,"i8*")};a.PageIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageIsValid(a,b));return 0!==Module.getValue(b,"i8")};a.PageGetIndex=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetIndex(a,b));return Module.getValue(b,"i32")};a.ObjGetAsPDFText=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetAsPDFText(a,b));a=Module.getValue(b,"i8*");return Module.GetJSStringFromUString(a)};
a.ObjFindObj=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjFindObj(a,b,c));return Module.getValue(c,"i8*")};a.PDFDocGetFirstBookmark=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetFirstBookmark(a,b));return Module.getValue(b,"i8*")};a.DestinationGetExplicitDestObj=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetExplicitDestObj(a,
b));return Module.getValue(b,"i8*")};a.DestinationGetFitType=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetFitType(a,b));return Module.getValue(b,"i32")};a.ObjIsNumber=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjIsNumber(a,b));return 0!==Module.getValue(b,"i8")};a.ObjGetNumber=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetNumber(a,b));return Module.getValue(b,"double")};a.PDFDocGetRoot=
function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetRoot(a,b));return Module.getValue(b,"i8*")};a.ObjPutName=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);c=Module.allocate(Module.intArrayFromString(c),"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutName(a,b,c,d));return Module.getValue(d,"i8*")};a.ObjPutDict=function(a,b){b=Module.allocate(Module.intArrayFromString(b),"i8",
Module.ALLOC_STACK);var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutDict(a,b,c));return Module.getValue(c,"i8*")};a.ObjPutString=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);c=Module.allocate(Module.intArrayFromString(c),"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutString(a,b,c,d));return Module.getValue(d,"i8*")};a.ObjPut=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),
"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPut(a,b,c,d));return Module.getValue(d,"i8*")};a.ObjGetAt=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetAt(a,b,c));return Module.getValue(c,"i8*")};a.Matrix2DInverse=function(a){var b=Module.allocate(48,"i8",Module.ALLOC_STACK);REX(Module._TRN_Matrix2DInverse(a,b));return b};a.PDFDocInitSecurityHandler=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocInitSecurityHandler(a,
0,b));return 0!==Module.getValue(b,"i8")};a.PDFDocInitStdSecurityHandler=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocInitStdSecurityHandlerUString(a,Module.GetUStringFromJSString(b),c));return 0!==Module.getValue(c,"i8")};a.PDFDocInsertPages=function(a,b,c,d,e){REX(Module._TRN_PDFDocInsertPageSet(a,b,c,d,e?1:0,0))};a.PDFDocMovePages=function(a,b,c){REX(Module._TRN_PDFDocMovePageSet(a,b,a,c,0,0))};a.PDFDocGetPageIterator=function(a,b){var c=Module.allocate(4,
"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetPageIterator(a,b,c));return Module.getValue(c,"i8*")};a.PDFDocPageRemove=function(a,b){REX(Module._TRN_PDFDocPageRemove(a,b))};a.PDFDocPageCreate=function(a,b,c){var d=Module.allocate(40,"i8",Module.ALLOC_STACK);Module.setValue(d,0,"double");Module.setValue(d+8,0,"double");Module.setValue(d+16,b,"double");Module.setValue(d+24,c,"double");Module.setValue(d+32,0,"double");b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocPageCreate(a,
d,b));return Module.getValue(b,"i8*")};a.PDFDocPageInsert=function(a,b,c){REX(Module._TRN_PDFDocPageInsert(a,b,c))};a.PageSetCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageSetCreate(a));return Module.getValue(a,"i8*")};a.PageSetCreateRange=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageSetCreateRange(c,a,b));return Module.getValue(c,"i8*")};a.PageSetAddPage=function(a,b){REX(Module._TRN_PageSetAddPage(a,b))};a.ElementBuilderCreate=
function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementBuilderCreate(a));return Module.getValue(a,"i8*")};a.ElementBuilderDestroy=function(a){REX(Module._TRN_ElementBuilderDestroy(a))};a.ElementBuilderCreateImage=function(a,b,c,d,e,g){var k=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementBuilderCreateImageScaled(a,b,c,d,e,g,k));return Module.getValue(k,"i8*")};a.ElementWriterCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementWriterCreate(a));
return Module.getValue(a,"i8*")};a.ElementWriterDestroy=function(a){REX(Module._TRN_ElementWriterDestroy(a))};a.ElementWriterBegin=function(a,b){REX(Module._TRN_ElementWriterBeginOnPage(a,b,1,1,1,0))};a.ElementWriterWritePlacedElement=function(a,b){REX(Module._TRN_ElementWriterWritePlacedElement(a,b))};a.ElementWriterEnd=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementWriterEnd(a,b))};a.ImageGetImageWidth=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);
REX(Module._TRN_ImageGetImageWidth(a,b));return Module.getValue(b,"i32")};a.ImageGetImageHeight=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageGetImageHeight(a,b));return Module.getValue(b,"i32")};a.ImageCreateFromMemory2=function(a,b,c){var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageCreateFromMemory2(a,b,c,0,d));return Module.getValue(d,"i8*")};a.ImageCreateFromFile=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageCreateFromFile(a,
b,0,c));return Module.getValue(c,"i8*")};a.PDFDocPagePushBack=function(a,b){REX(Module._TRN_PDFDocPagePushBack(a,b))};a.PDFDocHasOC=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocHasOC(a,b));return 0!==Module.getValue(b,"i8")};a.PDFDocGetOCGConfig=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetOCGConfig(a,b));return Module.getValue(b,"i8*")};a.OCGContextCreate=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_OCGContextCreateFromConfig(a,
b));return Module.getValue(b,"i8*")};a.UStringDestroy=function(a){REX(Module._TRN_UStringDestroy(a))};a.PDFDocFDFUpdate=function(a,b,c){if(c){for(var d=Object.keys(c),e=d.length,k=Module._malloc(8*e),f=0;f<e;++f){var g=8*f,h=d[f],p=Module.GetDoc(c[h]);h=Module.GetUStringFromJSString(h);Module.setValue(k+g,p,"i8*");Module.setValue(k+g+4,h,"i8*")}REX(Module._TRN_PDFDocFDFUpdateAppearanceDocs(a,b,k,e))}else REX(Module._TRN_PDFDocFDFUpdate(a,b))};a.FDFDocDestroy=function(a){REX(Module._TRN_FDFDocDestroy(a))}})(n.Module)}).call(this,
g(7).setImmediate)},function(e,n,g){function d(e){"@babel/helpers - typeof";return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},d(e)}(function(e){e.SetupPDFNetFunctions=function(c){Module._IB_=[];for(var g=function A(a){if("object"===d(a)&&null!==a)if("undefined"!==typeof a.byteLength){var b=Module._IB_.length;Module._IB_[b]=new Uint8Array(a);
a={handle:b,isArrayBufferRef:!0}}else Object.keys(a).forEach(function(b){a.hasOwnProperty(b)&&(a[b]=A(a[b]))});return a},a=function q(a){"object"===d(a)&&null!==a&&(a.buffer?a=a.buffer.slice(a.byteOffset,a.byteOffset+a.length):a.isArrayBufferRef?a=Module._IB_[a.handle].buffer:Object.keys(a).forEach(function(b){a.hasOwnProperty(b)&&(a[b]=q(a[b]))}));return a},b=Module._TRN_EMSCreateSharedWorkerInstance(),h,m=Module._TRN_EMSWorkerInstanceGetFunctionIterator(b),n=function(c,d){return new Promise(function(e,
h){c=g(c);var p=c.docId;p=p?Module.GetDoc(p):0;(p=Module.EMSCallSharedFunction(b,d,p))?h({type:"InvalidPDF",message:Module.GetErrToString(p)}):(h=Module.EMSGetLastResponse(b),h=a(h),e(h))})};h=Module._TRN_EMSFunctionIteratorGetNextCommandName(m);)h=Module.GetJSStringFromCString(h),e.queue.onAsync(h,n);Module._TRN_EMSFunctionIteratorDestroy(m);if(Module._TRN_EMSCreatePDFNetWorkerInstance){var p={};m=function(a,b){c.on(a,b);p[a]=!0};Module.docPtrStringToIdMap={};var u=function(a){if(a in Module.docPtrStringToIdMap)return Module.docPtrStringToIdMap[a];
throw Error("Couldn't find document ".concat(a));};e.queue.onAsync("PDFDoc.RequirePage",function(a){return Module.RequirePage(u(a.docId),a.pageNum)});m("pdfDocCreateFromBuffer",function(a){a=Module.CreateDoc({type:"array",value:a.buf});var b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});m("PDFDoc.destroy",function(a){a=u(a.auto_dealloc_obj);Module.DeleteDoc(a)});m("PDFDoc.saveMemoryBuffer",function(a){var b=u(a.doc);return Module.SaveHelper(Module.GetDoc(b),b,a.flags).slice(0)});
m("pdfDocCreate",function(){var a=Module.CreateDoc({type:"new"}),b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});m("GetPDFDoc",function(a){a=a.docId;var b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});m("ExtractPDFNetLayersContext",function(a){var b=a.layers;a=Module.GetDoc(a.docId);var c=0;b?c=Module.EMSCreateUpdatedLayersContext(a,b):Module.PDFDocHasOC(a)&&(b=Module.PDFDocGetOCGConfig(a),c=Module.OCGContextCreate(b));return c.toString(16)});
var z=Module._TRN_EMSCreatePDFNetWorkerInstance();m=Module._TRN_EMSWorkerInstanceGetFunctionIterator(z);for(n=function(b){return new Promise(function(c,d){b=g(b);var e=Module.EMSCallPDFNetFunction(z,b);e?d(Module.GetErrToString(e)):(d=Module.EMSGetLastResponse(z),d=a(d),c(d))})};h=Module._TRN_EMSFunctionIteratorGetNextCommandName(m);)if(h=Module.GetJSStringFromCString(h),!p[h])c.onAsync(h,n);Module._TRN_EMSFunctionIteratorDestroy(m)}}})(self)},function(e,n,g){e=g(6);var d=g.n(e),m=g(16),c=g(17),r=
g(11),a=g(1);(function(b){var e=null;b.basePath="../";var g=function(){var c=b.pdfWorkerPath||"";b.workerBasePath&&(b.basePath=b.workerBasePath);var d=b.isFull,e=d?"full/":"lean/",g=b.wasmDisabled;Object(a.c)();b.overriddenPdfWorkerPath&&(c=b.overriddenPdfWorkerPath,b.basePath="../",!Object(r.b)()||g)&&(c="");b.basePath=b.externalPath?b.externalPath:b.basePath+"external/";var h=b.isAndroid&&d&&!g?"Android":"";Object(r.a)("".concat(c+e,"PDFNetC").concat(h),{"Wasm.wasm":d?1E7:4E6,"Wasm.js.mem":1E5,
".js.mem":6E6,".mem":d?2E6:4E5},g)};b.EmscriptenPDFManager=function(){};b.EmscriptenPDFManager.prototype={OnInitialized:function(b){Module.loaded?b():(Module.initCb=function(){b()},Object(a.b)("worker","PDFNet is not initialized yet!"))},NewDoc:function(a,b){return new Promise(function(c,d){try{c(Module.loadDoc(a,b))}catch(w){d(w)}})},Initialize:function(a,c,d,e){a&&(Module.TOTAL_MEMORY=a);Module.memoryInitializerPrefixURL=c;Module.asmjsPrefix=d;b.basePath=e;g()},shouldRunRender:function(a){return Module.ShouldRunRender(a.docId,
a.pageIndex+1)}};var n={setup:function(c){function g(c){var d=c.data,k=c.action;var f="GetCanvas"===k||"GetCanvasPartial"===k?r.shouldRunRender(d):!0;if(f){e=c;var g=c.asyncCallCapability;Object(a.b)("Memory","Worker running command: ".concat(k));q.actionMap[k](d,c).then(function(a){"BeginOperation"!==e.action&&(e=null);g.resolve(a)},function(a){e=null;g.reject(a)})}else b.deferredQueue.queue(c),n()}function h(a){a.asyncCallCapability=createPromiseCapability();e||q.length?q.queue(a):g(a);return a.asyncCallCapability.promise}
function p(a){self.shouldResize&&r.Initialize(a.options.workerHeapSize,a.options.pdfResourcePath,a.options.pdfAsmPath,a.options.parentUrl);Module.chunkMax=a.options.chunkMax;if(a.array instanceof Uint8Array){var d=255===a.array[0];c.postMessageTransfers=d;"response"in new XMLHttpRequest?r.OnInitialized(function(){b.SetupPDFNetFunctions(c);F();c.send("test",{supportTypedArray:!0,supportTransfers:d})}):c.send("test",!1)}else c.send("test",!1)}function n(){m.a.setImmediate(function(){if((!e||"BeginOperation"!==
e.action)&&q.length&&!e){var a=q.dequeue();g(a)}})}var r=new b.EmscriptenPDFManager,q,v=!1,y=!1;Module.workerMessageHandler=c;var F=function(){v?y||(c.send("workerLoaded",{}),y=!0):v=!0};r.OnInitialized(F);(function(){b.queue=q=new d.a({strategy:d.a.ArrayStrategy,comparator:function(a,b){return a.priority===b.priority?a.callbackId-b.callbackId:b.priority-a.priority}});b.deferredQueue=new d.a({strategy:d.a.ArrayStrategy,comparator:function(a,b){return a.priority===b.priority?a.callbackId-b.callbackId:
b.priority-a.priority}});q.actionMap={};q.onAsync=function(a,b){c.onAsync(a,h);q.actionMap[a]=b}})();c.on("test",p);c.on("InitWorker",p);var f=function(a){e&&a(e)&&(Module.cancelCurrent(),e=null);q.removeAllMatching(a,function(a){a.asyncCallCapability.reject({type:"Cancelled",message:"Operation was cancelled due to a change affecting the loaded document."})})},l=function(a){f(function(b){return b.data&&b.data.docId===a})};c.on("UpdatePassword",function(a){return Module.UpdatePassword(a.docId,a.password)});
c.on("LoadRes",function(a){Module.loadResources(a.array,a.l);return{}});c.on("DownloaderHint",function(a){Module.DownloaderHint(a.docId,a.hint)});c.on("IsLinearized",function(a){return Module.IsLinearizationValid(a.docId)});c.onNextAsync(n);q.onAsync("NewDoc",function(a){return r.NewDoc(a)});q.onAsync("GetCanvas",function(b){Object(a.b)("workerdetails","Run GetCanvas PageIdx: ".concat(b.pageIndex," Width: ").concat(b.width));Object(a.b)("Memory","loadCanvas with potential memory usage ".concat(b.width*
b.height*8));return Module.loadCanvas(b.docId,b.pageIndex,b.width,b.height,b.rotation,null,b.layers,b.renderOptions)});q.onAsync("GetCanvasPartial",function(b){Object(a.b)("Memory","GetCanvasPartial with potential memory usage ".concat(b.width*b.height*8));return Module.loadCanvas(b.docId,b.pageIndex,b.width,b.height,b.rotation,b.bbox,b.layers,b.renderOptions)});q.onAsync("SaveDoc",function(a){return Module.SaveDoc(a.docId,a.xfdfString,a.finishedWithDocument,a.printDocument,a.flags,a.watermarks,a.apdocs)});
q.onAsync("SaveDocFromFixedElements",function(a){return Module.SaveDocFromFixedElements(a.bytes,a.xfdfString,a.flags,a.watermarks)});q.onAsync("MergeXFDF",function(a){return Module.MergeXFDF(a.docId,a.xfdf,a.apdocs)});q.onAsync("InsertPages",function(a){return Module.InsertPages(a.docId,a.doc,a.pageArray,a.destPos,a.insertBookmarks,a.skipUpdateEvent)});q.onAsync("MovePages",function(a){return Module.MovePages(a.docId,a.pageArray,a.destPos)});q.onAsync("RemovePages",function(a){return Module.RemovePages(a.docId,
a.pageArray,a.skipUpdateEvent)});q.onAsync("RotatePages",function(a){return Module.RotatePages(a.docId,a.pageArray,a.rotation)});q.onAsync("ExtractPages",function(a){return Module.ExtractPages(a.docId,a.pageArray,a.xfdfString,a.watermarks,a.apdocs)});q.onAsync("CropPages",function(a){return Module.CropPages(a.docId,a.pageArray,a.topMargin,a.botMargin,a.leftMargin,a.rightMargin)});q.onAsync("InsertBlankPages",function(a){return Module.InsertBlankPages(a.docId,a.pageArray,a.width,a.height)});q.onAsync("BeginOperation",
function(){return Promise.resolve()});q.onAsync("RequirePage",function(a,b){return Module.RequirePage(a.docId,a.pageNum)});c.on("FinishOperation",function(){if(e&&"BeginOperation"===e.action)e=null,n();else throw{message:"Operation has not started."};});c.on("DeleteDocument",function(a){a=a.docId;l(a);Module.DeleteDoc(a)});c.on("GetCanvasProgressive",function(c){if(e&&e.callbackId===c.callbackId){Object(a.b)("worker","Progressive request in progress");var d=Module.GetCurrentCanvasData(!0)}else{if(q.find({priority:0,
callbackId:c.callbackId}))throw Object(a.b)("worker","Progressive request Queued"),{type:"Queued",message:"Rendering has not started yet."};if(b.deferredQueue.find({priority:0,callbackId:c.callbackId}))throw Object(a.b)("worker","Progressive request Deferred"),{type:"Queued",message:"Rendering has not started yet."};}if(!d)throw Object(a.b)("worker","Progressive request invalid (render already complete)"),{type:"Unavailable",message:"Rendering is complete or was cancelled."};return d});c.on("actionCancel",
function(c){e&&e.callbackId===c.callbackId?(Object(a.b)("workerdetails","Cancelled Current Operation"),Module.cancelCurrent()&&(e=null,n())):(Object(a.b)("workerdetails","Cancelled queued operation"),q.remove({priority:0,callbackId:c.callbackId}),b.deferredQueue.remove({priority:0,callbackId:c.callbackId}))})}};b.onmessage=function(d){if("init"===d.data.action){var e=d.data.shouldResize;b.shouldResize=e;b.isFull=d.data.isFull;b.isAndroid=d.data.isAndroid;b.wasmDisabled=!d.data.wasm;b.externalPath=
d.data.externalPath;if(d=d.data.pdfWorkerPath)b.overriddenPdfWorkerPath=d;e||g();e=new c.a("worker_processor",self);Object(a.a)(e);n.setup(e)}}})("undefined"===typeof window?self:window)}]);}).call(this || window)

View File

@ -1,33 +0,0 @@
(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(c){var b=0;return function(){return b<c.length?{done:!1,value:c[b++]}:{done:!0}}};$jscomp.arrayIterator=function(c){return{next:$jscomp.arrayIteratorImpl(c)}};$jscomp.makeIterator=function(c){var b="undefined"!=typeof Symbol&&Symbol.iterator&&c[Symbol.iterator];return b?b.call(c):$jscomp.arrayIterator(c)};
$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,b,l){c!=Array.prototype&&c!=Object.prototype&&(c[b]=l.value)};
$jscomp.polyfill=function(c,b,l,g){if(b){l=$jscomp.global;c=c.split(".");for(g=0;g<c.length-1;g++){var a=c[g];a in l||(l[a]={});l=l[a]}c=c[c.length-1];g=l[c];b=b(g);b!=g&&null!=b&&$jscomp.defineProperty(l,c,{configurable:!0,writable:!0,value:b})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(c){function b(){this.batch_=null}function l(k){return k instanceof a?k:new a(function(a,b){a(k)})}if(c&&!$jscomp.FORCE_POLYFILL_PROMISE)return c;b.prototype.asyncExecute=function(k){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(k);return this};b.prototype.asyncExecuteBatch_=function(){var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})};var g=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(k){g(k,
0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var a=0;a<k.length;++a){var b=k[a];k[a]=null;try{b()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};b.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};var a=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var a=this.createResolveAndReject_();try{k(a.resolve,a.reject)}catch(u){a.reject(u)}};a.prototype.createResolveAndReject_=
function(){function a(a){return function(k){d||(d=!0,a.call(b,k))}}var b=this,d=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};a.prototype.resolveTo_=function(k){if(k===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof a)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var b=null!=k;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};a.prototype.resolveToNonPromiseObj_=function(a){var b=
void 0;try{b=a.then}catch(u){this.reject_(u);return}"function"==typeof b?this.settleSameAsThenable_(b,a):this.fulfill_(a)};a.prototype.reject_=function(a){this.settle_(2,a)};a.prototype.fulfill_=function(a){this.settle_(1,a)};a.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};a.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
0;a<this.onSettledCallbacks_.length;++a)d.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};var d=new b;a.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};a.prototype.settleSameAsThenable_=function(a,b){var d=this.createResolveAndReject_();try{a.call(b,d.resolve,d.reject)}catch(q){d.reject(q)}};a.prototype.then=function(b,d){function g(a,b){return"function"==typeof a?function(b){try{k(a(b))}catch(v){c(v)}}:
b}var k,c,l=new a(function(a,b){k=a;c=b});this.callWhenSettled_(g(b,k),g(d,c));return l};a.prototype.catch=function(a){return this.then(void 0,a)};a.prototype.callWhenSettled_=function(a,b){function g(){switch(k.state_){case 1:a(k.result_);break;case 2:b(k.result_);break;default:throw Error("Unexpected state: "+k.state_);}}var k=this;null==this.onSettledCallbacks_?d.asyncExecute(g):this.onSettledCallbacks_.push(g)};a.resolve=l;a.reject=function(b){return new a(function(a,d){d(b)})};a.race=function(b){return new a(function(a,
d){for(var g=$jscomp.makeIterator(b),k=g.next();!k.done;k=g.next())l(k.value).callWhenSettled_(a,d)})};a.all=function(b){var d=$jscomp.makeIterator(b),g=d.next();return g.done?l([]):new a(function(a,b){function k(b){return function(d){c[b]=d;x--;0==x&&a(c)}}var c=[],x=0;do c.push(void 0),x++,l(g.value).callWhenSettled_(k(c.length-1),b),g=d.next();while(!g.done)})};return a},"es6","es3");
(function(c){function b(g){if(l[g])return l[g].exports;var a=l[g]={i:g,l:!1,exports:{}};c[g].call(a.exports,a,a.exports,b);a.l=!0;return a.exports}var l={};b.m=c;b.c=l;b.d=function(g,a,d){b.o(g,a)||Object.defineProperty(g,a,{enumerable:!0,get:d})};b.r=function(b){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"});Object.defineProperty(b,"__esModule",{value:!0})};b.t=function(g,a){a&1&&(g=b(g));if(a&8||a&4&&"object"===typeof g&&g&&g.__esModule)return g;
var d=Object.create(null);b.r(d);Object.defineProperty(d,"default",{enumerable:!0,value:g});if(a&2&&"string"!=typeof g)for(var k in g)b.d(d,k,function(a){return g[a]}.bind(null,k));return d};b.n=function(g){var a=g&&g.__esModule?function(){return g["default"]}:function(){return g};b.d(a,"a",a);return a};b.o=function(b,a){return Object.prototype.hasOwnProperty.call(b,a)};b.p="/core";return b(b.s=1)})([function(c,b,l){(function(g){l.d(b,"b",function(){return p});l.d(b,"a",function(){return E});l.d(b,
"c",function(){return r});l.d(b,"d",function(){return D});var a=l(4);l.n(a);var d=window,k=function(){return function(a,n){this.fs_q=this.fs_read_counter=0;this.needCallback=!1;this.fs_read_total=a;this.fs_q=n}}();d.AsyncFSHack={readingAsyncFS:0,readingCounter:0,readCalls:{}};var c=d.Module,u=0,q={},z=function(a){d.AsyncFSHack.readingAsyncFS=1;a in d.AsyncFSHack.readCalls||(d.AsyncFSHack.readCalls[a]=new k(d.AsyncFSHack.read_total,d.AsyncFSHack.q))},A=function(a){var n=d.AsyncFSHack.readCalls[a];
++n.fs_read_counter;n.fs_read_counter>=n.fs_read_total&&(n.needCallback?c._finish_do_call_operation(n.fs_q):d.AsyncFSHack.readingAsyncFS=0,delete d.AsyncFSHack.readCalls[a])},C=function(a,n,b,h,f,e){this.lruList=[];this.chunkMap={};this.chunkReader={};this.chunkMap[n]=h;this.length=n;this.cacheDataSize=b;this.url=a;this.customHeaders=f;this.withCredentials=e;this.chunkSize=1048576};C.prototype={lruUpdate:function(a){var b=this.lruList.lastIndexOf(a);0<=b&&this.lruList.splice(b,1);this.lruList.push(a)},
downloadChunk:function(a,b){var n=!1;a in this.chunkReader||(this.chunkReader[a]=[],n=!0);b&&this.chunkReader[a].push(b);if(n){b=Math.min(a+this.chunkSize,this.length)-1;var h=new XMLHttpRequest;h.open("GET",this.url,!0);h.responseType="arraybuffer";h.setRequestHeader("Range",["bytes=",a,"-",b].join(""));this.withCredentials&&(h.withCredentials=this.withCredentials);if(this.customHeaders)for(var f in this.customHeaders)h.setRequestHeader(f,this.customHeaders[f]);h.send();var e=this;h.onload=function(){if(200===
h.status||206===h.status){var b=new Int8Array(h.response);e.writeChunk(b,a)}else window.parent.parentWarn("Failed to load data from"+e.url),b=new Int8Array(0);for(var n=e.chunkReader[a],f=0;f<n.length;f++)n[f](b);delete e.chunkReader[a]}}},hadChunk:function(a){return a in this.chunkMap},hasChunk:function(a){return this.chunkMap[a]},getCacheData:function(){return this.chunkMap[this.length]},updateCache:function(a){for(var b=0;b<a.length;b++){var t=a[b];this.hadChunk(t)&&(this.hasChunk(t)?this.lruUpdate(t):
this.downloadChunk(t))}},wrapChunkRetrieval:function(a,b,d){this.downloadChunk(a,function(a){d(a,b)})},downloadChunks:function(a,b){for(var n=a.length,h=Array(n),f=0,e=function(a,e){h[e]=a;++f;f===n&&b(h)},m=0;m<n;++m)this.wrapChunkRetrieval(a[m][0],m,e)},readFromCache:function(a,b,d){var h=[],f=0,e=Math.floor(b/this.chunkSize)*this.chunkSize,m=b%this.chunkSize;b=this.chunkSize-m;b=b>d?d:b;this.chunkMap[e]?(m=this.chunkMap[e].subarray(m,m+b),a.set(m),this.lruUpdate(e)):this.hadChunk(e)?h.push([e,
m,b,f]):(m=new Int8Array(b),a.set(m));for(d-=b;0<d;)f+=b,e+=this.chunkSize,b=this.chunkSize>d?d:this.chunkSize,this.chunkMap[e]?(m=this.chunkMap[e].subarray(0,b),a.set(m,f),this.lruUpdate(e)):this.hadChunk(e)?h.push([e,0,b,f]):(m=new Int8Array(b),a.set(m,f)),d-=b;return h},writeChunk:function(a,b,d){d=d||0;var h=this.chunkMap[b],f=a.length,e=this.lruList.length>=c.chunkMax&&!h;f!==this.chunkSize||a.buffer.byteLength!==f?(e?(h=this.lruList.shift(),e=this.chunkMap[h],e.length<this.chunkSize&&(e=new Int8Array(this.chunkSize)),
this.chunkMap[h]=null):e=h?this.chunkMap[b]:new Int8Array(this.chunkSize),e.subarray(d,d+f).set(a),a=e):e&&(h=this.lruList.shift(),this.chunkMap[h]=null);this.lruUpdate(b);this.chunkMap[b]=a}};var B=function(a){this.chunkStorage=a;this.position=0;this.length=this.chunkStorage.length};B.prototype={read:function(a,b,c,h){var f=h+c<=this.length,e=f?c:this.length-h,m=d.AsyncFSHack.readingCounter.toString();if(0<e){z(m);var n=a.subarray(b,b+e);var g=this.chunkStorage.readFromCache(n,h,e);g.length?(d.AsyncFSHack.readCalls[m].needCallback=
!0,this.chunkStorage.downloadChunks(g,function(a){for(var b=0;b<a.length;++b){var e=g[b],f=a[b].subarray(e[1],e[1]+e[2]);n.set(f,e[3])}A(m)})):f&&A(m);h+=e}else e=0;if(!f){z(m);b+=e;if(c-=e){f=this.chunkStorage.getCacheData();c>f.length&&(c=f.length);var t=h-this.length;c-=t;a=a.subarray(b,b+c);b=f.subarray(t,t+c);a.set(b)}g&&g.length||A(m);h+=c;e+=c}this.position=h;return e},write:function(a,b,d,h){var f=h+d<=this.length,e=h+d<=this.length?d:this.length-h;if(0<e){var m=a.subarray(b,b+e),c=h%1048576;
this.chunkStorage.writeChunk(m,h-c,c);h+=e}else e=0;if(!f){m=b+e;if(d-=e)b=this.chunkStorage.getCacheData(),d>b.length&&(d=b.length),f=h-this.length,d-=f,m=a.subarray(m,m+d),b.subarray(f,f+d).set(m);h+=d;e+=d}this.position=h;return e},seek:function(a){this.position=a},close:function(){this.chunkStorage=null},getPos:function(){return this.position},getTotalSize:function(){return this.length+this.chunkStorage.cacheDataSize}};var w=function(a){this.file=a;this.filePosition=0;this.fileLength=a.size;this.readerPool=
[]};w.prototype={readFromFile:function(a,b,d){var h=this.readerPool.length?this.readerPool.pop():new FileReader;var f=this;h.onload=function(){var a=new Int8Array(h.result);f.readerPool.push(h);d(a)};h.readAsArrayBuffer(this.file.slice(b,b+a))},read:function(a,b,c,h){c=h+c<=this.fileLength?c:this.fileLength-h;if(0<c){var f=d.AsyncFSHack.readingCounter.toString();z(f);var e=a.subarray(b,b+c);d.AsyncFSHack.readCalls[f].needCallback=!0;this.readFromFile(c,h,function(a){e.set(a);A(f)});this.filePosition=
h+c}return c},seek:function(a){this.filePosition=a},close:function(){this.reader=this.file=null},getPos:function(){return this.filePosition},getTotalSize:function(){return this.fileLength}};var v={open:function(a){var b=a.path.slice(1);a.provider=c.docs[b].chunkStorage?new B(c.docs[b].chunkStorage):new w(c.docs[b])},close:function(a){a.provider.close()},read:function(a,b,d,h,f){return a.provider.read(b,d,h,f)},llseek:function(a,b,c){a=a.provider;1===c?b+=a.getPos():2===c&&(b=a.getTotalSize()+b);if(0>
b)throw new d.FS.ErrnoError(g.ERRNO_CODES.EINVAL);a.seek(b);return b},write:function(a,b,d,c,f){return c?a.provider.write(b,d,c,f):0}},y=function(a){if(!q[a]){var b=d.FS.makedev(3,5);d.FS.registerDevice(b,v);d.FS.mkdev(a,511,b);q[a]=!0}},p=function(a,b,d,h){var f="docdev"+ ++u;y(f);var e=Math.ceil((b+1048576-1)/1048576/8),m=new Int8Array(new ArrayBuffer(e));a=new C(a,b,e,m,d,h);c.docs[f]={chunkStorage:a};return f},E=function(a){var b="docdev"+ ++u;y(b);c.docs[b]=a;return b},r=function(a){d.FS.unlink(a);
c.docs[a]&&delete c.docs[a]},D=function(a){var b=Object.prototype.toString.call(a);return"object"===typeof a&&null!==a&&("[object File]"===b||"[object Blob]"===b)}}).call(this,l(3))},function(c,b,l){c.exports=l(2)},function(c,b,l){function g(a){"@babel/helpers - typeof";return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(a)}l.r(b);var a=l(0),
d=window,k;d.Module.onRuntimeInitialized=function(){x=!0;q||(r.handleMessage({action:"workerLoaded",data:{}}),q=!0);r.sendTestResponse();d.PThread.receiveObjectTransfer=function(){var a=d.Module.GetNextResponseMessage();d.getThreadedWasmWorker().handleMessage(a);d.Module.PopNextResponseMessage()}};d.Module.locateFile=function(a){return k+a};d.Module.INITIAL_MEMORY=100663296;var x=!1,u=!1,q=!1,z=1,A=function f(a){if("object"===g(a)&&null!==a)if("undefined"!==typeof a.byteLength){var b="mainThreadArrayBuffer".concat(z);
z++;a=new Uint8Array(a);d.FS.writeFile(b,a);a={handle:b,isArrayBufferRef:!0}}else for(b in a)a.hasOwnProperty(b)&&(a[b]=f(a[b]));return a},C=function e(a){if("object"===g(a)&&null!==a)if(a.isArrayBufferRef){var b=d.FS.readFile(a.handle,{encoding:"binary"});d.FS.unlink(a.handle);a=b.buffer}else if(a.constructor===Uint8Array)a=(new Uint8Array(a)).buffer;else for(b in a)a.hasOwnProperty(b)&&(a[b]=e(a[b]));return a},B=0,w={},v={},y={},p={},E=function(b){var e=b.action,c=b.data,f=b.callbackId;if("NewDoc"===
e&&c)e=c.value,"url"===c.type?(e=Object(a.b)(e.url,e.size,e.customHeaders,e.withCredentials),v[f]=e,c.value.docDevId=e):Object(a.d)(e)&&(e=Object(a.a)(e),v[f]=e,c.value=e);else if("SaveDoc"!==e&&"SaveDocFromFixedElements"!==e||!c)"GetCanvas"===e&&c?(f=c.docId,f in p&&(e=p[f],e in d.Module.docs&&(e=d.Module.docs[e],"chunkStorage"in e&&(c=d.Module.GetRequiredChunkOffsetArray(f,c.pageIndex+1),c.length&&e.chunkStorage.updateCache(c))))):"DeleteDocument"===e&&c&&(c=c.docId,c in p&&(y[f]=c));else{e=c.docId;
var g=c.finishedWithDocument,k="docFilePath".concat(B);w[f]={filePath:k,docId:e,finishedWithDocument:g};B++;c.filePath=k}d.Module.HandleMessage(A(b))},r;d.MainThreadLabel=!0;d.getThreadedWasmWorker=function(){return r};var D=function(a){window.parent.loadThreadedBackend(a,{"Wasm.wasm":1E7,"Wasm.js":2E5},window);this.eventListeners=[]};D.prototype={addEventListener:function(a,b){if("message"===a)this.eventListeners.push(b);else throw Error("event type ".concat(a," is not supported by WasmWorker."));
},removeEventListener:function(a,b){"message"===a&&(this.eventListeners=this.eventListeners.filter(function(a){return a!==b}))},sendTestResponse:function(){x&&u&&(this.handleMessage({action:"test",data:{supportTypedArray:!0,supportTransfers:!0}}),this.postMessage=E)},postMessage:function(a){if("test"===a.action)u=!0,this.sendTestResponse();else throw Error("Need to do handshake first!");},handleMessage:function(b){var e=b.callbackId,c=b.data;if(e in v)c&&c.docId?p[c.docId]=v[e]:Object(a.c)(v[e]),
delete v[e];else if(e in w){if(!b.hasOwnProperty("error")){var f=w[e].filePath,g=d.FS.readFile(f,{encoding:"binary"});c.fileData=g.buffer;c=w[e].docId;c in p&&(Object(a.c)(p[c]),delete p[c]);c&&!w[e].finishedWithDocument?p[c]=f:d.FS.unlink(f)}delete w[e]}else e in y&&(f=y[e],f in p&&(Object(a.c)(p[f]),delete p[f]),delete y[e]);b=C(b);window.parent.postMessage(b)},reset:function(){r=null;q=u=x=!1}};var t=function(){var a={},b=new Promise(function(b,c){a.resolve=b;a.reject=c});a.promise=b;return a}(),
n=function m(a){"object"===g(a.data)&&"action"in a.data&&"workerLoaded"===a.data.action&&(t.resolve(r),r.removeEventListener("message",m))};window.addEventListener("message",function(a){a=a.data;"loadWasmWorker"===a.action?(k=a.isFull?"full/":"lean/",r=new D("".concat(a.wasmSource,"PDFNetThreaded")),q||r.addEventListener("message",n)):r.postMessage(a)});d.getWasmWorkerPromise=function(){return t.promise}},function(c,b){b=function(){return this}();try{b=b||(new Function("return this"))()}catch(l){"object"===
typeof window&&(b=window)}c.exports=b},function(c,b){window.Module={chunkMax:100,docs:{}}}]);}).call(this || window)

Binary file not shown.

View File

@ -1 +0,0 @@
"use strict";var Module={};if(typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string"){var nodeWorkerThreads=require("worker_threads");var parentPort=nodeWorkerThreads.parentPort;parentPort.on("message",function(data){onmessage({data:data})});var nodeFS=require("fs");Object.assign(global,{self:global,require:require,Module:Module,location:{href:__filename},Worker:nodeWorkerThreads.Worker,importScripts:function(f){(0,eval)(nodeFS.readFileSync(f,"utf8"))},postMessage:function(msg){parentPort.postMessage(msg)},performance:global.performance||{now:function(){return Date.now()}}})}var initializedJS=false;function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=function(info,receiveInstance){var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};function moduleLoaded(){}self.onmessage=function(e){try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob==="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}moduleLoaded()}else if(e.data.cmd==="objectTransfer"){Module["PThread"].receiveObjectTransfer(e.data)}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.threadInfoStruct,0,0);var max=e.data.stackBase;var top=e.data.stackBase+e.data.stackSize;Module["establishStackSpace"](top,max);Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInit();if(!initializedJS){Module["___embind_register_native_and_builtin_types"]();initializedJS=true}try{var result=Module["invokeEntryPoint"](e.data.start_routine,e.data.arg);if(Module["keepRuntimeAlive"]()){Module["PThread"].setExitStatus(result)}else{Module["PThread"].threadExit(result)}}catch(ex){if(ex==="Canceled!"){Module["PThread"].threadCancel()}else if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["PThread"].threadExit(ex.status)}}else{Module["PThread"].threadExit(-2);throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["PThread"].threadCancel()}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processThreadQueue"){if(Module["_pthread_self"]()){Module["_emscripten_current_thread_process_queued_calls"]()}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){err("worker.js onmessage() captured an uncaught exception: "+ex);if(ex&&ex.stack)err(ex.stack);throw ex}};

View File

@ -1 +0,0 @@
<html><head><script type="module" src="./WasmThread.js"></script></head><body></body></html>

View File

@ -1 +0,0 @@
<html><head><script type="module" src="./WasmThread.js"></script></head><body></body></html>

Binary file not shown.

View File

@ -1 +0,0 @@
"use strict";var Module={};if(typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string"){var nodeWorkerThreads=require("worker_threads");var parentPort=nodeWorkerThreads.parentPort;parentPort.on("message",function(data){onmessage({data:data})});var nodeFS=require("fs");Object.assign(global,{self:global,require:require,Module:Module,location:{href:__filename},Worker:nodeWorkerThreads.Worker,importScripts:function(f){(0,eval)(nodeFS.readFileSync(f,"utf8"))},postMessage:function(msg){parentPort.postMessage(msg)},performance:global.performance||{now:function(){return Date.now()}}})}var initializedJS=false;function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=function(info,receiveInstance){var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onmessage=function(e){try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob==="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.threadInfoStruct,0,0);var max=e.data.stackBase;var top=e.data.stackBase+e.data.stackSize;Module["establishStackSpace"](top,max);Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInit();if(!initializedJS){Module["___embind_register_native_and_builtin_types"]();initializedJS=true}try{var result=Module["invokeEntryPoint"](e.data.start_routine,e.data.arg);if(Module["keepRuntimeAlive"]()){Module["PThread"].setExitStatus(result)}else{Module["__emscripten_thread_exit"](result)}}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}postMessage({"cmd":"cancelDone"})}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processThreadQueue"){if(Module["_pthread_self"]()){Module["_emscripten_current_thread_process_queued_calls"]()}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){err("worker.js onmessage() captured an uncaught exception: "+ex);if(ex&&ex.stack)err(ex.stack);throw ex}};

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
var threadInfoStruct=0;var selfThreadId=0;var parentThreadId=0;var Module={};function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:selfThreadId})}var err=threadPrintErr;this.alert=threadAlert;Module["instantiateWasm"]=function(info,receiveInstance){var instance=new WebAssembly.Instance(Module["wasmModule"],info);Module["wasmModule"]=null;receiveInstance(instance);return instance.exports};this.onmessage=function(e){try{if(e.data.cmd==="load"){Module["DYNAMIC_BASE"]=e.data.DYNAMIC_BASE;Module["DYNAMICTOP_PTR"]=e.data.DYNAMICTOP_PTR;Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob==="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}postMessage({"cmd":"loaded"})}else if(e.data.cmd==="objectTransfer"){Module["PThread"].receiveObjectTransfer(e.data)}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;threadInfoStruct=e.data.threadInfoStruct;Module["__register_pthread_ptr"](threadInfoStruct,0,0);selfThreadId=e.data.selfThreadId;parentThreadId=e.data.parentThreadId;var max=e.data.stackBase+e.data.stackSize;var top=e.data.stackBase;Module["establishStackSpace"](top,max);Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].setThreadStatus(Module["_pthread_self"](),1);try{var result=Module["dynCall_ii"](e.data.start_routine,e.data.arg);if(!Module["getNoExitRuntime"]())Module["PThread"].threadExit(result)}catch(ex){if(ex==="Canceled!"){Module["PThread"].threadCancel()}else if(ex!="unwind"){Atomics.store(Module["HEAPU32"],threadInfoStruct+4>>2,ex instanceof Module["ExitStatus"]?ex.status:-2);Atomics.store(Module["HEAPU32"],threadInfoStruct+0>>2,1);Module["_emscripten_futex_wake"](threadInfoStruct+0,2147483647);if(!(ex instanceof Module["ExitStatus"]))throw ex}}}else if(e.data.cmd==="cancel"){if(threadInfoStruct){Module["PThread"].threadCancel()}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processThreadQueue"){if(threadInfoStruct){Module["_emscripten_current_thread_process_queued_calls"]()}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){err("worker.js onmessage() captured an uncaught exception: "+ex);if(ex.stack)err(ex.stack);throw ex}};if(typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string"){self={location:{href:__filename}};var onmessage=this.onmessage;var nodeWorkerThreads=require("worker_threads");Worker=nodeWorkerThreads.Worker;var parentPort=nodeWorkerThreads.parentPort;parentPort.on("message",function(data){onmessage({data:data})});var nodeFS=require("fs");var nodeRead=function(filename){return nodeFS.readFileSync(filename,"utf8")};function globalEval(x){global.require=require;global.Module=Module;eval.call(null,x)}importScripts=function(f){globalEval(nodeRead(f))};postMessage=function(msg){parentPort.postMessage(msg)};if(typeof performance==="undefined"){performance={now:function(){return Date.now()}}}}

View File

@ -1,38 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){/*
Pikaday
Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/
(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[19],{384:function(ia,da){!function(e,ba){if("object"==typeof da){try{var ea=require("moment")}catch(aa){}ia.exports=ba(ea)}else"function"==typeof define&&define.amd?define(function(e){try{ea=e("moment")}catch(ha){}return ba(ea)}):e.Pikaday=ba(e.moment)}(this,function(e){function ba(f){var h=this,r=h.config(f);h._onMouseDown=function(e){if(h._v){var f=(e=e||window.event).target||e.srcElement;if(f)if(fa(f,"is-disabled")||(!fa(f,"pika-button")||
fa(f,"is-empty")||fa(f.parentNode,"is-disabled")?fa(f,"pika-prev")?h.prevMonth():fa(f,"pika-next")&&h.nextMonth():(h.setDate(new Date(f.getAttribute("data-pika-year"),f.getAttribute("data-pika-month"),f.getAttribute("data-pika-day"))),r.bound&&ra(function(){h.hide();r.blurFieldOnSelect&&r.field&&r.field.blur()},100))),fa(f,"pika-select"))h._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}};h._onChange=function(e){var f=(e=e||window.event).target||e.srcElement;f&&(fa(f,
"pika-select-month")?h.gotoMonth(f.value):fa(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:r.field&&r.field.blur();break;case 37:e.preventDefault();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)}};h._onInputChange=function(f){var w;f.firedBy!==h&&(w=r.parse?r.parse(r.field.value,r.format):na?(w=e(r.field.value,r.format,
r.formatStrict))&&w.isValid()?w.toDate():null:new Date(Date.parse(r.field.value)),n(w)&&h.setDate(w),h._v||h.show())};h._onInputFocus=function(){h.show()};h._onInputClick=function(){h.show()};h._onInputBlur=function(){var e=la.activeElement;do if(fa(e,"pika-single"))return;while(e=e.parentNode);h._c||(h._b=ra(function(){h.hide()},50));h._c=!1};h._onClick=function(e){var f=(e=e||window.event).target||e.srcElement;if(e=f){!pa&&fa(f,"pika-select")&&(f.onchange||(f.setAttribute("onchange","return;"),
ja(f,"change",h._onChange)));do if(fa(e,"pika-single")||e===r.trigger)return;while(e=e.parentNode);h._v&&f!==r.trigger&&e!==r.trigger&&h.hide()}};h.el=la.createElement("div");h.el.className="pika-single"+(r.isRTL?" is-rtl":"")+(r.theme?" "+r.theme:"");ja(h.el,"mousedown",h._onMouseDown,!0);ja(h.el,"touchend",h._onMouseDown,!0);ja(h.el,"change",h._onChange);r.keyboardInput&&ja(la,"keydown",h._onKeyChange);r.field&&(r.container?r.container.appendChild(h.el):r.bound?la.body.appendChild(h.el):r.field.parentNode.insertBefore(h.el,
r.field.nextSibling),ja(r.field,"change",h._onInputChange),r.defaultDate||(na&&r.field.value?r.defaultDate=e(r.field.value,r.format).toDate():r.defaultDate=new Date(Date.parse(r.field.value)),r.setDefaultDate=!0));f=r.defaultDate;n(f)?r.setDefaultDate?h.setDate(f,!0):h.gotoDate(f):h.gotoDate(new Date);r.bound?(this.hide(),h.el.className+=" is-bound",ja(r.trigger,"click",h._onInputClick),ja(r.trigger,"focus",h._onInputFocus),ja(r.trigger,"blur",h._onInputBlur)):this.show()}function ea(e,f,n,r,w,x){var y,
z,aa=e._o,ba=n===aa.minYear,ca=n===aa.maxYear,ea='<div id="'+x+'" class="pika-title" role="heading" aria-live="assertive">',fa=!0,da=!0;var ha=[];for(x=0;12>x;x++)ha.push('<option value="'+(n===w?x-f:12+x-f)+'"'+(x===r?' selected="selected"':"")+(ba&&x<aa.minMonth||ca&&x>aa.maxMonth?'disabled="disabled"':"")+">"+aa.i18n.months[x]+"</option>");w='<div class="pika-label">'+aa.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+ha.join("")+"</select></div>";h(aa.yearRange)?
(x=aa.yearRange[0],y=aa.yearRange[1]+1):(x=n-aa.yearRange,y=1+n+aa.yearRange);for(ha=[];x<y&&x<=aa.maxYear;x++)x>=aa.minYear&&ha.push('<option value="'+x+'"'+(x===n?' selected="selected"':"")+">"+x+"</option>");return z='<div class="pika-label">'+n+aa.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ha.join("")+"</select></div>",aa.showMonthAfterYear?ea+=z+w:ea+=w+z,ba&&(0===r||aa.minMonth>=r)&&(fa=!1),ca&&(11===r||aa.maxMonth<=r)&&(da=!1),0===f&&(ea+='<button class="pika-prev'+
(fa?"":" is-disabled")+'" type="button">'+aa.i18n.previousMonth+"</button>"),f===e._o.numberOfMonths-1&&(ea+='<button class="pika-next'+(da?"":" is-disabled")+'" type="button">'+aa.i18n.nextMonth+"</button>"),ea+"</div>"}function aa(e,f,h,n){return'<tr class="pika-row'+(h?" pick-whole-week":"")+(n?" is-selected":"")+'">'+(f?e.reverse():e).join("")+"</tr>"}function da(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||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+'">'+e.day+"</button></td>"}function ca(e,f,h){for(f+=e.firstDay;7<=f;)f-=7;return h?e.i18n.weekdaysShort[f]:e.i18n.weekdays[f]}function z(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 w(e,f,h){var n;la.createEvent?((n=la.createEvent("HTMLEvents")).initEvent(f,!0,!1),n=y(n,h),e.dispatchEvent(n)):la.createEventObject&&(n=la.createEventObject(),n=y(n,h),e.fireEvent("on"+
f,n))}function y(e,f,r){var w,x;for(w in f)(x=void 0!==e[w])&&"object"==typeof f[w]&&null!==f[w]&&void 0===f[w].nodeName?n(f[w])?r&&(e[w]=new Date(f[w].getTime())):h(f[w])?r&&(e[w]=f[w].slice(0)):e[w]=y({},f[w],r):!r&&x||(e[w]=f[w]);return e}function r(e){n(e)&&e.setHours(0,0,0,0)}function n(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())}function h(e){return/Array/.test(Object.prototype.toString.call(e))}function f(e,f){var h;e.className=(h=(" "+e.className+" ").replace(" "+
f+" "," ")).trim?h.trim():h.replace(/^\s+|\s+$/g,"")}function x(e,f){fa(e,f)||(e.className=""===e.className?f:e.className+" "+f)}function fa(e,f){return-1!==(" "+e.className+" ").indexOf(" "+f+" ")}function ia(e,f,h,n){pa?e.removeEventListener(f,h,!!n):e.detachEvent("on"+f,h)}function ja(e,f,h,n){pa?e.addEventListener(f,h,!!n):e.attachEvent("on"+f,h)}var na="function"==typeof e,pa=!!window.addEventListener,la=window.document,ra=window.setTimeout,oa={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",
position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!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,blurFieldOnSelect:!0,
i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",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=y({},oa,!0));e=y(this._o,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,n(e.minDate)||(e.minDate=!1),n(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),
e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),h(e.yearRange))?(f=(new Date).getFullYear()-10,e.yearRange[0]=parseInt(e.yearRange[0],10)||f,e.yearRange[1]=parseInt(e.yearRange[1],10)||f):(e.yearRange=Math.abs(parseInt(e.yearRange,10))||oa.yearRange,100<e.yearRange&&(e.yearRange=100));return e},toString:function(f){return f=f||this._o.format,n(this._d)?this._o.toString?this._o.toString(this._d,f):na?e(this._d).format(f):this._d.toDateString():""},getMoment:function(){return na?
e(this._d):null},setMoment:function(f,h){na&&e.isMoment(f)&&this.setDate(f.toDate(),h)},getDate:function(){return n(this._d)?new Date(this._d.getTime()):null},setDate:function(e,f){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",w(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),n(e)){var h=this._o.minDate,x=this._o.maxDate;n(h)&&e<h?e=h:n(x)&&e>x&&(e=x);this._d=new Date(e.getTime());r(this._d);this.gotoDate(this._d);this._o.field&&
(this._o.field.value=this.toString(),w(this._o.field,"change",{firedBy:this}));f||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var f=!0;if(n(e)){if(this.calendars){f=new Date(this.calendars[0].year,this.calendars[0].month,1);var h=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=e.getTime();h.setMonth(h.getMonth()+1);h.setDate(h.getDate()-1);f=r<f.getTime()||h.getTime()<r}f&&(this.calendars=
[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(e,f){var h,n=this.getDate()||new Date;f=864E5*parseInt(f);"add"===e?h=new Date(n.valueOf()+f):"subtract"===e&&(h=new Date(n.valueOf()-f));this.setDate(h)},adjustCalendars:function(){this.calendars[0]=z(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=z({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?(r(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=
e.getMonth()):(this._o.minDate=oa.minDate,this._o.minYear=oa.minYear,this._o.minMonth=oa.minMonth,this._o.startRange=oa.startRange);this.draw()},setMaxDate:function(e){e instanceof Date?(r(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=oa.maxDate,this._o.maxYear=oa.maxYear,this._o.maxMonth=oa.maxMonth,this._o.endRange=oa.endRange);this.draw()},setStartRange:function(e){this._o.startRange=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));h="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(n=0;n<f.numberOfMonths;n++)e+='<div class="pika-lendar">'+ea(this,n,this.calendars[n].year,this.calendars[n].month,this.calendars[0].year,h)+this.render(this.calendars[n].year,this.calendars[n].month,h)+"</div>";this.el.innerHTML=
e;f.bound&&"hidden"!==f.field.type&&ra(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,h,n,r,w,y,z,aa,ba;if(!this._o.container){if(this.el.style.position="absolute",h=e=this._o.trigger,n=this.el.offsetWidth,r=this.el.offsetHeight,w=window.innerWidth||la.documentElement.clientWidth,y=window.innerHeight||la.documentElement.clientHeight,z=window.pageYOffset||la.body.scrollTop||
la.documentElement.scrollTop,aa=!0,ba=!0,"function"==typeof e.getBoundingClientRect){var ca=(h=e.getBoundingClientRect()).left+window.pageXOffset;var ea=h.bottom+window.pageYOffset}else for(ca=h.offsetLeft,ea=h.offsetTop+h.offsetHeight;h=h.offsetParent;)ca+=h.offsetLeft,ea+=h.offsetTop;(this._o.reposition&&ca+n>w||-1<this._o.position.indexOf("right")&&0<ca-n+e.offsetWidth)&&(ca=ca-n+e.offsetWidth,aa=!1);(this._o.reposition&&ea+r>y+z||-1<this._o.position.indexOf("top")&&0<ea-r-e.offsetHeight)&&(ea=
ea-r-e.offsetHeight,ba=!1);this.el.style.left=ca+"px";this.el.style.top=ea+"px";x(this.el,aa?"left-aligned":"right-aligned");x(this.el,ba?"bottom-aligned":"top-aligned");f(this.el,aa?"right-aligned":"left-aligned");f(this.el,ba?"top-aligned":"bottom-aligned")}},render:function(e,f,h){var w=this._o,x=new Date,y=[31,0==e%4&&0!=e%100||0==e%400?29:28,31,30,31,30,31,31,30,31,30,31][f],z=(new Date(e,f,1)).getDay(),ba=[],ea=[];r(x);0<w.firstDay&&0>(z-=w.firstDay)&&(z+=7);for(var fa=0===f?11:f-1,ha=11===
f?0:f+1,ia=0===f?e-1:e,ja=11===f?e+1:e,oa=[31,0==ia%4&&0!=ia%100||0==ia%400?29:28,31,30,31,30,31,31,30,31,30,31][fa],ua=y+z,la=ua;7<la;)la-=7;ua+=7-la;var ma,na,sa,pa;la=!1;for(var ra=0,xa=0;ra<ua;ra++){var ya=new Date(e,f,ra-z+1),Fa=!!n(this._d)&&ya.getTime()===this._d.getTime(),Sa=ya.getTime()===x.getTime(),Qa=-1!==w.events.indexOf(ya.toDateString()),Ra=ra<z||ra>=y+z,eb=ra-z+1,Mb=f,Cb=e,Nb=w.startRange&&w.startRange.getTime()===ya.getTime(),Hb=w.endRange&&w.endRange.getTime()===ya.getTime(),tb=
w.startRange&&w.endRange&&w.startRange<ya&&ya<w.endRange;Ra&&(ra<z?(eb=oa+eb,Mb=fa,Cb=ia):(eb-=y,Mb=ha,Cb=ja));var ib;!(ib=w.minDate&&ya<w.minDate||w.maxDate&&ya>w.maxDate)&&(ib=w.disableWeekends)&&(ib=ya.getDay(),ib=0===ib||6===ib);ya={day:eb,month:Mb,year:Cb,hasEvent:Qa,isSelected:Fa,isToday:Sa,isDisabled:ib||w.disableDayFn&&w.disableDayFn(ya),isEmpty:Ra,isStartRange:Nb,isEndRange:Hb,isInRange:tb,showDaysInNextAndPreviousMonths:w.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:w.enableSelectionDaysInNextAndPreviousMonths};
w.pickWholeWeek&&Fa&&(la=!0);ea.push(da(ya));7==++xa&&(w.showWeekNumber&&ea.unshift((ma=ra-z,na=f,sa=e,pa=void 0,pa=new Date(sa,0,1),'<td class="pika-week">'+Math.ceil(((new Date(sa,na,ma)-pa)/864E5+pa.getDay()+1)/7)+"</td>")),ba.push(aa(ea,w.isRTL,w.pickWholeWeek,la)),ea=[],xa=0,la=!1)}f=[];w.showWeekNumber&&f.push("<th></th>");for(e=0;7>e;e++)f.push('<th scope="col"><abbr title="'+ca(w,e)+'">'+ca(w,e,!0)+"</abbr></th>");w="<thead><tr>"+(w.isRTL?f.reverse():f).join("")+"</tr></thead>";return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+
h+'">'+w+("<tbody>"+ba.join("")+"</tbody>")+"</table>"},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),f(this.el,"is-hidden"),this._o.bound&&(ja(la,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&ia(la,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",x(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();ia(this.el,"mousedown",this._onMouseDown,!0);ia(this.el,"touchend",this._onMouseDown,!0);ia(this.el,"change",this._onChange);e.keyboardInput&&ia(la,"keydown",this._onKeyChange);e.field&&(ia(e.field,"change",this._onInputChange),e.bound&&(ia(e.trigger,"click",this._onInputClick),ia(e.trigger,"focus",this._onInputFocus),ia(e.trigger,"blur",this._onInputBlur)));this.el.parentNode&&
this.el.parentNode.removeChild(this.el)}},ba})}}]);}).call(this || window)

View File

@ -1,7 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{396:function(ia,da,e){(function(e){function ba(f){this.Ef=f=f||{};if(Array.isArray(f.table)){var e=[];f.table.forEach(function(f,h){e[f.charCodeAt(0)]=h});f.e6=f.table;f.B3=e}}var aa=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.");}},da=e.allocUnsafe||
function(f){return new e(f)},ca=function(){return"undefined"===typeof Uint8Array?function(f){return Array(f)}:function(f){return new Uint8Array(f)}}(),z=String.fromCharCode(0),w=z+z+z+z,y=aa("<~").rw(0),r=aa("~>").rw(0),n=function(){var f=Array(85),e;for(e=0;85>e;e++)f[e]=String.fromCharCode(33+e);return f}(),h=function(){var f=Array(256),e;for(e=0;85>e;e++)f[33+e]=e;return f}();z=ia.exports=new ba;ba.prototype.encode=function(f,h){var r=ca(5),w=f,x=this.Ef,y,z;"string"===typeof w?w=aa(w,"binary"):
w instanceof e||(w=aa(w));h=h||{};if(Array.isArray(h)){f=h;var ba=x.Sz||!1;var ea=x.wH||!1}else f=h.table||x.e6||n,ba=void 0===h.Sz?x.Sz||!1:!!h.Sz,ea=void 0===h.wH?x.wH||!1:!!h.wH;x=0;var ha=Math.ceil(5*w.length/4)+4+(ba?4:0);h=da(ha);ba&&(x+=h.write("<~",x));var ia=y=z=0;for(ha=w.length;ia<ha;ia++){var Fa=w.vJ(ia);z*=256;z+=Fa;y++;if(!(y%4)){if(ea&&538976288===z)x+=h.write("y",x);else if(z){for(y=4;0<=y;y--)Fa=z%85,r[y]=Fa,z=(z-Fa)/85;for(y=0;5>y;y++)x+=h.write(f[r[y]],x)}else x+=h.write("z",x);
y=z=0}}if(y)if(z){w=4-y;for(ia=4-y;0<ia;ia--)z*=256;for(y=4;0<=y;y--)Fa=z%85,r[y]=Fa,z=(z-Fa)/85;for(y=0;5>y;y++)x+=h.write(f[r[y]],x);x-=w}else for(ia=0;ia<y+1;ia++)x+=h.write(f[0],x);ba&&(x+=h.write("~>",x));return h.slice(0,x)};ba.prototype.decode=function(f,n){var x=this.Ef,z=!0,ba=!0,ca,ea,ha;n=n||x.B3||h;if(!Array.isArray(n)&&(n=n.table||n,!Array.isArray(n))){var ia=[];Object.keys(n).forEach(function(f){ia[f.charCodeAt(0)]=n[f]});n=ia}z=!n[122];ba=!n[121];f instanceof e||(f=aa(f));ia=0;if(z||
ba){var oa=0;for(ha=f.length;oa<ha;oa++){var ya=f.vJ(oa);z&&122===ya&&ia++;ba&&121===ya&&ia++}}var Fa=0;ha=Math.ceil(4*f.length/5)+4*ia+5;x=da(ha);if(4<=f.length&&f.rw(0)===y){for(oa=f.length-2;2<oa&&f.rw(oa)!==r;oa--);if(2>=oa)throw Error("Invalid ascii85 string delimiter pair.");f=f.slice(2,oa)}oa=ca=ea=0;for(ha=f.length;oa<ha;oa++)ya=f.vJ(oa),z&&122===ya?Fa+=x.write(w,Fa):ba&&121===ya?Fa+=x.write(" ",Fa):void 0!==n[ya]&&(ea*=85,ea+=n[ya],ca++,ca%5||(Fa=x.Tha(ea,Fa),ca=ea=0));if(ca){f=5-ca;for(oa=
0;oa<f;oa++)ea*=85,ea+=84;oa=3;for(ha=f-1;oa>ha;oa--)Fa=x.Uha(ea>>>8*oa&255,Fa)}return x.slice(0,Fa)};z.Kia=new ba({table:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split("")});z.jia=new ba({Sz:!0});z.EX=ba}).call(this,e(403).Buffer)}}]);}).call(this || window)

View File

@ -1,32 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{403:function(ia,da,e){(function(ba){function ea(){try{var f=new Uint8Array(1);f.__proto__={__proto__:Uint8Array.prototype,eka:function(){return 42}};return"function"===typeof f.subarray&&0===f.subarray(1,1).byteLength}catch(wa){return!1}}function aa(f,e){if((ha.Me?2147483647:1073741823)<e)throw new RangeError("Invalid typed array length");ha.Me?(f=new Uint8Array(e),f.__proto__=ha.prototype):(null===f&&(f=new ha(e)),f.length=
e);return f}function ha(f,e,h){if(!(ha.Me||this instanceof ha))return new ha(f,e,h);if("number"===typeof f){if("string"===typeof e)throw Error("If encoding is specified then the first argument must be a string");return w(this,f)}return ca(this,f,e,h)}function ca(f,e,n,w){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer){e.byteLength;if(0>n||e.byteLength<n)throw new RangeError("'offset' is out of bounds");
if(e.byteLength<n+(w||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===w?new Uint8Array(e):void 0===w?new Uint8Array(e,n):new Uint8Array(e,n,w);ha.Me?(f=e,f.__proto__=ha.prototype):f=y(f,e);e=f}else if("string"===typeof e){w=f;f=n;if("string"!==typeof f||""===f)f="utf8";if(!ha.hS(f))throw new TypeError('"encoding" must be a valid string encoding');n=h(e,f)|0;w=aa(w,n);e=w.write(e,f);e!==n&&(w=w.slice(0,e));e=w}else e=r(f,e);return e}function z(f){if("number"!==typeof f)throw new TypeError('"size" argument must be a number');
if(0>f)throw new RangeError('"size" argument must not be negative');}function w(f,e){z(e);f=aa(f,0>e?0:n(e)|0);if(!ha.Me)for(var h=0;h<e;++h)f[h]=0;return f}function y(f,e){var h=0>e.length?0:n(e.length)|0;f=aa(f,h);for(var r=0;r<h;r+=1)f[r]=e[r]&255;return f}function r(f,e){if(ha.isBuffer(e)){var h=n(e.length)|0;f=aa(f,h);if(0===f.length)return f;e.copy(f,0,0,h);return f}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return(h="number"!==typeof e.length)||
(h=e.length,h=h!==h),h?aa(f,0):y(f,e);if("Buffer"===e.type&&Fa(e.data))return y(f,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function n(f){if(f>=(ha.Me?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(ha.Me?2147483647:1073741823).toString(16)+" bytes");return f|0}function h(f,e){if(ha.isBuffer(f))return f.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
(ArrayBuffer.isView(f)||f instanceof ArrayBuffer))return f.byteLength;"string"!==typeof f&&(f=""+f);var h=f.length;if(0===h)return 0;for(var n=!1;;)switch(e){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(f).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return ya.LW(pa(f)).length;default:if(n)return la(f).length;e=(""+e).toLowerCase();n=!0}}function f(f,e,h){var n=!1;if(void 0===e||
0>e)e=0;if(e>this.length)return"";if(void 0===h||h>this.length)h=this.length;if(0>=h)return"";h>>>=0;e>>>=0;if(h<=e)return"";for(f||(f="utf8");;)switch(f){case "hex":f=e;e=h;h=this.length;if(!f||0>f)f=0;if(!e||0>e||e>h)e=h;n="";for(h=f;h<e;++h)f=n,n=this[h],n=16>n?"0"+n.toString(16):n.toString(16),n=f+n;return n;case "utf8":case "utf-8":return ia(this,e,h);case "ascii":f="";for(h=Math.min(this.length,h);e<h;++e)f+=String.fromCharCode(this[e]&127);return f;case "latin1":case "binary":f="";for(h=Math.min(this.length,
h);e<h;++e)f+=String.fromCharCode(this[e]);return f;case "base64":return 0===e&&h===this.length?ya.rQ(this):ya.rQ(this.slice(e,h));case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":e=this.slice(e,h);h="";for(f=0;f<e.length;f+=2)h+=String.fromCharCode(e[f]+256*e[f+1]);return h;default:if(n)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase();n=!0}}function x(f,e,h,n,r){if(0===f.length)return-1;"string"===typeof h?(n=h,h=0):2147483647<h?h=2147483647:-2147483648>h&&(h=-2147483648);
h=+h;isNaN(h)&&(h=r?0:f.length-1);0>h&&(h=f.length+h);if(h>=f.length){if(r)return-1;h=f.length-1}else if(0>h)if(r)h=0;else return-1;"string"===typeof e&&(e=ha.from(e,n));if(ha.isBuffer(e))return 0===e.length?-1:fa(f,e,h,n,r);if("number"===typeof e)return e&=255,ha.Me&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(f,e,h):Uint8Array.prototype.lastIndexOf.call(f,e,h):fa(f,[e],h,n,r);throw new TypeError("val must be string, number or Buffer");}function fa(f,e,h,
n,r){function w(f,e){return 1===x?f[e]:f.rw(e*x)}var x=1,y=f.length,z=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(2>f.length||2>e.length)return-1;x=2;y/=2;z/=2;h/=2}if(r)for(n=-1;h<y;h++)if(w(f,h)===w(e,-1===n?0:h-n)){if(-1===n&&(n=h),h-n+1===z)return n*x}else-1!==n&&(h-=h-n),n=-1;else for(h+z>y&&(h=y-z);0<=h;h--){y=!0;for(n=0;n<z;n++)if(w(f,h+n)!==w(e,n)){y=!1;break}if(y)return h}return-1}function ia(f,e,h){h=Math.min(f.length,h);
for(var n=[];e<h;){var r=f[e],w=null,x=239<r?4:223<r?3:191<r?2:1;if(e+x<=h)switch(x){case 1:128>r&&(w=r);break;case 2:var y=f[e+1];128===(y&192)&&(r=(r&31)<<6|y&63,127<r&&(w=r));break;case 3:y=f[e+1];var z=f[e+2];128===(y&192)&&128===(z&192)&&(r=(r&15)<<12|(y&63)<<6|z&63,2047<r&&(55296>r||57343<r)&&(w=r));break;case 4:y=f[e+1];z=f[e+2];var aa=f[e+3];128===(y&192)&&128===(z&192)&&128===(aa&192)&&(r=(r&15)<<18|(y&63)<<12|(z&63)<<6|aa&63,65535<r&&1114112>r&&(w=r))}null===w?(w=65533,x=1):65535<w&&(w-=
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);e+=x}f=n.length;if(f<=ua)n=String.fromCharCode.apply(String,n);else{h="";for(e=0;e<f;)h+=String.fromCharCode.apply(String,n.slice(e,e+=ua));n=h}return n}function ja(f,e,h){if(0!==f%1||0>f)throw new RangeError("offset is not uint");if(f+e>h)throw new RangeError("Trying to access beyond buffer length");}function na(f,e,h,n,r,w){if(!ha.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<w)throw new RangeError('"value" argument is out of bounds');
if(h+n>f.length)throw new RangeError("Index out of range");}function pa(f){f=(f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")).replace(qa,"");if(2>f.length)return"";for(;0!==f.length%4;)f+="=";return f}function la(f,e){e=e||Infinity;for(var h,n=f.length,r=null,w=[],x=0;x<n;++x){h=f.charCodeAt(x);if(55295<h&&57344>h){if(!r){if(56319<h){-1<(e-=3)&&w.push(239,191,189);continue}else if(x+1===n){-1<(e-=3)&&w.push(239,191,189);continue}r=h;continue}if(56320>h){-1<(e-=3)&&w.push(239,191,189);r=h;continue}h=(r-
55296<<10|h-56320)+65536}else r&&-1<(e-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--e)break;w.push(h)}else if(2048>h){if(0>(e-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(e-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(e-=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 ra(f){for(var e=[],h=0;h<f.length;++h)e.push(f.charCodeAt(h)&255);return e}function oa(f,e,h,n){for(var r=0;r<n&&!(r+
h>=e.length||r>=f.length);++r)e[r+h]=f[r];return r}var ya=e(412);e(413);var Fa=e(414);da.Buffer=ha;da.lia=function(f){+f!=f&&(f=0);return ha.qO(+f)};da.mY=50;ha.Me=void 0!==ba.Me?ba.Me:ea();da.Jka=ha.Me?2147483647:1073741823;ha.lla=8192;ha.Qia=function(f){f.__proto__=ha.prototype;return f};ha.from=function(f,e,h){return ca(null,f,e,h)};ha.Me&&(ha.prototype.__proto__=Uint8Array.prototype,ha.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.mW&&ha[Symbol.mW]===ha&&Object.defineProperty(ha,Symbol.mW,
{value:null,configurable:!0}));ha.qO=function(f){z(f);return aa(null,f)};ha.allocUnsafe=function(f){return w(null,f)};ha.eja=function(f){return w(null,f)};ha.isBuffer=function(f){return!(null==f||!f.J_)};ha.compare=function(f,e){if(!ha.isBuffer(f)||!ha.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(f===e)return 0;for(var h=f.length,n=e.length,r=0,w=Math.min(h,n);r<w;++r)if(f[r]!==e[r]){h=f[r];n=e[r];break}return h<n?-1:n<h?1:0};ha.hS=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;
default:return!1}};ha.concat=function(f,e){if(!Fa(f))throw new TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return ha.qO(0);var h;if(void 0===e)for(h=e=0;h<f.length;++h)e+=f[h].length;e=ha.allocUnsafe(e);var n=0;for(h=0;h<f.length;++h){var r=f[h];if(!ha.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(e,n);n+=r.length}return e};ha.byteLength=h;ha.prototype.J_=!0;ha.prototype.toString=function(){var e=this.length|0;return 0===e?"":0===
arguments.length?ia(this,0,e):f.apply(this,arguments)};ha.prototype.er=function(f){if(!ha.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:0===ha.compare(this,f)};ha.prototype.inspect=function(){var f="",e=da.mY;0<this.length&&(f=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(f+=" ... "));return"<Buffer "+f+">"};ha.prototype.compare=function(f,e,h,n,r){if(!ha.isBuffer(f))throw new TypeError("Argument must be a Buffer");void 0===e&&(e=0);void 0===h&&
(h=f?f.length:0);void 0===n&&(n=0);void 0===r&&(r=this.length);if(0>e||h>f.length||0>n||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=h)return 0;if(n>=r)return-1;if(e>=h)return 1;e>>>=0;h>>>=0;n>>>=0;r>>>=0;if(this===f)return 0;var w=r-n,x=h-e,y=Math.min(w,x);n=this.slice(n,r);f=f.slice(e,h);for(e=0;e<y;++e)if(n[e]!==f[e]){w=n[e];x=f[e];break}return w<x?-1:x<w?1:0};ha.prototype.includes=function(f,e,h){return-1!==this.indexOf(f,e,h)};ha.prototype.indexOf=function(f,e,h){return x(this,
f,e,h,!0)};ha.prototype.lastIndexOf=function(f,e,h){return x(this,f,e,h,!1)};ha.prototype.write=function(f,e,h,n){if(void 0===e)n="utf8",h=this.length,e=0;else if(void 0===h&&"string"===typeof e)n=e,h=this.length,e=0;else if(isFinite(e))e|=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-e;if(void 0===h||h>r)h=r;if(0<f.length&&(0>h||0>e)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");
n||(n="utf8");for(r=!1;;)switch(n){case "hex":e=Number(e)||0;n=this.length-e;h?(h=Number(h),h>n&&(h=n)):h=n;n=f.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(f.substr(2*n,2),16);if(isNaN(r))break;this[e+n]=r}return n;case "utf8":case "utf-8":return oa(la(f,this.length-e),this,e,h);case "ascii":return oa(ra(f),this,e,h);case "latin1":case "binary":return oa(ra(f),this,e,h);case "base64":return oa(ya.LW(pa(f)),this,e,h);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":n=
f;r=this.length-e;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var y=n.charCodeAt(x);f=y>>8;y%=256;w.push(y);w.push(f)}return oa(w,this,e,h);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();r=!0}};ha.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.Pia||this,0)}};var ua=4096;ha.prototype.slice=function(f,e){var h=this.length;f=~~f;e=void 0===e?h:~~e;0>f?(f+=h,0>f&&(f=0)):f>h&&(f=h);0>e?(e+=h,0>e&&(e=0)):e>h&&(e=h);e<f&&(e=f);if(ha.Me)e=
this.subarray(f,e),e.__proto__=ha.prototype;else{h=e-f;e=new ha(h,void 0);for(var n=0;n<h;++n)e[n]=this[n+f]}return e};ha.prototype.vJ=function(f){ja(f,1,this.length);return this[f]};ha.prototype.rw=function(f){ja(f,2,this.length);return this[f]<<8|this[f+1]};ha.prototype.Uha=function(f,e){f=+f;e|=0;na(this,f,e,1,255,0);ha.Me||(f=Math.floor(f));this[e]=f&255;return e+1};ha.prototype.Tha=function(f,e){f=+f;e|=0;na(this,f,e,4,4294967295,0);if(ha.Me)this[e]=f>>>24,this[e+1]=f>>>16,this[e+2]=f>>>8,this[e+
3]=f&255;else{var h=e;0>f&&(f=4294967295+f+1);for(var n=0,r=Math.min(this.length-h,4);n<r;++n)this[h+n]=f>>>8*(3-n)&255}return e+4};ha.prototype.copy=function(f,e,h,n){h||(h=0);n||0===n||(n=this.length);e>=f.length&&(e=f.length);e||(e=0);0<n&&n<h&&(n=h);if(n===h||0===f.length||0===this.length)return 0;if(0>e)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&&
(n=this.length);f.length-e<n-h&&(n=f.length-e+h);var r=n-h;if(this===f&&h<e&&e<n)for(n=r-1;0<=n;--n)f[n+e]=this[n+h];else if(1E3>r||!ha.Me)for(n=0;n<r;++n)f[n+e]=this[n+h];else Uint8Array.prototype.set.call(f,this.subarray(h,h+r),e);return r};ha.prototype.fill=function(f,e,h,n){if("string"===typeof f){"string"===typeof e?(n=e,e=0,h=this.length):"string"===typeof h&&(n=h,h=this.length);if(1===f.length){var r=f.charCodeAt(0);256>r&&(f=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");
if("string"===typeof n&&!ha.hS(n))throw new TypeError("Unknown encoding: "+n);}else"number"===typeof f&&(f&=255);if(0>e||this.length<e||this.length<h)throw new RangeError("Out of range index");if(h<=e)return this;e>>>=0;h=void 0===h?this.length:h>>>0;f||(f=0);if("number"===typeof f)for(n=e;n<h;++n)this[n]=f;else for(f=ha.isBuffer(f)?f:la((new ha(f,n)).toString()),r=f.length,n=0;n<h-e;++n)this[n+e]=f[n%r];return this};var qa=/[^+\/0-9A-Za-z-_]/g}).call(this,e(173))},412:function(ia,da){function e(e){var z=
e.length;if(0<z%4)throw Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");-1===e&&(e=z);return[e,e===z?0:4-e%4]}function ba(e,z,w){for(var y=[],r=z;r<w;r+=3)z=(e[r]<<16&16711680)+(e[r+1]<<8&65280)+(e[r+2]&255),y.push(ea[z>>18&63]+ea[z>>12&63]+ea[z>>6&63]+ea[z&63]);return y.join("")}da.byteLength=function(aa){aa=e(aa);var z=aa[1];return 3*(aa[0]+z)/4-z};da.LW=function(ca){var z=e(ca);var w=z[0];z=z[1];var y=new ha(3*(w+z)/4-z),r=0,n=0<z?w-4:w,h;for(h=0;h<n;h+=4)w=aa[ca.charCodeAt(h)]<<
18|aa[ca.charCodeAt(h+1)]<<12|aa[ca.charCodeAt(h+2)]<<6|aa[ca.charCodeAt(h+3)],y[r++]=w>>16&255,y[r++]=w>>8&255,y[r++]=w&255;2===z&&(w=aa[ca.charCodeAt(h)]<<2|aa[ca.charCodeAt(h+1)]>>4,y[r++]=w&255);1===z&&(w=aa[ca.charCodeAt(h)]<<10|aa[ca.charCodeAt(h+1)]<<4|aa[ca.charCodeAt(h+2)]>>2,y[r++]=w>>8&255,y[r++]=w&255);return y};da.rQ=function(e){for(var z=e.length,w=z%3,y=[],r=0,n=z-w;r<n;r+=16383)y.push(ba(e,r,r+16383>n?n:r+16383));1===w?(e=e[z-1],y.push(ea[e>>2]+ea[e<<4&63]+"==")):2===w&&(e=(e[z-2]<<
8)+e[z-1],y.push(ea[e>>10]+ea[e>>4&63]+ea[e<<2&63]+"="));return y.join("")};var ea=[],aa=[],ha="undefined"!==typeof Uint8Array?Uint8Array:Array;for(ia=0;64>ia;++ia)ea[ia]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ia],aa["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(ia)]=ia;aa[45]=62;aa[95]=63},413:function(ia,da){da.read=function(e,ba,ea,aa,ha){var ca=8*ha-aa-1;var z=(1<<ca)-1,w=z>>1,y=-7;ha=ea?ha-1:0;var r=ea?-1:1,n=e[ba+ha];ha+=r;ea=n&(1<<
-y)-1;n>>=-y;for(y+=ca;0<y;ea=256*ea+e[ba+ha],ha+=r,y-=8);ca=ea&(1<<-y)-1;ea>>=-y;for(y+=aa;0<y;ca=256*ca+e[ba+ha],ha+=r,y-=8);if(0===ea)ea=1-w;else{if(ea===z)return ca?NaN:Infinity*(n?-1:1);ca+=Math.pow(2,aa);ea-=w}return(n?-1:1)*ca*Math.pow(2,ea-aa)};da.write=function(e,ba,ea,aa,ha,ca){var z,w=8*ca-ha-1,y=(1<<w)-1,r=y>>1,n=23===ha?Math.pow(2,-24)-Math.pow(2,-77):0;ca=aa?0:ca-1;var h=aa?1:-1,f=0>ba||0===ba&&0>1/ba?1:0;ba=Math.abs(ba);isNaN(ba)||Infinity===ba?(ba=isNaN(ba)?1:0,aa=y):(aa=Math.floor(Math.log(ba)/
Math.LN2),1>ba*(z=Math.pow(2,-aa))&&(aa--,z*=2),ba=1<=aa+r?ba+n/z:ba+n*Math.pow(2,1-r),2<=ba*z&&(aa++,z/=2),aa+r>=y?(ba=0,aa=y):1<=aa+r?(ba=(ba*z-1)*Math.pow(2,ha),aa+=r):(ba=ba*Math.pow(2,r-1)*Math.pow(2,ha),aa=0));for(;8<=ha;e[ea+ca]=ba&255,ca+=h,ba/=256,ha-=8);aa=aa<<ha|ba;for(w+=ha;0<w;e[ea+ca]=aa&255,ca+=h,aa/=256,w-=8);e[ea+ca-h]|=128*f}},414:function(ia){var da={}.toString;ia.exports=Array.isArray||function(e){return"[object Array]"==da.call(e)}}}]);}).call(this || window)

View File

@ -1,77 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[21],{234:function(ia,da,e){da=e(401).assign;var ba=e(415),ea=e(418);e=e(408);var aa={};da(aa,ba,ea,e);ia.exports=aa},401:function(ia,da){ia="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;da.assign=function(e){for(var aa=Array.prototype.slice.call(arguments,1);aa.length;){var ba=aa.shift();if(ba){if("object"!==typeof ba)throw new TypeError(ba+"must be non-object");for(var ca in ba)Object.prototype.hasOwnProperty.call(ba,
ca)&&(e[ca]=ba[ca])}}return e};da.TC=function(e,aa){if(e.length===aa)return e;if(e.subarray)return e.subarray(0,aa);e.length=aa;return e};var e={Wg:function(e,aa,ba,ca,z){if(aa.subarray&&e.subarray)e.set(aa.subarray(ba,ba+ca),z);else for(var w=0;w<ca;w++)e[z+w]=aa[ba+w]},zG:function(e){var aa,ba;var ca=ba=0;for(aa=e.length;ca<aa;ca++)ba+=e[ca].length;var z=new Uint8Array(ba);ca=ba=0;for(aa=e.length;ca<aa;ca++){var w=e[ca];z.set(w,ba);ba+=w.length}return z}},ba={Wg:function(e,aa,ba,ca,z){for(var w=
0;w<ca;w++)e[z+w]=aa[ba+w]},zG:function(e){return[].concat.apply([],e)}};da.gga=function(ea){ea?(da.Fh=Uint8Array,da.hg=Uint16Array,da.ht=Int32Array,da.assign(da,e)):(da.Fh=Array,da.hg=Array,da.ht=Array,da.assign(da,ba))};da.gga(ia)},402:function(ia){ia.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},404:function(ia){ia.exports=function(da,e,ba,ea){var aa=da&65535|
0;da=da>>>16&65535|0;for(var ha;0!==ba;){ha=2E3<ba?2E3:ba;ba-=ha;do aa=aa+e[ea++]|0,da=da+aa|0;while(--ha);aa%=65521;da%=65521}return aa|da<<16|0}},405:function(ia){var da=function(){for(var e,ba=[],ea=0;256>ea;ea++){e=ea;for(var aa=0;8>aa;aa++)e=e&1?3988292384^e>>>1:e>>>1;ba[ea]=e}return ba}();ia.exports=function(e,ba,ea,aa){ea=aa+ea;for(e^=-1;aa<ea;aa++)e=e>>>8^da[(e^ba[aa])&255];return e^-1}},406:function(ia,da,e){function ba(e,w){if(65534>w&&(e.subarray&&ha||!e.subarray&&aa))return String.fromCharCode.apply(null,
ea.TC(e,w));for(var y="",r=0;r<w;r++)y+=String.fromCharCode(e[r]);return y}var ea=e(401),aa=!0,ha=!0,ca=new ea.Fh(256);for(ia=0;256>ia;ia++)ca[ia]=252<=ia?6:248<=ia?5:240<=ia?4:224<=ia?3:192<=ia?2:1;ca[254]=ca[254]=1;da.KK=function(e){var w,y,r=e.length,n=0;for(w=0;w<r;w++){var h=e.charCodeAt(w);if(55296===(h&64512)&&w+1<r){var f=e.charCodeAt(w+1);56320===(f&64512)&&(h=65536+(h-55296<<10)+(f-56320),w++)}n+=128>h?1:2048>h?2:65536>h?3:4}var x=new ea.Fh(n);for(w=y=0;y<n;w++)h=e.charCodeAt(w),55296===
(h&64512)&&w+1<r&&(f=e.charCodeAt(w+1),56320===(f&64512)&&(h=65536+(h-55296<<10)+(f-56320),w++)),128>h?x[y++]=h:(2048>h?x[y++]=192|h>>>6:(65536>h?x[y++]=224|h>>>12:(x[y++]=240|h>>>18,x[y++]=128|h>>>12&63),x[y++]=128|h>>>6&63),x[y++]=128|h&63);return x};da.J1=function(e){return ba(e,e.length)};da.B1=function(e){for(var w=new ea.Fh(e.length),y=0,r=w.length;y<r;y++)w[y]=e.charCodeAt(y);return w};da.K1=function(e,w){var y,r=w||e.length,n=Array(2*r);for(w=y=0;w<r;){var h=e[w++];if(128>h)n[y++]=h;else{var f=
ca[h];if(4<f)n[y++]=65533,w+=f-1;else{for(h&=2===f?31:3===f?15:7;1<f&&w<r;)h=h<<6|e[w++]&63,f--;1<f?n[y++]=65533:65536>h?n[y++]=h:(h-=65536,n[y++]=55296|h>>10&1023,n[y++]=56320|h&1023)}}}return ba(n,y)};da.Eha=function(e,w){var y;w=w||e.length;w>e.length&&(w=e.length);for(y=w-1;0<=y&&128===(e[y]&192);)y--;return 0>y||0===y?w:y+ca[e[y]]>w?y:w}},407:function(ia){ia.exports=function(){this.input=null;this.Uj=this.dc=this.sf=0;this.output=null;this.nn=this.Oa=this.fd=0;this.zb="";this.state=null;this.Nz=
2;this.jb=0}},408:function(ia){ia.exports={ZL:0,Eia:1,$L:2,Bia:3,Qx:4,tia:5,Iia:6,Cn:0,Rx:1,KZ:2,yia:-1,Gia:-2,uia:-3,JZ:-5,Dia:0,ria:1,qia:9,via:-1,zia:1,Cia:2,Fia:3,Aia:4,wia:0,sia:0,Hia:1,Jia:2,xia:8}},415:function(ia,da,e){function ba(e){if(!(this instanceof ba))return new ba(e);e=this.options=ha.assign({level:-1,method:8,AF:16384,jc:15,uaa:8,Rj:0,to:""},e||{});e.raw&&0<e.jc?e.jc=-e.jc:e.DR&&0<e.jc&&16>e.jc&&(e.jc+=16);this.Co=0;this.zb="";this.ended=!1;this.wk=[];this.kb=new w;this.kb.Oa=0;var n=
aa.F3(this.kb,e.level,e.method,e.jc,e.uaa,e.Rj);if(0!==n)throw Error(z[n]);e.header&&aa.H3(this.kb,e.header);if(e.Wc&&(e="string"===typeof e.Wc?ca.KK(e.Wc):"[object ArrayBuffer]"===y.call(e.Wc)?new Uint8Array(e.Wc):e.Wc,n=aa.G3(this.kb,e),0!==n))throw Error(z[n]);}function ea(e,n){n=new ba(n);n.push(e,!0);if(n.Co)throw n.zb||z[n.Co];return n.result}var aa=e(416),ha=e(401),ca=e(406),z=e(402),w=e(407),y=Object.prototype.toString;ba.prototype.push=function(e,n){var h=this.kb,f=this.options.AF;if(this.ended)return!1;
n=n===~~n?n:!0===n?4:0;"string"===typeof e?h.input=ca.KK(e):"[object ArrayBuffer]"===y.call(e)?h.input=new Uint8Array(e):h.input=e;h.sf=0;h.dc=h.input.length;do{0===h.Oa&&(h.output=new ha.Fh(f),h.fd=0,h.Oa=f);e=aa.Eu(h,n);if(1!==e&&0!==e)return this.Gj(e),this.ended=!0,!1;if(0===h.Oa||0===h.dc&&(4===n||2===n))"string"===this.options.to?this.Yv(ca.J1(ha.TC(h.output,h.fd))):this.Yv(ha.TC(h.output,h.fd))}while((0<h.dc||0===h.Oa)&&1!==e);if(4===n)return e=aa.E3(this.kb),this.Gj(e),this.ended=!0,0===e;
2===n&&(this.Gj(0),h.Oa=0);return!0};ba.prototype.Yv=function(e){this.wk.push(e)};ba.prototype.Gj=function(e){0===e&&(this.result="string"===this.options.to?this.wk.join(""):ha.zG(this.wk));this.wk=[];this.Co=e;this.zb=this.kb.zb};da.bia=ba;da.Eu=ea;da.Fja=function(e,n){n=n||{};n.raw=!0;return ea(e,n)};da.DR=function(e,n){n=n||{};n.DR=!0;return ea(e,n)}},416:function(ia,da,e){function ba(e,f){e.zb=ya[f];return f}function ea(e){for(var f=e.length;0<=--f;)e[f]=0}function aa(e){var f=e.state,h=f.cb;
h>e.Oa&&(h=e.Oa);0!==h&&(pa.Wg(e.output,f.Zc,f.kw,h,e.fd),e.fd+=h,f.kw+=h,e.nn+=h,e.Oa-=h,f.cb-=h,0===f.cb&&(f.kw=0))}function ha(e,f){la.n0(e,0<=e.mg?e.mg:-1,e.wa-e.mg,f);e.mg=e.wa;aa(e.kb)}function ca(e,f){e.Zc[e.cb++]=f}function z(e,f){e.Zc[e.cb++]=f>>>8&255;e.Zc[e.cb++]=f&255}function w(e,f){var h=e.WS,n=e.wa,r=e.Gg,w=e.jT,x=e.wa>e.ff-262?e.wa-(e.ff-262):0,y=e.window,z=e.tn,aa=e.prev,ba=e.wa+258,ca=y[n+r-1],ea=y[n+r];e.Gg>=e.BR&&(h>>=2);w>e.Ea&&(w=e.Ea);do{var fa=f;if(y[fa+r]===ea&&y[fa+r-1]===
ca&&y[fa]===y[n]&&y[++fa]===y[n+1]){n+=2;for(fa++;y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&y[++n]===y[++fa]&&n<ba;);fa=258-(ba-n);n=ba-258;if(fa>r){e.Xr=f;r=fa;if(fa>=w)break;ca=y[n+r-1];ea=y[n+r]}}}while((f=aa[f&z])>x&&0!==--h);return r<=e.Ea?r:e.Ea}function y(e){var f=e.ff,h;do{var n=e.jX-e.Ea-e.wa;if(e.wa>=f+(f-262)){pa.Wg(e.window,e.window,f,f,0);e.Xr-=f;e.wa-=f;e.mg-=f;var r=h=e.gB;do{var w=e.head[--r];e.head[r]=
w>=f?w-f:0}while(--h);r=h=f;do w=e.prev[--r],e.prev[r]=w>=f?w-f:0;while(--h);n+=f}if(0===e.kb.dc)break;r=e.kb;h=e.window;w=e.wa+e.Ea;var x=r.dc;x>n&&(x=n);0===x?h=0:(r.dc-=x,pa.Wg(h,r.input,r.sf,x,w),1===r.state.wrap?r.jb=ra(r.jb,h,x,w):2===r.state.wrap&&(r.jb=oa(r.jb,h,x,w)),r.sf+=x,r.Uj+=x,h=x);e.Ea+=h;if(3<=e.Ea+e.insert)for(n=e.wa-e.insert,e.Rb=e.window[n],e.Rb=(e.Rb<<e.Qk^e.window[n+1])&e.Pk;e.insert&&!(e.Rb=(e.Rb<<e.Qk^e.window[n+3-1])&e.Pk,e.prev[n&e.tn]=e.head[e.Rb],e.head[e.Rb]=n,n++,e.insert--,
3>e.Ea+e.insert););}while(262>e.Ea&&0!==e.kb.dc)}function r(e,f){for(var h;;){if(262>e.Ea){y(e);if(262>e.Ea&&0===f)return 1;if(0===e.Ea)break}h=0;3<=e.Ea&&(e.Rb=(e.Rb<<e.Qk^e.window[e.wa+3-1])&e.Pk,h=e.prev[e.wa&e.tn]=e.head[e.Rb],e.head[e.Rb]=e.wa);0!==h&&e.wa-h<=e.ff-262&&(e.$b=w(e,h));if(3<=e.$b)if(h=la.em(e,e.wa-e.Xr,e.$b-3),e.Ea-=e.$b,e.$b<=e.EI&&3<=e.Ea){e.$b--;do e.wa++,e.Rb=(e.Rb<<e.Qk^e.window[e.wa+3-1])&e.Pk,e.prev[e.wa&e.tn]=e.head[e.Rb],e.head[e.Rb]=e.wa;while(0!==--e.$b);e.wa++}else e.wa+=
e.$b,e.$b=0,e.Rb=e.window[e.wa],e.Rb=(e.Rb<<e.Qk^e.window[e.wa+1])&e.Pk;else h=la.em(e,0,e.window[e.wa]),e.Ea--,e.wa++;if(h&&(ha(e,!1),0===e.kb.Oa))return 1}e.insert=2>e.wa?e.wa:2;return 4===f?(ha(e,!0),0===e.kb.Oa?3:4):e.lh&&(ha(e,!1),0===e.kb.Oa)?1:2}function n(e,f){for(var h,n;;){if(262>e.Ea){y(e);if(262>e.Ea&&0===f)return 1;if(0===e.Ea)break}h=0;3<=e.Ea&&(e.Rb=(e.Rb<<e.Qk^e.window[e.wa+3-1])&e.Pk,h=e.prev[e.wa&e.tn]=e.head[e.Rb],e.head[e.Rb]=e.wa);e.Gg=e.$b;e.hU=e.Xr;e.$b=2;0!==h&&e.Gg<e.EI&&
e.wa-h<=e.ff-262&&(e.$b=w(e,h),5>=e.$b&&(1===e.Rj||3===e.$b&&4096<e.wa-e.Xr)&&(e.$b=2));if(3<=e.Gg&&e.$b<=e.Gg){n=e.wa+e.Ea-3;h=la.em(e,e.wa-1-e.hU,e.Gg-3);e.Ea-=e.Gg-1;e.Gg-=2;do++e.wa<=n&&(e.Rb=(e.Rb<<e.Qk^e.window[e.wa+3-1])&e.Pk,e.prev[e.wa&e.tn]=e.head[e.Rb],e.head[e.Rb]=e.wa);while(0!==--e.Gg);e.op=0;e.$b=2;e.wa++;if(h&&(ha(e,!1),0===e.kb.Oa))return 1}else if(e.op){if((h=la.em(e,0,e.window[e.wa-1]))&&ha(e,!1),e.wa++,e.Ea--,0===e.kb.Oa)return 1}else e.op=1,e.wa++,e.Ea--}e.op&&(la.em(e,0,e.window[e.wa-
1]),e.op=0);e.insert=2>e.wa?e.wa:2;return 4===f?(ha(e,!0),0===e.kb.Oa?3:4):e.lh&&(ha(e,!1),0===e.kb.Oa)?1:2}function h(e,f){for(var h,n,r,w=e.window;;){if(258>=e.Ea){y(e);if(258>=e.Ea&&0===f)return 1;if(0===e.Ea)break}e.$b=0;if(3<=e.Ea&&0<e.wa&&(n=e.wa-1,h=w[n],h===w[++n]&&h===w[++n]&&h===w[++n])){for(r=e.wa+258;h===w[++n]&&h===w[++n]&&h===w[++n]&&h===w[++n]&&h===w[++n]&&h===w[++n]&&h===w[++n]&&h===w[++n]&&n<r;);e.$b=258-(r-n);e.$b>e.Ea&&(e.$b=e.Ea)}3<=e.$b?(h=la.em(e,1,e.$b-3),e.Ea-=e.$b,e.wa+=e.$b,
e.$b=0):(h=la.em(e,0,e.window[e.wa]),e.Ea--,e.wa++);if(h&&(ha(e,!1),0===e.kb.Oa))return 1}e.insert=0;return 4===f?(ha(e,!0),0===e.kb.Oa?3:4):e.lh&&(ha(e,!1),0===e.kb.Oa)?1:2}function f(e,f){for(var h;;){if(0===e.Ea&&(y(e),0===e.Ea)){if(0===f)return 1;break}e.$b=0;h=la.em(e,0,e.window[e.wa]);e.Ea--;e.wa++;if(h&&(ha(e,!1),0===e.kb.Oa))return 1}e.insert=0;return 4===f?(ha(e,!0),0===e.kb.Oa?3:4):e.lh&&(ha(e,!1),0===e.kb.Oa)?1:2}function x(e,f,h,n,r){this.t9=e;this.raa=f;this.Laa=h;this.qaa=n;this.func=
r}function fa(){this.kb=null;this.status=0;this.Zc=null;this.wrap=this.cb=this.kw=this.sh=0;this.yb=null;this.ei=0;this.method=8;this.Rr=-1;this.tn=this.YK=this.ff=0;this.window=null;this.jX=0;this.head=this.prev=null;this.jT=this.BR=this.Rj=this.level=this.EI=this.WS=this.Gg=this.Ea=this.Xr=this.wa=this.op=this.hU=this.$b=this.mg=this.Qk=this.Pk=this.IH=this.gB=this.Rb=0;this.Kf=new pa.hg(1146);this.yo=new pa.hg(122);this.Qe=new pa.hg(78);ea(this.Kf);ea(this.yo);ea(this.Qe);this.NO=this.Mz=this.CB=
null;this.rk=new pa.hg(16);this.ed=new pa.hg(573);ea(this.ed);this.Gr=this.Sk=0;this.depth=new pa.hg(573);ea(this.depth);this.oe=this.nf=this.insert=this.matches=this.Ms=this.ll=this.Bu=this.lh=this.Kv=this.uI=0}function ma(e){if(!e||!e.state)return ba(e,-2);e.Uj=e.nn=0;e.Nz=2;var f=e.state;f.cb=0;f.kw=0;0>f.wrap&&(f.wrap=-f.wrap);f.status=f.wrap?42:113;e.jb=2===f.wrap?0:1;f.Rr=0;la.o0(f);return 0}function ja(e){var f=ma(e);0===f&&(e=e.state,e.jX=2*e.ff,ea(e.head),e.EI=Fa[e.level].raa,e.BR=Fa[e.level].t9,
e.jT=Fa[e.level].Laa,e.WS=Fa[e.level].qaa,e.wa=0,e.mg=0,e.Ea=0,e.insert=0,e.$b=e.Gg=2,e.op=0,e.Rb=0);return f}function na(e,f,h,n,r,w){if(!e)return-2;var x=1;-1===f&&(f=6);0>n?(x=0,n=-n):15<n&&(x=2,n-=16);if(1>r||9<r||8!==h||8>n||15<n||0>f||9<f||0>w||4<w)return ba(e,-2);8===n&&(n=9);var y=new fa;e.state=y;y.kb=e;y.wrap=x;y.yb=null;y.YK=n;y.ff=1<<y.YK;y.tn=y.ff-1;y.IH=r+7;y.gB=1<<y.IH;y.Pk=y.gB-1;y.Qk=~~((y.IH+3-1)/3);y.window=new pa.Fh(2*y.ff);y.head=new pa.hg(y.gB);y.prev=new pa.hg(y.ff);y.Kv=1<<
r+6;y.sh=4*y.Kv;y.Zc=new pa.Fh(y.sh);y.Bu=1*y.Kv;y.uI=3*y.Kv;y.level=f;y.Rj=w;y.method=h;return ja(e)}var pa=e(401),la=e(417),ra=e(404),oa=e(405),ya=e(402);var Fa=[new x(0,0,0,0,function(e,f){var h=65535;for(h>e.sh-5&&(h=e.sh-5);;){if(1>=e.Ea){y(e);if(0===e.Ea&&0===f)return 1;if(0===e.Ea)break}e.wa+=e.Ea;e.Ea=0;var n=e.mg+h;if(0===e.wa||e.wa>=n)if(e.Ea=e.wa-n,e.wa=n,ha(e,!1),0===e.kb.Oa)return 1;if(e.wa-e.mg>=e.ff-262&&(ha(e,!1),0===e.kb.Oa))return 1}e.insert=0;if(4===f)return ha(e,!0),0===e.kb.Oa?
3:4;e.wa>e.mg&&ha(e,!1);return 1}),new x(4,4,8,4,r),new x(4,5,16,8,r),new x(4,6,32,32,r),new x(4,4,16,16,n),new x(8,16,32,32,n),new x(8,16,128,128,n),new x(8,32,128,256,n),new x(32,128,258,1024,n),new x(32,258,258,4096,n)];da.Eja=function(e,f){return na(e,f,8,15,8,0)};da.F3=na;da.Gja=ja;da.Hja=ma;da.H3=function(e,f){e&&e.state&&2===e.state.wrap&&(e.state.yb=f)};da.Eu=function(e,n){if(!e||!e.state||5<n||0>n)return e?ba(e,-2):-2;var r=e.state;if(!e.output||!e.input&&0!==e.dc||666===r.status&&4!==n)return ba(e,
0===e.Oa?-5:-2);r.kb=e;var w=r.Rr;r.Rr=n;if(42===r.status)if(2===r.wrap)e.jb=0,ca(r,31),ca(r,139),ca(r,8),r.yb?(ca(r,(r.yb.text?1:0)+(r.yb.pj?2:0)+(r.yb.ec?4:0)+(r.yb.name?8:0)+(r.yb.no?16:0)),ca(r,r.yb.time&255),ca(r,r.yb.time>>8&255),ca(r,r.yb.time>>16&255),ca(r,r.yb.time>>24&255),ca(r,9===r.level?2:2<=r.Rj||2>r.level?4:0),ca(r,r.yb.xT&255),r.yb.ec&&r.yb.ec.length&&(ca(r,r.yb.ec.length&255),ca(r,r.yb.ec.length>>8&255)),r.yb.pj&&(e.jb=oa(e.jb,r.Zc,r.cb,0)),r.ei=0,r.status=69):(ca(r,0),ca(r,0),ca(r,
0),ca(r,0),ca(r,0),ca(r,9===r.level?2:2<=r.Rj||2>r.level?4:0),ca(r,3),r.status=113);else{var x=8+(r.YK-8<<4)<<8;x|=(2<=r.Rj||2>r.level?0:6>r.level?1:6===r.level?2:3)<<6;0!==r.wa&&(x|=32);r.status=113;z(r,x+(31-x%31));0!==r.wa&&(z(r,e.jb>>>16),z(r,e.jb&65535));e.jb=1}if(69===r.status)if(r.yb.ec){for(x=r.cb;r.ei<(r.yb.ec.length&65535)&&(r.cb!==r.sh||(r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x)),aa(e),x=r.cb,r.cb!==r.sh));)ca(r,r.yb.ec[r.ei]&255),r.ei++;r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x));
r.ei===r.yb.ec.length&&(r.ei=0,r.status=73)}else r.status=73;if(73===r.status)if(r.yb.name){x=r.cb;do{if(r.cb===r.sh&&(r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x)),aa(e),x=r.cb,r.cb===r.sh)){var y=1;break}y=r.ei<r.yb.name.length?r.yb.name.charCodeAt(r.ei++)&255:0;ca(r,y)}while(0!==y);r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x));0===y&&(r.ei=0,r.status=91)}else r.status=91;if(91===r.status)if(r.yb.no){x=r.cb;do{if(r.cb===r.sh&&(r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x)),aa(e),x=r.cb,r.cb===
r.sh)){y=1;break}y=r.ei<r.yb.no.length?r.yb.no.charCodeAt(r.ei++)&255:0;ca(r,y)}while(0!==y);r.yb.pj&&r.cb>x&&(e.jb=oa(e.jb,r.Zc,r.cb-x,x));0===y&&(r.status=103)}else r.status=103;103===r.status&&(r.yb.pj?(r.cb+2>r.sh&&aa(e),r.cb+2<=r.sh&&(ca(r,e.jb&255),ca(r,e.jb>>8&255),e.jb=0,r.status=113)):r.status=113);if(0!==r.cb){if(aa(e),0===e.Oa)return r.Rr=-1,0}else if(0===e.dc&&(n<<1)-(4<n?9:0)<=(w<<1)-(4<w?9:0)&&4!==n)return ba(e,-5);if(666===r.status&&0!==e.dc)return ba(e,-5);if(0!==e.dc||0!==r.Ea||0!==
n&&666!==r.status){w=2===r.Rj?f(r,n):3===r.Rj?h(r,n):Fa[r.level].func(r,n);if(3===w||4===w)r.status=666;if(1===w||3===w)return 0===e.Oa&&(r.Rr=-1),0;if(2===w&&(1===n?la.m0(r):5!==n&&(la.p0(r,0,0,!1),3===n&&(ea(r.head),0===r.Ea&&(r.wa=0,r.mg=0,r.insert=0))),aa(e),0===e.Oa))return r.Rr=-1,0}if(4!==n)return 0;if(0>=r.wrap)return 1;2===r.wrap?(ca(r,e.jb&255),ca(r,e.jb>>8&255),ca(r,e.jb>>16&255),ca(r,e.jb>>24&255),ca(r,e.Uj&255),ca(r,e.Uj>>8&255),ca(r,e.Uj>>16&255),ca(r,e.Uj>>24&255)):(z(r,e.jb>>>16),
z(r,e.jb&65535));aa(e);0<r.wrap&&(r.wrap=-r.wrap);return 0!==r.cb?0:1};da.E3=function(e){if(!e||!e.state)return-2;var f=e.state.status;if(42!==f&&69!==f&&73!==f&&91!==f&&103!==f&&113!==f&&666!==f)return ba(e,-2);e.state=null;return 113===f?ba(e,-3):0};da.G3=function(e,f){var h=f.length;if(!e||!e.state)return-2;var n=e.state;var r=n.wrap;if(2===r||1===r&&42!==n.status||n.Ea)return-2;1===r&&(e.jb=ra(e.jb,f,h,0));n.wrap=0;if(h>=n.ff){0===r&&(ea(n.head),n.wa=0,n.mg=0,n.insert=0);var w=new pa.Fh(n.ff);
pa.Wg(w,f,h-n.ff,n.ff,0);f=w;h=n.ff}w=e.dc;var x=e.sf;var z=e.input;e.dc=h;e.sf=0;e.input=f;for(y(n);3<=n.Ea;){f=n.wa;h=n.Ea-2;do n.Rb=(n.Rb<<n.Qk^n.window[f+3-1])&n.Pk,n.prev[f&n.tn]=n.head[n.Rb],n.head[n.Rb]=f,f++;while(--h);n.wa=f;n.Ea=2;y(n)}n.wa+=n.Ea;n.mg=n.wa;n.insert=n.Ea;n.Ea=0;n.$b=n.Gg=2;n.op=0;e.sf=x;e.input=z;e.dc=w;n.wrap=r;return 0};da.Dja="pako deflate (from Nodeca project)"},417:function(ia,da,e){function ba(e){for(var f=e.length;0<=--f;)e[f]=0}function ea(e,f,h,n,r){this.tW=e;this.t6=
f;this.s6=h;this.C5=n;this.saa=r;this.JR=e&&e.length}function aa(e,f){this.SP=e;this.Yr=0;this.ln=f}function ha(e,f){e.Zc[e.cb++]=f&255;e.Zc[e.cb++]=f>>>8&255}function ca(e,f,h){e.oe>16-h?(e.nf|=f<<e.oe&65535,ha(e,e.nf),e.nf=f>>16-e.oe,e.oe+=h-16):(e.nf|=f<<e.oe&65535,e.oe+=h)}function z(e,f,h){ca(e,h[2*f],h[2*f+1])}function w(e,f){var h=0;do h|=e&1,e>>>=1,h<<=1;while(0<--f);return h>>>1}function y(e,f,h){var n=Array(16),r=0,x;for(x=1;15>=x;x++)n[x]=r=r+h[x-1]<<1;for(h=0;h<=f;h++)r=e[2*h+1],0!==r&&
(e[2*h]=w(n[r]++,r))}function r(e){var f;for(f=0;286>f;f++)e.Kf[2*f]=0;for(f=0;30>f;f++)e.yo[2*f]=0;for(f=0;19>f;f++)e.Qe[2*f]=0;e.Kf[512]=1;e.ll=e.Ms=0;e.lh=e.matches=0}function n(e){8<e.oe?ha(e,e.nf):0<e.oe&&(e.Zc[e.cb++]=e.nf);e.nf=0;e.oe=0}function h(e,f,h,n){var r=2*f,w=2*h;return e[r]<e[w]||e[r]===e[w]&&n[f]<=n[h]}function f(e,f,n){for(var r=e.ed[n],w=n<<1;w<=e.Sk;){w<e.Sk&&h(f,e.ed[w+1],e.ed[w],e.depth)&&w++;if(h(f,r,e.ed[w],e.depth))break;e.ed[n]=e.ed[w];n=w;w<<=1}e.ed[n]=r}function x(e,f,
h){var n=0;if(0!==e.lh){do{var r=e.Zc[e.Bu+2*n]<<8|e.Zc[e.Bu+2*n+1];var w=e.Zc[e.uI+n];n++;if(0===r)z(e,w,f);else{var x=wa[w];z(e,x+256+1,f);var y=ra[x];0!==y&&(w-=Aa[x],ca(e,w,y));r--;x=256>r?ka[r]:ka[256+(r>>>7)];z(e,x,h);y=oa[x];0!==y&&(r-=ta[x],ca(e,r,y))}}while(n<e.lh)}z(e,256,f)}function fa(e,h){var n=h.SP,r=h.ln.tW,w=h.ln.JR,x=h.ln.C5,z,aa=-1;e.Sk=0;e.Gr=573;for(z=0;z<x;z++)0!==n[2*z]?(e.ed[++e.Sk]=aa=z,e.depth[z]=0):n[2*z+1]=0;for(;2>e.Sk;){var ba=e.ed[++e.Sk]=2>aa?++aa:0;n[2*ba]=1;e.depth[ba]=
0;e.ll--;w&&(e.Ms-=r[2*ba+1])}h.Yr=aa;for(z=e.Sk>>1;1<=z;z--)f(e,n,z);ba=x;do z=e.ed[1],e.ed[1]=e.ed[e.Sk--],f(e,n,1),r=e.ed[1],e.ed[--e.Gr]=z,e.ed[--e.Gr]=r,n[2*ba]=n[2*z]+n[2*r],e.depth[ba]=(e.depth[z]>=e.depth[r]?e.depth[z]:e.depth[r])+1,n[2*z+1]=n[2*r+1]=ba,e.ed[1]=ba++,f(e,n,1);while(2<=e.Sk);e.ed[--e.Gr]=e.ed[1];z=h.SP;ba=h.Yr;r=h.ln.tW;w=h.ln.JR;x=h.ln.t6;var ca=h.ln.s6,ea=h.ln.saa,fa,da=0;for(fa=0;15>=fa;fa++)e.rk[fa]=0;z[2*e.ed[e.Gr]+1]=0;for(h=e.Gr+1;573>h;h++){var ha=e.ed[h];fa=z[2*z[2*
ha+1]+1]+1;fa>ea&&(fa=ea,da++);z[2*ha+1]=fa;if(!(ha>ba)){e.rk[fa]++;var ia=0;ha>=ca&&(ia=x[ha-ca]);var ja=z[2*ha];e.ll+=ja*(fa+ia);w&&(e.Ms+=ja*(r[2*ha+1]+ia))}}if(0!==da){do{for(fa=ea-1;0===e.rk[fa];)fa--;e.rk[fa]--;e.rk[fa+1]+=2;e.rk[ea]--;da-=2}while(0<da);for(fa=ea;0!==fa;fa--)for(ha=e.rk[fa];0!==ha;)r=e.ed[--h],r>ba||(z[2*r+1]!==fa&&(e.ll+=(fa-z[2*r+1])*z[2*r],z[2*r+1]=fa),ha--)}y(n,aa,e.rk)}function ma(e,f,h){var n,r=-1,w=f[1],x=0,y=7,z=4;0===w&&(y=138,z=3);f[2*(h+1)+1]=65535;for(n=0;n<=h;n++){var aa=
w;w=f[2*(n+1)+1];++x<y&&aa===w||(x<z?e.Qe[2*aa]+=x:0!==aa?(aa!==r&&e.Qe[2*aa]++,e.Qe[32]++):10>=x?e.Qe[34]++:e.Qe[36]++,x=0,r=aa,0===w?(y=138,z=3):aa===w?(y=6,z=3):(y=7,z=4))}}function ja(e,f,h){var n,r=-1,w=f[1],x=0,y=7,aa=4;0===w&&(y=138,aa=3);for(n=0;n<=h;n++){var ba=w;w=f[2*(n+1)+1];if(!(++x<y&&ba===w)){if(x<aa){do z(e,ba,e.Qe);while(0!==--x)}else 0!==ba?(ba!==r&&(z(e,ba,e.Qe),x--),z(e,16,e.Qe),ca(e,x-3,2)):10>=x?(z(e,17,e.Qe),ca(e,x-3,3)):(z(e,18,e.Qe),ca(e,x-11,7));x=0;r=ba;0===w?(y=138,aa=
3):ba===w?(y=6,aa=3):(y=7,aa=4)}}}function na(e){var f=4093624447,h;for(h=0;31>=h;h++,f>>>=1)if(f&1&&0!==e.Kf[2*h])return 0;if(0!==e.Kf[18]||0!==e.Kf[20]||0!==e.Kf[26])return 1;for(h=32;256>h;h++)if(0!==e.Kf[2*h])return 1;return 0}function pa(e,f,h,r){ca(e,r?1:0,3);n(e);ha(e,h);ha(e,~h);la.Wg(e.Zc,e.window,f,h,e.cb);e.cb+=h}var la=e(401),ra=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],oa=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ya=[0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,2,3,7],Fa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ua=Array(576);ba(ua);var qa=Array(60);ba(qa);var ka=Array(512);ba(ka);var wa=Array(256);ba(wa);var Aa=Array(29);ba(Aa);var ta=Array(30);ba(ta);var Da,Ea,za,Ga=!1;da.o0=function(e){if(!Ga){var f,h,n,x=Array(16);for(n=h=0;28>n;n++)for(Aa[n]=h,f=0;f<1<<ra[n];f++)wa[h++]=n;wa[h-1]=n;for(n=h=0;16>n;n++)for(ta[n]=h,f=0;f<1<<oa[n];f++)ka[h++]=n;for(h>>=7;30>n;n++)for(ta[n]=h<<7,f=0;f<1<<oa[n]-7;f++)ka[256+h++]=n;for(f=0;15>=f;f++)x[f]=
0;for(f=0;143>=f;)ua[2*f+1]=8,f++,x[8]++;for(;255>=f;)ua[2*f+1]=9,f++,x[9]++;for(;279>=f;)ua[2*f+1]=7,f++,x[7]++;for(;287>=f;)ua[2*f+1]=8,f++,x[8]++;y(ua,287,x);for(f=0;30>f;f++)qa[2*f+1]=5,qa[2*f]=w(f,5);Da=new ea(ua,ra,257,286,15);Ea=new ea(qa,oa,0,30,15);za=new ea([],ya,0,19,7);Ga=!0}e.CB=new aa(e.Kf,Da);e.Mz=new aa(e.yo,Ea);e.NO=new aa(e.Qe,za);e.nf=0;e.oe=0;r(e)};da.p0=pa;da.n0=function(e,f,h,w){var y=0;if(0<e.level){2===e.kb.Nz&&(e.kb.Nz=na(e));fa(e,e.CB);fa(e,e.Mz);ma(e,e.Kf,e.CB.Yr);ma(e,
e.yo,e.Mz.Yr);fa(e,e.NO);for(y=18;3<=y&&0===e.Qe[2*Fa[y]+1];y--);e.ll+=3*(y+1)+14;var z=e.ll+3+7>>>3;var aa=e.Ms+3+7>>>3;aa<=z&&(z=aa)}else z=aa=h+5;if(h+4<=z&&-1!==f)pa(e,f,h,w);else if(4===e.Rj||aa===z)ca(e,2+(w?1:0),3),x(e,ua,qa);else{ca(e,4+(w?1:0),3);f=e.CB.Yr+1;h=e.Mz.Yr+1;y+=1;ca(e,f-257,5);ca(e,h-1,5);ca(e,y-4,4);for(z=0;z<y;z++)ca(e,e.Qe[2*Fa[z]+1],3);ja(e,e.Kf,f-1);ja(e,e.yo,h-1);x(e,e.Kf,e.yo)}r(e);w&&n(e)};da.em=function(e,f,h){e.Zc[e.Bu+2*e.lh]=f>>>8&255;e.Zc[e.Bu+2*e.lh+1]=f&255;e.Zc[e.uI+
e.lh]=h&255;e.lh++;0===f?e.Kf[2*h]++:(e.matches++,f--,e.Kf[2*(wa[h]+256+1)]++,e.yo[2*(256>f?ka[f]:ka[256+(f>>>7)])]++);return e.lh===e.Kv-1};da.m0=function(e){ca(e,2,3);z(e,256,ua);16===e.oe?(ha(e,e.nf),e.nf=0,e.oe=0):8<=e.oe&&(e.Zc[e.cb++]=e.nf&255,e.nf>>=8,e.oe-=8)}},418:function(ia,da,e){function ba(e){if(!(this instanceof ba))return new ba(e);var f=this.options=ha.assign({AF:16384,jc:0,to:""},e||{});f.raw&&0<=f.jc&&16>f.jc&&(f.jc=-f.jc,0===f.jc&&(f.jc=-15));!(0<=f.jc&&16>f.jc)||e&&e.jc||(f.jc+=
32);15<f.jc&&48>f.jc&&0===(f.jc&15)&&(f.jc|=15);this.Co=0;this.zb="";this.ended=!1;this.wk=[];this.kb=new y;this.kb.Oa=0;e=aa.U9(this.kb,f.jc);if(e!==z.Cn)throw Error(w[e]);this.header=new r;aa.T9(this.kb,this.header);if(f.Wc&&("string"===typeof f.Wc?f.Wc=ca.KK(f.Wc):"[object ArrayBuffer]"===n.call(f.Wc)&&(f.Wc=new Uint8Array(f.Wc)),f.raw&&(e=aa.SR(this.kb,f.Wc),e!==z.Cn)))throw Error(w[e]);}function ea(e,f){f=new ba(f);f.push(e,!0);if(f.Co)throw f.zb||w[f.Co];return f.result}var aa=e(419),ha=e(401),
ca=e(406),z=e(408),w=e(402),y=e(407),r=e(422),n=Object.prototype.toString;ba.prototype.push=function(e,f){var h=this.kb,r=this.options.AF,w=this.options.Wc,y=!1;if(this.ended)return!1;f=f===~~f?f:!0===f?z.Qx:z.ZL;"string"===typeof e?h.input=ca.B1(e):"[object ArrayBuffer]"===n.call(e)?h.input=new Uint8Array(e):h.input=e;h.sf=0;h.dc=h.input.length;do{0===h.Oa&&(h.output=new ha.Fh(r),h.fd=0,h.Oa=r);e=aa.Vk(h,z.ZL);e===z.KZ&&w&&(e=aa.SR(this.kb,w));e===z.JZ&&!0===y&&(e=z.Cn,y=!1);if(e!==z.Rx&&e!==z.Cn)return this.Gj(e),
this.ended=!0,!1;if(h.fd&&(0===h.Oa||e===z.Rx||0===h.dc&&(f===z.Qx||f===z.$L)))if("string"===this.options.to){var ba=ca.Eha(h.output,h.fd);var ea=h.fd-ba;var da=ca.K1(h.output,ba);h.fd=ea;h.Oa=r-ea;ea&&ha.Wg(h.output,h.output,ba,ea,0);this.Yv(da)}else this.Yv(ha.TC(h.output,h.fd));0===h.dc&&0===h.Oa&&(y=!0)}while((0<h.dc||0===h.Oa)&&e!==z.Rx);e===z.Rx&&(f=z.Qx);if(f===z.Qx)return e=aa.S9(this.kb),this.Gj(e),this.ended=!0,e===z.Cn;f===z.$L&&(this.Gj(z.Cn),h.Oa=0);return!0};ba.prototype.Yv=function(e){this.wk.push(e)};
ba.prototype.Gj=function(e){e===z.Cn&&(this.result="string"===this.options.to?this.wk.join(""):ha.zG(this.wk));this.wk=[];this.Co=e;this.zb=this.kb.zb};da.gia=ba;da.Vk=ea;da.Bka=function(e,f){f=f||{};f.raw=!0;return ea(e,f)};da.Mla=ea},419:function(ia,da,e){function ba(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function ea(){this.mode=0;this.last=!1;this.wrap=0;this.JH=!1;this.total=this.check=this.Yz=this.flags=0;this.head=null;this.eg=this.Gl=this.fg=this.Zs=0;this.window=
null;this.ec=this.offset=this.length=this.Bd=this.Mm=0;this.xo=this.hl=null;this.ih=this.Sv=this.$r=this.cT=this.Zq=this.yj=0;this.next=null;this.af=new y.hg(320);this.mx=new y.hg(288);this.IP=this.LS=null;this.Mha=this.back=this.QJ=0}function aa(e){if(!e||!e.state)return-2;var f=e.state;e.Uj=e.nn=f.total=0;e.zb="";f.wrap&&(e.jb=f.wrap&1);f.mode=1;f.last=0;f.JH=0;f.Yz=32768;f.head=null;f.Mm=0;f.Bd=0;f.hl=f.LS=new y.ht(852);f.xo=f.IP=new y.ht(592);f.QJ=1;f.back=-1;return 0}function ha(e){if(!e||!e.state)return-2;
var f=e.state;f.fg=0;f.Gl=0;f.eg=0;return aa(e)}function ca(e,f){if(!e||!e.state)return-2;var h=e.state;if(0>f){var n=0;f=-f}else n=(f>>4)+1,48>f&&(f&=15);if(f&&(8>f||15<f))return-2;null!==h.window&&h.Zs!==f&&(h.window=null);h.wrap=n;h.Zs=f;return ha(e)}function z(e,f){if(!e)return-2;var h=new ea;e.state=h;h.window=null;f=ca(e,f);0!==f&&(e.state=null);return f}function w(e,f,h,n){var r=e.state;null===r.window&&(r.fg=1<<r.Zs,r.eg=0,r.Gl=0,r.window=new y.Fh(r.fg));n>=r.fg?(y.Wg(r.window,f,h-r.fg,r.fg,
0),r.eg=0,r.Gl=r.fg):(e=r.fg-r.eg,e>n&&(e=n),y.Wg(r.window,f,h-n,e,r.eg),(n-=e)?(y.Wg(r.window,f,h-n,n,0),r.eg=n,r.Gl=r.fg):(r.eg+=e,r.eg===r.fg&&(r.eg=0),r.Gl<r.fg&&(r.Gl+=e)));return 0}var y=e(401),r=e(404),n=e(405),h=e(420),f=e(421),x=!0,fa,ma;da.Cka=ha;da.Dka=ca;da.Eka=aa;da.Aka=function(e){return z(e,15)};da.U9=z;da.Vk=function(e,z){var aa,ca=new y.Fh(4),ea=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.dc)return-2;var da=e.state;12===da.mode&&(da.mode=
13);var ha=e.fd;var ia=e.output;var ja=e.Oa;var na=e.sf;var ka=e.input;var wa=e.dc;var Aa=da.Mm;var ta=da.Bd;var Da=wa;var Ea=ja;var za=0;a:for(;;)switch(da.mode){case 1:if(0===da.wrap){da.mode=13;break}for(;16>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(da.wrap&2&&35615===Aa){da.check=0;ca[0]=Aa&255;ca[1]=Aa>>>8&255;da.check=n(da.check,ca,2,0);ta=Aa=0;da.mode=2;break}da.flags=0;da.head&&(da.head.done=!1);if(!(da.wrap&1)||(((Aa&255)<<8)+(Aa>>8))%31){e.zb="incorrect header check";da.mode=
30;break}if(8!==(Aa&15)){e.zb="unknown compression method";da.mode=30;break}Aa>>>=4;ta-=4;var Ga=(Aa&15)+8;if(0===da.Zs)da.Zs=Ga;else if(Ga>da.Zs){e.zb="invalid window size";da.mode=30;break}da.Yz=1<<Ga;e.jb=da.check=1;da.mode=Aa&512?10:12;ta=Aa=0;break;case 2:for(;16>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.flags=Aa;if(8!==(da.flags&255)){e.zb="unknown compression method";da.mode=30;break}if(da.flags&57344){e.zb="unknown header flags set";da.mode=30;break}da.head&&(da.head.text=Aa>>
8&1);da.flags&512&&(ca[0]=Aa&255,ca[1]=Aa>>>8&255,da.check=n(da.check,ca,2,0));ta=Aa=0;da.mode=3;case 3:for(;32>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.head&&(da.head.time=Aa);da.flags&512&&(ca[0]=Aa&255,ca[1]=Aa>>>8&255,ca[2]=Aa>>>16&255,ca[3]=Aa>>>24&255,da.check=n(da.check,ca,4,0));ta=Aa=0;da.mode=4;case 4:for(;16>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.head&&(da.head.Vha=Aa&255,da.head.xT=Aa>>8);da.flags&512&&(ca[0]=Aa&255,ca[1]=Aa>>>8&255,da.check=n(da.check,ca,2,
0));ta=Aa=0;da.mode=5;case 5:if(da.flags&1024){for(;16>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.length=Aa;da.head&&(da.head.sG=Aa);da.flags&512&&(ca[0]=Aa&255,ca[1]=Aa>>>8&255,da.check=n(da.check,ca,2,0));ta=Aa=0}else da.head&&(da.head.ec=null);da.mode=6;case 6:if(da.flags&1024){var Ca=da.length;Ca>wa&&(Ca=wa);Ca&&(da.head&&(Ga=da.head.sG-da.length,da.head.ec||(da.head.ec=Array(da.head.sG)),y.Wg(da.head.ec,ka,na,Ca,Ga)),da.flags&512&&(da.check=n(da.check,ka,Ca,na)),wa-=Ca,na+=Ca,da.length-=
Ca);if(da.length)break a}da.length=0;da.mode=7;case 7:if(da.flags&2048){if(0===wa)break a;Ca=0;do Ga=ka[na+Ca++],da.head&&Ga&&65536>da.length&&(da.head.name+=String.fromCharCode(Ga));while(Ga&&Ca<wa);da.flags&512&&(da.check=n(da.check,ka,Ca,na));wa-=Ca;na+=Ca;if(Ga)break a}else da.head&&(da.head.name=null);da.length=0;da.mode=8;case 8:if(da.flags&4096){if(0===wa)break a;Ca=0;do Ga=ka[na+Ca++],da.head&&Ga&&65536>da.length&&(da.head.no+=String.fromCharCode(Ga));while(Ga&&Ca<wa);da.flags&512&&(da.check=
n(da.check,ka,Ca,na));wa-=Ca;na+=Ca;if(Ga)break a}else da.head&&(da.head.no=null);da.mode=9;case 9:if(da.flags&512){for(;16>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(Aa!==(da.check&65535)){e.zb="header crc mismatch";da.mode=30;break}ta=Aa=0}da.head&&(da.head.pj=da.flags>>9&1,da.head.done=!0);e.jb=da.check=0;da.mode=12;break;case 10:for(;32>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}e.jb=da.check=ba(Aa);ta=Aa=0;da.mode=11;case 11:if(0===da.JH)return e.fd=ha,e.Oa=ja,e.sf=na,e.dc=
wa,da.Mm=Aa,da.Bd=ta,2;e.jb=da.check=1;da.mode=12;case 12:if(5===z||6===z)break a;case 13:if(da.last){Aa>>>=ta&7;ta-=ta&7;da.mode=27;break}for(;3>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.last=Aa&1;Aa>>>=1;--ta;switch(Aa&3){case 0:da.mode=14;break;case 1:Ga=da;if(x){fa=new y.ht(512);ma=new y.ht(32);for(Ca=0;144>Ca;)Ga.af[Ca++]=8;for(;256>Ca;)Ga.af[Ca++]=9;for(;280>Ca;)Ga.af[Ca++]=7;for(;288>Ca;)Ga.af[Ca++]=8;f(1,Ga.af,0,288,fa,0,Ga.mx,{Bd:9});for(Ca=0;32>Ca;)Ga.af[Ca++]=5;f(2,Ga.af,0,
32,ma,0,Ga.mx,{Bd:5});x=!1}Ga.hl=fa;Ga.yj=9;Ga.xo=ma;Ga.Zq=5;da.mode=20;if(6===z){Aa>>>=2;ta-=2;break a}break;case 2:da.mode=17;break;case 3:e.zb="invalid block type",da.mode=30}Aa>>>=2;ta-=2;break;case 14:Aa>>>=ta&7;for(ta-=ta&7;32>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if((Aa&65535)!==(Aa>>>16^65535)){e.zb="invalid stored block lengths";da.mode=30;break}da.length=Aa&65535;ta=Aa=0;da.mode=15;if(6===z)break a;case 15:da.mode=16;case 16:if(Ca=da.length){Ca>wa&&(Ca=wa);Ca>ja&&(Ca=ja);if(0===
Ca)break a;y.Wg(ia,ka,na,Ca,ha);wa-=Ca;na+=Ca;ja-=Ca;ha+=Ca;da.length-=Ca;break}da.mode=12;break;case 17:for(;14>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.$r=(Aa&31)+257;Aa>>>=5;ta-=5;da.Sv=(Aa&31)+1;Aa>>>=5;ta-=5;da.cT=(Aa&15)+4;Aa>>>=4;ta-=4;if(286<da.$r||30<da.Sv){e.zb="too many length or distance symbols";da.mode=30;break}da.ih=0;da.mode=18;case 18:for(;da.ih<da.cT;){for(;3>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.af[ea[da.ih++]]=Aa&7;Aa>>>=3;ta-=3}for(;19>da.ih;)da.af[ea[da.ih++]]=
0;da.hl=da.LS;da.yj=7;Ca={Bd:da.yj};za=f(0,da.af,0,19,da.hl,0,da.mx,Ca);da.yj=Ca.Bd;if(za){e.zb="invalid code lengths set";da.mode=30;break}da.ih=0;da.mode=19;case 19:for(;da.ih<da.$r+da.Sv;){for(;;){var Ja=da.hl[Aa&(1<<da.yj)-1];Ca=Ja>>>24;Ja&=65535;if(Ca<=ta)break;if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(16>Ja)Aa>>>=Ca,ta-=Ca,da.af[da.ih++]=Ja;else{if(16===Ja){for(Ga=Ca+2;ta<Ga;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}Aa>>>=Ca;ta-=Ca;if(0===da.ih){e.zb="invalid bit length repeat";
da.mode=30;break}Ga=da.af[da.ih-1];Ca=3+(Aa&3);Aa>>>=2;ta-=2}else if(17===Ja){for(Ga=Ca+3;ta<Ga;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}Aa>>>=Ca;ta-=Ca;Ga=0;Ca=3+(Aa&7);Aa>>>=3;ta-=3}else{for(Ga=Ca+7;ta<Ga;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}Aa>>>=Ca;ta-=Ca;Ga=0;Ca=11+(Aa&127);Aa>>>=7;ta-=7}if(da.ih+Ca>da.$r+da.Sv){e.zb="invalid bit length repeat";da.mode=30;break}for(;Ca--;)da.af[da.ih++]=Ga}}if(30===da.mode)break;if(0===da.af[256]){e.zb="invalid code -- missing end-of-block";
da.mode=30;break}da.yj=9;Ca={Bd:da.yj};za=f(1,da.af,0,da.$r,da.hl,0,da.mx,Ca);da.yj=Ca.Bd;if(za){e.zb="invalid literal/lengths set";da.mode=30;break}da.Zq=6;da.xo=da.IP;Ca={Bd:da.Zq};za=f(2,da.af,da.$r,da.Sv,da.xo,0,da.mx,Ca);da.Zq=Ca.Bd;if(za){e.zb="invalid distances set";da.mode=30;break}da.mode=20;if(6===z)break a;case 20:da.mode=21;case 21:if(6<=wa&&258<=ja){e.fd=ha;e.Oa=ja;e.sf=na;e.dc=wa;da.Mm=Aa;da.Bd=ta;h(e,Ea);ha=e.fd;ia=e.output;ja=e.Oa;na=e.sf;ka=e.input;wa=e.dc;Aa=da.Mm;ta=da.Bd;12===
da.mode&&(da.back=-1);break}for(da.back=0;;){Ja=da.hl[Aa&(1<<da.yj)-1];Ca=Ja>>>24;Ga=Ja>>>16&255;Ja&=65535;if(Ca<=ta)break;if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(Ga&&0===(Ga&240)){var Ba=Ca;var va=Ga;for(aa=Ja;;){Ja=da.hl[aa+((Aa&(1<<Ba+va)-1)>>Ba)];Ca=Ja>>>24;Ga=Ja>>>16&255;Ja&=65535;if(Ba+Ca<=ta)break;if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}Aa>>>=Ba;ta-=Ba;da.back+=Ba}Aa>>>=Ca;ta-=Ca;da.back+=Ca;da.length=Ja;if(0===Ga){da.mode=26;break}if(Ga&32){da.back=-1;da.mode=12;break}if(Ga&
64){e.zb="invalid literal/length code";da.mode=30;break}da.ec=Ga&15;da.mode=22;case 22:if(da.ec){for(Ga=da.ec;ta<Ga;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.length+=Aa&(1<<da.ec)-1;Aa>>>=da.ec;ta-=da.ec;da.back+=da.ec}da.Mha=da.length;da.mode=23;case 23:for(;;){Ja=da.xo[Aa&(1<<da.Zq)-1];Ca=Ja>>>24;Ga=Ja>>>16&255;Ja&=65535;if(Ca<=ta)break;if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(0===(Ga&240)){Ba=Ca;va=Ga;for(aa=Ja;;){Ja=da.xo[aa+((Aa&(1<<Ba+va)-1)>>Ba)];Ca=Ja>>>24;Ga=Ja>>>16&255;
Ja&=65535;if(Ba+Ca<=ta)break;if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}Aa>>>=Ba;ta-=Ba;da.back+=Ba}Aa>>>=Ca;ta-=Ca;da.back+=Ca;if(Ga&64){e.zb="invalid distance code";da.mode=30;break}da.offset=Ja;da.ec=Ga&15;da.mode=24;case 24:if(da.ec){for(Ga=da.ec;ta<Ga;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}da.offset+=Aa&(1<<da.ec)-1;Aa>>>=da.ec;ta-=da.ec;da.back+=da.ec}if(da.offset>da.Yz){e.zb="invalid distance too far back";da.mode=30;break}da.mode=25;case 25:if(0===ja)break a;Ca=Ea-ja;if(da.offset>
Ca){Ca=da.offset-Ca;if(Ca>da.Gl&&da.QJ){e.zb="invalid distance too far back";da.mode=30;break}Ca>da.eg?(Ca-=da.eg,Ga=da.fg-Ca):Ga=da.eg-Ca;Ca>da.length&&(Ca=da.length);Ba=da.window}else Ba=ia,Ga=ha-da.offset,Ca=da.length;Ca>ja&&(Ca=ja);ja-=Ca;da.length-=Ca;do ia[ha++]=Ba[Ga++];while(--Ca);0===da.length&&(da.mode=21);break;case 26:if(0===ja)break a;ia[ha++]=da.length;ja--;da.mode=21;break;case 27:if(da.wrap){for(;32>ta;){if(0===wa)break a;wa--;Aa|=ka[na++]<<ta;ta+=8}Ea-=ja;e.nn+=Ea;da.total+=Ea;Ea&&
(e.jb=da.check=da.flags?n(da.check,ia,Ea,ha-Ea):r(da.check,ia,Ea,ha-Ea));Ea=ja;if((da.flags?Aa:ba(Aa))!==da.check){e.zb="incorrect data check";da.mode=30;break}ta=Aa=0}da.mode=28;case 28:if(da.wrap&&da.flags){for(;32>ta;){if(0===wa)break a;wa--;Aa+=ka[na++]<<ta;ta+=8}if(Aa!==(da.total&4294967295)){e.zb="incorrect length check";da.mode=30;break}ta=Aa=0}da.mode=29;case 29:za=1;break a;case 30:za=-3;break a;case 31:return-4;default:return-2}e.fd=ha;e.Oa=ja;e.sf=na;e.dc=wa;da.Mm=Aa;da.Bd=ta;if((da.fg||
Ea!==e.Oa&&30>da.mode&&(27>da.mode||4!==z))&&w(e,e.output,e.fd,Ea-e.Oa))return da.mode=31,-4;Da-=e.dc;Ea-=e.Oa;e.Uj+=Da;e.nn+=Ea;da.total+=Ea;da.wrap&&Ea&&(e.jb=da.check=da.flags?n(da.check,ia,Ea,e.fd-Ea):r(da.check,ia,Ea,e.fd-Ea));e.Nz=da.Bd+(da.last?64:0)+(12===da.mode?128:0)+(20===da.mode||15===da.mode?256:0);(0===Da&&0===Ea||4===z)&&0===za&&(za=-5);return za};da.S9=function(e){if(!e||!e.state)return-2;var f=e.state;f.window&&(f.window=null);e.state=null;return 0};da.T9=function(e,f){e&&e.state&&
(e=e.state,0!==(e.wrap&2)&&(e.head=f,f.done=!1))};da.SR=function(e,f){var h=f.length;if(!e||!e.state)return-2;var n=e.state;if(0!==n.wrap&&11!==n.mode)return-2;if(11===n.mode){var x=r(1,f,h,0);if(x!==n.check)return-3}if(w(e,f,h,h))return n.mode=31,-4;n.JH=1;return 0};da.zka="pako inflate (from Nodeca project)"},420:function(ia){ia.exports=function(da,e){var ba=da.state;var ea=da.sf;var aa=da.input;var ha=ea+(da.dc-5);var ca=da.fd;var z=da.output;e=ca-(e-da.Oa);var w=ca+(da.Oa-257);var y=ba.Yz;var r=
ba.fg;var n=ba.Gl;var h=ba.eg;var f=ba.window;var x=ba.Mm;var fa=ba.Bd;var ia=ba.hl;var ja=ba.xo;var na=(1<<ba.yj)-1;var pa=(1<<ba.Zq)-1;a:do{15>fa&&(x+=aa[ea++]<<fa,fa+=8,x+=aa[ea++]<<fa,fa+=8);var la=ia[x&na];b:for(;;){var ra=la>>>24;x>>>=ra;fa-=ra;ra=la>>>16&255;if(0===ra)z[ca++]=la&65535;else if(ra&16){var oa=la&65535;if(ra&=15)fa<ra&&(x+=aa[ea++]<<fa,fa+=8),oa+=x&(1<<ra)-1,x>>>=ra,fa-=ra;15>fa&&(x+=aa[ea++]<<fa,fa+=8,x+=aa[ea++]<<fa,fa+=8);la=ja[x&pa];c:for(;;){ra=la>>>24;x>>>=ra;fa-=ra;ra=la>>>
16&255;if(ra&16){la&=65535;ra&=15;fa<ra&&(x+=aa[ea++]<<fa,fa+=8,fa<ra&&(x+=aa[ea++]<<fa,fa+=8));la+=x&(1<<ra)-1;if(la>y){da.zb="invalid distance too far back";ba.mode=30;break a}x>>>=ra;fa-=ra;ra=ca-e;if(la>ra){ra=la-ra;if(ra>n&&ba.QJ){da.zb="invalid distance too far back";ba.mode=30;break a}var ya=0;var Fa=f;if(0===h){if(ya+=r-ra,ra<oa){oa-=ra;do z[ca++]=f[ya++];while(--ra);ya=ca-la;Fa=z}}else if(h<ra){if(ya+=r+h-ra,ra-=h,ra<oa){oa-=ra;do z[ca++]=f[ya++];while(--ra);ya=0;if(h<oa){ra=h;oa-=ra;do z[ca++]=
f[ya++];while(--ra);ya=ca-la;Fa=z}}}else if(ya+=h-ra,ra<oa){oa-=ra;do z[ca++]=f[ya++];while(--ra);ya=ca-la;Fa=z}for(;2<oa;)z[ca++]=Fa[ya++],z[ca++]=Fa[ya++],z[ca++]=Fa[ya++],oa-=3;oa&&(z[ca++]=Fa[ya++],1<oa&&(z[ca++]=Fa[ya++]))}else{ya=ca-la;do z[ca++]=z[ya++],z[ca++]=z[ya++],z[ca++]=z[ya++],oa-=3;while(2<oa);oa&&(z[ca++]=z[ya++],1<oa&&(z[ca++]=z[ya++]))}}else if(0===(ra&64)){la=ja[(la&65535)+(x&(1<<ra)-1)];continue c}else{da.zb="invalid distance code";ba.mode=30;break a}break}}else if(0===(ra&64)){la=
ia[(la&65535)+(x&(1<<ra)-1)];continue b}else{ra&32?ba.mode=12:(da.zb="invalid literal/length code",ba.mode=30);break a}break}}while(ea<ha&&ca<w);oa=fa>>3;ea-=oa;fa-=oa<<3;da.sf=ea;da.fd=ca;da.dc=ea<ha?5+(ha-ea):5-(ea-ha);da.Oa=ca<w?257+(w-ca):257-(ca-w);ba.Mm=x&(1<<fa)-1;ba.Bd=fa}},421:function(ia,da,e){var ba=e(401),ea=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],aa=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,
16,72,78],ha=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],ca=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];ia.exports=function(e,w,y,r,n,h,f,x){var z=x.Bd,da,ia,na,pa,la,ra,oa=0,ya=new ba.hg(16);var Fa=new ba.hg(16);var ua,qa=0;for(da=0;15>=da;da++)ya[da]=0;for(ia=0;ia<r;ia++)ya[w[y+ia]]++;var ka=z;for(na=15;1<=na&&0===ya[na];na--);ka>na&&(ka=na);if(0===na)return n[h++]=20971520,
n[h++]=20971520,x.Bd=1,0;for(z=1;z<na&&0===ya[z];z++);ka<z&&(ka=z);for(da=pa=1;15>=da;da++)if(pa<<=1,pa-=ya[da],0>pa)return-1;if(0<pa&&(0===e||1!==na))return-1;Fa[1]=0;for(da=1;15>da;da++)Fa[da+1]=Fa[da]+ya[da];for(ia=0;ia<r;ia++)0!==w[y+ia]&&(f[Fa[w[y+ia]]++]=ia);if(0===e){var wa=ua=f;var Aa=19}else 1===e?(wa=ea,oa-=257,ua=aa,qa-=257,Aa=256):(wa=ha,ua=ca,Aa=-1);ia=la=0;da=z;var ta=h;r=ka;Fa=0;var Da=-1;var Ea=1<<ka;var za=Ea-1;if(1===e&&852<Ea||2===e&&592<Ea)return 1;for(;;){var Ga=da-Fa;if(f[ia]<
Aa){var Ca=0;var Ja=f[ia]}else f[ia]>Aa?(Ca=ua[qa+f[ia]],Ja=wa[oa+f[ia]]):(Ca=96,Ja=0);pa=1<<da-Fa;z=ra=1<<r;do ra-=pa,n[ta+(la>>Fa)+ra]=Ga<<24|Ca<<16|Ja|0;while(0!==ra);for(pa=1<<da-1;la&pa;)pa>>=1;0!==pa?(la&=pa-1,la+=pa):la=0;ia++;if(0===--ya[da]){if(da===na)break;da=w[y+f[ia]]}if(da>ka&&(la&za)!==Da){0===Fa&&(Fa=ka);ta+=z;r=da-Fa;for(pa=1<<r;r+Fa<na;){pa-=ya[r+Fa];if(0>=pa)break;r++;pa<<=1}Ea+=1<<r;if(1===e&&852<Ea||2===e&&592<Ea)return 1;Da=la&za;n[Da]=ka<<24|r<<16|ta-h|0}}0!==la&&(n[ta+la]=
da-Fa<<24|4194304);x.Bd=ka;return 0}},422:function(ia){ia.exports=function(){this.xT=this.Vha=this.time=this.text=0;this.ec=null;this.sG=0;this.no=this.name="";this.pj=0;this.done=!1}}}]);}).call(this || window)

View File

@ -1,410 +0,0 @@
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{352:function(ia,da,e){(function(e){(function(e,aa){ia.exports=aa()})("undefined"!==typeof self?self:this,function(){return function(e){function aa(ca){if(ea[ca])return ea[ca].exports;var z=ea[ca]={i:ca,l:!1,exports:{}};e[ca].call(z.exports,z,z.exports,aa);z.l=!0;return z.exports}var ea={};aa.m=e;aa.c=ea;aa.d=function(e,z,w){aa.o(e,z)||Object.defineProperty(e,z,{configurable:!1,enumerable:!0,get:w})};aa.n=function(e){var z=e&&
e.__esModule?function(){return e["default"]}:function(){return e};aa.d(z,"a",z);return z};aa.o=function(e,z){return Object.prototype.hasOwnProperty.call(e,z)};aa.p="";return aa(aa.s=109)}([function(e,aa,ha){Object.defineProperty(aa,"__esModule",{value:!0});e=ha(17);var ca=ha(18),z=ha(19),w=ha(45),y=ha(46),r=ha(47),n=ha(48),h=ha(49),f=ha(12),x=ha(32),fa=ha(33),ea=ha(31);ha=ha(1);aa.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:e.default,Format:ca.default,
Leaf:z.default,Embed:n.default,Scroll:w.default,Block:r.default,Inline:y.default,Text:h.default,Attributor:{Attribute:f.default,Class:x.default,Style:fa.default,Store:ea.default}}},function(e,aa){function ea(f,e){void 0===e&&(e=!1);return null==f?null:null!=f[aa.DATA_KEY]?f[aa.DATA_KEY].blot:e?ea(f.parentNode,e):null}function ca(e,w){void 0===w&&(w=x.ANY);if("string"===typeof e)var y=f[e]||r[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)y=f.text;else if("number"===typeof e)e&x.LEVEL&x.BLOCK?
y=f.block:e&x.LEVEL&x.INLINE&&(y=f.inline);else if(e instanceof HTMLElement){var z=(e.getAttribute("class")||"").split(/\s+/),aa;for(aa in z)if(y=n[z[aa]])break;y=y||h[e.tagName]}return null==y?null:w&x.LEVEL&y.scope&&w&x.TYPE&y.scope?y:null}function z(){for(var e=[],w=0;w<arguments.length;w++)e[w]=arguments[w];if(1<e.length)return e.map(function(f){return z(f)});var x=e[0];if("string"!==typeof x.blotName&&"string"!==typeof x.attrName)throw new y("Invalid definition");if("abstract"===x.blotName)throw new y("Cannot register abstract class");
f[x.blotName||x.attrName]=x;"string"===typeof x.keyName?r[x.keyName]=x:(null!=x.className&&(n[x.className]=x),null!=x.tagName&&(Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(f){return f.toUpperCase()}):x.tagName=x.tagName.toUpperCase(),(Array.isArray(x.tagName)?x.tagName:[x.tagName]).forEach(function(f){if(null==h[f]||null==x.className)h[f]=x})));return x}var w=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,
e){for(var h in e)e.hasOwnProperty(h)&&(f[h]=e[h])};return function(e,h){function n(){this.constructor=e}f(e,h);e.prototype=null===h?Object.create(h):(n.prototype=h.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});var y=function(f){function e(e){e="[Parchment] "+e;var h=f.call(this,e)||this;h.message=e;h.name=h.constructor.name;return h}w(e,f);return e}(Error);aa.ParchmentError=y;var r={},n={},h={},f={};aa.DATA_KEY="__blot";var x;(function(f){f[f.TYPE=3]="TYPE";f[f.LEVEL=12]=
"LEVEL";f[f.ATTRIBUTE=13]="ATTRIBUTE";f[f.BLOT=14]="BLOT";f[f.INLINE=7]="INLINE";f[f.BLOCK=11]="BLOCK";f[f.BLOCK_BLOT=10]="BLOCK_BLOT";f[f.INLINE_BLOT=6]="INLINE_BLOT";f[f.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";f[f.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";f[f.ANY=15]="ANY"})(x=aa.Scope||(aa.Scope={}));aa.create=function(f,e){var h=ca(f);if(null==h)throw new y("Unable to create "+f+" blot");f=f instanceof Node||f.nodeType===Node.TEXT_NODE?f:h.create(e);return new h(f,e)};aa.find=ea;aa.query=ca;aa.register=
z},function(e,aa,ha){function ca(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var z=ha(51),w=ha(11),y=ha(3),r=ha(20),n=String.fromCharCode(0);ca.prototype.insert=function(e,f){var h={};if(0===e.length)return this;h.insert=e;null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(h.attributes=f);return this.push(h)};ca.prototype["delete"]=function(e){return 0>=e?this:this.push({"delete":e})};ca.prototype.retain=function(e,f){if(0>=e)return this;e={retain:e};
null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(e.attributes=f);return this.push(e)};ca.prototype.push=function(e){var f=this.ops.length,h=this.ops[f-1];e=y(!0,{},e);if("object"===typeof h){if("number"===typeof e["delete"]&&"number"===typeof h["delete"])return this.ops[f-1]={"delete":h["delete"]+e["delete"]},this;if("number"===typeof h["delete"]&&null!=e.insert&&(--f,h=this.ops[f-1],"object"!==typeof h))return this.ops.unshift(e),this;if(w(e.attributes,h.attributes)){if("string"===typeof e.insert&&
"string"===typeof h.insert)return this.ops[f-1]={insert:h.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof h.retain)return this.ops[f-1]={retain:h.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);return this};ca.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();
return this};ca.prototype.filter=function(e){return this.ops.filter(e)};ca.prototype.forEach=function(e){this.ops.forEach(e)};ca.prototype.map=function(e){return this.ops.map(e)};ca.prototype.partition=function(e){var f=[],h=[];this.forEach(function(n){(e(n)?f:h).push(n)});return[f,h]};ca.prototype.reduce=function(e,f){return this.ops.reduce(e,f)};ca.prototype.changeLength=function(){return this.reduce(function(e,f){return f.insert?e+r.length(f):f.delete?e-f.delete:e},0)};ca.prototype.length=function(){return this.reduce(function(e,
f){return e+r.length(f)},0)};ca.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var h=[],n=r.iterator(this.ops),w=0;w<f&&n.hasNext();){if(w<e)var y=n.next(e-w);else y=n.next(f-w),h.push(y);w+=r.length(y)}return new ca(h)};ca.prototype.compose=function(e){var f=r.iterator(this.ops);e=r.iterator(e.ops);var h=[],n=e.peek();if(null!=n&&"number"===typeof n.retain&&null==n.attributes){for(var y=n.retain;"insert"===f.peekType()&&f.peekLength()<=y;)y-=f.peekLength(),h.push(f.next());
0<n.retain-y&&e.next(n.retain-y)}for(h=new ca(h);f.hasNext()||e.hasNext();)if("insert"===e.peekType())h.push(e.next());else if("delete"===f.peekType())h.push(f.next());else{y=Math.min(f.peekLength(),e.peekLength());var z=f.next(y),aa=e.next(y);if("number"===typeof aa.retain){n={};"number"===typeof z.retain?n.retain=y:n.insert=z.insert;if(y=r.attributes.compose(z.attributes,aa.attributes,"number"===typeof z.retain))n.attributes=y;h.push(n);if(!e.hasNext()&&w(h.ops[h.ops.length-1],n))return f=new ca(f.rest()),
h.concat(f).chop()}else"number"===typeof aa["delete"]&&"number"===typeof z.retain&&h.push(aa)}return h.chop()};ca.prototype.concat=function(e){var f=new ca(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};ca.prototype.diff=function(e,f){if(this.ops===e.ops)return new ca;var h=[this,e].map(function(f){return f.map(function(h){if(null!=h.insert)return"string"===typeof h.insert?h.insert:n;throw Error("diff() called "+(f===e?"on":"with")+" non-document");
}).join("")}),y=new ca;f=z(h[0],h[1],f);var aa=r.iterator(this.ops),ea=r.iterator(e.ops);f.forEach(function(f){for(var e=f[1].length;0<e;){var h=0;switch(f[0]){case z.INSERT:h=Math.min(ea.peekLength(),e);y.push(ea.next(h));break;case z.DELETE:h=Math.min(e,aa.peekLength());aa.next(h);y["delete"](h);break;case z.EQUAL:h=Math.min(aa.peekLength(),ea.peekLength(),e);var n=aa.next(h),x=ea.next(h);if(w(n.insert,x.insert))y.retain(h,r.attributes.diff(n.attributes,x.attributes));else y.push(x)["delete"](h)}e-=
h}});return y.chop()};ca.prototype.eachLine=function(e,f){f=f||"\n";for(var h=r.iterator(this.ops),n=new ca,w=0;h.hasNext();){if("insert"!==h.peekType())return;var y=h.peek(),z=r.length(y)-h.peekLength();y="string"===typeof y.insert?y.insert.indexOf(f,z)-z:-1;if(0>y)n.push(h.next());else if(0<y)n.push(h.next(y));else{if(!1===e(n,h.next(1).attributes||{},w))return;w+=1;n=new ca}}0<n.length()&&e(n,{},w)};ca.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,
f);var h=r.iterator(this.ops);e=r.iterator(e.ops);for(var n=new ca;h.hasNext()||e.hasNext();)if("insert"!==h.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())n.push(e.next());else{var w=Math.min(h.peekLength(),e.peekLength()),y=h.next(w),z=e.next(w);y["delete"]||(z["delete"]?n.push(z):n.retain(w,r.attributes.transform(y.attributes,z.attributes,f)))}else n.retain(r.length(h.next()));return n.chop()};ca.prototype.transformPosition=function(e,f){f=!!f;for(var h=r.iterator(this.ops),
n=0;h.hasNext()&&n<=e;){var w=h.peekLength(),y=h.peekType();h.next();"delete"===y?e-=Math.min(w,e-n):("insert"===y&&(n<e||!f)&&(e+=w),n+=w)}return e};e.exports=ca},function(e){function aa(e,f){if("__proto__"===f){if(!w.call(e,f))return;if(n)return n(e,f).value}return e[f]}function ea(e,f){r&&"__proto__"===f.name?r(e,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):e[f.name]=f.newValue}function ca(e){if(!e||"[object Object]"!==y.call(e))return!1;var f=w.call(e,"constructor"),h=
e.constructor&&e.constructor.prototype&&w.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!h)return!1;for(var n in e);return"undefined"===typeof n||w.call(e,n)}function z(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===y.call(e)}var w=Object.prototype.hasOwnProperty,y=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor;e.exports=function f(){var e,n,r=arguments[0],w=1,y=arguments.length,ha=!1;"boolean"===typeof r&&
(ha=r,r=arguments[1]||{},w=2);if(null==r||"object"!==typeof r&&"function"!==typeof r)r={};for(;w<y;++w){var ba=arguments[w];if(null!=ba)for(e in ba){var da=aa(r,e);var ia=aa(ba,e);r!==ia&&(ha&&ia&&(ca(ia)||(n=z(ia)))?(n?(n=!1,da=da&&z(da)?da:[]):da=da&&ca(da)?da:{},ea(r,{name:e,newValue:f(ha,da,ia)})):"undefined"!==typeof ia&&ea(r,{name:e,newValue:ia}))}}return r}},function(e,aa,ha){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");
}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(e){var h=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return h;"function"===typeof e.formats&&(h=(0,f.default)(h,e.formats()));return null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?h:r(e.parent,h)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BlockEmbed=aa.bubbleFormats=void 0;var n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),h=function ya(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ya(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ha(3);var f=ca(e);e=ha(2);var x=ca(e);e=ha(0);var fa=ca(e);e=ha(16);var ea=ca(e);e=ha(6);e=ca(e);ha=ha(7);ha=ca(ha);var ba=function(e){function r(){z(this,r);return w(this,(r.__proto__||
Object.getPrototypeOf(r)).apply(this,arguments))}y(r,e);n(r,[{key:"attach",value:function(){h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"attach",this).call(this);this.attributes=new fa.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new x.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(f,e){f=fa.default.query(f,fa.default.Scope.BLOCK_ATTRIBUTE);null!=f&&this.attributes.attribute(f,e)}},
{key:"formatAt",value:function(f,e,h,n){this.format(h,n)}},{key:"insertAt",value:function(f,e,n){"string"===typeof e&&e.endsWith("\n")?(n=fa.default.create(da.blotName),this.parent.insertBefore(n,0===f?this:this.next),n.insertAt(0,e.slice(0,-1))):h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",this).call(this,f,e,n)}}]);return r}(fa.default.Embed);ba.scope=fa.default.Scope.BLOCK_BLOT;var da=function(f){function e(f){z(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,
f));f.cache={};return f}y(e,f);n(e,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(fa.default.Leaf).reduce(function(f,e){return 0===e.length()?f:f.insert(e.value(),r(e))},new x.default).insert("\n",r(this)));return this.cache.delta}},{key:"deleteAt",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,f,n);this.cache={}}},{key:"formatAt",value:function(f,n,r,w){0>=n||(fa.default.query(r,fa.default.Scope.BLOCK)?
f+n===this.length()&&this.format(r,w):h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,f,Math.min(n,this.length()-f-1),r,w),this.cache={})}},{key:"insertAt",value:function(f,n,r){if(null!=r)return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,f,n,r);if(0!==n.length){n=n.split("\n");r=n.shift();0<r.length&&(f<this.length()-1||null==this.children.tail?h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",
this).call(this,Math.min(f,this.length()-1),r):this.children.tail.insertAt(this.children.tail.length(),r),this.cache={});var w=this;n.reduce(function(f,e){w=w.split(f,!0);w.insertAt(0,e);return e.length},f+r.length)}}},{key:"insertBefore",value:function(f,n){var r=this.children.head;h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,f,n);r instanceof ea.default&&r.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=
h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,f,n);this.cache={}}},{key:"optimize",value:function(f){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.cache={}}},{key:"path",value:function(f){return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
"path",this).call(this,f,!0)}},{key:"removeChild",value:function(f){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,f);this.cache={}}},{key:"split",value:function(f){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(n&&(0===f||f>=this.length()-1)){n=this.clone();if(0===f)return this.parent.insertBefore(n,this),this;this.parent.insertBefore(n,this.next);return n}n=h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,
f,n);this.cache={};return n}}]);return e}(fa.default.Block);da.blotName="block";da.tagName="P";da.defaultChild="break";da.allowedChildren=[e.default,fa.default.Embed,ha.default];aa.bubbleFormats=r;aa.BlockEmbed=ba;aa.default=da},function(e,aa,ha){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){e=(0,oa.default)(!0,{container:f,modules:{clipboard:!0,keyboard:!0,
history:!0}},e);if(e.theme&&e.theme!==qa.DEFAULTS.theme){if(e.theme=qa.import("themes/"+e.theme),null==e.theme)throw Error("Invalid theme "+e.theme+". Did you register it?");}else e.theme=Fa.default;f=(0,oa.default)(!0,{},e.theme.DEFAULTS);[f,e].forEach(function(f){f.modules=f.modules||{};Object.keys(f.modules).forEach(function(e){!0===f.modules[e]&&(f.modules[e]={})})});var h=Object.keys(f.modules).concat(Object.keys(e.modules)).reduce(function(f,e){var h=qa.import("modules/"+e);null==h?ua.error("Cannot load "+
e+" module. Are you sure you registered it?"):f[e]=h.DEFAULTS||{};return f},{});null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar});e=(0,oa.default)(!0,{},qa.DEFAULTS,{modules:h},f,e);["bounds","container","scrollingContainer"].forEach(function(f){"string"===typeof e[f]&&(e[f]=document.querySelector(e[f]))});e.modules=Object.keys(e.modules).reduce(function(f,h){e.modules[h]&&(f[h]=e.modules[h]);return f},{});return e}function y(f,
e,h,r){if(this.options.strict&&!this.isEnabled()&&e===ba.default.sources.USER)return new fa.default;var w=null==h?null:this.getSelection(),x=this.editor.delta;f=f();null!=w&&(!0===h&&(h=w.index),null==r?w=n(w,f,e):0!==r&&(w=n(w,h,r,e)),this.setSelection(w,ba.default.sources.SILENT));if(0<f.length()){var y;h=[ba.default.events.TEXT_CHANGE,f,x,e];(y=this.emitter).emit.apply(y,[ba.default.events.EDITOR_CHANGE].concat(h));if(e!==ba.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,h)}}return f}
function r(f,e,n,r,w){var x={};"number"===typeof f.index&&"number"===typeof f.length?("number"!==typeof e?(w=r,r=n,n=e,e=f.length):e=f.length,f=f.index):"number"!==typeof e&&(w=r,r=n,n=e,e=0);"object"===("undefined"===typeof n?"undefined":h(n))?(x=n,w=r):"string"===typeof n&&(null!=r?x[n]=r:w=n);w=w||ba.default.sources.API;return[f,e,x,w]}function n(e,h,n,r){if(null==e)return null;var w=void 0,x=void 0;h instanceof fa.default?(w=[e.index,e.index+e.length].map(function(f){return h.transformPosition(f,
r!==ba.default.sources.USER)}),e=f(w,2),w=e[0],x=e[1]):(w=[e.index,e.index+e.length].map(function(f){return f<h||f===h&&r===ba.default.sources.USER?f:0<=n?f+n:Math.max(h,f+n)}),e=f(w,2),w=e[0],x=e[1]);return new la.Range(w,x-w)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.overload=aa.expandConfig=void 0;var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?
"symbol":typeof f},f=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(Ca){r=!0,w=Ca}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),x=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();ha(50);e=ha(2);var fa=ca(e);e=ha(14);var ea=ca(e);e=ha(8);var ba=ca(e);e=ha(9);e=ca(e);var da=ha(0),ia=ca(da),la=ha(15),ra=ca(la);da=ha(3);var oa=ca(da);da=ha(10);var ya=ca(da);ha=ha(34);var Fa=ca(ha),ua=(0,ya.default)("quill"),qa=function(){function e(f){var h=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof
e))throw new TypeError("Cannot call a class as a function");this.options=w(f,n);this.container=this.options.container;if(null==this.container)return ua.error("Invalid Quill container",f);this.options.debug&&e.debug(this.options.debug);n=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=
this.options.scrollingContainer||this.root;this.emitter=new ba.default;this.scroll=ia.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ea.default(this.scroll);this.selection=new ra.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(ba.default.events.EDITOR_CHANGE,
function(f){f===ba.default.events.TEXT_CHANGE&&h.root.classList.toggle("ql-blank",h.editor.isBlank())});this.emitter.on(ba.default.events.SCROLL_UPDATE,function(f,e){var n=h.selection.lastRange,r=n&&0===n.length?n.index:void 0;y.call(h,function(){return h.editor.update(null,e,r)},f)});n=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+n+"<p><br></p></div>");this.setContents(n);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);
this.options.readOnly&&this.disable()}x(e,null,[{key:"debug",value:function(f){!0===f&&(f="log");ya.default.level(f)}},{key:"find",value:function(f){return f.__quill||ia.default.find(f)}},{key:"import",value:function(f){null==this.imports[f]&&ua.error("Cannot import "+f+". Are you sure it was registered?");return this.imports[f]}},{key:"register",value:function(f,e){var h=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof f?(n=f.attrName||f.blotName,"string"===typeof n?
this.register("formats/"+n,f,e):Object.keys(f).forEach(function(n){h.register(n,f[n],e)})):(null==this.imports[f]||n||ua.warn("Overwriting "+f+" with",e),this.imports[f]=e,(f.startsWith("blots/")||f.startsWith("formats/"))&&"abstract"!==e.blotName?ia.default.register(e):f.startsWith("modules")&&"function"===typeof e.register&&e.register())}}]);x(e,[{key:"addContainer",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof f){var h=f;f=document.createElement("div");
f.classList.add(h)}this.container.insertBefore(f,e);return f}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,h,n){var w=this;n=r(e,h,n);n=f(n,4);e=n[0];h=n[1];n=n[3];return y.call(this,function(){return w.editor.deleteText(e,h)},n,e,-1*h)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(f);this.container.classList.toggle("ql-disabled",
!f)}},{key:"focus",value:function(){var f=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=f;this.scrollIntoView()}},{key:"format",value:function(f,e){var h=this;return y.call(this,function(){var n=h.getSelection(!0),r=new fa.default;if(null==n)return r;if(ia.default.query(f,ia.default.Scope.BLOCK))r=h.editor.formatLine(n.index,n.length,z({},f,e));else{if(0===n.length)return h.selection.format(f,e),r;r=h.editor.formatText(n.index,n.length,z({},f,e))}h.setSelection(n,
ba.default.sources.SILENT);return r},2<arguments.length&&void 0!==arguments[2]?arguments[2]:ba.default.sources.API)}},{key:"formatLine",value:function(e,h,n,w,x){var z=this,aa=void 0;n=r(e,h,n,w,x);n=f(n,4);e=n[0];h=n[1];aa=n[2];x=n[3];return y.call(this,function(){return z.editor.formatLine(e,h,aa)},x,e,0)}},{key:"formatText",value:function(e,h,n,w,x){var z=this,aa=void 0;n=r(e,h,n,w,x);n=f(n,4);e=n[0];h=n[1];aa=n[2];x=n[3];return y.call(this,function(){return z.editor.formatText(e,h,aa)},x,e,0)}},
{key:"getBounds",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;e="number"===typeof f?this.selection.getBounds(f,e):this.selection.getBounds(f.index,f.length);var h=this.container.getBoundingClientRect();return{bottom:e.bottom-h.top,height:e.height,left:e.left-h.left,right:e.right-h.left,top:e.top-h.top,width:e.width}}},{key:"getContents",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
this.getLength()-e;e=r(e,h);h=f(e,2);e=h[0];h=h[1];return this.editor.getContents(e,h)}},{key:"getFormat",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof f?this.editor.getFormat(f,e):this.editor.getFormat(f.index,f.length)}},{key:"getIndex",value:function(f){return f.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",
value:function(f){return this.scroll.leaf(f)}},{key:"getLine",value:function(f){return this.scroll.line(f)}},{key:"getLines",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof f?this.scroll.lines(f.index,f.length):this.scroll.lines(f,e)}},{key:"getModule",value:function(f){return this.theme.modules[f]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&
arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;e=r(e,h);h=f(e,2);e=h[0];h=h[1];return this.editor.getText(e,h)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(f,h,n){var r=this;return y.call(this,function(){return r.editor.insertEmbed(f,h,n)},
3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.sources.API,f)}},{key:"insertText",value:function(e,h,n,w,x){var z=this,aa=void 0;n=r(e,0,n,w,x);n=f(n,4);e=n[0];aa=n[2];x=n[3];return y.call(this,function(){return z.editor.insertText(e,h,aa)},x,e,h.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,
arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(f,e,h){this.clipboard.dangerouslyPasteHTML(f,e,h)}},{key:"removeFormat",value:function(e,h,n){var w=this;n=r(e,h,n);n=f(n,4);e=n[0];h=n[1];n=n[3];return y.call(this,function(){return w.editor.removeFormat(e,h)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(f){var e=this;return y.call(this,
function(){f=new fa.default(f);var h=e.getLength();h=e.editor.deleteText(0,h);var n=e.editor.applyDelta(f),r=n.ops[n.ops.length-1];null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),n.delete(1));return h.compose(n)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:ba.default.sources.API)}},{key:"setSelection",value:function(h,n,w){null==h?this.selection.setRange(null,n||e.sources.API):(h=r(h,n,w),w=f(h,4),h=w[0],n=w[1],w=w[3],this.selection.setRange(new la.Range(h,
n),w),w!==ba.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ba.default.sources.API,h=(new fa.default).insert(f);return this.setContents(h,e)}},{key:"update",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:ba.default.sources.USER,e=this.scroll.update(f);this.selection.update(f);return e}},{key:"updateContents",value:function(f){var e=this,h=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:ba.default.sources.API;return y.call(this,function(){f=new fa.default(f);return e.editor.applyDelta(f,h)},h,!0)}}]);return e}();qa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};qa.events=ba.default.events;qa.sources=ba.default.sources;qa.version="1.3.7";qa.imports={delta:fa.default,parchment:ia.default,"core/module":e.default,"core/theme":Fa.default};aa.expandConfig=
w;aa.overload=r;aa.default=qa},function(e,aa,ba){function ca(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=(e=ba(7))&&e.__esModule?e:{default:e};var y=(ba=ba(0))&&ba.__esModule?ba:{default:ba};ba=
function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(h,e);z(h,[{key:"formatAt",value:function(f,e,n,z){0>h.compare(this.statics.blotName,n)&&y.default.query(n,y.default.Scope.BLOT)?(f=this.isolate(f,e),z&&f.wrap(n,z)):w(h.prototype.__proto__||
Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,f,e,n,z)}},{key:"optimize",value:function(f){w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,f);this.parent instanceof h&&0<h.compare(this.statics.blotName,this.parent.statics.blotName)&&(f=this.parent.isolate(this.offset(),this.length()),this.moveChildren(f),f.wrap(this))}}],[{key:"compare",value:function(f,e){var n=h.order.indexOf(f),w=h.order.indexOf(e);return 0<=n||0<=w?n-w:f===e?0:f<e?-1:1}}]);
return h}(y.default.Inline);ba.allowedChildren=[ba,y.default.Embed,e.default];ba.order="cursor inline underline strike italic bold script link code".split(" ");aa.default=ba},function(e,aa,ba){function ca(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=
w)}Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(0)).default.Text);aa.default=e},function(e,aa,
ba){function ca(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&
(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=(e=ba(54))&&e.__esModule?e:{default:e};ba=(ba=ba(10))&&ba.__esModule?ba:{default:ba};var y=(0,ba.default)("quill:events");["selectionchange",
"mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var h;(h=e.__quill.emitter).handleDOM.apply(h,f)}})})});ba=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.listeners={};f.on("error",y.error);return f}ca(h,e);z(h,[{key:"emit",value:function(){y.log.apply(y,arguments);w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var e=arguments.length,h=Array(1<e?e-1:0),n=1;n<e;n++)h[n-1]=arguments[n];(this.listeners[f.type]||[]).forEach(function(e){var n=e.node;e=e.handler;(f.target===n||n.contains(f.target))&&e.apply(void 0,
[f].concat(h))})}},{key:"listenDOM",value:function(f,e,h){this.listeners[f]||(this.listeners[f]=[]);this.listeners[f].push({node:e,handler:h})}}]);return h}(e.default);ba.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};ba.sources={API:"api",SILENT:"silent",USER:"user"};aa.default=ba},function(e,aa){Object.defineProperty(aa,"__esModule",{value:!0});
e=function z(e){var w=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof z))throw new TypeError("Cannot call a class as a function");this.quill=e;this.options=w};e.DEFAULTS={};aa.default=e},function(e,aa){function ea(e){if(z.indexOf(e)<=z.indexOf(w)){for(var r,n=arguments.length,h=Array(1<n?n-1:0),f=1;f<n;f++)h[f-1]=arguments[f];(r=console)[e].apply(r,h)}}function ca(e){return z.reduce(function(r,n){r[n]=ea.bind(console,n,e);return r},{})}Object.defineProperty(aa,"__esModule",
{value:!0});var z=["error","warn","log","info"],w="warn";ea.level=ca.level=function(e){w=e};aa.default=ca},function(e,aa,ba){function ca(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function z(e,f,x){var h;if(null===e||void 0===e||null===f||void 0===f||e.prototype!==f.prototype)return!1;if(r(e)){if(!r(f))return!1;e=w.call(e);f=w.call(f);return n(e,f,x)}if(ca(e)){if(!ca(f)||e.length!==
f.length)return!1;for(h=0;h<e.length;h++)if(e[h]!==f[h])return!1;return!0}try{var z=y(e);var aa=y(f)}catch(na){return!1}if(z.length!=aa.length)return!1;z.sort();aa.sort();for(h=z.length-1;0<=h;h--)if(z[h]!=aa[h])return!1;for(h=z.length-1;0<=h;h--)if(aa=z[h],!n(e[aa],f[aa],x))return!1;return typeof e===typeof f}var w=Array.prototype.slice,y=ba(52),r=ba(53),n=e.exports=function(e,f,n){n||(n={});return e===f?!0:e instanceof Date&&f instanceof Date?e.getTime()===f.getTime():!e||!f||"object"!=typeof e&&
"object"!=typeof f?n.strict?e===f:e==f:z(e,f,n)}},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var ca=ba(1);e=function(){function e(e,y,r){void 0===r&&(r={});this.attrName=e;this.keyName=y;e=ca.Scope.TYPE&ca.Scope.ATTRIBUTE;this.scope=null!=r.scope?r.scope&ca.Scope.LEVEL|e:ca.Scope.ATTRIBUTE;null!=r.whitelist&&(this.whitelist=r.whitelist)}e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})};e.prototype.add=function(e,y){if(!this.canAdd(e,y))return!1;
e.setAttribute(this.keyName,y);return!0};e.prototype.canAdd=function(e,y){return null==ca.query(e,ca.Scope.BLOT&(this.scope|ca.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};e.prototype.remove=function(e){e.removeAttribute(this.keyName)};e.prototype.value=function(e){var w=e.getAttribute(this.keyName);return this.canAdd(e,w)&&w?w:""};return e}();aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?
f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,
configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.Code=void 0;var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(ua){r=!0,w=ua}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),h=function ra(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ra(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(2);
var f=ca(e);e=ba(0);var x=ca(e);e=ba(4);e=ca(e);var fa=ba(6);fa=ca(fa);ba=ba(7);var ea=ca(ba);ba=function(f){function e(){z(this,e);return w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}y(e,f);return e}(fa.default);ba.blotName="code";ba.tagName="CODE";e=function(e){function aa(){z(this,aa);return w(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}y(aa,e);n(aa,[{key:"delta",value:function(){var e=this,h=this.domNode.textContent;h.endsWith("\n")&&(h=h.slice(0,
-1));return h.split("\n").reduce(function(f,h){return f.insert(h).insert("\n",e.formats())},new f.default)}},{key:"format",value:function(f,e){if(f!==this.statics.blotName||!e){var n=this.descendant(ea.default,this.length()-1);n=r(n,1)[0];null!=n&&n.deleteAt(n.length()-1,1);h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"format",this).call(this,f,e)}}},{key:"formatAt",value:function(f,e,h,n){if(0!==e&&null!=x.default.query(h,x.default.Scope.BLOCK)&&(h!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var r=
this.newlineIndex(f);if(!(0>r||r>=f+e)){var w=this.newlineIndex(f,!0)+1;r=r-w+1;var y=this.isolate(w,r),z=y.next;y.format(h,n);z instanceof aa&&z.formatAt(0,f-w+e-r,h,n)}}}},{key:"insertAt",value:function(f,e,h){null==h&&(f=this.descendant(ea.default,f),f=r(f,2),f[0].insertAt(f[1],e))}},{key:"length",value:function(){var f=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?f:f+1}},{key:"newlineIndex",value:function(f){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,
f).lastIndexOf("\n");var e=this.domNode.textContent.slice(f).indexOf("\n");return-1<e?f+e:-1}},{key:"optimize",value:function(f){this.domNode.textContent.endsWith("\n")||this.appendChild(x.default.create("text","\n"));h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"optimize",this).call(this,f);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(f),e.moveChildren(this),e.remove())}},
{key:"replace",value:function(f){h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replace",this).call(this,f);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(f){var e=x.default.find(f);null==e?f.parentNode.removeChild(f):e instanceof x.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(f){f=h(aa.__proto__||Object.getPrototypeOf(aa),"create",this).call(this,f);f.setAttribute("spellcheck",!1);return f}},{key:"formats",value:function(){return!0}}]);
return aa}(e.default);e.blotName="code-block";e.tagName="PRE";e.TAB=" ";aa.Code=ba;aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){return Object.keys(e).reduce(function(h,n){if(null==f[n])return h;e[n]===f[n]?h[n]=e[n]:Array.isArray(e[n])?0>e[n].indexOf(f[n])&&(h[n]=e[n].concat([f[n]])):h[n]=[e[n],f[n]];return h},{})}function y(e){return e.reduce(function(f,
e){if(1===e.insert){var h=(0,ra.default)(e.attributes);delete h.image;return f.insert({image:e.attributes.image},h)}null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,ra.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet));return"string"===typeof e.insert?(h=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),f.insert(h,e.attributes)):f.push(e)},new f.default)}Object.defineProperty(aa,"__esModule",{value:!0});var r=
"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(za){r=!0,w=za}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(2);var f=ca(e);e=ba(20);var x=ca(e);e=ba(0);var fa=ca(e);e=ba(13);var ea=ca(e);e=ba(24);var ha=ca(e),da=ba(4),ia=ca(da);e=ba(16);var la=ca(e);e=ba(21);var ra=ca(e);
e=ba(11);var oa=ca(e);ba=ba(3);var ya=ca(ba),Fa=/^[ -~]*$/;ba=function(){function e(f){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.scroll=f;this.delta=this.getDelta()}h(e,[{key:"applyDelta",value:function(f){var e=this,h=!1;this.scroll.update();var w=this.scroll.length();this.scroll.batchStart();f=y(f);f.reduce(function(f,y){var z=y.retain||y.delete||y.insert.length||1,aa=y.attributes||{};if(null!=y.insert){if("string"===typeof y.insert){y=y.insert;y.endsWith("\n")&&
h&&(h=!1,y=y.slice(0,-1));f>=w&&!y.endsWith("\n")&&(h=!0);e.scroll.insertAt(f,y);y=e.scroll.line(f);y=n(y,2);var ca=y[0],ea=y[1];y=(0,ya.default)({},(0,da.bubbleFormats)(ca));ca instanceof ia.default&&(ca=ca.descendant(fa.default.Leaf,ea),ca=n(ca,1)[0],y=(0,ya.default)(y,(0,da.bubbleFormats)(ca)));aa=x.default.attributes.diff(y,aa)||{}}else if("object"===r(y.insert)){ca=Object.keys(y.insert)[0];if(null==ca)return f;e.scroll.insertAt(f,ca,y.insert[ca])}w+=z}Object.keys(aa).forEach(function(h){e.scroll.formatAt(f,
z,h,aa[h])});return f+z},0);f.reduce(function(f,h){return"number"===typeof h.delete?(e.scroll.deleteAt(f,h.delete),f):f+(h.retain||h.insert.length||1)},0);this.scroll.batchEnd();return this.update(f)}},{key:"deleteText",value:function(e,h){this.scroll.deleteAt(e,h);return this.update((new f.default).retain(e).delete(h))}},{key:"formatLine",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(r).forEach(function(f){if(null==n.scroll.whitelist||
n.scroll.whitelist[f]){var w=n.scroll.lines(e,Math.max(h,1)),x=h;w.forEach(function(h){var w=h.length();if(h instanceof ea.default){var y=e-h.offset(n.scroll),z=h.newlineIndex(y+x)-y+1;h.formatAt(y,z,f,r[f])}else h.format(f,r[f]);x-=w})}});this.scroll.optimize();return this.update((new f.default).retain(e).retain(h,(0,ra.default)(r)))}},{key:"formatText",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(r).forEach(function(f){n.scroll.formatAt(e,
h,f,r[f])});return this.update((new f.default).retain(e).retain(h,(0,ra.default)(r)))}},{key:"getContents",value:function(f,e){return this.delta.slice(f,f+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(f,e){return f.concat(e.delta())},new f.default)}},{key:"getFormat",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,h=[],r=[];0===e?this.scroll.path(f).forEach(function(f){f=n(f,1)[0];f instanceof ia.default?h.push(f):f instanceof fa.default.Leaf&&
r.push(f)}):(h=this.scroll.lines(f,e),r=this.scroll.descendants(fa.default.Leaf,f,e));e=[h,r].map(function(f){if(0===f.length)return{};for(var e=(0,da.bubbleFormats)(f.shift());0<Object.keys(e).length;){var h=f.shift();if(null==h)break;e=w((0,da.bubbleFormats)(h),e)}return e});return ya.default.apply(ya.default,e)}},{key:"getText",value:function(f,e){return this.getContents(f,e).filter(function(f){return"string"===typeof f.insert}).map(function(f){return f.insert}).join("")}},{key:"insertEmbed",value:function(e,
h,n){this.scroll.insertAt(e,h,n);return this.update((new f.default).retain(e).insert(z({},h,n)))}},{key:"insertText",value:function(e,h){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};h=h.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(e,h);Object.keys(r).forEach(function(f){n.scroll.formatAt(e,h.length,f,r[f])});return this.update((new f.default).retain(e).insert(h,(0,ra.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
if(1<this.scroll.children.length)return!1;var f=this.scroll.children.head;return f.statics.blotName!==ia.default.blotName||1<f.children.length?!1:f.children.head instanceof la.default}},{key:"removeFormat",value:function(e,h){var r=this.getText(e,h),w=this.scroll.line(e+h),x=n(w,2);w=x[0];x=x[1];var y=0,z=new f.default;null!=w&&(y=w instanceof ea.default?w.newlineIndex(x)-x+1:w.length()-x,z=w.delta().slice(x,x+y-1).insert("\n"));h=this.getContents(e,h+y).diff((new f.default).insert(r).concat(z));
e=(new f.default).retain(e).concat(h);return this.applyDelta(e)}},{key:"update",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===h.length&&"characterData"===h[0].type&&h[0].target.data.match(Fa)&&fa.default.find(h[0].target)){var w=fa.default.find(h[0].target),x=(0,da.bubbleFormats)(w),y=w.offset(this.scroll);h=h[0].oldValue.replace(ha.default.CONTENTS,"");h=(new f.default).insert(h);
w=(new f.default).insert(w.value());e=(new f.default).retain(y).concat(h.diff(w,n)).reduce(function(f,e){return e.insert?f.insert(e.insert,x):f.push(e)},new f.default);this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,oa.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]);return e}();aa.default=ba},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f){if(Array.isArray(f)){for(var e=0,h=Array(f.length);e<f.length;e++)h[e]=f[e];return h}return Array.from(f)}
function w(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function y(f,e){try{e.parentNode}catch(la){return!1}e instanceof Text&&(e=e.parentNode);return f.contains(e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.Range=void 0;var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==
e);n=!0);}catch(qa){r=!0,w=qa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(0);var h=ca(e);e=ba(21);var f=ca(e);e=ba(11);var x=ca(e);e=ba(8);
var fa=ca(e);ba=ba(10);ba=ca(ba);var ea=(0,ba.default)("quill:selection"),ha=function la(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;w(this,la);this.index=f;this.length=e};ba=function(){function e(f,n){var r=this;w(this,e);this.emitter=n;this.scroll=f;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=h.default.create("cursor",this);this.lastRange=this.savedRange=new ha(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",
document,function(){r.mouseDown||setTimeout(r.update.bind(r,fa.default.sources.USER),1)});this.emitter.on(fa.default.events.EDITOR_CHANGE,function(f,e){f===fa.default.events.TEXT_CHANGE&&0<e.length()&&r.update(fa.default.sources.SILENT)});this.emitter.on(fa.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var f=r.getNativeRange();if(null!=f&&f.start.node!==r.cursor.textNode)r.emitter.once(fa.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(f.start.node,f.start.offset,f.end.node,
f.end.offset)}catch(Fa){}})}});this.emitter.on(fa.default.events.SCROLL_OPTIMIZE,function(f,e){e.range&&(f=e.range,r.setNativeRange(f.startNode,f.startOffset,f.endNode,f.endOffset))});this.update(fa.default.sources.SILENT)}n(e,[{key:"handleComposition",value:function(){var f=this;this.root.addEventListener("compositionstart",function(){f.composing=!0});this.root.addEventListener("compositionend",function(){f.composing=!1;if(f.cursor.parent){var e=f.cursor.restore();e&&setTimeout(function(){f.setNativeRange(e.startNode,
e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var f=this;this.emitter.listenDOM("mousedown",document.body,function(){f.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){f.mouseDown=!1;f.update(fa.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(f,e){if(null==this.scroll.whitelist||this.scroll.whitelist[f]){this.scroll.update();var n=
this.getNativeRange();if(null!=n&&n.native.collapsed&&!h.default.query(f,h.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=h.default.find(n.start.node,!1);if(null==r)return;r instanceof h.default.Leaf?(n=r.split(n.start.offset),r.parent.insertBefore(this.cursor,n)):r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(f,e);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,h=this.scroll.length();f=Math.min(f,h-1);e=Math.min(f+e,h-1)-f;h=this.scroll.leaf(f);var n=r(h,2);h=n[0];var w=n[1];if(null==h)return null;n=h.position(w,!0);n=r(n,2);var x=n[0];w=n[1];n=document.createRange();if(0<e){n.setStart(x,w);e=this.scroll.leaf(f+e);e=r(e,2);h=e[0];w=e[1];if(null==h)return null;e=h.position(w,!0);e=r(e,2);x=e[0];w=e[1];n.setEnd(x,w);return n.getBoundingClientRect()}e="left";x instanceof Text?
(w<x.data.length?(n.setStart(x,w),n.setEnd(x,w+1)):(n.setStart(x,w-1),n.setEnd(x,w),e="right"),h=n.getBoundingClientRect()):(h=h.domNode.getBoundingClientRect(),0<w&&(e="right"));return{bottom:h.top+h.height,height:h.height,left:h[e],right:h[e],top:h.top,width:0}}},{key:"getNativeRange",value:function(){var f=document.getSelection();if(null==f||0>=f.rangeCount)return null;f=f.getRangeAt(0);if(null==f)return null;f=this.normalizeNative(f);ea.info("getNativeRange",f);return f}},{key:"getRange",value:function(){var f=
this.getNativeRange();return null==f?[null,null]:[this.normalizedToRange(f),f]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(f){var e=this,n=[[f.start.node,f.start.offset]];f.native.collapsed||n.push([f.end.node,f.end.offset]);n=n.map(function(f){var n=r(f,2);f=n[0];n=n[1];var w=h.default.find(f,!0),x=w.offset(e.scroll);return 0===n?x:w instanceof h.default.Container?x+w.length():x+w.index(f,n)});f=Math.min(Math.max.apply(Math,
z(n)),this.scroll.length()-1);n=Math.min.apply(Math,[f].concat(z(n)));return new ha(n,f-n)}},{key:"normalizeNative",value:function(f){if(!y(this.root,f.startContainer)||!f.collapsed&&!y(this.root,f.endContainer))return null;f={start:{node:f.startContainer,offset:f.startOffset},end:{node:f.endContainer,offset:f.endOffset},native:f};[f.start,f.end].forEach(function(f){for(var e=f.node,h=f.offset;!(e instanceof Text)&&0<e.childNodes.length;)if(e.childNodes.length>h)e=e.childNodes[h],h=0;else if(e.childNodes.length===
h)e=e.lastChild,h=e instanceof Text?e.data.length:e.childNodes.length+1;else break;f.node=e;f.offset=h});return f}},{key:"rangeToNative",value:function(f){var e=this;f=f.collapsed?[f.index]:[f.index,f.index+f.length];var h=[],n=this.scroll.length();f.forEach(function(f,w){f=Math.min(n-1,f);f=e.scroll.leaf(f);var x=r(f,2);f=x[1];w=x[0].position(f,0!==w);f=r(w,2);w=f[0];f=f[1];h.push(w,f)});2>h.length&&(h=h.concat(h));return h}},{key:"scrollIntoView",value:function(f){var e=this.lastRange;if(null!=
e){var h=this.getBounds(e.index,e.length);if(null!=h){var n=this.scroll.length()-1,w=this.scroll.line(Math.min(e.index,n)),x=w=r(w,1)[0];0<e.length&&(e=this.scroll.line(Math.min(e.index+e.length,n)),x=r(e,1)[0]);null!=w&&null!=x&&(e=f.getBoundingClientRect(),h.top<e.top?f.scrollTop-=e.top-h.top:h.bottom>e.bottom&&(f.scrollTop+=h.bottom-e.bottom))}}}},{key:"setNativeRange",value:function(f,e){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f,n=3<arguments.length&&void 0!==arguments[3]?
arguments[3]:e,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ea.info("setNativeRange",f,e,h,n);if(null==f||null!=this.root.parentNode&&null!=f.parentNode&&null!=h.parentNode){var w=document.getSelection();if(null!=w)if(null!=f){this.hasFocus()||this.root.focus();var x=(this.getNativeRange()||{}).native;if(null==x||r||f!==x.startContainer||e!==x.startOffset||h!==x.endContainer||n!==x.endOffset)"BR"==f.tagName&&(e=[].indexOf.call(f.parentNode.childNodes,f),f=f.parentNode),"BR"==h.tagName&&
(n=[].indexOf.call(h.parentNode.childNodes,h),h=h.parentNode),r=document.createRange(),r.setStart(f,e),r.setEnd(h,n),w.removeAllRanges(),w.addRange(r)}else w.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fa.default.sources.API;"string"===typeof e&&(h=e,e=!1);ea.info("setRange",f);if(null!=f){var n=this.rangeToNative(f);this.setNativeRange.apply(this,
z(n).concat([e]))}else this.setNativeRange(null);this.update(h)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:fa.default.sources.USER,h=this.lastRange,n=this.getRange();n=r(n,2);var w=n[1];this.lastRange=n[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,x.default)(h,this.lastRange)){var y;!this.composing&&null!=w&&w.native.collapsed&&w.start.node!==this.cursor.textNode&&this.cursor.restore();h=[fa.default.events.SELECTION_CHANGE,(0,
f.default)(this.lastRange),(0,f.default)(h),e];(y=this.emitter).emit.apply(y,[fa.default.events.EDITOR_CHANGE].concat(h));if(e!==fa.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,h)}}}}]);return e}();aa.Range=ha;aa.default=ba},function(e,aa,ba){function ca(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});
r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,n,h){n&&e(r.prototype,n);h&&e(r,h);return r}}(),w=function f(e,n,h){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){if(e=Object.getPrototypeOf(e),
null!==e)return f(e,n,h)}else{if("value"in r)return r.value;n=r.get;return void 0===n?void 0:n.call(h)}};e=function(e){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(n,e);z(n,[{key:"insertInto",value:function(e,f){0===e.children.length?
w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"insertInto",this).call(this,e,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return n}(function(e){return e&&e.__esModule?e:{default:e}}(ba(0)).default.Embed);e.blotName="break";e.tagName="BR";aa.default=e},function(e,aa,ba){function ca(e){var n=y.find(e);if(null==n)try{n=y.create(e)}catch(h){n=y.create(y.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(f){n.domNode.appendChild(f)}),
e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach()}return n}var z=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(n,h){function f(){this.constructor=n}e(n,h);n.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(aa,"__esModule",{value:!0});var w=ba(44);e=ba(30);var y=ba(1);ba=function(e){function n(h){h=
e.call(this,h)||this;h.build();return h}z(n,e);n.prototype.appendChild=function(e){this.insertBefore(e)};n.prototype.attach=function(){e.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};n.prototype.build=function(){var e=this;this.children=new w.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var h=ca(f);e.insertBefore(h,e.children.head||void 0)}catch(fa){if(!(fa instanceof y.ParchmentError))throw fa;}})};n.prototype.deleteAt=function(e,
f){if(0===e&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(f,e,h){f.deleteAt(e,h)})};n.prototype.descendant=function(e,f){var h=this.children.find(f);f=h[0];h=h[1];return null==e.blotName&&e(f)||null!=e.blotName&&f instanceof e?[f,h]:f instanceof n?f.descendant(e,h):[null,-1]};n.prototype.descendants=function(e,f,r){void 0===f&&(f=0);void 0===r&&(r=Number.MAX_VALUE);var h=[],w=r;this.children.forEachAt(f,r,function(f,r,x){(null==e.blotName&&e(f)||null!=e.blotName&&f instanceof
e)&&h.push(f);f instanceof n&&(h=h.concat(f.descendants(e,r,w)));w-=x});return h};n.prototype.detach=function(){this.children.forEach(function(e){e.detach()});e.prototype.detach.call(this)};n.prototype.formatAt=function(e,f,n,r){this.children.forEachAt(e,f,function(f,e,h){f.formatAt(e,h,n,r)})};n.prototype.insertAt=function(e,f,n){var h=this.children.find(e);e=h[0];h=h[1];e?e.insertAt(h,f,n):(f=null==n?y.create("text",f):y.create(f,n),this.appendChild(f))};n.prototype.insertBefore=function(e,f){if(null!=
this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(f){return e instanceof f}))throw new y.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)};n.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)};n.prototype.moveChildren=function(e,f){this.children.forEach(function(h){e.insertBefore(h,f)})};n.prototype.optimize=function(h){e.prototype.optimize.call(this,h);if(0===this.children.length)if(null!=
this.statics.defaultChild){var f=y.create(this.statics.defaultChild);this.appendChild(f);f.optimize(h)}else this.remove()};n.prototype.path=function(e,f){void 0===f&&(f=!1);var h=this.children.find(e,f),r=h[0];h=h[1];e=[[this,e]];if(r instanceof n)return e.concat(r.path(h,f));null!=r&&e.push([r,h]);return e};n.prototype.removeChild=function(e){this.children.remove(e)};n.prototype.replace=function(h){h instanceof n&&h.moveChildren(this);e.prototype.replace.call(this,h)};n.prototype.split=function(e,
f){void 0===f&&(f=!1);if(!f){if(0===e)return this;if(e===this.length())return this.next}var h=this.clone();this.parent.insertBefore(h,this.next);this.children.forEachAt(e,this.length(),function(e,n){e=e.split(n,f);h.appendChild(e)});return h};n.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};n.prototype.update=function(e){var f=this,h=[],n=[];e.forEach(function(e){e.target===f.domNode&&"childList"===e.type&&(h.push.apply(h,e.addedNodes),n.push.apply(n,e.removedNodes))});
n.forEach(function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||(e=y.find(e),null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==f.domNode||e.detach()))});h.filter(function(e){return e.parentNode==f.domNode}).sort(function(f,e){return f===e?0:f.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var h=null;null!=e.nextSibling&&(h=y.find(e.nextSibling));e=ca(e);if(e.next!=h||null==
e.next)null!=e.parent&&e.parent.removeChild(f),f.insertBefore(e,h||void 0)})};return n}(e.default);aa.default=ba},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(n,h){function f(){this.constructor=n}e(n,h);n.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(aa,"__esModule",{value:!0});
var z=ba(12),w=ba(31);e=ba(17);var y=ba(1);ba=function(e){function n(h){h=e.call(this,h)||this;h.attributes=new w.default(h.domNode);return h}ca(n,e);n.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};n.prototype.format=function(e,f){var h=y.query(e);h instanceof z.default?this.attributes.attribute(h,f):f&&(null==h||e===this.statics.blotName&&this.formats()[e]===f||this.replaceWith(e,f))};n.prototype.formats=function(){var e=
this.attributes.values(),f=this.statics.formats(this.domNode);null!=f&&(e[this.statics.blotName]=f);return e};n.prototype.replaceWith=function(h,f){h=e.prototype.replaceWith.call(this,h,f);this.attributes.copy(h);return h};n.prototype.update=function(h,f){var n=this;e.prototype.update.call(this,h,f);h.some(function(f){return f.target===n.domNode&&"attributes"===f.type})&&this.attributes.build()};n.prototype.wrap=function(h,f){h=e.prototype.wrap.call(this,h,f);h instanceof n&&h.statics.scope===this.statics.scope&&
this.attributes.move(h);return h};return n}(e.default);aa.default=ba},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])};return function(w,r){function n(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=ba(30);var z=ba(1);ba=function(e){function w(){return null!==
e&&e.apply(this,arguments)||this}ca(w,e);w.value=function(){return!0};w.prototype.index=function(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1};w.prototype.position=function(e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<e&&(n+=1);return[this.parent.domNode,n]};w.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e};w.scope=z.Scope.INLINE_BLOT;
return w}(e.default);aa.default=ba},function(e,aa,ba){function ca(e){this.ops=e;this.offset=this.index=0}var z=ba(11),w=ba(3),y={attributes:{compose:function(e,n,h){"object"!==typeof e&&(e={});"object"!==typeof n&&(n={});var f=w(!0,{},n);h||(f=Object.keys(f).reduce(function(e,h){null!=f[h]&&(e[h]=f[h]);return e},{}));for(var r in e)void 0!==e[r]&&void 0===n[r]&&(f[r]=e[r]);return 0<Object.keys(f).length?f:void 0},diff:function(e,n){"object"!==typeof e&&(e={});"object"!==typeof n&&(n={});var h=Object.keys(e).concat(Object.keys(n)).reduce(function(f,
h){z(e[h],n[h])||(f[h]=void 0===n[h]?null:n[h]);return f},{});return 0<Object.keys(h).length?h:void 0},transform:function(e,n,h){if("object"!==typeof e)return n;if("object"===typeof n){if(!h)return n;h=Object.keys(n).reduce(function(f,h){void 0===e[h]&&(f[h]=n[h]);return f},{});return 0<Object.keys(h).length?h:void 0}}},iterator:function(e){return new ca(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:
1}};ca.prototype.hasNext=function(){return Infinity>this.peekLength()};ca.prototype.next=function(e){e||(e=Infinity);var n=this.ops[this.index];if(n){var h=this.offset,f=y.length(n);e>=f-h?(e=f-h,this.index+=1,this.offset=0):this.offset+=e;if("number"===typeof n["delete"])return{"delete":e};f={};n.attributes&&(f.attributes=n.attributes);"number"===typeof n.retain?f.retain=e:f.insert="string"===typeof n.insert?n.insert.substr(h,e):n.insert;return f}return{retain:Infinity}};ca.prototype.peek=function(){return this.ops[this.index]};
ca.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};ca.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};ca.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,n=this.index,h=this.next(),f=this.ops.slice(this.index);this.offset=
e;this.index=n;return[h].concat(f)}return[]};e.exports=y},function(ea){var aa=function(){function aa(e,f){return null!=f&&e instanceof f}function ca(h,f,x,z,ea){function fa(h,x){if(null===h)return null;if(0===x||"object"!=typeof h)return h;if(aa(h,y))var ja=new y;else if(aa(h,r))ja=new r;else if(aa(h,n))ja=new n(function(f,e){h.then(function(e){f(fa(e,x-1))},function(f){e(fa(f,x-1))})});else if(ca.__isArray(h))ja=[];else if(ca.__isRegExp(h))ja=new RegExp(h.source,w(h)),h.lastIndex&&(ja.lastIndex=
h.lastIndex);else if(ca.__isDate(h))ja=new Date(h.getTime());else{if(da&&e.isBuffer(h))return ja=e.allocUnsafe?e.allocUnsafe(h.length):new e(h.length),h.copy(ja),ja;if(aa(h,Error))ja=Object.create(h);else if("undefined"==typeof z){var ia=Object.getPrototypeOf(h);ja=Object.create(ia)}else ja=Object.create(z),ia=z}if(f){var ua=ba.indexOf(h);if(-1!=ua)return ha[ua];ba.push(h);ha.push(ja)}aa(h,y)&&h.forEach(function(f,e){e=fa(e,x-1);f=fa(f,x-1);ja.set(e,f)});aa(h,r)&&h.forEach(function(f){f=fa(f,x-1);
ja.add(f)});for(var na in h){var ka;ia&&(ka=Object.getOwnPropertyDescriptor(ia,na));ka&&null==ka.set||(ja[na]=fa(h[na],x-1))}if(Object.getOwnPropertySymbols)for(ua=Object.getOwnPropertySymbols(h),na=0;na<ua.length;na++)if(ka=ua[na],ia=Object.getOwnPropertyDescriptor(h,ka),!ia||ia.enumerable||ea)ja[ka]=fa(h[ka],x-1),ia.enumerable||Object.defineProperty(ja,ka,{enumerable:!1});if(ea)for(ua=Object.getOwnPropertyNames(h),na=0;na<ua.length;na++)ka=ua[na],ia=Object.getOwnPropertyDescriptor(h,ka),ia&&ia.enumerable||
(ja[ka]=fa(h[ka],x-1),Object.defineProperty(ja,ka,{enumerable:!1}));return ja}"object"===typeof f&&(x=f.depth,z=f.prototype,ea=f.includeNonEnumerable,f=f.circular);var ba=[],ha=[],da="undefined"!=typeof e;"undefined"==typeof f&&(f=!0);"undefined"==typeof x&&(x=Infinity);return fa(h,x)}function z(e){return Object.prototype.toString.call(e)}function w(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var y=Map}catch(h){y=function(){}}try{var r=Set}catch(h){r=function(){}}try{var n=
Promise}catch(h){n=function(){}}ca.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};ca.__objToStr=z;ca.__isDate=function(e){return"object"===typeof e&&"[object Date]"===z(e)};ca.__isArray=function(e){return"object"===typeof e&&"[object Array]"===z(e)};ca.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===z(e)};ca.__getRegExpFlags=w;return ca}();"object"===typeof ea&&ea.exports&&(ea.exports=aa)},function(e,aa,ba){function ca(f){return f&&
f.__esModule?f:{default:f}}function z(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function w(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=
e)}function y(f){return f instanceof ea.default||f instanceof fa.BlockEmbed}Object.defineProperty(aa,"__esModule",{value:!0});var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(ka){r=!0,w=ka}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),h=function ya(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ya(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(0);
var f=ca(e);e=ba(8);var x=ca(e),fa=ba(4),ea=ca(fa);e=ba(16);var ha=ca(e);e=ba(13);var da=ca(e);ba=ba(25);ba=ca(ba);e=function(e){function aa(f,e){if(!(this instanceof aa))throw new TypeError("Cannot call a class as a function");f=z(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,f));f.emitter=e.emitter;Array.isArray(e.whitelist)&&(f.whitelist=e.whitelist.reduce(function(f,e){f[e]=!0;return f},{}));f.domNode.addEventListener("DOMNodeInserted",function(){});f.optimize();f.enable();return f}
w(aa,e);n(aa,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(f,e){var n=this.line(f),w=r(n,2);n=w[0];var x=w[1];w=this.line(f+e);w=r(w,1)[0];h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"deleteAt",this).call(this,f,e);if(null!=w&&n!==w&&0<x){if(n instanceof fa.BlockEmbed||w instanceof fa.BlockEmbed){this.optimize();return}if(n instanceof da.default){if(f=n.newlineIndex(n.length(),!0),
-1<f&&(n=n.split(f+1),n===w)){this.optimize();return}}else w instanceof da.default&&(f=w.newlineIndex(0),-1<f&&w.split(f+1));n.moveChildren(w,w.children.head instanceof ha.default?null:w.children.head);n.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(f,e,n,r){if(null==this.whitelist||this.whitelist[n])h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),
"formatAt",this).call(this,f,e,n,r),this.optimize()}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n])e>=this.length()?null==r||null==f.default.query(n,f.default.Scope.BLOCK)?(e=f.default.create(this.statics.defaultChild),this.appendChild(e),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),e.insertAt(0,n,r)):(n=f.default.create(n,r),this.appendChild(n)):h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"insertAt",this).call(this,e,n,r),this.optimize()}},
{key:"insertBefore",value:function(e,n){if(e.statics.scope===f.default.Scope.INLINE_BLOT){var r=f.default.create(this.statics.defaultChild);r.appendChild(e);e=r}h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(f){return this.path(f).pop()||[null,-1]}},{key:"line",value:function(f){return f===this.length()?this.line(f-1):this.descendant(y,f)}},{key:"lines",value:function(){return function qa(e,h,n){var r=[],w=n;e.children.forEachAt(h,
n,function(e,h,n){y(e)?r.push(e):e instanceof f.default.Container&&(r=r.concat(qa(e,h,w)));w-=n});return r}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"optimize",this).call(this,
f,e),0<f.length&&this.emitter.emit(x.default.events.SCROLL_OPTIMIZE,f,e))}},{key:"path",value:function(f){return h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"path",this).call(this,f).slice(1)}},{key:"update",value:function(f){if(!0!==this.batch){var e=x.default.sources.USER;"string"===typeof f&&(e=f);Array.isArray(f)||(f=this.observer.takeRecords());0<f.length&&this.emitter.emit(x.default.events.SCROLL_BEFORE_UPDATE,e,f);h(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),
"update",this).call(this,f.concat([]));0<f.length&&this.emitter.emit(x.default.events.SCROLL_UPDATE,e,f)}}}]);return aa}(f.default.Scroll);e.blotName="scroll";e.className="ql-editor";e.tagName="DIV";e.defaultChild="block";e.allowedChildren=[ea.default,fa.BlockEmbed,ba.default];aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e){var h,n=f===ta.keys.LEFT?"prefix":"suffix";return h={key:f,shiftKey:e,altKey:null},z(h,n,/^$/),z(h,"handler",function(h){var n=
h.index;f===ta.keys.RIGHT&&(n+=h.length+1);n=this.quill.getLeaf(n);if(!(ia(n,1)[0]instanceof qa.default.Embed))return!0;f===ta.keys.LEFT?e?this.quill.setSelection(h.index-1,h.length+1,ka.default.sources.USER):this.quill.setSelection(h.index-1,ka.default.sources.USER):e?this.quill.setSelection(h.index,h.length+1,ka.default.sources.USER):this.quill.setSelection(h.index+h.length+1,ka.default.sources.USER);return!1}),h}function n(f,e){if(!(0===f.index||1>=this.quill.getLength())){var h=this.quill.getLine(f.index),
n=ia(h,1)[0];h={};if(0===e.offset){var r=this.quill.getLine(f.index-1);r=ia(r,1)[0];null!=r&&1<r.length()&&(h=n.formats(),n=this.quill.getFormat(f.index-1,1),h=ua.default.attributes.diff(h,n)||{})}e=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(f.index-e,e,ka.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(f.index-e,e,h,ka.default.sources.USER);this.quill.focus()}}function h(f,e){var h=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(f.index>=
this.quill.getLength()-h)){var n={},r=0,w=this.quill.getLine(f.index);w=ia(w,1)[0];e.offset>=w.length()-1&&(e=this.quill.getLine(f.index+1),e=ia(e,1)[0])&&(n=w.formats(),r=this.quill.getFormat(f.index,1),n=ua.default.attributes.diff(n,r)||{},r=e.length());this.quill.deleteText(f.index,h,ka.default.sources.USER);0<Object.keys(n).length&&this.quill.formatLine(f.index+r-1,h,n,ka.default.sources.USER)}}function f(f){var e=this.quill.getLines(f),h={};1<e.length&&(h=e[0].formats(),e=e[e.length-1].formats(),
h=ua.default.attributes.diff(e,h)||{});this.quill.deleteText(f,ka.default.sources.USER);0<Object.keys(h).length&&this.quill.formatLine(f.index,1,h,ka.default.sources.USER);this.quill.setSelection(f.index,ka.default.sources.SILENT);this.quill.focus()}function x(f,e){var h=this;0<f.length&&this.quill.scroll.deleteAt(f.index,f.length);var n=Object.keys(e.format).reduce(function(f,h){qa.default.query(h,qa.default.Scope.BLOCK)&&!Array.isArray(e.format[h])&&(f[h]=e.format[h]);return f},{});this.quill.insertText(f.index,
"\n",n,ka.default.sources.USER);this.quill.setSelection(f.index+1,ka.default.sources.SILENT);this.quill.focus();Object.keys(e.format).forEach(function(f){null==n[f]&&(Array.isArray(e.format[f])||"link"!==f&&h.quill.format(f,e.format[f],ka.default.sources.USER))})}function fa(f){return{key:ta.keys.TAB,shiftKey:!f,format:{"code-block":!0},handler:function(e){var h=qa.default.query("code-block"),n=e.index,r=e.length;e=this.quill.scroll.descendant(h,n);e=ia(e,2);var w=e[0],x=e[1];if(null!=w){e=this.quill.getIndex(w);
var y=w.newlineIndex(x,!0)+1;e=w.newlineIndex(e+x+r);e=w.domNode.textContent.slice(y,e).split("\n");x=0;e.forEach(function(e,z){f?(w.insertAt(y+x,h.TAB),x+=h.TAB.length,0===z?n+=h.TAB.length:r+=h.TAB.length):e.startsWith(h.TAB)&&(w.deleteAt(y+x,h.TAB.length),x-=h.TAB.length,0===z?n-=h.TAB.length:r-=h.TAB.length);x+=e.length+1});this.quill.update(ka.default.sources.USER);this.quill.setSelection(n,r,ka.default.sources.SILENT)}}}}function ea(f){return{key:f[0].toUpperCase(),shortKey:!0,handler:function(e,
h){this.quill.format(f,!h.format[f],ka.default.sources.USER)}}}function ha(f){if("string"===typeof f||"number"===typeof f)return ha({key:f});"object"===("undefined"===typeof f?"undefined":da(f))&&(f=(0,ra.default)(f,!1));if("string"===typeof f.key)if(null!=ta.keys[f.key.toUpperCase()])f.key=ta.keys[f.key.toUpperCase()];else if(1===f.key.length)f.key=f.key.toUpperCase().charCodeAt(0);else return null;f.shortKey&&(f[Aa]=f.shortKey,delete f.shortKey);return f}Object.defineProperty(aa,"__esModule",{value:!0});
aa.SHORTKEY=aa.default=void 0;var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},ia=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(Ha){r=!0,w=Ha}finally{try{if(!n&&
x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),la=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(21);var ra=ca(e);e=ba(11);var oa=ca(e);e=ba(3);var ya=ca(e);e=ba(2);var Fa=ca(e);e=ba(20);var ua=ca(e);e=ba(0);
var qa=ca(e);e=ba(5);var ka=ca(e);e=ba(10);e=ca(e);ba=ba(9);ba=ca(ba);var wa=(0,e.default)("quill:keyboard"),Aa=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ta=function(e){function r(e,y){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var z=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,y));z.bindings={};Object.keys(z.options.bindings).forEach(function(f){("list autofill"!==f||null==e.scroll.whitelist||e.scroll.whitelist.list)&&z.options.bindings[f]&&
z.addBinding(z.options.bindings[f])});z.addBinding({key:r.keys.ENTER,shiftKey:null},x);z.addBinding({key:r.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(z.addBinding({key:r.keys.BACKSPACE},{collapsed:!0},n),z.addBinding({key:r.keys.DELETE},{collapsed:!0},h)):(z.addBinding({key:r.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},n),z.addBinding({key:r.keys.DELETE},{collapsed:!0,suffix:/^.?$/},h));z.addBinding({key:r.keys.BACKSPACE},{collapsed:!1},
f);z.addBinding({key:r.keys.DELETE},{collapsed:!1},f);z.addBinding({key:r.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},n);z.listen();return z}y(r,e);la(r,null,[{key:"match",value:function(f,e){e=ha(e);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(h){return!!e[h]!==f[h]&&null!==e[h]})?!1:e.key===(f.which||f.keyCode)}}]);la(r,[{key:"addBinding",value:function(f){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:{},n=ha(f);if(null==n||null==n.key)return wa.warn("Attempted to add invalid keyboard binding",n);"function"===typeof e&&(e={handler:e});"function"===typeof h&&(h={handler:h});n=(0,ya.default)(n,e,h);this.bindings[n.key]=this.bindings[n.key]||[];this.bindings[n.key].push(n)}},{key:"listen",value:function(){var f=this;this.quill.root.addEventListener("keydown",function(e){if(!e.defaultPrevented){var h=(f.bindings[e.which||e.keyCode]||[]).filter(function(f){return r.match(e,
f)});if(0!==h.length){var n=f.quill.getSelection();if(null!=n&&f.quill.hasFocus()){var w=f.quill.getLine(n.index),x=ia(w,2);w=x[0];x=x[1];var y=f.quill.getLeaf(n.index),z=ia(y,2);y=z[0];z=z[1];var aa=0===n.length?[y,z]:f.quill.getLeaf(n.index+n.length),ca=ia(aa,2);aa=ca[0];ca=ca[1];y=y instanceof qa.default.Text?y.value().slice(0,z):"";z=aa instanceof qa.default.Text?aa.value().slice(ca):"";var fa={collapsed:0===n.length,empty:0===n.length&&1>=w.length(),format:f.quill.getFormat(n),offset:x,prefix:y,
suffix:z};h.some(function(e){if(null!=e.collapsed&&e.collapsed!==fa.collapsed||null!=e.empty&&e.empty!==fa.empty||null!=e.offset&&e.offset!==fa.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(f){return null==fa.format[f]}))return!1}else if("object"===da(e.format)&&!Object.keys(e.format).every(function(f){return!0===e.format[f]?null!=fa.format[f]:!1===e.format[f]?null==fa.format[f]:(0,oa.default)(e.format[f],fa.format[f])}))return!1;return null!=e.prefix&&!e.prefix.test(fa.prefix)||
null!=e.suffix&&!e.suffix.test(fa.suffix)?!1:!0!==e.handler.call(f,n,fa)})&&e.preventDefault()}}}})}}]);return r}(ba.default);ta.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ta.DEFAULTS={bindings:{bold:ea("bold"),italic:ea("italic"),underline:ea("underline"),indent:{key:ta.keys.TAB,format:["blockquote","indent","list"],handler:function(f,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",ka.default.sources.USER)}},outdent:{key:ta.keys.TAB,
shiftKey:!0,format:["blockquote","indent","list"],handler:function(f,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",ka.default.sources.USER)}},"outdent backspace":{key:ta.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(f,e){null!=e.format.indent?this.quill.format("indent","-1",ka.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,ka.default.sources.USER)}},"indent code-block":fa(!0),
"outdent code-block":fa(!1),"remove tab":{key:ta.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(f){this.quill.deleteText(f.index-1,1,ka.default.sources.USER)}},tab:{key:ta.keys.TAB,handler:function(f){this.quill.history.cutoff();var e=(new Fa.default).retain(f.index).delete(f.length).insert("\t");this.quill.updateContents(e,ka.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(f.index+1,ka.default.sources.SILENT)}},"list empty enter":{key:ta.keys.ENTER,collapsed:!0,
format:["list"],empty:!0,handler:function(f,e){this.quill.format("list",!1,ka.default.sources.USER);e.format.indent&&this.quill.format("indent",!1,ka.default.sources.USER)}},"checklist enter":{key:ta.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(f){var e=this.quill.getLine(f.index),h=ia(e,2);e=h[0];h=h[1];var n=(0,ya.default)({},e.formats(),{list:"checked"});e=(new Fa.default).retain(f.index).insert("\n",n).retain(e.length()-h-1).retain(1,{list:"unchecked"});this.quill.updateContents(e,
ka.default.sources.USER);this.quill.setSelection(f.index+1,ka.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ta.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(f,e){var h=this.quill.getLine(f.index),n=ia(h,2);h=n[0];n=n[1];e=(new Fa.default).retain(f.index).insert("\n",e.format).retain(h.length()-n-1).retain(1,{header:null});this.quill.updateContents(e,ka.default.sources.USER);this.quill.setSelection(f.index+1,ka.default.sources.SILENT);this.quill.scrollIntoView()}},
"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(f,e){var h=e.prefix.length,n=this.quill.getLine(f.index),r=ia(n,2);n=r[0];r=r[1];if(r>h)return!0;switch(e.prefix.trim()){case "[]":case "[ ]":e="unchecked";break;case "[x]":e="checked";break;case "-":case "*":e="bullet";break;default:e="ordered"}this.quill.insertText(f.index," ",ka.default.sources.USER);this.quill.history.cutoff();e=(new Fa.default).retain(f.index-r).delete(h+1).retain(n.length()-
2-r).retain(1,{list:e});this.quill.updateContents(e,ka.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(f.index-h,ka.default.sources.SILENT)}},"code exit":{key:ta.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(f){var e=this.quill.getLine(f.index),h=ia(e,2);e=h[0];h=h[1];f=(new Fa.default).retain(f.index+e.length()-h-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(f,ka.default.sources.USER)}},"embed left":r(ta.keys.LEFT,
!1),"embed left shift":r(ta.keys.LEFT,!0),"embed right":r(ta.keys.RIGHT,!1),"embed right shift":r(ta.keys.RIGHT,!0)}};aa.default=ta;aa.SHORTKEY=Aa},function(e,aa,ba){function ca(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,
"__esModule",{value:!0});var z=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var y=e[Symbol.iterator](),z;!(n=(z=y.next()).done)&&(h.push(z.value),!f||h.length!==f);n=!0);}catch(la){r=!0,w=la}finally{try{if(!n&&y["return"])y["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),w=function ma(f,e,n){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,
e);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ma(f,e,n)}else{if("value"in r)return r.value;e=r.get;return void 0===e?void 0:e.call(n)}},y=function(){function f(f,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(f,r.key,r)}}return function(e,n,r){n&&f(e.prototype,n);r&&f(e,r);return e}}(),r=(e=ba(0))&&e.__esModule?e:{default:e},n=(ba=ba(7))&&ba.__esModule?ba:{default:ba};ba=function(f){function e(f,
n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");f=(e.__proto__||Object.getPrototypeOf(e)).call(this,f);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.selection=n;f.textNode=document.createTextNode(e.CONTENTS);f.domNode.appendChild(f.textNode);f._length=0;return f}ca(e,f);y(e,null,[{key:"value",value:function(){}}]);y(e,[{key:"detach",value:function(){null!=
this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(f,n){if(0!==this._length)return w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,f,n);for(var x=this,y=0;null!=x&&x.statics.scope!==r.default.Scope.BLOCK_BLOT;)y+=x.offset(x.parent),x=x.parent;null!=x&&(this._length=e.CONTENTS.length,x.optimize(),x.formatAt(y,e.CONTENTS.length,f,n),this._length=0)}},{key:"index",value:function(f,n){return f===this.textNode?0:w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
"index",this).call(this,f,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var f=this.textNode,w=this.selection.getNativeRange(),x=void 0,y=void 0,aa=void 0;null!=w&&w.start.node===f&&w.end.node===
f&&(aa=[f,w.start.offset,w.end.offset],x=aa[0],y=aa[1],aa=aa[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==e.CONTENTS&&(f=this.textNode.data.split(e.CONTENTS).join(""),this.next instanceof n.default?(x=this.next.domNode,this.next.insertAt(0,f),this.textNode.data=e.CONTENTS):(this.textNode.data=f,this.parent.insertBefore(r.default.create(this.textNode),this),this.textNode=
document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=y)return y=[y,aa].map(function(f){return Math.max(0,Math.min(x.data.length,f-1))}),aa=z(y,2),y=aa[0],aa=aa[1],{startNode:x,startOffset:y,endNode:x,endOffset:aa}}}},{key:"update",value:function(f,e){var n=this;f.some(function(f){return"characterData"===f.type&&f.target===n.textNode})&&(f=this.restore())&&(e.range=f)}},{key:"value",value:function(){return""}}]);return e}(r.default.Embed);ba.blotName=
"cursor";ba.className="ql-cursor";ba.tagName="span";ba.CONTENTS="\ufeff";aa.default=ba},function(e,aa,ba){function ca(e,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);e.prototype=Object.create(y&&y.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(e,y):e.__proto__=y)}Object.defineProperty(aa,"__esModule",{value:!0});e=(e=ba(0))&&e.__esModule?e:
{default:e};var z=(ba=ba(4))&&ba.__esModule?ba:{default:ba};e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);return w}(e.default.Container);e.allowedChildren=[z.default,ba.BlockEmbed,e];aa.default=e},function(e,
aa,ba){function ca(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});aa.ColorStyle=aa.ColorClass=aa.ColorAttributor=void 0;var z=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),w=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}},y=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));e=function(e){function h(){if(!(this instanceof
h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(h,e);z(h,[{key:"value",value:function(f){f=w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,f);if(!f.startsWith("rgb("))return f;f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+
f.split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join("")}}]);return h}(y.default.Attributor.Style);ba=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE});y=new e("color","color",{scope:y.default.Scope.INLINE});aa.ColorAttributor=e;aa.ColorClass=ba;aa.ColorStyle=y},function(e,aa,ba){function ca(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&
n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}function z(e,n){var h=document.createElement("a");h.href=e;e=h.href.slice(0,h.href.indexOf(":"));return-1<n.indexOf(e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.sanitize=aa.default=void 0;var w=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),y=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(h,e);w(h,[{key:"format",value:function(f,e){if(f!==this.statics.blotName||!e)return y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,f,e);e=this.constructor.sanitize(e);this.domNode.setAttribute("href",e)}}],[{key:"create",value:function(f){var e=y(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,f);f=this.sanitize(f);e.setAttribute("href",f);e.setAttribute("rel","noopener noreferrer");
e.setAttribute("target","_blank");return e}},{key:"formats",value:function(f){return f.getAttribute("href")}},{key:"sanitize",value:function(f){return z(f,this.PROTOCOL_WHITELIST)?f:this.SANITIZED_URL}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);e.blotName="link";e.tagName="A";e.SANITIZED_URL="about:blank";e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];aa.default=e;aa.sanitize=z},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var ca="function"===
typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=(e=ba(23))&&e.__esModule?e:{default:e},y=(ba=ba(107))&&ba.__esModule?
ba:{default:ba},r=0;ba=function(){function e(h){var f=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=h;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){f.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:f.togglePicker();break;
case w.default.keys.ESCAPE:f.escape(),e.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}z(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var f=this,h=document.createElement("span");h.tabIndex="0";h.setAttribute("role",
"button");h.classList.add("ql-picker-item");e.hasAttribute("value")&&h.setAttribute("data-value",e.getAttribute("value"));e.textContent&&h.setAttribute("data-label",e.textContent);h.addEventListener("click",function(){f.selectItem(h,!0)});h.addEventListener("keydown",function(e){switch(e.keyCode){case w.default.keys.ENTER:f.selectItem(h,!0);e.preventDefault();break;case w.default.keys.ESCAPE:f.escape(),e.preventDefault()}});return h}},{key:"buildLabel",value:function(){var e=document.createElement("span");
e.classList.add("ql-picker-label");e.innerHTML=y.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden","true");f.tabIndex="-1";f.id="ql-picker-options-"+r;r+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(h){var n=
e.buildItem(h);f.appendChild(n);!0===h.selected&&e.selectItem(n)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,f.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");
this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=this.container.querySelector(".ql-selected");e!==h&&(null!=h&&h.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):
this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),f&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":ca(Event))&&(f=document.createEvent("Event"),f.initEvent("change",!0,!0),this.select.dispatchEvent(f)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var f=
this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(f)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return e}();aa.default=ba},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(aa,"__esModule",{value:!0});e=ba(0);e=ca(e);var z=ba(5);z=ca(z);var w=ba(4),y=ca(w),r=ba(16);r=ca(r);
var n=ba(25);n=ca(n);var h=ba(24);h=ca(h);var f=ba(35);f=ca(f);var x=ba(6);x=ca(x);var fa=ba(22);fa=ca(fa);var ea=ba(7);ea=ca(ea);var ha=ba(55);ha=ca(ha);var da=ba(42);da=ca(da);ba=ba(23);z.default.register({"blots/block":y.default,"blots/block/embed":w.BlockEmbed,"blots/break":r.default,"blots/container":n.default,"blots/cursor":h.default,"blots/embed":f.default,"blots/inline":x.default,"blots/scroll":fa.default,"blots/text":ea.default,"modules/clipboard":ha.default,"modules/history":da.default,
"modules/keyboard":ca(ba).default});e.default.register(y.default,r.default,h.default,x.default,fa.default,ea.default);aa.default=z.default},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var ca=ba(1);e=function(){function e(e){this.domNode=e;this.domNode[ca.DATA_KEY]={blot:this}}Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});e.create=function(e){if(null==this.tagName)throw new ca.ParchmentError("Blot definition missing tagName");
Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),e="number"===typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):e=document.createElement(this.tagName);this.className&&e.classList.add(this.className);return e};e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);
return ca.create(e)};e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[ca.DATA_KEY]};e.prototype.deleteAt=function(e,y){this.isolate(e,y).remove()};e.prototype.formatAt=function(e,y,r,n){e=this.isolate(e,y);null!=ca.query(r,ca.Scope.BLOT)&&n?e.wrap(r,n):null!=ca.query(r,ca.Scope.ATTRIBUTE)&&(y=ca.create(this.statics.scope),e.wrap(y),y.format(r,n))};e.prototype.insertAt=function(e,y,r){y=null==r?ca.create("text",y):ca.create(y,r);e=this.split(e);this.parent.insertBefore(y,
e)};e.prototype.insertInto=function(e,y){void 0===y&&(y=null);null!=this.parent&&this.parent.children.remove(this);var r=null;e.children.insertBefore(this,y);null!=y&&(r=y.domNode);this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==r||e.domNode.insertBefore(this.domNode,r);this.parent=e;this.attach()};e.prototype.isolate=function(e,y){e=this.split(e);e.split(y);return e};e.prototype.length=function(){return 1};e.prototype.offset=function(e){void 0===e&&(e=this.parent);return null==this.parent||
this==e?0:this.parent.children.offset(this)+this.parent.offset(e)};e.prototype.optimize=function(){null!=this.domNode[ca.DATA_KEY]&&delete this.domNode[ca.DATA_KEY].mutations};e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())};e.prototype.replaceWith=function(e,y){e="string"===typeof e?ca.create(e,y):e;e.replace(this);return e};
e.prototype.split=function(e){return 0===e?this:this.next};e.prototype.update=function(){};e.prototype.wrap=function(e,y){e="string"===typeof e?ca.create(e,y):e;null!=this.parent&&this.parent.insertBefore(e,this.next);e.appendChild(this);return e};e.blotName="abstract";return e}();aa.default=e},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var ca=ba(12),z=ba(32),w=ba(33),y=ba(1);e=function(){function e(e){this.attributes={};this.domNode=e;this.build()}e.prototype.attribute=function(e,
h){h?e.add(this.domNode,h)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};e.prototype.build=function(){var e=this;this.attributes={};var h=ca.default.keys(this.domNode),f=z.default.keys(this.domNode),r=w.default.keys(this.domNode);h.concat(f).concat(r).forEach(function(f){f=y.query(f,y.Scope.ATTRIBUTE);f instanceof ca.default&&(e.attributes[f.attrName]=f)})};e.prototype.copy=function(e){var h=
this;Object.keys(this.attributes).forEach(function(f){var n=h.attributes[f].value(h.domNode);e.format(f,n)})};e.prototype.move=function(e){var h=this;this.copy(e);Object.keys(this.attributes).forEach(function(f){h.attributes[f].remove(h.domNode)});this.attributes={}};e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(h,f){h[f]=e.attributes[f].value(e.domNode);return h},{})};return e}();aa.default=e},function(e,aa,ba){function ca(e,y){return(e.getAttribute("class")||
"").split(/\s+/).filter(function(e){return 0===e.indexOf(y+"-")})}var z=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])};return function(w,r){function n(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||
this}z(w,e);w.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};w.prototype.add=function(e,n){if(!this.canAdd(e,n))return!1;this.remove(e);e.classList.add(this.keyName+"-"+n);return!0};w.prototype.remove=function(e){ca(e,this.keyName).forEach(function(n){e.classList.remove(n)});0===e.classList.length&&e.removeAttribute("class")};w.prototype.value=function(e){var n=(ca(e,this.keyName)[0]||"").slice(this.keyName.length+1);
return this.canAdd(e,n)?n:""};return w}(ba(12).default);aa.default=e},function(e,aa,ba){function ca(e){e=e.split("-");var w=e.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return e[0]+w}var z=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])};return function(w,r){function n(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):
(n.prototype=r.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}z(w,e);w.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};w.prototype.add=function(e,n){if(!this.canAdd(e,n))return!1;e.style[ca(this.keyName)]=n;return!0};w.prototype.remove=function(e){e.style[ca(this.keyName)]="";e.getAttribute("style")||e.removeAttribute("style")};w.prototype.value=
function(e){var n=e.style[ca(this.keyName)];return this.canAdd(e,n)?n:""};return w}(ba(12).default);aa.default=e},function(e,aa){Object.defineProperty(aa,"__esModule",{value:!0});var ba=function(){function e(e,w){for(var y=0;y<w.length;y++){var r=w[y];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(z,w,y){w&&e(z.prototype,w);y&&e(z,y);return z}}();e=function(){function e(z,w){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
this.quill=z;this.options=w;this.modules={}}ba(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(w){null==e.modules[w]&&e.addModule(w)})}},{key:"addModule",value:function(e){var w=this.quill.constructor.import("modules/"+e);this.modules[e]=new w(this.quill,this.options.modules[e]||{});return this.modules[e]}}]);return e}();e.DEFAULTS={modules:{}};e.themes={"default":e};aa.default=e},function(e,aa,ba){function ca(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function z(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});var w=function(){function e(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),y=function ma(f,e,n){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,e);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ma(f,e,n)}else{if("value"in r)return r.value;e=r.get;return void 0===e?void 0:e.call(n)}},r=(e=ba(0))&&e.__esModule?e:{default:e},n=(ba=ba(7))&&ba.__esModule?ba:{default:ba};ba=function(f){function e(f){if(!(this instanceof
e))throw new TypeError("Cannot call a class as a function");var n=ca(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));n.contentNode=document.createElement("span");n.contentNode.setAttribute("contenteditable",!1);[].slice.call(n.domNode.childNodes).forEach(function(f){n.contentNode.appendChild(f)});n.leftGuard=document.createTextNode("\ufeff");n.rightGuard=document.createTextNode("\ufeff");n.domNode.appendChild(n.leftGuard);n.domNode.appendChild(n.contentNode);n.domNode.appendChild(n.rightGuard);
return n}z(e,f);w(e,[{key:"index",value:function(f,n){return f===this.leftGuard?0:f===this.rightGuard?1:y(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,f,n)}},{key:"restore",value:function(f){var e=void 0,w=f.data.split("\ufeff").join("");f===this.leftGuard?this.prev instanceof n.default?(e=this.prev.length(),this.prev.insertAt(e,w),e={startNode:this.prev.domNode,startOffset:e+w.length}):(e=document.createTextNode(w),this.parent.insertBefore(r.default.create(e),
this),e={startNode:e,startOffset:w.length}):f===this.rightGuard&&(this.next instanceof n.default?(this.next.insertAt(0,w),e={startNode:this.next.domNode,startOffset:w.length}):(e=document.createTextNode(w),this.parent.insertBefore(r.default.create(e),this.next),e={startNode:e,startOffset:w.length}));f.data="\ufeff";return e}},{key:"update",value:function(f,e){var n=this;f.forEach(function(f){"characterData"!==f.type||f.target!==n.leftGuard&&f.target!==n.rightGuard||!(f=n.restore(f.target))||(e.range=
f)})}}]);return e}(r.default.Embed);aa.default=ba},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.AlignStyle=aa.AlignClass=aa.AlignAttribute=void 0;var ca=(e=ba(0))&&e.__esModule?e:{default:e};var z={scope:ca.default.Scope.BLOCK,whitelist:["right","center","justify"]};e=new ca.default.Attributor.Attribute("align","align",z);ba=new ca.default.Attributor.Class("align","ql-align",z);ca=new ca.default.Attributor.Style("align","text-align",z);aa.AlignAttribute=e;aa.AlignClass=ba;
aa.AlignStyle=ca},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.BackgroundStyle=aa.BackgroundClass=void 0;e=(e=ba(0))&&e.__esModule?e:{default:e};var ca=ba(26);ba=new e.default.Attributor.Class("background","ql-bg",{scope:e.default.Scope.INLINE});e=new ca.ColorAttributor("background","background-color",{scope:e.default.Scope.INLINE});aa.BackgroundClass=ba;aa.BackgroundStyle=e},function(e,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.DirectionStyle=aa.DirectionClass=
aa.DirectionAttribute=void 0;var ca=(e=ba(0))&&e.__esModule?e:{default:e};var z={scope:ca.default.Scope.BLOCK,whitelist:["rtl"]};e=new ca.default.Attributor.Attribute("direction","dir",z);ba=new ca.default.Attributor.Class("direction","ql-direction",z);ca=new ca.default.Attributor.Style("direction","direction",z);aa.DirectionAttribute=e;aa.DirectionClass=ba;aa.DirectionStyle=ca},function(e,aa,ba){function ca(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+
typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});aa.FontClass=aa.FontStyle=void 0;var z=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,
f);return n}}(),w=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};ba=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));var y={scope:ba.default.Scope.INLINE,whitelist:["serif","monospace"]};e=new ba.default.Attributor.Class("font","ql-font",y);ba=new (function(e){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");
var f=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}ca(h,e);z(h,[{key:"value",value:function(f){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]);return h}(ba.default.Attributor.Style))("font","font-family",y);aa.FontStyle=ba;aa.FontClass=e},function(e,aa,ba){Object.defineProperty(aa,
"__esModule",{value:!0});aa.SizeStyle=aa.SizeClass=void 0;ba=(e=ba(0))&&e.__esModule?e:{default:e};e=new ba.default.Attributor.Class("size","ql-size",{scope:ba.default.Scope.INLINE,whitelist:["small","large","huge"]});ba=new ba.default.Attributor.Style("size","font-size",{scope:ba.default.Scope.INLINE,whitelist:["10px","18px","32px"]});aa.SizeClass=e;aa.SizeStyle=ba},function(e,aa,ba){e.exports={align:{"":ba(76),center:ba(77),right:ba(78),justify:ba(79)},background:ba(80),blockquote:ba(81),bold:ba(82),
clean:ba(83),code:ba(58),"code-block":ba(58),color:ba(84),direction:{"":ba(85),rtl:ba(86)},"float":{center:ba(87),full:ba(88),left:ba(89),right:ba(90)},formula:ba(91),header:{1:ba(92),2:ba(93)},italic:ba(94),image:ba(95),indent:{"+1":ba(96),"-1":ba(97)},link:ba(98),list:{ordered:ba(99),bullet:ba(100),check:ba(101)},script:{sub:ba(102),"super":ba(103)},strike:ba(104),underline:ba(105),video:ba(106)}},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function w(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function y(f){f=f.ops[f.ops.length-1];return null==f?!1:null!=f.insert?"string"===typeof f.insert&&f.insert.endsWith("\n"):null!=
f.attributes?Object.keys(f.attributes).some(function(f){return null!=h.default.query(f,h.default.Scope.BLOCK)}):!1}function r(f){var e=f.reduce(function(f,e){return f+=e.delete||0},0);e=f.length()-e;y(f)&&--e;return e}Object.defineProperty(aa,"__esModule",{value:!0});aa.getLastChangeIndex=aa.default=void 0;var n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,
h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(0);var h=ca(e);e=ba(5);var f=ca(e);ba=ba(9);ba=function(e){function h(e,n){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var r=z(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,n));r.lastRecorded=0;r.ignoreChange=!1;r.clear();r.quill.on(f.default.events.EDITOR_CHANGE,function(e,h,n,w){e!==f.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&w!==f.default.sources.USER?r.transform(h):r.record(h,
n))});r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r));r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r));/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r));return r}w(h,e);n(h,[{key:"change",value:function(e,h){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[h].push(n);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(n[e],f.default.sources.USER);this.ignoreChange=!1;e=r(n[e]);
this.quill.setSelection(e)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(f,e){if(0!==f.ops.length){this.stack.redo=[];e=this.quill.getContents().diff(e);var h=Date.now();this.lastRecorded+this.options.delay>h&&0<this.stack.undo.length?(h=this.stack.undo.pop(),e=e.compose(h.undo),f=h.redo.compose(f)):this.lastRecorded=h;this.stack.undo.push({redo:f,undo:e});this.stack.undo.length>this.options.maxStack&&
this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(f){this.stack.undo.forEach(function(e){e.undo=f.transform(e.undo,!0);e.redo=f.transform(e.redo,!0)});this.stack.redo.forEach(function(e){e.undo=f.transform(e.undo,!0);e.redo=f.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return h}(ca(ba).default);ba.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};aa.default=ba;aa.getLastChangeIndex=r},function(e,
aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,
enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;e.forEach(function(e){var n=document.createElement("option");e===h?n.setAttribute("selected","selected"):n.setAttribute("value",e);f.appendChild(n)})}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BaseTooltip=void 0;var n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),h=function ta(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ta(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(3);e=ca(e);var f=ba(2),x=ca(f);f=ba(8);var fa=ca(f);f=ba(23);var ea=ca(f);f=ba(34);f=
ca(f);var ha=ba(59),da=ca(ha);ha=ba(60);var ia=ca(ha);ha=ba(28);var la=ca(ha);ba=ba(61);ha=ca(ba);var ra=[!1,"center","right","justify"],oa="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),ya=[!1,"serif","monospace"],Fa=["1","2","3",!1],ua=["small",!1,"large",
"huge"];ba=function(f){function e(f,h){z(this,e);var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.emitter.listenDOM("click",document.body,function Ga(e){if(!document.body.contains(f.root))return document.body.removeEventListener("click",Ga);null==n.tooltip||n.tooltip.root.contains(e.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide();null!=n.pickers&&n.pickers.forEach(function(f){f.container.contains(e.target)||f.close()})});return n}y(e,
f);n(e,[{key:"addModule",value:function(f){var n=h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,f);"toolbar"===f&&this.extendToolbar(n);return n}},{key:"buildButtons",value:function(f,e){f.forEach(function(f){(f.getAttribute("class")||"").split(/\s+/).forEach(function(h){if(h.startsWith("ql-")&&(h=h.slice(3),null!=e[h]))if("direction"===h)f.innerHTML=e[h][""]+e[h].rtl;else if("string"===typeof e[h])f.innerHTML=e[h];else{var n=f.value||"";null!=n&&e[h][n]&&
(f.innerHTML=e[h][n])}})})}},{key:"buildPickers",value:function(f,e){var h=this;this.pickers=f.map(function(f){if(f.classList.contains("ql-align"))return null==f.querySelector("option")&&r(f,ra),new ia.default(f,e.align);if(f.classList.contains("ql-background")||f.classList.contains("ql-color")){var h=f.classList.contains("ql-background")?"background":"color";null==f.querySelector("option")&&r(f,oa,"background"===h?"#ffffff":"#000000");return new da.default(f,e[h])}null==f.querySelector("option")&&
(f.classList.contains("ql-font")?r(f,ya):f.classList.contains("ql-header")?r(f,Fa):f.classList.contains("ql-size")&&r(f,ua));return new la.default(f)});this.quill.on(fa.default.events.EDITOR_CHANGE,function(){h.pickers.forEach(function(f){f.update()})})}}]);return e}(f.default);ba.DEFAULTS=(0,e.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var f=this,e=this.container.querySelector("input.ql-image[type=file]");
null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var h=new FileReader;h.onload=function(h){var n=f.quill.getSelection(!0);f.quill.updateContents((new x.default).retain(n.index).delete(n.length).insert({image:h.target.result}),fa.default.sources.USER);f.quill.setSelection(n.index+1,fa.default.sources.SILENT);
e.value=""};h.readAsDataURL(e.files[0])}}),this.container.appendChild(e));e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});e=function(f){function e(f,h){z(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.textbox=f.root.querySelector('input[type="text"]');f.listen();return f}y(e,f);n(e,[{key:"listen",value:function(){var f=this;this.textbox.addEventListener("keydown",function(e){ea.default.match(e,"enter")?(f.save(),e.preventDefault()):ea.default.match(e,
"escape")&&(f.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=e?this.textbox.value=e:f!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();
this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+f)||"");this.root.setAttribute("data-mode",f)}},{key:"restoreFocus",value:function(){var f=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=f}},{key:"save",value:function(){var f=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",f,fa.default.sources.USER),delete this.linkRange):
(this.restoreFocus(),this.quill.format("link",f,fa.default.sources.USER));this.quill.root.scrollTop=e;break;case "video":f=(e=f.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||f.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=f.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":f;case "formula":f&&(e=this.quill.getSelection(!0),
null!=e&&(e=e.index+e.length,this.quill.insertEmbed(e,this.root.getAttribute("data-mode"),f,fa.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(e+1," ",fa.default.sources.USER),this.quill.setSelection(e+2,fa.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return e}(ha.default);aa.BaseTooltip=e;aa.default=ba},function(e,aa){Object.defineProperty(aa,"__esModule",{value:!0});e=function(){function e(){this.head=this.tail=null;this.length=0}e.prototype.append=
function(){for(var e=[],z=0;z<arguments.length;z++)e[z]=arguments[z];this.insertBefore(e[0],null);1<e.length&&this.append.apply(this,e.slice(1))};e.prototype.contains=function(e){for(var z,w=this.iterator();z=w();)if(z===e)return!0;return!1};e.prototype.insertBefore=function(e,z){e&&(e.next=z,null!=z?(e.prev=z.prev,null!=z.prev&&(z.prev.next=e),z.prev=e,z===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)};
e.prototype.offset=function(e){for(var z=0,w=this.head;null!=w;){if(w===e)return z;z+=w.length();w=w.next}return-1};e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)};e.prototype.iterator=function(e){void 0===e&&(e=this.head);return function(){var z=e;null!=e&&(e=e.next);return z}};e.prototype.find=function(e,z){void 0===z&&(z=!1);for(var w,y=this.iterator();w=
y();){var r=w.length();if(e<r||z&&e===r&&(null==w.next||0!==w.next.length()))return[w,e];e-=r}return[null,0]};e.prototype.forEach=function(e){for(var z,w=this.iterator();z=w();)e(z)};e.prototype.forEachAt=function(e,z,w){if(!(0>=z))for(var y=this.find(e),r=e-y[1],n=this.iterator(y[0]);(y=n())&&r<e+z;){var h=y.length();e>r?w(y,e-r,Math.min(z,r+h-e)):w(y,0,Math.min(h,e+z-r));r+=h}};e.prototype.map=function(e){return this.reduce(function(z,w){z.push(e(w));return z},[])};e.prototype.reduce=function(e,
z){for(var w,y=this.iterator();w=y();)z=e(z,w);return z};return e}();aa.default=e},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(n,h){function f(){this.constructor=n}e(n,h);n.prototype=null===h?Object.create(h):(f.prototype=h.prototype,new f)}}();Object.defineProperty(aa,"__esModule",{value:!0});var z=ba(17),w=ba(1),y=
{attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};e=function(e){function n(h){var f=e.call(this,h)||this;f.scroll=f;f.observer=new MutationObserver(function(e){f.update(e)});f.observer.observe(f.domNode,y);f.attach();return f}ca(n,e);n.prototype.detach=function(){e.prototype.detach.call(this);this.observer.disconnect()};n.prototype.deleteAt=function(h,f){this.update();0===h&&f===this.length()?this.children.forEach(function(f){f.remove()}):e.prototype.deleteAt.call(this,
h,f)};n.prototype.formatAt=function(h,f,n,r){this.update();e.prototype.formatAt.call(this,h,f,n,r)};n.prototype.insertAt=function(h,f,n){this.update();e.prototype.insertAt.call(this,h,f,n)};n.prototype.optimize=function(h,f){function n(e){null!=e.domNode[w.DATA_KEY]&&null!=e.domNode[w.DATA_KEY].mutations&&(e instanceof z.default&&e.children.forEach(n),e.optimize(f))}function r(f,e){void 0===e&&(e=!0);null!=f&&f!==y&&null!=f.domNode.parentNode&&(null==f.domNode[w.DATA_KEY].mutations&&(f.domNode[w.DATA_KEY].mutations=
[]),e&&r(f.parent))}var y=this;void 0===h&&(h=[]);void 0===f&&(f={});e.prototype.optimize.call(this,f);for(var aa=[].slice.call(this.observer.takeRecords());0<aa.length;)h.push(aa.pop());for(var ca=h,ba=0;0<ca.length;ba+=1){if(100<=ba)throw Error("[Parchment] Maximum optimize iterations reached");ca.forEach(function(f){var e=w.find(f.target,!0);null!=e&&(e.domNode===f.target&&("childList"===f.type?(r(w.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(f){f=w.find(f,!1);r(f,!1);f instanceof
z.default&&f.children.forEach(function(f){r(f,!1)})})):"attributes"===f.type&&r(e.prev)),r(e))});this.children.forEach(n);ca=[].slice.call(this.observer.takeRecords());for(aa=ca.slice();0<aa.length;)h.push(aa.pop())}};n.prototype.update=function(h,f){var n=this;void 0===f&&(f={});h=h||this.observer.takeRecords();h.map(function(f){var e=w.find(f.target,!0);if(null==e)return null;if(null==e.domNode[w.DATA_KEY].mutations)return e.domNode[w.DATA_KEY].mutations=[f],e;e.domNode[w.DATA_KEY].mutations.push(f);
return null}).forEach(function(e){null!=e&&e!==n&&null!=e.domNode[w.DATA_KEY]&&e.update(e.domNode[w.DATA_KEY].mutations||[],f)});null!=this.domNode[w.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,f);this.optimize(h,f)};n.blotName="scroll";n.defaultChild="block";n.scope=w.Scope.BLOCK_BLOT;n.tagName="DIV";return n}(z.default);aa.default=e},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,
n){e.__proto__=n}||function(e,n){for(var h in n)n.hasOwnProperty(h)&&(e[h]=n[h])};return function(r,n){function h(){this.constructor=r}e(r,n);r.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}();Object.defineProperty(aa,"__esModule",{value:!0});var z=ba(18),w=ba(1);e=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}ca(r,e);r.formats=function(n){if(n.tagName!==r.tagName)return e.formats.call(this,n)};r.prototype.format=function(n,h){var f=this;n!==this.statics.blotName||
h?e.prototype.format.call(this,n,h):(this.children.forEach(function(e){e instanceof z.default||(e=e.wrap(r.blotName,!0));f.attributes.copy(e)}),this.unwrap())};r.prototype.formatAt=function(n,h,f,r){null!=this.formats()[f]||w.query(f,w.Scope.ATTRIBUTE)?this.isolate(n,h).format(f,r):e.prototype.formatAt.call(this,n,h,f,r)};r.prototype.optimize=function(n){e.prototype.optimize.call(this,n);n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var h=this.next,f;if(f=h instanceof r&&h.prev===
this)a:if(f=h.formats(),Object.keys(n).length!==Object.keys(f).length)f=!1;else{for(var w in n)if(n[w]!==f[w]){f=!1;break a}f=!0}f&&(h.moveChildren(this),h.remove())};r.blotName="inline";r.scope=w.Scope.INLINE_BLOT;r.tagName="SPAN";return r}(z.default);aa.default=e},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])};return function(w,r){function n(){this.constructor=
w}e(w,r);w.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=ba(18);var z=ba(1);ba=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}ca(w,e);w.formats=function(r){var n=z.query(w.blotName).tagName;if(r.tagName!==n)return e.formats.call(this,r)};w.prototype.format=function(r,n){null!=z.query(r,z.Scope.BLOCK)&&(r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):this.replaceWith(w.blotName))};
w.prototype.formatAt=function(r,n,h,f){null!=z.query(h,z.Scope.BLOCK)?this.format(h,f):e.prototype.formatAt.call(this,r,n,h,f)};w.prototype.insertAt=function(r,n,h){null==h||null!=z.query(n,z.Scope.INLINE)?e.prototype.insertAt.call(this,r,n,h):(r=this.split(r),n=z.create(n,h),r.parent.insertBefore(n,r))};w.prototype.update=function(r,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,r,n)};w.blotName="block";w.scope=z.Scope.BLOCK_BLOT;w.tagName="P";return w}(e.default);
aa.default=ba},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,y){e.__proto__=y}||function(e,y){for(var r in y)y.hasOwnProperty(r)&&(e[r]=y[r])};return function(w,y){function r(){this.constructor=w}e(w,y);w.prototype=null===y?Object.create(y):(r.prototype=y.prototype,new r)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){return null!==e&&e.apply(this,arguments)||this}ca(w,e);w.formats=
function(){};w.prototype.format=function(w,r){e.prototype.formatAt.call(this,0,this.length(),w,r)};w.prototype.formatAt=function(w,r,n,h){0===w&&r===this.length()?this.format(n,h):e.prototype.formatAt.call(this,w,r,n,h)};w.prototype.formats=function(){return this.statics.formats(this.domNode)};return w}(ba(19).default);aa.default=e},function(e,aa,ba){var ca=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&
(e[n]=r[n])};return function(w,r){function n(){this.constructor=w}e(w,r);w.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});e=ba(19);var z=ba(1);ba=function(e){function w(r){r=e.call(this,r)||this;r.text=r.statics.value(r.domNode);return r}ca(w,e);w.create=function(e){return document.createTextNode(e)};w.value=function(e){e=e.data;e.normalize&&(e=e.normalize());return e};w.prototype.deleteAt=function(e,n){this.domNode.data=this.text=
this.text.slice(0,e)+this.text.slice(e+n)};w.prototype.index=function(e,n){return this.domNode===e?n:-1};w.prototype.insertAt=function(r,n,h){null==h?(this.text=this.text.slice(0,r)+n+this.text.slice(r),this.domNode.data=this.text):e.prototype.insertAt.call(this,r,n,h)};w.prototype.length=function(){return this.text.length};w.prototype.optimize=function(r){e.prototype.optimize.call(this,r);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof w&&this.next.prev===
this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};w.prototype.position=function(e){return[this.domNode,e]};w.prototype.split=function(e,n){void 0===n&&(n=!1);if(!n){if(0===e)return this;if(e===this.length())return this.next}e=z.create(this.domNode.splitText(e));this.parent.insertBefore(e,this.next);this.text=this.statics.value(this.domNode);return e};w.prototype.update=function(e){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=
this.statics.value(this.domNode))};w.prototype.value=function(){return this.text};w.blotName="text";w.scope=z.Scope.INLINE_BLOT;return w}(e.default);aa.default=ba},function(){var e=document.createElement("div");e.classList.toggle("test-class",!1);if(e.classList.contains("test-class")){var aa=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,ba){return 1<arguments.length&&!this.contains(e)===!ba?ba:aa.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,
aa){return this.substr(aa||0,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,aa){var z=this.toString();if("number"!==typeof aa||!isFinite(aa)||Math.floor(aa)!==aa||aa>z.length)aa=z.length;aa-=e.length;e=z.indexOf(e,aa);return-1!==e&&e===aa});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e,aa){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");
for(var z=Object(this),w=z.length>>>0,y,r=0;r<w;r++)if(y=z[r],e.call(aa,y,r,z))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(e){function aa(f,e,y){if(f==e)return f?[[0,f]]:[];if(0>y||f.length<y)y=null;var x=z(f,e),aa=f.substring(0,x);f=f.substring(x);e=e.substring(x);x=w(f,e);var ca=f.substring(f.length-x);f=f.substring(0,f.length-x);e=e.substring(0,e.length-x);f=ba(f,e);
aa&&f.unshift([0,aa]);ca&&f.push([0,ca]);r(f);null!=y&&(f=n(f,y));return f=h(f)}function ba(f,e){if(!f)return[[1,e]];if(!e)return[[-1,f]];var h=f.length>e.length?f:e;var n=f.length>e.length?e:f,r=h.indexOf(n);if(-1!=r)return h=[[1,h.substring(0,r)],[0,n],[1,h.substring(r+n.length)]],f.length>e.length&&(h[0][0]=h[2][0]=-1),h;if(1==n.length)return[[-1,f],[1,e]];if(h=y(f,e))return e=h[1],n=h[3],f=h[4],h=aa(h[0],h[2]),e=aa(e,n),h.concat([[0,f]],e);a:{h=f.length;n=e.length;r=Math.ceil((h+n)/2);for(var w=
2*r,x=Array(w),z=Array(w),ba=0;ba<w;ba++)x[ba]=-1,z[ba]=-1;x[r+1]=0;z[r+1]=0;ba=h-n;for(var fa=0!=ba%2,ea=0,ha=0,da=0,ia=0,wa=0;wa<r;wa++){for(var Aa=-wa+ea;Aa<=wa-ha;Aa+=2){var ta=r+Aa;var Da=Aa==-wa||Aa!=wa&&x[ta-1]<x[ta+1]?x[ta+1]:x[ta-1]+1;for(var Ea=Da-Aa;Da<h&&Ea<n&&f.charAt(Da)==e.charAt(Ea);)Da++,Ea++;x[ta]=Da;if(Da>h)ha+=2;else if(Ea>n)ea+=2;else if(fa&&(ta=r+ba-Aa,0<=ta&&ta<w&&-1!=z[ta])){var za=h-z[ta];if(Da>=za){f=ca(f,e,Da,Ea);break a}}}for(Aa=-wa+da;Aa<=wa-ia;Aa+=2){ta=r+Aa;za=Aa==-wa||
Aa!=wa&&z[ta-1]<z[ta+1]?z[ta+1]:z[ta-1]+1;for(Da=za-Aa;za<h&&Da<n&&f.charAt(h-za-1)==e.charAt(n-Da-1);)za++,Da++;z[ta]=za;if(za>h)ia+=2;else if(Da>n)da+=2;else if(!fa&&(ta=r+ba-Aa,0<=ta&&ta<w&&-1!=x[ta]&&(Da=x[ta],Ea=r+Da-ta,za=h-za,Da>=za))){f=ca(f,e,Da,Ea);break a}}}f=[[-1,f],[1,e]]}return f}function ca(f,e,h,n){var r=f.substring(h),w=e.substring(n);f=aa(f.substring(0,h),e.substring(0,n));r=aa(r,w);return f.concat(r)}function z(f,e){if(!f||!e||f.charAt(0)!=e.charAt(0))return 0;for(var h=0,n=Math.min(f.length,
e.length),r=n,w=0;h<r;)f.substring(w,r)==e.substring(w,r)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function w(f,e){if(!f||!e||f.charAt(f.length-1)!=e.charAt(e.length-1))return 0;for(var h=0,n=Math.min(f.length,e.length),r=n,w=0;h<r;)f.substring(f.length-r,f.length-w)==e.substring(e.length-r,e.length-w)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function y(f,e){function h(f,e,h){for(var n=f.substring(h,h+Math.floor(f.length/4)),r=-1,x="",y,aa,ba,ca;-1!=(r=e.indexOf(n,r+1));){var fa=z(f.substring(h),
e.substring(r)),ea=w(f.substring(0,h),e.substring(0,r));x.length<ea+fa&&(x=e.substring(r-ea,r)+e.substring(r,r+fa),y=f.substring(0,h-ea),aa=f.substring(h+fa),ba=e.substring(0,r-ea),ca=e.substring(r+fa))}return 2*x.length>=f.length?[y,aa,ba,ca,x]:null}var n=f.length>e.length?f:e,r=f.length>e.length?e:f;if(4>n.length||2*r.length<n.length)return null;var x=h(n,r,Math.ceil(n.length/4));n=h(n,r,Math.ceil(n.length/2));if(x||n)x=n?x?x[4].length>n[4].length?x:n:n:x;else return null;f.length>e.length?(f=x[0],
e=x[1],n=x[2],r=x[3]):(n=x[0],r=x[1],f=x[2],e=x[3]);return[f,e,n,r,x[4]]}function r(f){f.push([0,""]);for(var e=0,h=0,n=0,x="",y="",aa;e<f.length;)switch(f[e][0]){case 1:n++;y+=f[e][1];e++;break;case -1:h++;x+=f[e][1];e++;break;case 0:1<h+n?(0!==h&&0!==n&&(aa=z(y,x),0!==aa&&(0<e-h-n&&0==f[e-h-n-1][0]?f[e-h-n-1][1]+=y.substring(0,aa):(f.splice(0,0,[0,y.substring(0,aa)]),e++),y=y.substring(aa),x=x.substring(aa)),aa=w(y,x),0!==aa&&(f[e][1]=y.substring(y.length-aa)+f[e][1],y=y.substring(0,y.length-aa),
x=x.substring(0,x.length-aa))),0===h?f.splice(e-n,h+n,[1,y]):0===n?f.splice(e-h,h+n,[-1,x]):f.splice(e-h-n,h+n,[-1,x],[1,y]),e=e-h-n+(h?1:0)+(n?1:0)+1):0!==e&&0==f[e-1][0]?(f[e-1][1]+=f[e][1],f.splice(e,1)):e++,h=n=0,y=x=""}""===f[f.length-1][1]&&f.pop();h=!1;for(e=1;e<f.length-1;)0==f[e-1][0]&&0==f[e+1][0]&&(f[e][1].substring(f[e][1].length-f[e-1][1].length)==f[e-1][1]?(f[e][1]=f[e-1][1]+f[e][1].substring(0,f[e][1].length-f[e-1][1].length),f[e+1][1]=f[e-1][1]+f[e+1][1],f.splice(e-1,1),h=!0):f[e][1].substring(0,
f[e+1][1].length)==f[e+1][1]&&(f[e-1][1]+=f[e+1][1],f[e][1]=f[e][1].substring(f[e+1][1].length)+f[e+1][1],f.splice(e+1,1),h=!0)),e++;h&&r(f)}function n(e,h){a:{var n=e;if(0===h)var r=[0,n];else{var w=0;for(r=0;r<n.length;r++){var x=n[r];if(-1===x[0]||0===x[0]){var y=w+x[1].length;if(h===y){r=[r+1,n];break a}if(h<y){n=n.slice();w=h-w;h=[x[0],x[1].slice(0,w)];x=[x[0],x[1].slice(w)];n.splice(r,1,h,x);r=[r+1,n];break a}w=y}}throw Error("cursor_pos is out of bounds!");}}n=r[1];r=r[0];h=n[r];x=n[r+1];return null==
h||0!==h[0]?e:null!=x&&h[1]+x[1]===x[1]+h[1]?(n.splice(r,2,x,h),f(n,r,2)):null!=x&&0===x[1].indexOf(h[1])?(n.splice(r,2,[x[0],h[1]],[0,h[1]]),e=x[1].slice(h[1].length),0<e.length&&n.splice(r+2,0,[x[0],e]),f(n,r,3)):e}function h(f){function e(f){return 55296<=f.charCodeAt(f.length-1)&&56319>=f.charCodeAt(f.length-1)}function h(f){return 56320<=f.charCodeAt(0)&&57343>=f.charCodeAt(0)}for(var n=!1,r=2;r<f.length;r+=1)0===f[r-2][0]&&e(f[r-2][1])&&-1===f[r-1][0]&&h(f[r-1][1])&&1===f[r][0]&&h(f[r][1])&&
(n=!0,f[r-1][1]=f[r-2][1].slice(-1)+f[r-1][1],f[r][1]=f[r-2][1].slice(-1)+f[r][1],f[r-2][1]=f[r-2][1].slice(0,-1));if(!n)return f;n=[];for(r=0;r<f.length;r+=1)0<f[r][1].length&&n.push(f[r]);return n}function f(f,e,h){for(h=e+h-1;0<=h&&h>=e-1;h--)if(h+1<f.length){var n=f[h],r=f[h+1];n[0]===r[1]&&f.splice(h,2,[n[0],n[1]+r[1]])}return f}aa.INSERT=1;aa.DELETE=-1;aa.EQUAL=0;e.exports=aa},function(e,aa){function ba(e){var z=[],w;for(w in e)z.push(w);return z}aa=e.exports="function"===typeof Object.keys?
Object.keys:ba;aa.shim=ba},function(e,aa){function ba(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function ca(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}aa="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();aa=e.exports=aa?ba:ca;aa.supported=ba;aa.unsupported=ca},function(e){function aa(){}function ba(e,r,n){this.fn=e;
this.context=r;this.once=n||!1}function ca(){this._events=new aa;this._eventsCount=0}var z=Object.prototype.hasOwnProperty,w="~";Object.create&&(aa.prototype=Object.create(null),(new aa).__proto__||(w=!1));ca.prototype.eventNames=function(){var e=[],r,n;if(0===this._eventsCount)return e;for(n in r=this._events)z.call(r,n)&&e.push(w?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e};ca.prototype.listeners=function(e,r){e=this._events[w?w+e:e];if(r)return!!e;
if(!e)return[];if(e.fn)return[e.fn];r=0;for(var n=e.length,h=Array(n);r<n;r++)h[r]=e[r].fn;return h};ca.prototype.emit=function(e,r,n,h,f,x){var y=w?w+e:e;if(!this._events[y])return!1;y=this._events[y];var z=arguments.length,aa;if(y.fn){y.once&&this.removeListener(e,y.fn,void 0,!0);switch(z){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,r),!0;case 3:return y.fn.call(y.context,r,n),!0;case 4:return y.fn.call(y.context,r,n,h),!0;case 5:return y.fn.call(y.context,r,n,h,f),!0;
case 6:return y.fn.call(y.context,r,n,h,f,x),!0}var ba=1;for(aa=Array(z-1);ba<z;ba++)aa[ba-1]=arguments[ba];y.fn.apply(y.context,aa)}else{var ca=y.length;for(ba=0;ba<ca;ba++)switch(y[ba].once&&this.removeListener(e,y[ba].fn,void 0,!0),z){case 1:y[ba].fn.call(y[ba].context);break;case 2:y[ba].fn.call(y[ba].context,r);break;case 3:y[ba].fn.call(y[ba].context,r,n);break;case 4:y[ba].fn.call(y[ba].context,r,n,h);break;default:if(!aa){var ea=1;for(aa=Array(z-1);ea<z;ea++)aa[ea-1]=arguments[ea]}y[ba].fn.apply(y[ba].context,
aa)}}return!0};ca.prototype.on=function(e,r,n){r=new ba(r,n||this);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],r]:this._events[e].push(r):(this._events[e]=r,this._eventsCount++);return this};ca.prototype.once=function(e,r,n){r=new ba(r,n||this,!0);e=w?w+e:e;this._events[e]?this._events[e].fn?this._events[e]=[this._events[e],r]:this._events[e].push(r):(this._events[e]=r,this._eventsCount++);return this};ca.prototype.removeListener=function(e,r,n,h){e=w?w+e:e;if(!this._events[e])return this;
if(!r)return 0===--this._eventsCount?this._events=new aa:delete this._events[e],this;var f=this._events[e];if(f.fn)f.fn!==r||h&&!f.once||n&&f.context!==n||(0===--this._eventsCount?this._events=new aa:delete this._events[e]);else{for(var x=0,y=[],z=f.length;x<z;x++)(f[x].fn!==r||h&&!f[x].once||n&&f[x].context!==n)&&y.push(f[x]);y.length?this._events[e]=1===y.length?y[0]:y:0===--this._eventsCount?this._events=new aa:delete this._events[e]}return this};ca.prototype.removeAllListeners=function(e){e?(e=
w?w+e:e,this._events[e]&&(0===--this._eventsCount?this._events=new aa:delete this._events[e])):(this._events=new aa,this._eventsCount=0);return this};ca.prototype.off=ca.prototype.removeListener;ca.prototype.addListener=ca.prototype.on;ca.prototype.setMaxListeners=function(){return this};ca.prefixed=w;ca.EventEmitter=ca;"undefined"!==typeof e&&(e.exports=ca)},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,
configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,
e):f.__proto__=e)}function r(f,e,h){return"object"===("undefined"===typeof e?"undefined":ra(e))?Object.keys(e).reduce(function(f,h){return r(f,h,e[h])},f):f.reduce(function(f,n){return n.attributes&&n.attributes[e]?f.push(n):f.insert(n.insert,(0,Fa.default)({},z({},e,h),n.attributes))},new ua.default)}function n(f){return f.nodeType!==Node.ELEMENT_NODE?{}:f["__ql-computed-style"]||(f["__ql-computed-style"]=window.getComputedStyle(f))}function h(f,e){for(var h="",n=f.ops.length-1;0<=n&&h.length<e.length;--n){var r=
f.ops[n];if("string"!==typeof r.insert)break;h=r.insert+h}return h.slice(-1*e.length)===e}function f(f){if(0===f.childNodes.length)return!1;f=n(f);return-1<["block","list-item"].indexOf(f.display)}function x(f,e,h){return f.nodeType===f.TEXT_NODE?h.reduce(function(e,h){return h(f,e)},new ua.default):f.nodeType===f.ELEMENT_NODE?[].reduce.call(f.childNodes||[],function(n,r){var w=x(r,e,h);r.nodeType===f.ELEMENT_NODE&&(w=e.reduce(function(f,e){return e(r,f)},w),w=(r["__ql-matcher"]||[]).reduce(function(f,
e){return e(r,f)},w));return n.concat(w)},new ua.default):new ua.default}function ea(f,e,h){return r(h,f,!0)}function ha(f,e){var h=qa.default.Attributor.Attribute.keys(f),n=qa.default.Attributor.Class.keys(f),w=qa.default.Attributor.Style.keys(f),x={};h.concat(n).concat(w).forEach(function(e){var h=qa.default.query(e,qa.default.Scope.ATTRIBUTE);if(null!=h&&(x[h.attrName]=h.value(f),x[h.attrName]))return;h=Ba[e];null==h||h.attrName!==e&&h.keyName!==e||(x[h.attrName]=h.value(f)||void 0);h=va[e];null==
h||h.attrName!==e&&h.keyName!==e||(h=va[e],x[h.attrName]=h.value(f)||void 0)});0<Object.keys(x).length&&(e=r(e,x));return e}function da(f,e){var h=qa.default.query(f);if(null==h)return e;if(h.prototype instanceof qa.default.Embed){var n={},w=h.value(f);null!=w&&(n[h.blotName]=w,e=(new ua.default).insert(n,h.formats(f)))}else"function"===typeof h.formats&&(e=r(e,h.blotName,h.formats(f)));return e}function ia(e,n){h(n,"\n")||(f(e)||0<n.length()&&e.nextSibling&&f(e.nextSibling))&&n.insert("\n");return n}
function pa(e,r){if(f(e)&&null!=e.nextElementSibling&&!h(r,"\n\n")){var w=e.offsetHeight+parseFloat(n(e).marginTop)+parseFloat(n(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*w&&r.insert("\n")}return r}function la(e,h){var r=e.data;if("O:P"===e.parentNode.tagName)return h.insert(r.trim());if(0===r.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return h;if(!n(e.parentNode).whiteSpace.startsWith("pre")){var w=function(f,e){e=e.replace(/[^\u00a0]/g,"");return 1>e.length&&
f?" ":e};r=r.replace(/\r\n/g," ").replace(/\n/g," ");r=r.replace(/\s\s+/g,w.bind(w,!0));if(null==e.previousSibling&&f(e.parentNode)||null!=e.previousSibling&&f(e.previousSibling))r=r.replace(/^\s+/,w.bind(w,!1));if(null==e.nextSibling&&f(e.parentNode)||null!=e.nextSibling&&f(e.nextSibling))r=r.replace(/\s+$/,w.bind(w,!1))}return h.insert(r)}Object.defineProperty(aa,"__esModule",{value:!0});aa.matchText=aa.matchSpacing=aa.matchNewline=aa.matchBlot=aa.matchAttributor=aa.default=void 0;var ra="function"===
typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},oa=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(Sa){r=!0,w=Sa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ya=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(3);var Fa=ca(e);e=ba(2);var ua=ca(e);e=ba(0);var qa=ca(e);e=ba(5);var ka=ca(e);e=ba(10);e=ca(e);var wa=ba(9);wa=ca(wa);var Aa=ba(36),ta=ba(37),Da=ba(13),Ea=ca(Da);
Da=ba(26);var za=ba(38),Ga=ba(39);ba=ba(40);var Ca=(0,e.default)("quill:clipboard"),Ja=[[Node.TEXT_NODE,la],[Node.TEXT_NODE,ia],["br",function(f,e){h(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,ia],[Node.ELEMENT_NODE,da],[Node.ELEMENT_NODE,pa],[Node.ELEMENT_NODE,ha],[Node.ELEMENT_NODE,function(f,e){var h={},w=f.style||{};w.fontStyle&&"italic"===n(f).fontStyle&&(h.italic=!0);w.fontWeight&&(n(f).fontWeight.startsWith("bold")||700<=parseInt(n(f).fontWeight))&&(h.bold=!0);0<Object.keys(h).length&&
(e=r(e,h));0<parseFloat(w.textIndent||0)&&(e=(new ua.default).insert("\t").concat(e));return e}],["li",function(f,e){var n=qa.default.query(f);if(null==n||"list-item"!==n.blotName||!h(e,"\n"))return e;n=-1;for(f=f.parentNode;!f.classList.contains("ql-clipboard");)"list"===(qa.default.query(f)||{}).blotName&&(n+=1),f=f.parentNode;return 0>=n?e:e.compose((new ua.default).retain(e.length()-1).retain(1,{indent:n}))}],["b",ea.bind(ea,"bold")],["i",ea.bind(ea,"italic")],["style",function(){return new ua.default}]],
Ba=[Aa.AlignAttribute,za.DirectionAttribute].reduce(function(f,e){f[e.keyName]=e;return f},{}),va=[Aa.AlignStyle,ta.BackgroundStyle,Da.ColorStyle,za.DirectionStyle,Ga.FontStyle,ba.SizeStyle].reduce(function(f,e){f[e.keyName]=e;return f},{});ba=function(f){function e(f,h){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));n.quill.root.addEventListener("paste",n.onPaste.bind(n));n.container=n.quill.addContainer("ql-clipboard");
n.container.setAttribute("contenteditable",!0);n.container.setAttribute("tabindex",-1);n.matchers=[];Ja.concat(n.options.matchers).forEach(function(f){f=oa(f,2);var e=f[1];(h.matchVisual||e!==pa)&&n.addMatcher(f[0],e)});return n}y(e,f);ya(e,[{key:"addMatcher",value:function(f,e){this.matchers.push([f,e])}},{key:"convert",value:function(f){if("string"===typeof f)return this.container.innerHTML=f.replace(/>\r?\n +</g,"><"),this.convert();f=this.quill.getFormat(this.quill.selection.savedRange.index);
if(f[Ea.default.blotName]){var e=this.container.innerText;this.container.innerHTML="";return(new ua.default).insert(e,z({},Ea.default.blotName,f[Ea.default.blotName]))}f=this.prepareMatching();f=oa(f,2);f=x(this.container,f[0],f[1]);h(f,"\n")&&null==f.ops[f.ops.length-1].attributes&&(f=f.compose((new ua.default).retain(f.length()-1).delete(1)));Ca.log("convert",this.container.innerHTML,f);this.container.innerHTML="";return f}},{key:"dangerouslyPasteHTML",value:function(f,e){var h=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:ka.default.sources.API;if("string"===typeof f)this.quill.setContents(this.convert(f),e),this.quill.setSelection(0,ka.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new ua.default).retain(f).concat(n),h);this.quill.setSelection(f+n.length(),ka.default.sources.SILENT)}}},{key:"onPaste",value:function(f){var e=this;if(!f.defaultPrevented&&this.quill.isEnabled()){var h=this.quill.getSelection(),n=(new ua.default).retain(h.index),r=this.quill.scrollingContainer.scrollTop;
this.container.focus();this.quill.selection.update(ka.default.sources.SILENT);setTimeout(function(){n=n.concat(e.convert()).delete(h.length);e.quill.updateContents(n,ka.default.sources.USER);e.quill.setSelection(n.length()-h.length,ka.default.sources.SILENT);e.quill.scrollingContainer.scrollTop=r;e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var f=this,e=[],h=[];this.matchers.forEach(function(n){n=oa(n,2);var r=n[0],w=n[1];switch(r){case Node.TEXT_NODE:h.push(w);break;case Node.ELEMENT_NODE:e.push(w);
break;default:[].forEach.call(f.container.querySelectorAll(r),function(f){f["__ql-matcher"]=f["__ql-matcher"]||[];f["__ql-matcher"].push(w)})}});return[e,h]}}]);return e}(wa.default);ba.DEFAULTS={matchers:[],matchVisual:!0};aa.default=ba;aa.matchAttributor=ha;aa.matchBlot=da;aa.matchNewline=ia;aa.matchSpacing=pa;aa.matchText=la},function(e,aa,ba){function ca(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=
Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,n,h){n&&e(r.prototype,n);h&&e(r,h);return r}}(),w=function f(e,n,h){null===e&&(e=Function.prototype);
var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,n,h)}else{if("value"in r)return r.value;n=r.get;return void 0===n?void 0:n.call(h)}};e=function(e){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==
typeof e?this:e}ca(n,e);z(n,[{key:"optimize",value:function(e){w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return n}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);e.blotName="bold";e.tagName=["STRONG",
"B"];aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e,h){e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function r(f,e,h){var n=document.createElement("button");n.setAttribute("type","button");n.classList.add("ql-"+e);null!=h&&(n.value=h);f.appendChild(n)}function n(f,e){Array.isArray(e[0])||(e=[e]);e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats");e.forEach(function(f){if("string"===
typeof f)r(n,f);else{var e=Object.keys(f)[0];f=f[e];Array.isArray(f)?h(n,e,f):r(n,e,f)}});f.appendChild(n)})}function h(f,e,h){var n=document.createElement("select");n.classList.add("ql-"+e);h.forEach(function(f){var e=document.createElement("option");!1!==f?e.setAttribute("value",f):e.setAttribute("selected","selected");n.appendChild(e)});f.appendChild(n)}Object.defineProperty(aa,"__esModule",{value:!0});aa.addControls=aa.default=void 0;var f=function(){return function(f,e){if(Array.isArray(f))return f;
if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(ka){r=!0,w=ka}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),x=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(2);var ea=ca(e);e=ba(0);var ha=ca(e);e=ba(5);var da=ca(e);e=ba(10);e=ca(e);ba=ba(9);ba=ca(ba);var ia=(0,e.default)("quill:toolbar");ba=function(e){function h(e,r){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var x=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,r));Array.isArray(x.options.container)?(r=document.createElement("div"),n(r,x.options.container),e.container.parentNode.insertBefore(r,
e.container),x.container=r):x.container="string"===typeof x.options.container?document.querySelector(x.options.container):x.options.container;if(!(x.container instanceof HTMLElement)){var y;return y=ia.error("Container required for toolbar",x.options),w(x,y)}x.container.classList.add("ql-toolbar");x.controls=[];x.handlers={};Object.keys(x.options.handlers).forEach(function(f){x.addHandler(f,x.options.handlers[f])});[].forEach.call(x.container.querySelectorAll("button, select"),function(f){x.attach(f)});
x.quill.on(da.default.events.EDITOR_CHANGE,function(f,e){f===da.default.events.SELECTION_CHANGE&&x.update(e)});x.quill.on(da.default.events.SCROLL_OPTIMIZE,function(){var e=x.quill.selection.getRange();e=f(e,1)[0];x.update(e)});return x}y(h,e);x(h,[{key:"addHandler",value:function(f,e){this.handlers[f]=e}},{key:"attach",value:function(e){var h=this,n=[].find.call(e.classList,function(f){return 0===f.indexOf("ql-")});if(n){n=n.slice(3);"BUTTON"===e.tagName&&e.setAttribute("type","button");if(null==
this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n]){ia.warn("ignoring attaching to disabled format",n,e);return}if(null==ha.default.query(n)){ia.warn("ignoring attaching to nonexistent format",n,e);return}}e.addEventListener("SELECT"===e.tagName?"change":"click",function(r){if("SELECT"===e.tagName){if(0>e.selectedIndex)return;var w=e.options[e.selectedIndex];w=w.hasAttribute("selected")?!1:w.value||!1}else w=e.classList.contains("ql-active")?!1:e.value||!e.hasAttribute("value"),
r.preventDefault();h.quill.focus();r=h.quill.selection.getRange();r=f(r,1)[0];if(null!=h.handlers[n])h.handlers[n].call(h,w);else if(ha.default.query(n).prototype instanceof ha.default.Embed){w=prompt("Enter "+n);if(!w)return;h.quill.updateContents((new ea.default).retain(r.index).delete(r.length).insert(z({},n,w)),da.default.sources.USER)}else h.quill.format(n,w,da.default.sources.USER);h.update(r)});this.controls.push([n,e])}}},{key:"update",value:function(e){var h=null==e?{}:this.quill.getFormat(e);
this.controls.forEach(function(n){n=f(n,2);var r=n[0];n=n[1];if("SELECT"===n.tagName){var w=void 0;null==e?w=null:null==h[r]?w=n.querySelector("option[selected]"):Array.isArray(h[r])||(r=h[r],"string"===typeof r&&(r=r.replace(/"/g,'\\"')),w=n.querySelector('option[value="'+r+'"]'));null==w?(n.value="",n.selectedIndex=-1):w.selected=!0}else null==e?n.classList.remove("ql-active"):n.hasAttribute("value")?(r=h[r]===n.getAttribute("value")||null!=h[r]&&h[r].toString()===n.getAttribute("value")||null==
h[r]&&!n.getAttribute("value"),n.classList.toggle("ql-active",r)):n.classList.toggle("ql-active",null!=h[r])})}}]);return h}(ba.default);ba.DEFAULTS={};ba.DEFAULTS={container:null,handlers:{clean:function(){var f=this,e=this.quill.getSelection();null!=e&&(0==e.length?(e=this.quill.getFormat(),Object.keys(e).forEach(function(e){null!=ha.default.query(e,ha.default.Scope.INLINE)&&f.quill.format(e,!1)})):this.quill.removeFormat(e,da.default.sources.USER))},direction:function(f){var e=this.quill.getFormat().align;
"rtl"===f&&null==e?this.quill.format("align","right",da.default.sources.USER):f||"right"!==e||this.quill.format("align",!1,da.default.sources.USER);this.quill.format("direction",f,da.default.sources.USER)},indent:function(f){var e=this.quill.getFormat(this.quill.getSelection()),h=parseInt(e.indent||0);if("+1"===f||"-1"===f)f="+1"===f?1:-1,"rtl"===e.direction&&(f*=-1),this.quill.format("indent",h+f,da.default.sources.USER)},link:function(f){!0===f&&(f=prompt("Enter link URL:"));this.quill.format("link",
f,da.default.sources.USER)},list:function(f){var e=this.quill.getFormat(this.quill.getSelection());"check"===f?"checked"===e.list||"unchecked"===e.list?this.quill.format("list",!1,da.default.sources.USER):this.quill.format("list","unchecked",da.default.sources.USER):this.quill.format("list",f,da.default.sources.USER)}}};aa.default=ba;aa.addControls=n},function(e){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},
function(e,aa,ba){function ca(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}function z(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,
"__esModule",{value:!0});var w=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),y=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?
void 0:h.call(f)}};e=function(e){function h(f,e){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");f=ca(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,f));f.label.innerHTML=e;f.container.classList.add("ql-color-picker");[].slice.call(f.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")});return f}z(h,e);w(h,[{key:"buildItem",value:function(f){var e=y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"buildItem",
this).call(this,f);e.style.backgroundColor=f.getAttribute("value")||"";return e}},{key:"selectItem",value:function(f,e){y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,e);e=this.label.querySelector(".ql-color-label");f=f?f.getAttribute("data-value")||"":"";e&&("line"===e.tagName?e.style.stroke=f:e.style.fill=f)}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ba(28)).default);aa.default=e},function(e,aa,ba){function ca(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!n||"object"!==typeof n&&"function"!==typeof n?e:n}function z(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});var w=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(n,h,f){h&&e(n.prototype,h);f&&e(n,f);return n}}(),y=function x(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return x(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};e=function(e){function h(f,e){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");
f=ca(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,f));f.container.classList.add("ql-icon-picker");[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=e[f.getAttribute("data-value")||""]});f.defaultItem=f.container.querySelector(".ql-selected");f.selectItem(f.defaultItem);return f}z(h,e);w(h,[{key:"selectItem",value:function(f,e){y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,e);f=f||this.defaultItem;this.label.innerHTML=
f.innerHTML}}]);return h}(function(e){return e&&e.__esModule?e:{default:e}}(ba(28)).default);aa.default=e},function(e,aa){Object.defineProperty(aa,"__esModule",{value:!0});var ba=function(){function e(e,w){for(var y=0;y<w.length;y++){var r=w[y];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(z,w,y){w&&e(z.prototype,w);y&&e(z,y);return z}}();e=function(){function e(z,w){var y=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
this.quill=z;this.boundsContainer=w||document.body;this.root=z.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){y.root.style.marginTop=-1*y.quill.root.scrollTop+"px"});this.hide()}ba(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var w=e.left+e.width/2-this.root.offsetWidth/2,y=e.bottom+this.quill.root.scrollTop;this.root.style.left=
w+"px";this.root.style.top=y+"px";this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),n=this.root.getBoundingClientRect(),h=0;n.right>r.right&&(h=r.right-n.right,this.root.style.left=w+h+"px");n.left<r.left&&(h=r.left-n.left,this.root.style.left=w+h+"px");n.bottom>r.bottom&&(this.root.style.top=y-(e.bottom-e.top+(n.bottom-n.top))+"px",this.root.classList.add("ql-flip"));return h}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
return e}();aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=
Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});var r=function(){return function(f,e){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=f[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!e||h.length!==e);n=!0);}catch(ta){r=!0,w=ta}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),n=function qa(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return qa(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}},h=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,
n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(3);e=ca(e);var f=ba(8),x=ca(f);f=ba(43);var ea=ca(f),da=ba(27),ha=ca(da),ia=ba(15);ba=ba(41);var pa=ca(ba),la=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ba=function(f){function e(f,h){z(this,e);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=la);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));
f.quill.container.classList.add("ql-snow");return f}y(e,f);h(e,[{key:"extendToolbar",value:function(f){f.container.classList.add("ql-snow");this.buildButtons([].slice.call(f.container.querySelectorAll("button")),pa.default);this.buildPickers([].slice.call(f.container.querySelectorAll("select")),pa.default);this.tooltip=new ra(this.quill,this.options.bounds);f.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,h){f.handlers.link.call(f,!h.format.link)})}}]);
return e}(ea.default);ba.DEFAULTS=(0,e.default)(!0,{},ea.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(f){f?(f=this.quill.getSelection(),null!=f&&0!=f.length&&(f=this.quill.getText(f),/^\S+@\S+\.\S+$/.test(f)&&0!==f.indexOf("mailto:")&&(f="mailto:"+f),this.quill.theme.tooltip.edit("link",f))):this.quill.format("link",!1)}}}}});var ra=function(f){function e(f,h){z(this,e);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.preview=f.root.querySelector("a.ql-preview");return f}
y(e,f);h(e,[{key:"listen",value:function(){var f=this;n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(e){f.root.classList.contains("ql-editing")?f.save():f.edit("link",f.preview.textContent);e.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=f.linkRange){var h=f.linkRange;f.restoreFocus();f.quill.formatText(h,"link",!1,x.default.sources.USER);
delete f.linkRange}e.preventDefault();f.hide()});this.quill.on(x.default.events.SELECTION_CHANGE,function(e,h,n){if(null!=e){if(0===e.length&&n===x.default.sources.USER){if(h=f.quill.scroll.descendant(ha.default,e.index),n=r(h,2),h=n[0],n=n[1],null!=h){f.linkRange=new ia.Range(e.index-n,h.length());e=ha.default.formats(h.domNode);f.preview.textContent=e;f.preview.setAttribute("href",e);f.show();f.position(f.quill.getBounds(f.linkRange));return}}else delete f.linkRange;f.hide()}})}},{key:"show",value:function(){n(e.prototype.__proto__||
Object.getPrototypeOf(e.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return e}(f.BaseTooltip);ra.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';aa.default=ba},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(aa,"__esModule",{value:!0});
e=ba(29);e=ca(e);var z=ba(36),w=ba(38),y=ba(64),r=ba(65);r=ca(r);var n=ba(66);n=ca(n);var h=ba(67),f=ca(h),x=ba(37),ea=ba(26),da=ba(39),ha=ba(40),ia=ba(56);ia=ca(ia);var pa=ba(68);pa=ca(pa);var la=ba(27);la=ca(la);var ra=ba(69);ra=ca(ra);var oa=ba(70);oa=ca(oa);var ya=ba(71);ya=ca(ya);var Fa=ba(72);Fa=ca(Fa);var ua=ba(73);ua=ca(ua);var qa=ba(13),ka=ca(qa),wa=ba(74);wa=ca(wa);var Aa=ba(75);Aa=ca(Aa);var ta=ba(57);ta=ca(ta);var Da=ba(41);Da=ca(Da);var Ea=ba(28);Ea=ca(Ea);var za=ba(59);za=ca(za);var Ga=
ba(60);Ga=ca(Ga);var Ca=ba(61);Ca=ca(Ca);var Ja=ba(108);Ja=ca(Ja);ba=ba(62);ba=ca(ba);e.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":z.AlignClass,"attributors/class/background":x.BackgroundClass,"attributors/class/color":ea.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":da.FontClass,"attributors/class/size":ha.SizeClass,"attributors/style/align":z.AlignStyle,"attributors/style/background":x.BackgroundStyle,"attributors/style/color":ea.ColorStyle,
"attributors/style/direction":w.DirectionStyle,"attributors/style/font":da.FontStyle,"attributors/style/size":ha.SizeStyle},!0);e.default.register({"formats/align":z.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":y.IndentClass,"formats/background":x.BackgroundStyle,"formats/color":ea.ColorStyle,"formats/font":da.FontClass,"formats/size":ha.SizeClass,"formats/blockquote":r.default,"formats/code-block":ka.default,"formats/header":n.default,"formats/list":f.default,"formats/bold":ia.default,
"formats/code":qa.Code,"formats/italic":pa.default,"formats/link":la.default,"formats/script":ra.default,"formats/strike":oa.default,"formats/underline":ya.default,"formats/image":Fa.default,"formats/video":ua.default,"formats/list/item":h.ListItem,"modules/formula":wa.default,"modules/syntax":Aa.default,"modules/toolbar":ta.default,"themes/bubble":Ja.default,"themes/snow":ba.default,"ui/icons":Da.default,"ui/picker":Ea.default,"ui/icon-picker":Ga.default,"ui/color-picker":za.default,"ui/tooltip":Ca.default},
!0);aa.default=e.default},function(e,aa,ba){function ca(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(aa,"__esModule",{value:!0});aa.IndentClass=void 0;var z=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];
f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,n,h){n&&e(r.prototype,n);h&&e(r,h);return r}}(),w=function f(e,n,h){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,n,h)}else{if("value"in r)return r.value;n=r.get;return void 0===n?void 0:n.call(h)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));e=new (function(e){function n(){if(!(this instanceof
n))throw new TypeError("Cannot call a class as a function");var e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(n,e);z(n,[{key:"add",value:function(e,f){if("+1"===f||"-1"===f){var h=this.value(e)||0;f="+1"===f?h+1:h-1}return 0===f?(this.remove(e),!0):w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"add",this).call(this,
e,f)}},{key:"canAdd",value:function(e,f){return w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,e,f)||w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"canAdd",this).call(this,e,parseInt(f))}},{key:"value",value:function(e){return parseInt(w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,e))||void 0}}]);return n}(e.default.Attributor.Class))("indent","ql-indent",{scope:e.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,
8]});aa.IndentClass=e},function(e,aa,ba){function ca(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");
var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(4)).default);e.blotName="blockquote";e.tagName="blockquote";aa.default=e},function(e,aa,ba){function ca(e,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+
typeof y);e.prototype=Object.create(y&&y.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(e,y):e.__proto__=y)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,r){for(var n=0;n<r.length;n++){var h=r[n];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(w,r,n){r&&e(w.prototype,r);n&&e(w,n);return w}}();e=function(e){function w(){if(!(this instanceof
w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);z(w,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(4)).default);e.blotName="header";e.tagName="H1 H2 H3 H4 H5 H6".split(" ");
aa.default=e},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&
e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.ListItem=void 0;var r=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function pa(f,e,h){null===
f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return pa(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(0);var h=ca(e);e=ba(4);e=ca(e);ba=ba(25);ba=ca(ba);var f=function(f){function e(){z(this,e);return w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}y(e,f);r(e,[{key:"format",value:function(f,r){f!==x.blotName||r?n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
"format",this).call(this,f,r):this.replaceWith(h.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(f,h){this.parent.isolate(this.offset(this.parent),this.length());if(f===this.parent.statics.blotName)return this.parent.replaceWith(f,h),this;this.parent.unwrap();return n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
"replaceWith",this).call(this,f,h)}}],[{key:"formats",value:function(f){return f.tagName===this.tagName?void 0:n(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,f)}}]);return e}(e.default);f.blotName="list-item";f.tagName="LI";var x=function(e){function x(f){function e(e){if(e.target.parentNode===f){var r=n.statics.formats(f);e=h.default.find(e.target);"checked"===r?e.format("list","unchecked"):"unchecked"===r&&e.format("list","checked")}}z(this,x);var n=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,
f));f.addEventListener("touchstart",e);f.addEventListener("mousedown",e);return n}y(x,e);r(x,null,[{key:"create",value:function(f){var e="ordered"===f?"OL":"UL";e=n(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,e);"checked"!==f&&"unchecked"!==f||e.setAttribute("data-checked","checked"===f);return e}},{key:"formats",value:function(f){if("OL"===f.tagName)return"ordered";if("UL"===f.tagName)return f.hasAttribute("data-checked")?"true"===f.getAttribute("data-checked")?"checked":"unchecked":
"bullet"}}]);r(x,[{key:"format",value:function(f,e){0<this.children.length&&this.children.tail.format(f,e)}},{key:"formats",value:function(){var f={},e=this.statics.blotName,h=this.statics.formats(this.domNode);e in f?Object.defineProperty(f,e,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[e]=h;return f}},{key:"insertBefore",value:function(e,h){e instanceof f?n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,h):(h=null==h?this.length():h.offset(this),
h=this.split(h),h.parent.insertBefore(e,h))}},{key:"optimize",value:function(f){n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,f);f=this.next;null!=f&&f.prev===this&&f.statics.blotName===this.statics.blotName&&f.domNode.tagName===this.domNode.tagName&&f.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(f.moveChildren(this),f.remove())}},{key:"replace",value:function(f){if(f.statics.blotName!==this.statics.blotName){var e=h.default.create(this.statics.defaultChild);
f.moveChildren(e);this.appendChild(e)}n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,f)}}]);return x}(ba.default);x.blotName="list";x.scope=h.default.Scope.BLOCK_BLOT;x.tagName=["OL","UL"];x.defaultChild="list-item";x.allowedChildren=[f];aa.ListItem=f;aa.default=x},function(e,aa,ba){function ca(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,
{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?
this:e}ca(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(56)).default);e.blotName="italic";e.tagName=["EM","I"];aa.default=e},function(e,aa,ba){function ca(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}Object.defineProperty(aa,
"__esModule",{value:!0});var z=function(){function e(e,n){for(var h=0;h<n.length;h++){var f=n[h];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(e,f.key,f)}}return function(r,n,h){n&&e(r.prototype,n);h&&e(r,h);return r}}(),w=function f(e,n,h){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return f(e,n,h)}else{if("value"in r)return r.value;n=r.get;return void 0===n?
void 0:n.call(h)}};e=function(e){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(n,e);z(n,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):w(n.__proto__||
Object.getPrototypeOf(n),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===e.tagName)return"super"}}]);return n}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);e.blotName="script";e.tagName=["SUB","SUP"];aa.default=e},function(e,aa,ba){function ca(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,
enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);
return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);e.blotName="strike";e.tagName="S";aa.default=e},function(e,aa,ba){function ca(e,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);e.prototype=Object.create(w&&w.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(e,w):e.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});
e=function(e){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var e=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(w,e);return w}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);e.blotName="underline";e.tagName="U";aa.default=e},function(e,aa,ba){function ca(e,h){if("function"!==
typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function fa(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));var y=ba(27),r=["alt","height","width"];ba=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
var e=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(f,e);z(f,[{key:"format",value:function(e,h){-1<r.indexOf(e)?h?this.domNode.setAttribute(e,h):this.domNode.removeAttribute(e):w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,h)}}],[{key:"create",value:function(e){var h=w(f.__proto__||Object.getPrototypeOf(f),
"create",this).call(this,e);"string"===typeof e&&h.setAttribute("src",this.sanitize(e));return h}},{key:"formats",value:function(f){return r.reduce(function(e,h){f.hasAttribute(h)&&(e[h]=f.getAttribute(h));return e},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]);return f}(e.default.Embed);
ba.blotName="image";ba.tagName="IMG";aa.default=ba},function(e,aa,ba){function ca(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=
f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function fa(e,f,r){null===e&&(e=Function.prototype);var h=Object.getOwnPropertyDescriptor(e,f);if(void 0===h){if(e=Object.getPrototypeOf(e),null!==e)return fa(e,f,r)}else{if("value"in h)return h.value;f=h.get;return void 0===f?void 0:f.call(r)}};e=ba(4);var y=function(e){return e&&e.__esModule?e:{default:e}}(ba(27)),
r=["height","width"];ba=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}ca(f,e);z(f,[{key:"format",value:function(e,h){-1<r.indexOf(e)?h?this.domNode.setAttribute(e,h):this.domNode.removeAttribute(e):w(f.prototype.__proto__||
Object.getPrototypeOf(f.prototype),"format",this).call(this,e,h)}}],[{key:"create",value:function(e){var h=w(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);h.setAttribute("frameborder","0");h.setAttribute("allowfullscreen",!0);h.setAttribute("src",this.sanitize(e));return h}},{key:"formats",value:function(f){return r.reduce(function(e,h){f.hasAttribute(h)&&(e[h]=f.getAttribute(h));return e},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]);
return f}(e.BlockEmbed);ba.blotName="video";ba.className="ql-video";ba.tagName="IFRAME";aa.default=ba},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.FormulaBlot=void 0;var r=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,
n);return e}}(),n=function pa(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return pa(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(35);e=ca(e);var h=ba(5),f=ca(h);ba=ba(9);ba=ca(ba);var x=function(f){function e(){z(this,e);return w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}y(e,f);r(e,null,[{key:"create",value:function(f){var h=n(e.__proto__||
Object.getPrototypeOf(e),"create",this).call(this,f);"string"===typeof f&&(window.katex.render(f,h,{throwOnError:!1,errorColor:"#f00"}),h.setAttribute("data-value",f));return h}},{key:"value",value:function(f){return f.getAttribute("data-value")}}]);return e}(e.default);x.blotName="formula";x.className="ql-formula";x.tagName="SPAN";ba=function(e){function h(){z(this,h);var f=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
return f}y(h,e);r(h,null,[{key:"register",value:function(){f.default.register(x,!0)}}]);return h}(ba.default);aa.FormulaBlot=x;aa.default=ba},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==
typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.CodeToken=aa.CodeBlock=void 0;var r=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in
n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),n=function la(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return la(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}};e=ba(0);e=ca(e);var h=ba(5),f=ca(h);h=ba(9);h=ca(h);ba=ba(13);var x=function(f){function e(){z(this,e);return w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,
arguments))}y(e,f);r(e,[{key:"replaceWith",value:function(f){this.domNode.textContent=this.domNode.textContent;this.attach();n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,f)}},{key:"highlight",value:function(f){var e=this.domNode.textContent;if(this.cachedText!==e){if(0<e.trim().length||null==this.cachedText)this.domNode.innerHTML=f(e),this.domNode.normalize(),this.attach();this.cachedText=e}}}]);return e}(ca(ba).default);x.className="ql-syntax";var ea=
new e.default.Attributor.Class("token","hljs",{scope:e.default.Scope.INLINE});ba=function(e){function h(e,n){z(this,h);var r=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,n));if("function"!==typeof r.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var x=null;r.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(x);x=setTimeout(function(){r.highlight();x=null},r.options.interval)});r.highlight();return r}
y(h,e);r(h,null,[{key:"register",value:function(){f.default.register(ea,!0);f.default.register(x,!0)}}]);r(h,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var h=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(f){f.highlight(e.options.highlight)});this.quill.update(f.default.sources.SILENT);null!=h&&this.quill.setSelection(h,f.default.sources.SILENT)}}}]);return h}(h.default);ba.DEFAULTS={highlight:function(){return null==
window.hljs?null:function(f){return window.hljs.highlightAuto(f).value}}(),interval:1E3};aa.CodeBlock=x;aa.CodeToken=ea;aa.default=ba},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
function(e){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e){e.exports=
'<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
function(e){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
function(e){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
function(e){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,aa,ba){function ca(f){return f&&f.__esModule?f:{default:f}}function z(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");}function w(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==
typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BubbleTooltip=void 0;var r=function ya(f,e,h){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,
e);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return ya(f,e,h)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(h)}},n=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}();e=ba(3);e=ca(e);var h=ba(8),f=ca(h);h=ba(43);var x=ca(h),ea=ba(15);ba=ba(41);var da=ca(ba),ha=[["bold",
"italic","link"],[{header:1},{header:2},"blockquote"]];ba=function(f){function e(f,h){z(this,e);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=ha);f=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f,h));f.quill.container.classList.add("ql-bubble");return f}y(e,f);n(e,[{key:"extendToolbar",value:function(f){this.tooltip=new ia(this.quill,this.options.bounds);this.tooltip.root.appendChild(f.container);this.buildButtons([].slice.call(f.container.querySelectorAll("button")),
da.default);this.buildPickers([].slice.call(f.container.querySelectorAll("select")),da.default)}}]);return e}(x.default);ba.DEFAULTS=(0,e.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(f){f?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ia=function(e){function h(e,n){z(this,h);var r=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,n));r.quill.on(f.default.events.EDITOR_CHANGE,function(e,h,n,w){e===f.default.events.SELECTION_CHANGE&&(null!=
h&&0<h.length&&w===f.default.sources.USER?(r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px",e=r.quill.getLines(h.index,h.length),1===e.length?r.position(r.quill.getBounds(h)):(n=e[e.length-1],e=r.quill.getIndex(n),h=Math.min(n.length()-1,h.index+h.length-e),h=r.quill.getBounds(new ea.Range(e,h)),r.position(h))):document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide())});return r}y(h,e);n(h,[{key:"listen",value:function(){var e=this;r(h.prototype.__proto__||
Object.getPrototypeOf(h.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")});this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var f=e.quill.getSelection();null!=f&&e.position(e.quill.getBounds(f))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(f){f=r(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),
"position",this).call(this,f);var e=this.root.querySelector(".ql-tooltip-arrow");e.style.marginLeft="";if(0===f)return f;e.style.marginLeft=-1*f-e.offsetWidth/2+"px"}}]);return h}(h.BaseTooltip);ia.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';aa.BubbleTooltip=ia;aa.default=ba},function(e,aa,ba){e.exports=ba(63)}])["default"]})}).call(this,
e(403).Buffer)}}]);}).call(this || window)

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Some files were not shown because too many files have changed in this diff Show More