/** 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],{471:function(Ba,va,r){r.r(va);var oa=r(0),na=r(493),ma=r(494),fa;(function(da){da[da.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";da[da.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";da[da.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(fa||(fa={}));Ba=function(){function da(aa){this.aa=aa;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED}da.prototype.Ffa=function(){var aa=this;return function(y, x,h){return Object(oa.b)(aa,void 0,void 0,function(){var b,e,a,f,n,z,w,ea=this,ka;return Object(oa.d)(this,function(ca){switch(ca.label){case 0:if(this.state!==fa.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];b=this.aa.getDocument().bt();return[4,this.Nda(b)];case 1:e=ca.ca(),a=this.F9(e),this.BJ=null!==(ka=null===a||void 0===a?void 0:a.parse())&&void 0!==ka?ka:null,this.state=null===this.BJ?fa.EXTERNAL_XFDF_NOT_AVAILABLE:fa.EXTERNAL_XFDF_AVAILABLE,ca.label=2;case 2:if(this.state===fa.EXTERNAL_XFDF_NOT_AVAILABLE)return h(y), [2];f=new DOMParser;n=f.parseFromString(y,"text/xml");x.forEach(function(ba){ea.merge(n,ea.BJ,ba-1)});z=new XMLSerializer;w=z.serializeToString(n);h(w);return[2]}})})}};da.prototype.zN=function(aa){this.Nda=aa};da.prototype.ye=function(){this.BJ=void 0;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED};da.prototype.F9=function(aa){return aa?Array.isArray(aa)?new na.a(aa):"string"!==typeof aa?null:(new DOMParser).parseFromString(aa,"text/xml").querySelector("xfdf > add")?new na.a(aa):new ma.a(aa):null};da.prototype.merge= function(aa,y,x){var h=this;0===x&&(this.bia(aa,y.Ip),this.dia(aa,y.iJ));var b=y.da[x];b&&(this.eia(aa,b.Jn),this.gia(aa,b.z1,y.Qw),this.fia(aa,b.page,x),this.cia(aa,b.MT));b=this.aa.Nb();if(x===b-1){var e=y.Qw;Object.keys(e).forEach(function(a){e[a].PK||h.OX(aa,a,e[a])})}};da.prototype.bia=function(aa,y){null!==y&&(aa=this.bw(aa),this.$q(aa,"calculation-order",y))};da.prototype.dia=function(aa,y){null!==y&&(aa=this.bw(aa),this.$q(aa,"document-actions",y))};da.prototype.eia=function(aa,y){var x=this, h=this.aw(aa.querySelector("xfdf"),"annots");Object.keys(y).forEach(function(b){x.$q(h,'[name="'+b+'"]',y[b])})};da.prototype.gia=function(aa,y,x){var h=this;if(0!==y.length){var b=this.bw(aa);y.forEach(function(e){var a=e.getAttribute("field"),f=x[a];f&&(h.OX(aa,a,f),h.$q(b,"null",e))})}};da.prototype.OX=function(aa,y,x){var h=this.bw(aa);null!==x.KC&&this.$q(h,'ffield [name="'+y+'"]',x.KC);aa=this.aw(aa.querySelector("xfdf"),"fields");y=y.split(".");this.HM(aa,y,0,x.value);x.PK=!0};da.prototype.fia= function(aa,y,x){null!==y&&(aa=this.bw(aa),aa=this.aw(aa,"pages"),this.$q(aa,'[number="'+(x+1)+'"]',y))};da.prototype.cia=function(aa,y){Object.keys(y).forEach(function(x){(x=aa.querySelector('annots [name="'+x+'"]'))&&x.parentElement.removeChild(x)})};da.prototype.HM=function(aa,y,x,h){if(x===y.length)y=document.createElementNS("","value"),y.textContent=h,this.$q(aa,"value",y);else{var b=y[x];this.aw(aa,'[name="'+b+'"]',"field").setAttribute("name",b);aa=aa.querySelectorAll('[name="'+b+'"]');1=== aa.length?this.HM(aa[0],y,x+1,h):(b=this.uca(aa),this.HM(x===y.length-1?b:this.tpa(aa,b),y,x+1,h))}};da.prototype.uca=function(aa){for(var y=null,x=0;x ffield");if(null===na&&null===oa)return{};var ma={};this.R6(ma,na);this.P6(ma,oa);return ma};r.prototype.R6=function(oa,na){if(null!==na&&na.children){for(var ma=[],fa=0;fa< na.children.length;fa++){var da=na.children[fa];ma.push({name:da.getAttribute("name"),element:da})}for(;0!==ma.length;)for(na=ma.shift(),fa=0;fa *").forEach(function(y){aa.push(y)});da.querySelectorAll("modify > *").forEach(function(y){aa.push(y)});return aa};fa.prototype.hV=function(da){return da.querySelectorAll("delete > *")};return fa}(r(482).a);va.a=Ba},494:function(Ba,va,r){var oa=r(0);Ba=function(na){function ma(fa){var da=na.call(this)||this;da.gca=fa;return da}Object(oa.c)(ma,na);ma.prototype.parse=function(){return this.oB(this.gca)};ma.prototype.wV=function(fa){return fa.querySelectorAll("annots > *")}; ma.prototype.hV=function(){return[]};return ma}(r(482).a);va.a=Ba}}]);}).call(this || window)