n8n-nodes-adeu 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- 'use strict';var n8nWorkflow=require('n8n-workflow'),path=require('path');var qo=Object.create;var On=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var Go=Object.getOwnPropertyNames;var Jo=Object.getPrototypeOf,Vo=Object.prototype.hasOwnProperty;var g=(n,e)=>On(n,"name",{value:e,configurable:true});var jr=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Qo=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Go(e))!Vo.call(n,i)&&i!==t&&On(n,i,{get:()=>e[i],enumerable:!(r=Yo(e,i))||r.enumerable});return n};var Lt=(n,e,t)=>(t=n!=null?qo(Jo(n)):{},Qo(On(t,"default",{value:n,enumerable:true}),n));var Fr=jr((Ku,Br)=>{Br.exports={createRequire:g(function(){return function(){return {}}},"createRequire")};});var Ht=jr((rf,dt)=>{var L=g(function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32;},"diff_match_patch"),Z=-1,K=1,Y=0;L.Diff=function(n,e){return [n,e]};L.prototype.diff_main=function(n,e,t,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);var i=r;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new L.Diff(Y,n)]:[];typeof t>"u"&&(t=true);var s=t,o=this.diff_commonPrefix(n,e),a=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=this.diff_commonSuffix(n,e);var l=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var d=this.diff_compute_(n,e,s,i);return a&&d.unshift(new L.Diff(Y,a)),l&&d.push(new L.Diff(Y,l)),this.diff_cleanupMerge(d),d};L.prototype.diff_compute_=function(n,e,t,r){var i;if(!n)return [new L.Diff(K,e)];if(!e)return [new L.Diff(Z,n)];var s=n.length>e.length?n:e,o=n.length>e.length?e:n,a=s.indexOf(o);if(a!=-1)return i=[new L.Diff(K,s.substring(0,a)),new L.Diff(Y,o),new L.Diff(K,s.substring(a+o.length))],n.length>e.length&&(i[0][0]=i[2][0]=Z),i;if(o.length==1)return [new L.Diff(Z,n),new L.Diff(K,e)];var l=this.diff_halfMatch_(n,e);if(l){var d=l[0],c=l[1],u=l[2],f=l[3],h=l[4],_=this.diff_main(d,u,t,r),p=this.diff_main(c,f,t,r);return _.concat([new L.Diff(Y,h)],p)}return t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,r):this.diff_bisect_(n,e,r)};L.prototype.diff_lineMode_=function(n,e,t){var r=this.diff_linesToChars_(n,e);n=r.chars1,e=r.chars2;var i=r.lineArray,s=this.diff_main(n,e,false,t);this.diff_charsToLines_(s,i),this.diff_cleanupSemantic(s),s.push(new L.Diff(Y,""));for(var o=0,a=0,l=0,d="",c="";o<s.length;){switch(s[o][0]){case K:l++,c+=s[o][1];break;case Z:a++,d+=s[o][1];break;case Y:if(a>=1&&l>=1){s.splice(o-a-l,a+l),o=o-a-l;for(var u=this.diff_main(d,c,false,t),f=u.length-1;f>=0;f--)s.splice(o,0,u[f]);o=o+u.length;}l=0,a=0,d="",c="";break}o++;}return s.pop(),s};L.prototype.diff_bisect_=function(n,e,t){for(var r=n.length,i=e.length,s=Math.ceil((r+i)/2),o=s,a=2*s,l=new Array(a),d=new Array(a),c=0;c<a;c++)l[c]=-1,d[c]=-1;l[o+1]=0,d[o+1]=0;for(var u=r-i,f=u%2!=0,h=0,_=0,p=0,m=0,w=0;w<s&&!(new Date().getTime()>t);w++){for(var y=-w+h;y<=w-_;y+=2){var b=o+y,v;y==-w||y!=w&&l[b-1]<l[b+1]?v=l[b+1]:v=l[b-1]+1;for(var N=v-y;v<r&&N<i&&n.charAt(v)==e.charAt(N);)v++,N++;if(l[b]=v,v>r)_+=2;else if(N>i)h+=2;else if(f){var k=o+u-y;if(k>=0&&k<a&&d[k]!=-1){var x=r-d[k];if(v>=x)return this.diff_bisectSplit_(n,e,v,N,t)}}}for(var C=-w+p;C<=w-m;C+=2){var k=o+C,x;C==-w||C!=w&&d[k-1]<d[k+1]?x=d[k+1]:x=d[k-1]+1;for(var A=x-C;x<r&&A<i&&n.charAt(r-x-1)==e.charAt(i-A-1);)x++,A++;if(d[k]=x,x>r)m+=2;else if(A>i)p+=2;else if(!f){var b=o+u-C;if(b>=0&&b<a&&l[b]!=-1){var v=l[b],N=o+v-b;if(x=r-x,v>=x)return this.diff_bisectSplit_(n,e,v,N,t)}}}}return [new L.Diff(Z,n),new L.Diff(K,e)]};L.prototype.diff_bisectSplit_=function(n,e,t,r,i){var s=n.substring(0,t),o=e.substring(0,r),a=n.substring(t),l=e.substring(r),d=this.diff_main(s,o,false,i),c=this.diff_main(a,l,false,i);return d.concat(c)};L.prototype.diff_linesToChars_=function(n,e){var t=[],r={};t[0]="";function i(l){for(var d="",c=0,u=-1,f=t.length;u<l.length-1;){u=l.indexOf(`
2
- `,c),u==-1&&(u=l.length-1);var h=l.substring(c,u+1);(r.hasOwnProperty?r.hasOwnProperty(h):r[h]!==void 0)?d+=String.fromCharCode(r[h]):(f==s&&(h=l.substring(c),u=l.length),d+=String.fromCharCode(f),r[h]=f,t[f++]=h),c=u+1;}return d}g(i,"diff_linesToCharsMunge_");var s=4e4,o=i(n);s=65535;var a=i(e);return {chars1:o,chars2:a,lineArray:t}};L.prototype.diff_charsToLines_=function(n,e){for(var t=0;t<n.length;t++){for(var r=n[t][1],i=[],s=0;s<r.length;s++)i[s]=e[r.charCodeAt(s)];n[t][1]=i.join("");}};L.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;for(var t=0,r=Math.min(n.length,e.length),i=r,s=0;t<i;)n.substring(s,i)==e.substring(s,i)?(t=i,s=t):r=i,i=Math.floor((r-t)/2+t);return i};L.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,r=Math.min(n.length,e.length),i=r,s=0;t<i;)n.substring(n.length-i,n.length-s)==e.substring(e.length-i,e.length-s)?(t=i,s=t):r=i,i=Math.floor((r-t)/2+t);return i};L.prototype.diff_commonOverlap_=function(n,e){var t=n.length,r=e.length;if(t==0||r==0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));var i=Math.min(t,r);if(n==e)return i;for(var s=0,o=1;;){var a=n.substring(i-o),l=e.indexOf(a);if(l==-1)return s;o+=l,(l==0||n.substring(i-o)==e.substring(0,o))&&(s=o,o++);}};L.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;var t=n.length>e.length?n:e,r=n.length>e.length?e:n;if(t.length<4||r.length*2<t.length)return null;var i=this;function s(_,p,m){for(var w=_.substring(m,m+Math.floor(_.length/4)),y=-1,b="",v,N,k,x;(y=p.indexOf(w,y+1))!=-1;){var C=i.diff_commonPrefix(_.substring(m),p.substring(y)),A=i.diff_commonSuffix(_.substring(0,m),p.substring(0,y));b.length<A+C&&(b=p.substring(y-A,y)+p.substring(y,y+C),v=_.substring(0,m-A),N=_.substring(m+C),k=p.substring(0,y-A),x=p.substring(y+C));}return b.length*2>=_.length?[v,N,k,x,b]:null}g(s,"diff_halfMatchI_");var o=s(t,r,Math.ceil(t.length/4)),a=s(t,r,Math.ceil(t.length/2)),l;if(!o&&!a)return null;a?o?l=o[4].length>a[4].length?o:a:l=a:l=o;var d,c,u,f;n.length>e.length?(d=l[0],c=l[1],u=l[2],f=l[3]):(u=l[0],f=l[1],d=l[2],c=l[3]);var h=l[4];return [d,c,u,f,h]};L.prototype.diff_cleanupSemantic=function(n){for(var e=false,t=[],r=0,i=null,s=0,o=0,a=0,l=0,d=0;s<n.length;)n[s][0]==Y?(t[r++]=s,o=l,a=d,l=0,d=0,i=n[s][1]):(n[s][0]==K?l+=n[s][1].length:d+=n[s][1].length,i&&i.length<=Math.max(o,a)&&i.length<=Math.max(l,d)&&(n.splice(t[r-1],0,new L.Diff(Z,i)),n[t[r-1]+1][0]=K,r--,r--,s=r>0?t[r-1]:-1,o=0,a=0,l=0,d=0,i=null,e=true)),s++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),s=1;s<n.length;){if(n[s-1][0]==Z&&n[s][0]==K){var c=n[s-1][1],u=n[s][1],f=this.diff_commonOverlap_(c,u),h=this.diff_commonOverlap_(u,c);f>=h?(f>=c.length/2||f>=u.length/2)&&(n.splice(s,0,new L.Diff(Y,u.substring(0,f))),n[s-1][1]=c.substring(0,c.length-f),n[s+1][1]=u.substring(f),s++):(h>=c.length/2||h>=u.length/2)&&(n.splice(s,0,new L.Diff(Y,c.substring(0,h))),n[s-1][0]=K,n[s-1][1]=u.substring(0,u.length-h),n[s+1][0]=Z,n[s+1][1]=c.substring(h),s++),s++;}s++;}};L.prototype.diff_cleanupSemanticLossless=function(n){function e(h,_){if(!h||!_)return 6;var p=h.charAt(h.length-1),m=_.charAt(0),w=p.match(L.nonAlphaNumericRegex_),y=m.match(L.nonAlphaNumericRegex_),b=w&&p.match(L.whitespaceRegex_),v=y&&m.match(L.whitespaceRegex_),N=b&&p.match(L.linebreakRegex_),k=v&&m.match(L.linebreakRegex_),x=N&&h.match(L.blanklineEndRegex_),C=k&&_.match(L.blanklineStartRegex_);return x||C?5:N||k?4:w&&!b&&v?3:b||v?2:w||y?1:0}g(e,"diff_cleanupSemanticScore_");for(var t=1;t<n.length-1;){if(n[t-1][0]==Y&&n[t+1][0]==Y){var r=n[t-1][1],i=n[t][1],s=n[t+1][1],o=this.diff_commonSuffix(r,i);if(o){var a=i.substring(i.length-o);r=r.substring(0,r.length-o),i=a+i.substring(0,i.length-o),s=a+s;}for(var l=r,d=i,c=s,u=e(r,i)+e(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var f=e(r,i)+e(i,s);f>=u&&(u=f,l=r,d=i,c=s);}n[t-1][1]!=l&&(l?n[t-1][1]=l:(n.splice(t-1,1),t--),n[t][1]=d,c?n[t+1][1]=c:(n.splice(t+1,1),t--));}t++;}};L.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;L.whitespaceRegex_=/\s/;L.linebreakRegex_=/[\r\n]/;L.blanklineEndRegex_=/\n\r?\n$/;L.blanklineStartRegex_=/^\r?\n\r?\n/;L.prototype.diff_cleanupEfficiency=function(n){for(var e=false,t=[],r=0,i=null,s=0,o=false,a=false,l=false,d=false;s<n.length;)n[s][0]==Y?(n[s][1].length<this.Diff_EditCost&&(l||d)?(t[r++]=s,o=l,a=d,i=n[s][1]):(r=0,i=null),l=d=false):(n[s][0]==Z?d=true:l=true,i&&(o&&a&&l&&d||i.length<this.Diff_EditCost/2&&o+a+l+d==3)&&(n.splice(t[r-1],0,new L.Diff(Z,i)),n[t[r-1]+1][0]=K,r--,i=null,o&&a?(l=d=true,r=0):(r--,s=r>0?t[r-1]:-1,l=d=false),e=true)),s++;e&&this.diff_cleanupMerge(n);};L.prototype.diff_cleanupMerge=function(n){n.push(new L.Diff(Y,""));for(var e=0,t=0,r=0,i="",s="",o;e<n.length;)switch(n[e][0]){case K:r++,s+=n[e][1],e++;break;case Z:t++,i+=n[e][1],e++;break;case Y:t+r>1?(t!==0&&r!==0&&(o=this.diff_commonPrefix(s,i),o!==0&&(e-t-r>0&&n[e-t-r-1][0]==Y?n[e-t-r-1][1]+=s.substring(0,o):(n.splice(0,0,new L.Diff(Y,s.substring(0,o))),e++),s=s.substring(o),i=i.substring(o)),o=this.diff_commonSuffix(s,i),o!==0&&(n[e][1]=s.substring(s.length-o)+n[e][1],s=s.substring(0,s.length-o),i=i.substring(0,i.length-o))),e-=t+r,n.splice(e,t+r),i.length&&(n.splice(e,0,new L.Diff(Z,i)),e++),s.length&&(n.splice(e,0,new L.Diff(K,s)),e++),e++):e!==0&&n[e-1][0]==Y?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,i="",s="";break}n[n.length-1][1]===""&&n.pop();var a=false;for(e=1;e<n.length-1;)n[e-1][0]==Y&&n[e+1][0]==Y&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)==n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),a=true):n[e][1].substring(0,n[e+1][1].length)==n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),a=true)),e++;a&&this.diff_cleanupMerge(n);};L.prototype.diff_xIndex=function(n,e){var t=0,r=0,i=0,s=0,o;for(o=0;o<n.length&&(n[o][0]!==K&&(t+=n[o][1].length),n[o][0]!==Z&&(r+=n[o][1].length),!(t>e));o++)i=t,s=r;return n.length!=o&&n[o][0]===Z?s:s+(e-i)};L.prototype.diff_prettyHtml=function(n){for(var e=[],t=/&/g,r=/</g,i=/>/g,s=/\n/g,o=0;o<n.length;o++){var a=n[o][0],l=n[o][1],d=l.replace(t,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(s,"&para;<br>");switch(a){case K:e[o]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case Z:e[o]='<del style="background:#ffe6e6;">'+d+"</del>";break;case Y:e[o]="<span>"+d+"</span>";break}}return e.join("")};L.prototype.diff_text1=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==K&&(e[t]=n[t][1]);return e.join("")};L.prototype.diff_text2=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Z&&(e[t]=n[t][1]);return e.join("")};L.prototype.diff_levenshtein=function(n){for(var e=0,t=0,r=0,i=0;i<n.length;i++){var s=n[i][0],o=n[i][1];switch(s){case K:t+=o.length;break;case Z:r+=o.length;break;case Y:e+=Math.max(t,r),t=0,r=0;break}}return e+=Math.max(t,r),e};L.prototype.diff_toDelta=function(n){for(var e=[],t=0;t<n.length;t++)switch(n[t][0]){case K:e[t]="+"+encodeURI(n[t][1]);break;case Z:e[t]="-"+n[t][1].length;break;case Y:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")};L.prototype.diff_fromDelta=function(n,e){for(var t=[],r=0,i=0,s=e.split(/\t/g),o=0;o<s.length;o++){var a=s[o].substring(1);switch(s[o].charAt(0)){case "+":try{t[r++]=new L.Diff(K,decodeURI(a));}catch{throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case "-":case "=":var l=parseInt(a,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+a);var d=n.substring(i,i+=l);s[o].charAt(0)=="="?t[r++]=new L.Diff(Y,d):t[r++]=new L.Diff(Z,d);break;default:if(s[o])throw new Error("Invalid diff operation in diff_fromDelta: "+s[o])}}if(i!=n.length)throw new Error("Delta length ("+i+") does not equal source text length ("+n.length+").");return t};L.prototype.match_main=function(n,e,t){if(n==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,n.length)),n==e?0:n.length?n.substring(t,t+e.length)==e?t:this.match_bitap_(n,e,t):-1};L.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(e),i=this;function s(v,N){var k=v/e.length,x=Math.abs(t-N);return i.Match_Distance?k+x/i.Match_Distance:x?1:k}g(s,"match_bitapScore_");var o=this.Match_Threshold,a=n.indexOf(e,t);a!=-1&&(o=Math.min(s(0,a),o),a=n.lastIndexOf(e,t+e.length),a!=-1&&(o=Math.min(s(0,a),o)));var l=1<<e.length-1;a=-1;for(var d,c,u=e.length+n.length,f,h=0;h<e.length;h++){for(d=0,c=u;d<c;)s(h,t+c)<=o?d=c:u=c,c=Math.floor((u-d)/2+d);u=c;var _=Math.max(1,t-c+1),p=Math.min(t+c,n.length)+e.length,m=Array(p+2);m[p+1]=(1<<h)-1;for(var w=p;w>=_;w--){var y=r[n.charAt(w-1)];if(h===0?m[w]=(m[w+1]<<1|1)&y:m[w]=(m[w+1]<<1|1)&y|((f[w+1]|f[w])<<1|1)|f[w+1],m[w]&l){var b=s(h,w-1);if(b<=o)if(o=b,a=w-1,a>t)_=Math.max(1,2*t-a);else break}}if(s(h+1,t)>o)break;f=m;}return a};L.prototype.match_alphabet_=function(n){for(var e={},t=0;t<n.length;t++)e[n.charAt(t)]=0;for(var t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e};L.prototype.patch_addContext_=function(n,e){if(e.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var t=e.substring(n.start2,n.start2+n.length1),r=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,t=e.substring(n.start2-r,n.start2+n.length1+r);r+=this.Patch_Margin;var i=e.substring(n.start2-r,n.start2);i&&n.diffs.unshift(new L.Diff(Y,i));var s=e.substring(n.start2+n.length1,n.start2+n.length1+r);s&&n.diffs.push(new L.Diff(Y,s)),n.start1-=i.length,n.start2-=i.length,n.length1+=i.length+s.length,n.length2+=i.length+s.length;}};L.prototype.patch_make=function(n,e,t){var r,i;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")r=n,i=this.diff_main(r,e,true),i.length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")i=n,r=this.diff_text1(i);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")r=n,i=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")r=n,i=t;else throw new Error("Unknown call format to patch_make.");if(i.length===0)return [];for(var s=[],o=new L.patch_obj,a=0,l=0,d=0,c=r,u=r,f=0;f<i.length;f++){var h=i[f][0],_=i[f][1];switch(!a&&h!==Y&&(o.start1=l,o.start2=d),h){case K:o.diffs[a++]=i[f],o.length2+=_.length,u=u.substring(0,d)+_+u.substring(d);break;case Z:o.length1+=_.length,o.diffs[a++]=i[f],u=u.substring(0,d)+u.substring(d+_.length);break;case Y:_.length<=2*this.Patch_Margin&&a&&i.length!=f+1?(o.diffs[a++]=i[f],o.length1+=_.length,o.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(o,c),s.push(o),o=new L.patch_obj,a=0,c=u,l=d);break}h!==K&&(l+=_.length),h!==Z&&(d+=_.length);}return a&&(this.patch_addContext_(o,c),s.push(o)),s};L.prototype.patch_deepCopy=function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t],i=new L.patch_obj;i.diffs=[];for(var s=0;s<r.diffs.length;s++)i.diffs[s]=new L.Diff(r.diffs[s][0],r.diffs[s][1]);i.start1=r.start1,i.start2=r.start2,i.length1=r.length1,i.length2=r.length2,e[t]=i;}return e};L.prototype.patch_apply=function(n,e){if(n.length==0)return [e,[]];n=this.patch_deepCopy(n);var t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);for(var r=0,i=[],s=0;s<n.length;s++){var o=n[s].start2+r,a=this.diff_text1(n[s].diffs),l,d=-1;if(a.length>this.Match_MaxBits?(l=this.match_main(e,a.substring(0,this.Match_MaxBits),o),l!=-1&&(d=this.match_main(e,a.substring(a.length-this.Match_MaxBits),o+a.length-this.Match_MaxBits),(d==-1||l>=d)&&(l=-1))):l=this.match_main(e,a,o),l==-1)i[s]=false,r-=n[s].length2-n[s].length1;else {i[s]=true,r=l-o;var c;if(d==-1?c=e.substring(l,l+a.length):c=e.substring(l,d+this.Match_MaxBits),a==c)e=e.substring(0,l)+this.diff_text2(n[s].diffs)+e.substring(l+a.length);else {var u=this.diff_main(a,c,false);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(u)/a.length>this.Patch_DeleteThreshold)i[s]=false;else {this.diff_cleanupSemanticLossless(u);for(var f=0,h,_=0;_<n[s].diffs.length;_++){var p=n[s].diffs[_];p[0]!==Y&&(h=this.diff_xIndex(u,f)),p[0]===K?e=e.substring(0,l+h)+p[1]+e.substring(l+h):p[0]===Z&&(e=e.substring(0,l+h)+e.substring(l+this.diff_xIndex(u,f+p[1].length))),p[0]!==Z&&(f+=p[1].length);}}}}}return e=e.substring(t.length,e.length-t.length),[e,i]};L.prototype.patch_addPadding=function(n){for(var e=this.Patch_Margin,t="",r=1;r<=e;r++)t+=String.fromCharCode(r);for(var r=0;r<n.length;r++)n[r].start1+=e,n[r].start2+=e;var i=n[0],s=i.diffs;if(s.length==0||s[0][0]!=Y)s.unshift(new L.Diff(Y,t)),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>s[0][1].length){var o=e-s[0][1].length;s[0][1]=t.substring(s[0][1].length)+s[0][1],i.start1-=o,i.start2-=o,i.length1+=o,i.length2+=o;}if(i=n[n.length-1],s=i.diffs,s.length==0||s[s.length-1][0]!=Y)s.push(new L.Diff(Y,t)),i.length1+=e,i.length2+=e;else if(e>s[s.length-1][1].length){var o=e-s[s.length-1][1].length;s[s.length-1][1]+=t.substring(0,o),i.length1+=o,i.length2+=o;}return t};L.prototype.patch_splitMax=function(n){for(var e=this.Match_MaxBits,t=0;t<n.length;t++)if(!(n[t].length1<=e)){var r=n[t];n.splice(t--,1);for(var i=r.start1,s=r.start2,o="";r.diffs.length!==0;){var a=new L.patch_obj,l=true;for(a.start1=i-o.length,a.start2=s-o.length,o!==""&&(a.length1=a.length2=o.length,a.diffs.push(new L.Diff(Y,o)));r.diffs.length!==0&&a.length1<e-this.Patch_Margin;){var d=r.diffs[0][0],c=r.diffs[0][1];d===K?(a.length2+=c.length,s+=c.length,a.diffs.push(r.diffs.shift()),l=false):d===Z&&a.diffs.length==1&&a.diffs[0][0]==Y&&c.length>2*e?(a.length1+=c.length,i+=c.length,l=false,a.diffs.push(new L.Diff(d,c)),r.diffs.shift()):(c=c.substring(0,e-a.length1-this.Patch_Margin),a.length1+=c.length,i+=c.length,d===Y?(a.length2+=c.length,s+=c.length):l=false,a.diffs.push(new L.Diff(d,c)),c==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(c.length));}o=this.diff_text2(a.diffs),o=o.substring(o.length-this.Patch_Margin);var u=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);u!==""&&(a.length1+=u.length,a.length2+=u.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===Y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push(new L.Diff(Y,u))),l||n.splice(++t,0,a);}}};L.prototype.patch_toText=function(n){for(var e=[],t=0;t<n.length;t++)e[t]=n[t];return e.join("")};L.prototype.patch_fromText=function(n){var e=[];if(!n)return e;for(var t=n.split(`
1
+ 'use strict';var n8nWorkflow=require('n8n-workflow'),path=require('path');var qo=Object.create;var On=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var Go=Object.getOwnPropertyNames;var Jo=Object.getPrototypeOf,Vo=Object.prototype.hasOwnProperty;var g=(n,e)=>On(n,"name",{value:e,configurable:true});var jr=(n,e)=>()=>{try{return e||n((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var Qo=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Go(e))!Vo.call(n,i)&&i!==t&&On(n,i,{get:()=>e[i],enumerable:!(r=Yo(e,i))||r.enumerable});return n};var Lt=(n,e,t)=>(t=n!=null?qo(Jo(n)):{},Qo(On(t,"default",{value:n,enumerable:true}),n));var Fr=jr((Ku,Br)=>{"use strict";Br.exports={createRequire:g(function(){return function(){return {}}},"createRequire")};});var Ht=jr((rf,dt)=>{"use strict";var L=g(function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32;},"diff_match_patch"),Z=-1,K=1,Y=0;L.Diff=function(n,e){return [n,e]};L.prototype.diff_main=function(n,e,t,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);var i=r;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new L.Diff(Y,n)]:[];typeof t>"u"&&(t=!0);var s=t,o=this.diff_commonPrefix(n,e),a=n.substring(0,o);n=n.substring(o),e=e.substring(o),o=this.diff_commonSuffix(n,e);var l=n.substring(n.length-o);n=n.substring(0,n.length-o),e=e.substring(0,e.length-o);var d=this.diff_compute_(n,e,s,i);return a&&d.unshift(new L.Diff(Y,a)),l&&d.push(new L.Diff(Y,l)),this.diff_cleanupMerge(d),d};L.prototype.diff_compute_=function(n,e,t,r){var i;if(!n)return [new L.Diff(K,e)];if(!e)return [new L.Diff(Z,n)];var s=n.length>e.length?n:e,o=n.length>e.length?e:n,a=s.indexOf(o);if(a!=-1)return i=[new L.Diff(K,s.substring(0,a)),new L.Diff(Y,o),new L.Diff(K,s.substring(a+o.length))],n.length>e.length&&(i[0][0]=i[2][0]=Z),i;if(o.length==1)return [new L.Diff(Z,n),new L.Diff(K,e)];var l=this.diff_halfMatch_(n,e);if(l){var d=l[0],c=l[1],u=l[2],f=l[3],h=l[4],_=this.diff_main(d,u,t,r),p=this.diff_main(c,f,t,r);return _.concat([new L.Diff(Y,h)],p)}return t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,r):this.diff_bisect_(n,e,r)};L.prototype.diff_lineMode_=function(n,e,t){var r=this.diff_linesToChars_(n,e);n=r.chars1,e=r.chars2;var i=r.lineArray,s=this.diff_main(n,e,!1,t);this.diff_charsToLines_(s,i),this.diff_cleanupSemantic(s),s.push(new L.Diff(Y,""));for(var o=0,a=0,l=0,d="",c="";o<s.length;){switch(s[o][0]){case K:l++,c+=s[o][1];break;case Z:a++,d+=s[o][1];break;case Y:if(a>=1&&l>=1){s.splice(o-a-l,a+l),o=o-a-l;for(var u=this.diff_main(d,c,!1,t),f=u.length-1;f>=0;f--)s.splice(o,0,u[f]);o=o+u.length;}l=0,a=0,d="",c="";break}o++;}return s.pop(),s};L.prototype.diff_bisect_=function(n,e,t){for(var r=n.length,i=e.length,s=Math.ceil((r+i)/2),o=s,a=2*s,l=new Array(a),d=new Array(a),c=0;c<a;c++)l[c]=-1,d[c]=-1;l[o+1]=0,d[o+1]=0;for(var u=r-i,f=u%2!=0,h=0,_=0,p=0,m=0,w=0;w<s&&!(new Date().getTime()>t);w++){for(var y=-w+h;y<=w-_;y+=2){var b=o+y,v;y==-w||y!=w&&l[b-1]<l[b+1]?v=l[b+1]:v=l[b-1]+1;for(var N=v-y;v<r&&N<i&&n.charAt(v)==e.charAt(N);)v++,N++;if(l[b]=v,v>r)_+=2;else if(N>i)h+=2;else if(f){var k=o+u-y;if(k>=0&&k<a&&d[k]!=-1){var x=r-d[k];if(v>=x)return this.diff_bisectSplit_(n,e,v,N,t)}}}for(var C=-w+p;C<=w-m;C+=2){var k=o+C,x;C==-w||C!=w&&d[k-1]<d[k+1]?x=d[k+1]:x=d[k-1]+1;for(var A=x-C;x<r&&A<i&&n.charAt(r-x-1)==e.charAt(i-A-1);)x++,A++;if(d[k]=x,x>r)m+=2;else if(A>i)p+=2;else if(!f){var b=o+u-C;if(b>=0&&b<a&&l[b]!=-1){var v=l[b],N=o+v-b;if(x=r-x,v>=x)return this.diff_bisectSplit_(n,e,v,N,t)}}}}return [new L.Diff(Z,n),new L.Diff(K,e)]};L.prototype.diff_bisectSplit_=function(n,e,t,r,i){var s=n.substring(0,t),o=e.substring(0,r),a=n.substring(t),l=e.substring(r),d=this.diff_main(s,o,!1,i),c=this.diff_main(a,l,!1,i);return d.concat(c)};L.prototype.diff_linesToChars_=function(n,e){var t=[],r={};t[0]="";function i(l){for(var d="",c=0,u=-1,f=t.length;u<l.length-1;){u=l.indexOf(`
2
+ `,c),u==-1&&(u=l.length-1);var h=l.substring(c,u+1);(r.hasOwnProperty?r.hasOwnProperty(h):r[h]!==void 0)?d+=String.fromCharCode(r[h]):(f==s&&(h=l.substring(c),u=l.length),d+=String.fromCharCode(f),r[h]=f,t[f++]=h),c=u+1;}return d}g(i,"diff_linesToCharsMunge_");var s=4e4,o=i(n);s=65535;var a=i(e);return {chars1:o,chars2:a,lineArray:t}};L.prototype.diff_charsToLines_=function(n,e){for(var t=0;t<n.length;t++){for(var r=n[t][1],i=[],s=0;s<r.length;s++)i[s]=e[r.charCodeAt(s)];n[t][1]=i.join("");}};L.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;for(var t=0,r=Math.min(n.length,e.length),i=r,s=0;t<i;)n.substring(s,i)==e.substring(s,i)?(t=i,s=t):r=i,i=Math.floor((r-t)/2+t);return i};L.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,r=Math.min(n.length,e.length),i=r,s=0;t<i;)n.substring(n.length-i,n.length-s)==e.substring(e.length-i,e.length-s)?(t=i,s=t):r=i,i=Math.floor((r-t)/2+t);return i};L.prototype.diff_commonOverlap_=function(n,e){var t=n.length,r=e.length;if(t==0||r==0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));var i=Math.min(t,r);if(n==e)return i;for(var s=0,o=1;;){var a=n.substring(i-o),l=e.indexOf(a);if(l==-1)return s;o+=l,(l==0||n.substring(i-o)==e.substring(0,o))&&(s=o,o++);}};L.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;var t=n.length>e.length?n:e,r=n.length>e.length?e:n;if(t.length<4||r.length*2<t.length)return null;var i=this;function s(_,p,m){for(var w=_.substring(m,m+Math.floor(_.length/4)),y=-1,b="",v,N,k,x;(y=p.indexOf(w,y+1))!=-1;){var C=i.diff_commonPrefix(_.substring(m),p.substring(y)),A=i.diff_commonSuffix(_.substring(0,m),p.substring(0,y));b.length<A+C&&(b=p.substring(y-A,y)+p.substring(y,y+C),v=_.substring(0,m-A),N=_.substring(m+C),k=p.substring(0,y-A),x=p.substring(y+C));}return b.length*2>=_.length?[v,N,k,x,b]:null}g(s,"diff_halfMatchI_");var o=s(t,r,Math.ceil(t.length/4)),a=s(t,r,Math.ceil(t.length/2)),l;if(!o&&!a)return null;a?o?l=o[4].length>a[4].length?o:a:l=a:l=o;var d,c,u,f;n.length>e.length?(d=l[0],c=l[1],u=l[2],f=l[3]):(u=l[0],f=l[1],d=l[2],c=l[3]);var h=l[4];return [d,c,u,f,h]};L.prototype.diff_cleanupSemantic=function(n){for(var e=!1,t=[],r=0,i=null,s=0,o=0,a=0,l=0,d=0;s<n.length;)n[s][0]==Y?(t[r++]=s,o=l,a=d,l=0,d=0,i=n[s][1]):(n[s][0]==K?l+=n[s][1].length:d+=n[s][1].length,i&&i.length<=Math.max(o,a)&&i.length<=Math.max(l,d)&&(n.splice(t[r-1],0,new L.Diff(Z,i)),n[t[r-1]+1][0]=K,r--,r--,s=r>0?t[r-1]:-1,o=0,a=0,l=0,d=0,i=null,e=!0)),s++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),s=1;s<n.length;){if(n[s-1][0]==Z&&n[s][0]==K){var c=n[s-1][1],u=n[s][1],f=this.diff_commonOverlap_(c,u),h=this.diff_commonOverlap_(u,c);f>=h?(f>=c.length/2||f>=u.length/2)&&(n.splice(s,0,new L.Diff(Y,u.substring(0,f))),n[s-1][1]=c.substring(0,c.length-f),n[s+1][1]=u.substring(f),s++):(h>=c.length/2||h>=u.length/2)&&(n.splice(s,0,new L.Diff(Y,c.substring(0,h))),n[s-1][0]=K,n[s-1][1]=u.substring(0,u.length-h),n[s+1][0]=Z,n[s+1][1]=c.substring(h),s++),s++;}s++;}};L.prototype.diff_cleanupSemanticLossless=function(n){function e(h,_){if(!h||!_)return 6;var p=h.charAt(h.length-1),m=_.charAt(0),w=p.match(L.nonAlphaNumericRegex_),y=m.match(L.nonAlphaNumericRegex_),b=w&&p.match(L.whitespaceRegex_),v=y&&m.match(L.whitespaceRegex_),N=b&&p.match(L.linebreakRegex_),k=v&&m.match(L.linebreakRegex_),x=N&&h.match(L.blanklineEndRegex_),C=k&&_.match(L.blanklineStartRegex_);return x||C?5:N||k?4:w&&!b&&v?3:b||v?2:w||y?1:0}g(e,"diff_cleanupSemanticScore_");for(var t=1;t<n.length-1;){if(n[t-1][0]==Y&&n[t+1][0]==Y){var r=n[t-1][1],i=n[t][1],s=n[t+1][1],o=this.diff_commonSuffix(r,i);if(o){var a=i.substring(i.length-o);r=r.substring(0,r.length-o),i=a+i.substring(0,i.length-o),s=a+s;}for(var l=r,d=i,c=s,u=e(r,i)+e(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var f=e(r,i)+e(i,s);f>=u&&(u=f,l=r,d=i,c=s);}n[t-1][1]!=l&&(l?n[t-1][1]=l:(n.splice(t-1,1),t--),n[t][1]=d,c?n[t+1][1]=c:(n.splice(t+1,1),t--));}t++;}};L.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;L.whitespaceRegex_=/\s/;L.linebreakRegex_=/[\r\n]/;L.blanklineEndRegex_=/\n\r?\n$/;L.blanklineStartRegex_=/^\r?\n\r?\n/;L.prototype.diff_cleanupEfficiency=function(n){for(var e=!1,t=[],r=0,i=null,s=0,o=!1,a=!1,l=!1,d=!1;s<n.length;)n[s][0]==Y?(n[s][1].length<this.Diff_EditCost&&(l||d)?(t[r++]=s,o=l,a=d,i=n[s][1]):(r=0,i=null),l=d=!1):(n[s][0]==Z?d=!0:l=!0,i&&(o&&a&&l&&d||i.length<this.Diff_EditCost/2&&o+a+l+d==3)&&(n.splice(t[r-1],0,new L.Diff(Z,i)),n[t[r-1]+1][0]=K,r--,i=null,o&&a?(l=d=!0,r=0):(r--,s=r>0?t[r-1]:-1,l=d=!1),e=!0)),s++;e&&this.diff_cleanupMerge(n);};L.prototype.diff_cleanupMerge=function(n){n.push(new L.Diff(Y,""));for(var e=0,t=0,r=0,i="",s="",o;e<n.length;)switch(n[e][0]){case K:r++,s+=n[e][1],e++;break;case Z:t++,i+=n[e][1],e++;break;case Y:t+r>1?(t!==0&&r!==0&&(o=this.diff_commonPrefix(s,i),o!==0&&(e-t-r>0&&n[e-t-r-1][0]==Y?n[e-t-r-1][1]+=s.substring(0,o):(n.splice(0,0,new L.Diff(Y,s.substring(0,o))),e++),s=s.substring(o),i=i.substring(o)),o=this.diff_commonSuffix(s,i),o!==0&&(n[e][1]=s.substring(s.length-o)+n[e][1],s=s.substring(0,s.length-o),i=i.substring(0,i.length-o))),e-=t+r,n.splice(e,t+r),i.length&&(n.splice(e,0,new L.Diff(Z,i)),e++),s.length&&(n.splice(e,0,new L.Diff(K,s)),e++),e++):e!==0&&n[e-1][0]==Y?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,i="",s="";break}n[n.length-1][1]===""&&n.pop();var a=!1;for(e=1;e<n.length-1;)n[e-1][0]==Y&&n[e+1][0]==Y&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)==n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),a=!0):n[e][1].substring(0,n[e+1][1].length)==n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),a=!0)),e++;a&&this.diff_cleanupMerge(n);};L.prototype.diff_xIndex=function(n,e){var t=0,r=0,i=0,s=0,o;for(o=0;o<n.length&&(n[o][0]!==K&&(t+=n[o][1].length),n[o][0]!==Z&&(r+=n[o][1].length),!(t>e));o++)i=t,s=r;return n.length!=o&&n[o][0]===Z?s:s+(e-i)};L.prototype.diff_prettyHtml=function(n){for(var e=[],t=/&/g,r=/</g,i=/>/g,s=/\n/g,o=0;o<n.length;o++){var a=n[o][0],l=n[o][1],d=l.replace(t,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(s,"&para;<br>");switch(a){case K:e[o]='<ins style="background:#e6ffe6;">'+d+"</ins>";break;case Z:e[o]='<del style="background:#ffe6e6;">'+d+"</del>";break;case Y:e[o]="<span>"+d+"</span>";break}}return e.join("")};L.prototype.diff_text1=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==K&&(e[t]=n[t][1]);return e.join("")};L.prototype.diff_text2=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Z&&(e[t]=n[t][1]);return e.join("")};L.prototype.diff_levenshtein=function(n){for(var e=0,t=0,r=0,i=0;i<n.length;i++){var s=n[i][0],o=n[i][1];switch(s){case K:t+=o.length;break;case Z:r+=o.length;break;case Y:e+=Math.max(t,r),t=0,r=0;break}}return e+=Math.max(t,r),e};L.prototype.diff_toDelta=function(n){for(var e=[],t=0;t<n.length;t++)switch(n[t][0]){case K:e[t]="+"+encodeURI(n[t][1]);break;case Z:e[t]="-"+n[t][1].length;break;case Y:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")};L.prototype.diff_fromDelta=function(n,e){for(var t=[],r=0,i=0,s=e.split(/\t/g),o=0;o<s.length;o++){var a=s[o].substring(1);switch(s[o].charAt(0)){case "+":try{t[r++]=new L.Diff(K,decodeURI(a));}catch{throw new Error("Illegal escape in diff_fromDelta: "+a)}break;case "-":case "=":var l=parseInt(a,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+a);var d=n.substring(i,i+=l);s[o].charAt(0)=="="?t[r++]=new L.Diff(Y,d):t[r++]=new L.Diff(Z,d);break;default:if(s[o])throw new Error("Invalid diff operation in diff_fromDelta: "+s[o])}}if(i!=n.length)throw new Error("Delta length ("+i+") does not equal source text length ("+n.length+").");return t};L.prototype.match_main=function(n,e,t){if(n==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,n.length)),n==e?0:n.length?n.substring(t,t+e.length)==e?t:this.match_bitap_(n,e,t):-1};L.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(e),i=this;function s(v,N){var k=v/e.length,x=Math.abs(t-N);return i.Match_Distance?k+x/i.Match_Distance:x?1:k}g(s,"match_bitapScore_");var o=this.Match_Threshold,a=n.indexOf(e,t);a!=-1&&(o=Math.min(s(0,a),o),a=n.lastIndexOf(e,t+e.length),a!=-1&&(o=Math.min(s(0,a),o)));var l=1<<e.length-1;a=-1;for(var d,c,u=e.length+n.length,f,h=0;h<e.length;h++){for(d=0,c=u;d<c;)s(h,t+c)<=o?d=c:u=c,c=Math.floor((u-d)/2+d);u=c;var _=Math.max(1,t-c+1),p=Math.min(t+c,n.length)+e.length,m=Array(p+2);m[p+1]=(1<<h)-1;for(var w=p;w>=_;w--){var y=r[n.charAt(w-1)];if(h===0?m[w]=(m[w+1]<<1|1)&y:m[w]=(m[w+1]<<1|1)&y|((f[w+1]|f[w])<<1|1)|f[w+1],m[w]&l){var b=s(h,w-1);if(b<=o)if(o=b,a=w-1,a>t)_=Math.max(1,2*t-a);else break}}if(s(h+1,t)>o)break;f=m;}return a};L.prototype.match_alphabet_=function(n){for(var e={},t=0;t<n.length;t++)e[n.charAt(t)]=0;for(var t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e};L.prototype.patch_addContext_=function(n,e){if(e.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var t=e.substring(n.start2,n.start2+n.length1),r=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,t=e.substring(n.start2-r,n.start2+n.length1+r);r+=this.Patch_Margin;var i=e.substring(n.start2-r,n.start2);i&&n.diffs.unshift(new L.Diff(Y,i));var s=e.substring(n.start2+n.length1,n.start2+n.length1+r);s&&n.diffs.push(new L.Diff(Y,s)),n.start1-=i.length,n.start2-=i.length,n.length1+=i.length+s.length,n.length2+=i.length+s.length;}};L.prototype.patch_make=function(n,e,t){var r,i;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")r=n,i=this.diff_main(r,e,!0),i.length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")i=n,r=this.diff_text1(i);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")r=n,i=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")r=n,i=t;else throw new Error("Unknown call format to patch_make.");if(i.length===0)return [];for(var s=[],o=new L.patch_obj,a=0,l=0,d=0,c=r,u=r,f=0;f<i.length;f++){var h=i[f][0],_=i[f][1];switch(!a&&h!==Y&&(o.start1=l,o.start2=d),h){case K:o.diffs[a++]=i[f],o.length2+=_.length,u=u.substring(0,d)+_+u.substring(d);break;case Z:o.length1+=_.length,o.diffs[a++]=i[f],u=u.substring(0,d)+u.substring(d+_.length);break;case Y:_.length<=2*this.Patch_Margin&&a&&i.length!=f+1?(o.diffs[a++]=i[f],o.length1+=_.length,o.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(o,c),s.push(o),o=new L.patch_obj,a=0,c=u,l=d);break}h!==K&&(l+=_.length),h!==Z&&(d+=_.length);}return a&&(this.patch_addContext_(o,c),s.push(o)),s};L.prototype.patch_deepCopy=function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t],i=new L.patch_obj;i.diffs=[];for(var s=0;s<r.diffs.length;s++)i.diffs[s]=new L.Diff(r.diffs[s][0],r.diffs[s][1]);i.start1=r.start1,i.start2=r.start2,i.length1=r.length1,i.length2=r.length2,e[t]=i;}return e};L.prototype.patch_apply=function(n,e){if(n.length==0)return [e,[]];n=this.patch_deepCopy(n);var t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);for(var r=0,i=[],s=0;s<n.length;s++){var o=n[s].start2+r,a=this.diff_text1(n[s].diffs),l,d=-1;if(a.length>this.Match_MaxBits?(l=this.match_main(e,a.substring(0,this.Match_MaxBits),o),l!=-1&&(d=this.match_main(e,a.substring(a.length-this.Match_MaxBits),o+a.length-this.Match_MaxBits),(d==-1||l>=d)&&(l=-1))):l=this.match_main(e,a,o),l==-1)i[s]=!1,r-=n[s].length2-n[s].length1;else {i[s]=!0,r=l-o;var c;if(d==-1?c=e.substring(l,l+a.length):c=e.substring(l,d+this.Match_MaxBits),a==c)e=e.substring(0,l)+this.diff_text2(n[s].diffs)+e.substring(l+a.length);else {var u=this.diff_main(a,c,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(u)/a.length>this.Patch_DeleteThreshold)i[s]=!1;else {this.diff_cleanupSemanticLossless(u);for(var f=0,h,_=0;_<n[s].diffs.length;_++){var p=n[s].diffs[_];p[0]!==Y&&(h=this.diff_xIndex(u,f)),p[0]===K?e=e.substring(0,l+h)+p[1]+e.substring(l+h):p[0]===Z&&(e=e.substring(0,l+h)+e.substring(l+this.diff_xIndex(u,f+p[1].length))),p[0]!==Z&&(f+=p[1].length);}}}}}return e=e.substring(t.length,e.length-t.length),[e,i]};L.prototype.patch_addPadding=function(n){for(var e=this.Patch_Margin,t="",r=1;r<=e;r++)t+=String.fromCharCode(r);for(var r=0;r<n.length;r++)n[r].start1+=e,n[r].start2+=e;var i=n[0],s=i.diffs;if(s.length==0||s[0][0]!=Y)s.unshift(new L.Diff(Y,t)),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>s[0][1].length){var o=e-s[0][1].length;s[0][1]=t.substring(s[0][1].length)+s[0][1],i.start1-=o,i.start2-=o,i.length1+=o,i.length2+=o;}if(i=n[n.length-1],s=i.diffs,s.length==0||s[s.length-1][0]!=Y)s.push(new L.Diff(Y,t)),i.length1+=e,i.length2+=e;else if(e>s[s.length-1][1].length){var o=e-s[s.length-1][1].length;s[s.length-1][1]+=t.substring(0,o),i.length1+=o,i.length2+=o;}return t};L.prototype.patch_splitMax=function(n){for(var e=this.Match_MaxBits,t=0;t<n.length;t++)if(!(n[t].length1<=e)){var r=n[t];n.splice(t--,1);for(var i=r.start1,s=r.start2,o="";r.diffs.length!==0;){var a=new L.patch_obj,l=!0;for(a.start1=i-o.length,a.start2=s-o.length,o!==""&&(a.length1=a.length2=o.length,a.diffs.push(new L.Diff(Y,o)));r.diffs.length!==0&&a.length1<e-this.Patch_Margin;){var d=r.diffs[0][0],c=r.diffs[0][1];d===K?(a.length2+=c.length,s+=c.length,a.diffs.push(r.diffs.shift()),l=!1):d===Z&&a.diffs.length==1&&a.diffs[0][0]==Y&&c.length>2*e?(a.length1+=c.length,i+=c.length,l=!1,a.diffs.push(new L.Diff(d,c)),r.diffs.shift()):(c=c.substring(0,e-a.length1-this.Patch_Margin),a.length1+=c.length,i+=c.length,d===Y?(a.length2+=c.length,s+=c.length):l=!1,a.diffs.push(new L.Diff(d,c)),c==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(c.length));}o=this.diff_text2(a.diffs),o=o.substring(o.length-this.Patch_Margin);var u=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);u!==""&&(a.length1+=u.length,a.length2+=u.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===Y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push(new L.Diff(Y,u))),l||n.splice(++t,0,a);}}};L.prototype.patch_toText=function(n){for(var e=[],t=0;t<n.length;t++)e[t]=n[t];return e.join("")};L.prototype.patch_fromText=function(n){var e=[];if(!n)return e;for(var t=n.split(`
3
3
  `),r=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<t.length;){var s=t[r].match(i);if(!s)throw new Error("Invalid patch string: "+t[r]);var o=new L.patch_obj;for(e.push(o),o.start1=parseInt(s[1],10),s[2]===""?(o.start1--,o.length1=1):s[2]=="0"?o.length1=0:(o.start1--,o.length1=parseInt(s[2],10)),o.start2=parseInt(s[3],10),s[4]===""?(o.start2--,o.length2=1):s[4]=="0"?o.length2=0:(o.start2--,o.length2=parseInt(s[4],10)),r++;r<t.length;){var a=t[r].charAt(0);try{var l=decodeURI(t[r].substring(1));}catch{throw new Error("Illegal escape in patch_fromText: "+l)}if(a=="-")o.diffs.push(new L.Diff(Z,l));else if(a=="+")o.diffs.push(new L.Diff(K,l));else if(a==" ")o.diffs.push(new L.Diff(Y,l));else {if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+l)}r++;}}return e};L.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0;};L.patch_obj.prototype.toString=function(){var n,e;this.length1===0?n=this.start1+",0":this.length1==1?n=this.start1+1:n=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;for(var t=["@@ -"+n+" +"+e+` @@
4
4
  `],r,i=0;i<this.diffs.length;i++){switch(this.diffs[i][0]){case K:r="+";break;case Z:r="-";break;case Y:r=" ";break}t[i+1]=r+encodeURI(this.diffs[i][1])+`
5
5
  `;}return t.join("").replace(/%20/g," ")};dt.exports=L;dt.exports.diff_match_patch=L;dt.exports.DIFF_DELETE=Z;dt.exports.DIFF_INSERT=K;dt.exports.DIFF_EQUAL=Y;});var Xr=Lt(Fr());var Zo=(0, Xr.createRequire)("/"),lt,Ko,ea;try{lt=Zo("worker_threads"),Ko=lt.Worker,ea=lt.isMarkedAsUntransferable;}catch{}var ee=Uint8Array,ce=Uint16Array,Hn=Int32Array,zt=new ee([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,0,0,0]),Ut=new ee([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,0,0]),Bn=new ee([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qr=g(function(n,e){for(var t=new ce(31),r=0;r<31;++r)t[r]=e+=1<<n[r-1];for(var i=new Hn(t[30]),r=1;r<30;++r)for(var s=t[r];s<t[r+1];++s)i[s]=s-t[r]<<5|r;return {b:t,r:i}},"freb"),lt=qr(zt,2),Yr=lt.b,Fn=lt.r;Yr[28]=258,Fn[258]=28;var Gr=qr(Ut,0),ta=Gr.b,Lr=Gr.r,Ln=new ce(32768);for(J=0;J<32768;++J)Te=(J&43690)>>1|(J&21845)<<1,Te=(Te&52428)>>2|(Te&13107)<<2,Te=(Te&61680)>>4|(Te&3855)<<4,Ln[J]=((Te&65280)>>8|(Te&255)<<8)>>1;var Te,J,Ne=g((function(n,e,t){for(var r=n.length,i=0,s=new ce(e);i<r;++i)n[i]&&++s[n[i]-1];var o=new ce(e);for(i=1;i<e;++i)o[i]=o[i-1]+s[i-1]<<1;var a;if(t){a=new ce(1<<e);var l=15-e;for(i=0;i<r;++i)if(n[i])for(var d=i<<4|n[i],c=e-n[i],u=o[n[i]-1]++<<c,f=u|(1<<c)-1;u<=f;++u)a[Ln[u]>>l]=d;}else for(a=new ce(r),i=0;i<r;++i)n[i]&&(a[i]=Ln[o[n[i]-1]++]>>15-n[i]);return a}),"hMap"),Me=new ee(288);for(J=0;J<144;++J)Me[J]=8;var J;for(J=144;J<256;++J)Me[J]=9;var J;for(J=256;J<280;++J)Me[J]=7;var J;for(J=280;J<288;++J)Me[J]=8;var J,kt=new ee(32);for(J=0;J<32;++J)kt[J]=5;var J,na=Ne(Me,9,0),ra=Ne(Me,9,1),ia=Ne(kt,5,0),sa=Ne(kt,5,1),Dn=g(function(n){for(var e=n[0],t=1;t<n.length;++t)n[t]>e&&(e=n[t]);return e},"max"),me=g(function(n,e,t){var r=e/8|0;return (n[r]|n[r+1]<<8)>>(e&7)&t},"bits"),Rn=g(function(n,e){var t=e/8|0;return (n[t]|n[t+1]<<8|n[t+2]<<16)>>(e&7)},"bits16"),Xn=g(function(n){return (n+7)/8|0},"shft"),Ct=g(function(n,e,t){return (e==null||e<0)&&(e=0),(t==null||t>n.length)&&(t=n.length),new ee(n.subarray(e,t))},"slc");var oa=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],se=g(function(n,e,t){var r=new Error(e||oa[n]);if(r.code=n,Error.captureStackTrace&&Error.captureStackTrace(r,se),!t)throw r;return r},"err"),aa=g(function(n,e,t,r){var i=n.length,s=r?r.length:0;if(!i||e.f&&!e.l)return t||new ee(0);var o=!t,a=o||e.i!=2,l=e.i;o&&(t=new ee(i*3));var d=g(function(Re){var at=t.length;if(Re>at){var he=new ee(Math.max(at*2,Re));he.set(t),t=he;}},"cbuf"),c=e.f||0,u=e.p||0,f=e.b||0,h=e.l,_=e.d,p=e.m,m=e.n,w=i*8;do{if(!h){c=me(n,u,1);var y=me(n,u+1,3);if(u+=3,y)if(y==1)h=ra,_=sa,p=9,m=5;else if(y==2){var k=me(n,u,31)+257,x=me(n,u+10,15)+4,C=k+me(n,u+5,31)+1;u+=14;for(var A=new ee(C),T=new ee(19),I=0;I<x;++I)T[Bn[I]]=me(n,u+I*3,7);u+=x*3;for(var M=Dn(T),B=(1<<M)-1,D=Ne(T,M,1),I=0;I<C;){var j=D[me(n,u,B)];u+=j&15;var b=j>>4;if(b<16)A[I++]=b;else {var F=0,E=0;for(b==16?(E=3+me(n,u,3),u+=2,F=A[I-1]):b==17?(E=3+me(n,u,7),u+=3):b==18&&(E=11+me(n,u,127),u+=7);E--;)A[I++]=F;}}var $=A.subarray(0,k),P=A.subarray(k);p=Dn($),m=Dn(P),h=Ne($,p,1),_=Ne(P,m,1);}else se(1);else {var b=Xn(u)+4,v=n[b-4]|n[b-3]<<8,N=b+v;if(N>i){l&&se(0);break}a&&d(f+v),t.set(n.subarray(b,N),f),e.b=f+=v,e.p=u=N*8,e.f=c;continue}if(u>w){l&&se(0);break}}a&&d(f+131072);for(var O=(1<<p)-1,W=(1<<m)-1,U=u;;U=u){var F=h[Rn(n,u)&O],X=F>>4;if(u+=F&15,u>w){l&&se(0);break}if(F||se(2),X<256)t[f++]=X;else if(X==256){U=u,h=null;break}else {var z=X-254;if(X>264){var I=X-257,H=zt[I];z=me(n,u,(1<<H)-1)+Yr[I],u+=H;}var q=_[Rn(n,u)&W],V=q>>4;q||se(3),u+=q&15;var P=ta[V];if(V>3){var H=Ut[V];P+=Rn(n,u)&(1<<H)-1,u+=H;}if(u>w){l&&se(0);break}a&&d(f+131072);var Q=f+z;if(f<P){var fe=s-P,ot=Math.min(P,Q);for(fe+f<0&&se(3);f<ot;++f)t[f]=r[fe+f];}for(;f<Q;++f)t[f]=t[f-P];}}e.l=h,e.p=U,e.b=f,e.f=c,h&&(c=1,e.m=p,e.d=_,e.n=m);}while(!c);return f!=t.length&&o?Ct(t,0,f):t.subarray(0,f)},"inflt"),Se=g(function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8;},"wbits"),xt=g(function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8,n[r+2]|=t>>16;},"wbits16"),Mn=g(function(n,e){for(var t=[],r=0;r<n.length;++r)n[r]&&t.push({s:r,f:n[r]});var i=t.length,s=t.slice();if(!i)return {t:Vr,l:0};if(i==1){var o=new ee(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(N,k){return N.f-k.f}),t.push({s:-1,f:25001});var a=t[0],l=t[1],d=0,c=1,u=2;for(t[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=t[t[d].f<t[u].f?d++:u++],l=t[d!=c&&t[d].f<t[u].f?d++:u++],t[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var f=s[0].s,r=1;r<i;++r)s[r].s>f&&(f=s[r].s);var h=new ce(f+1),_=Wn(t[c-1],h,0);if(_>e){var r=0,p=0,m=_-e,w=1<<m;for(s.sort(function(k,x){return h[x.s]-h[k.s]||k.f-x.f});r<i;++r){var y=s[r].s;if(h[y]>e)p+=w-(1<<_-h[y]),h[y]=e;else break}for(p>>=m;p>0;){var b=s[r].s;h[b]<e?p-=1<<e-h[b]++-1:++r;}for(;r>=0&&p;--r){var v=s[r].s;h[v]==e&&(--h[v],++p);}_=e;}return {t:new ee(h),l:_}},"hTree"),Wn=g(function(n,e,t){return n.s==-1?Math.max(Wn(n.l,e,t+1),Wn(n.r,e,t+1)):e[n.s]=t},"ln"),Wr=g(function(n){for(var e=n.length;e&&!n[--e];);for(var t=new ce(++e),r=0,i=n[0],s=1,o=g(function(l){t[r++]=l;},"w"),a=1;a<=e;++a)if(n[a]==i&&a!=e)++s;else {if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0);}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0);}for(;s--;)o(i);s=1,i=n[a];}return {c:t.subarray(0,r),n:e}},"lc"),Nt=g(function(n,e){for(var t=0,r=0;r<e.length;++r)t+=n[r]*e[r];return t},"clen"),Jr=g(function(n,e,t){var r=t.length,i=Xn(e+2);n[i]=r&255,n[i+1]=r>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var s=0;s<r;++s)n[i+s+4]=t[s];return (i+4+r)*8},"wfblk"),zr=g(function(n,e,t,r,i,s,o,a,l,d,c){Se(e,c++,t),++i[256];for(var u=Mn(i,15),f=u.t,h=u.l,_=Mn(s,15),p=_.t,m=_.l,w=Wr(f),y=w.c,b=w.n,v=Wr(p),N=v.c,k=v.n,x=new ce(19),C=0;C<y.length;++C)++x[y[C]&31];for(var C=0;C<N.length;++C)++x[N[C]&31];for(var A=Mn(x,7),T=A.t,I=A.l,M=19;M>4&&!T[Bn[M-1]];--M);var B=d+5<<3,D=Nt(i,Me)+Nt(s,kt)+o,j=Nt(i,f)+Nt(s,p)+o+14+3*M+Nt(x,T)+2*x[16]+3*x[17]+7*x[18];if(l>=0&&B<=D&&B<=j)return Jr(e,c,n.subarray(l,l+d));var F,E,$,P;if(Se(e,c,1+(j<D)),c+=2,j<D){F=Ne(f,h,0),E=f,$=Ne(p,m,0),P=p;var O=Ne(T,I,0);Se(e,c,b-257),Se(e,c+5,k-1),Se(e,c+10,M-4),c+=14;for(var C=0;C<M;++C)Se(e,c+3*C,T[Bn[C]]);c+=3*M;for(var W=[y,N],U=0;U<2;++U)for(var X=W[U],C=0;C<X.length;++C){var z=X[C]&31;Se(e,c,O[z]),c+=T[z],z>15&&(Se(e,c,X[C]>>5&127),c+=X[C]>>12);}}else F=na,E=Me,$=ia,P=kt;for(var C=0;C<a;++C){var H=r[C];if(H>255){var z=H>>18&31;xt(e,c,F[z+257]),c+=E[z+257],z>7&&(Se(e,c,H>>23&31),c+=zt[z]);var q=H&31;xt(e,c,$[q]),c+=P[q],q>3&&(xt(e,c,H>>5&8191),c+=Ut[q]);}else xt(e,c,F[H]),c+=E[H];}return xt(e,c,F[256]),c+E[256]},"wblk"),la=new Hn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Vr=new ee(0),ca=g(function(n,e,t,r,i,s){var o=s.z||n.length,a=new ee(r+o+5*(1+Math.ceil(o/7e3))+i),l=a.subarray(r,a.length-i),d=s.l,c=(s.r||0)&7;if(e){c&&(l[0]=s.r>>3);for(var u=la[e-1],f=u>>13,h=u&8191,_=(1<<t)-1,p=s.p||new ce(32768),m=s.h||new ce(_+1),w=Math.ceil(t/3),y=2*w,b=g(function(Ve){return (n[Ve]^n[Ve+1]<<w^n[Ve+2]<<y)&_},"hsh"),v=new Hn(25e3),N=new ce(288),k=new ce(32),x=0,C=0,A=s.i||0,T=0,I=s.w||0,M=0;A+2<o;++A){var B=b(A),D=A&32767,j=m[B];if(p[D]=j,m[B]=D,I<=A){var F=o-A;if((x>7e3||T>24576)&&(F>423||!d)){c=zr(n,l,0,v,N,k,C,T,M,A-M,c),T=x=C=0,M=A;for(var E=0;E<286;++E)N[E]=0;for(var E=0;E<30;++E)k[E]=0;}var $=2,P=0,O=h,W=D-j&32767;if(F>2&&B==b(A-W))for(var U=Math.min(f,F)-1,X=Math.min(32767,A),z=Math.min(258,F);W<=X&&--O&&D!=j;){if(n[A+$]==n[A+$-W]){for(var H=0;H<z&&n[A+H]==n[A+H-W];++H);if(H>$){if($=H,P=W,H>U)break;for(var q=Math.min(W,H-2),V=0,E=0;E<q;++E){var Q=A-W+E&32767,fe=p[Q],ot=Q-fe&32767;ot>V&&(V=ot,j=Q);}}}D=j,j=p[D],W+=D-j&32767;}if(P){v[T++]=268435456|Fn[$]<<18|Lr[P];var Re=Fn[$]&31,at=Lr[P]&31;C+=zt[Re]+Ut[at],++N[257+Re],++k[at],I=A+$,++x;}else v[T++]=n[A],++N[n[A]];}}for(A=Math.max(A,I);A<o;++A)v[T++]=n[A],++N[n[A]];c=zr(n,l,d,v,N,k,C,T,M,A-M,c),d||(s.r=c&7|l[c/8|0]<<3,c-=7,s.h=m,s.p=p,s.i=A,s.w=I);}else {for(var A=s.w||0;A<o+d;A+=65535){var he=A+65535;he>=o&&(l[c/8|0]=d,he=o),c=Jr(l,c+1,n.subarray(A,he));}s.i=o;}return Ct(a,0,r+Xn(c)+i)},"dflt"),da=(function(){for(var n=new Int32Array(256),e=0;e<256;++e){for(var t=e,r=9;--r;)t=(t&1&&-306674912)^t>>>1;n[e]=t;}return n})(),ua=g(function(){var n=-1;return {p:g(function(e){for(var t=n,r=0;r<e.length;++r)t=da[t&255^e[r]]^t>>>8;n=t;},"p"),d:g(function(){return ~n},"d")}},"crc");var fa=g(function(n,e,t,r,i){if(!i&&(i={l:1},e.dictionary)){var s=e.dictionary.subarray(-32768),o=new ee(s.length+n.length);o.set(s),o.set(n,s.length),n=o,i.w=s.length;}return ca(n,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,t,r,i)},"dopt"),Qr=g(function(n,e){var t={};for(var r in n)t[r]=n[r];for(var r in e)t[r]=e[r];return t},"mrg");var xe=g(function(n,e){return n[e]|n[e+1]<<8},"b2"),pe=g(function(n,e){return (n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24)>>>0},"b4"),jn=g(function(n,e){return pe(n,e)+pe(n,e+4)*4294967296},"b8"),re=g(function(n,e,t){for(;t;++e)n[e]=t,t>>>=8;},"wbytes");function ha(n,e){return fa(n,e||{},0,0)}g(ha,"deflateSync");function pa(n,e){return aa(n,{i:2},e&&e.out,e&&e.dictionary)}g(pa,"inflateSync");var Zr=g(function(n,e,t,r){for(var i in n){var s=n[i],o=e+i,a=r;Array.isArray(s)&&(a=Qr(r,s[1]),s=s[0]),ArrayBuffer.isView(s)?t[o]=[s,a]:(t[o+="/"]=[new ee(0),a],Zr(s,o,t,r));}},"fltn"),Ur=typeof TextEncoder<"u"&&new TextEncoder,zn=typeof TextDecoder<"u"&&new TextDecoder,_a=0;try{zn.decode(Vr,{stream:!0}),_a=1;}catch{}var ma=g(function(n){for(var e="",t=0;;){var r=n[t++],i=(r>127)+(r>223)+(r>239);if(t+i>n.length)return {s:e,r:Ct(n,t-1)};i?i==3?(r=((r&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,e+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?e+=String.fromCharCode((r&31)<<6|n[t++]&63):e+=String.fromCharCode((r&15)<<12|(n[t++]&63)<<6|n[t++]&63):e+=String.fromCharCode(r);}},"dutf8");function Wt(n,e){if(e){for(var t=new ee(n.length),r=0;r<n.length;++r)t[r]=n.charCodeAt(r);return t}if(Ur)return Ur.encode(n);for(var i=n.length,s=new ee(n.length+(n.length>>1)),o=0,a=g(function(c){s[o++]=c;},"w"),r=0;r<i;++r){if(o+5>s.length){var l=new ee(o+8+(i-r<<1));l.set(s),s=l;}var d=n.charCodeAt(r);d<128||e?a(d):d<2048?(a(192|d>>6),a(128|d&63)):d>55295&&d<57344?(d=65536+(d&1047552)|n.charCodeAt(++r)&1023,a(240|d>>18),a(128|d>>12&63),a(128|d>>6&63),a(128|d&63)):(a(224|d>>12),a(128|d>>6&63),a(128|d&63));}return Ct(s,0,o)}g(Wt,"strToU8");function Qe(n,e){if(e){for(var t="",r=0;r<n.length;r+=16384)t+=String.fromCharCode.apply(null,n.subarray(r,r+16384));return t}else {if(zn)return zn.decode(n);var i=ma(n),s=i.s,t=i.r;return t.length&&se(8),s}}g(Qe,"strFromU8");var ga=g(function(n,e){return e+30+xe(n,e+26)+xe(n,e+28)},"slzh"),wa=g(function(n,e,t){var r=xe(n,e+28),i=xe(n,e+30),s=Qe(n.subarray(e+46,e+46+r),!(xe(n,e+8)&2048)),o=e+46+r,a=ya(n,o,i,t,pe(n,e+20),pe(n,e+24),pe(n,e+42)),l=a[0],d=a[1],c=a[2];return [xe(n,e+10),l,d,s,o+i+xe(n,e+32),c]},"zh"),ya=g(function(n,e,t,r,i,s,o){var a=i==4294967295,l=s==4294967295,d=o==4294967295,c=e+t,u=a+l+d;if(r&&u){for(;e+4<c;e+=4+xe(n,e+2))if(xe(n,e)==1)return [a?jn(n,e+4+8*l):i,l?jn(n,e+4):s,d?jn(n,e+4+8*(l+a)):o,1];r<2&&se(13);}return [i,s,o,0]},"z64hs"),Un=g(function(n){var e=0;if(n)for(var t in n){var r=n[t].length;r>65535&&se(9),e+=r+4;}return e},"exfl"),Hr=g(function(n,e,t,r,i,s,o,a){var l=r.length,d=t.extra,c=a&&a.length,u=Un(d);re(n,e,o!=null?33639248:67324752),e+=4,o!=null&&(n[e++]=20,n[e++]=t.os),n[e]=20,e+=2,n[e++]=t.flag<<1|(s<0&&8),n[e++]=i&&8,n[e++]=t.compression&255,n[e++]=t.compression>>8;var f=new Date(t.mtime==null?Date.now():t.mtime),h=f.getFullYear()-1980;if((h<0||h>119)&&se(10),re(n,e,h<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),e+=4,s!=-1&&(re(n,e,t.crc),re(n,e+4,s<0?-s-2:s),re(n,e+8,t.size)),re(n,e+12,l),re(n,e+14,u),e+=16,o!=null&&(re(n,e,c),re(n,e+6,t.attrs),re(n,e+10,o),e+=14),n.set(r,e),e+=l,u)for(var _ in d){var p=d[_],m=p.length;re(n,e,+_),re(n,e+2,m),n.set(p,e+4),e+=4+m;}return c&&(n.set(a,e),e+=c),e},"wzh"),va=g(function(n,e,t,r,i){re(n,e,101010256),re(n,e+8,t),re(n,e+10,t),re(n,e+12,r),re(n,e+16,i);},"wzf");function Kr(n,e){e||(e={});var t={},r=[];Zr(n,"",t,e);var i=0,s=0;for(var o in t){var a=t[o],l=a[0],d=a[1],c=d.level==0?0:8,u=Wt(o),f=u.length,h=d.comment,_=h&&Wt(h),p=_&&_.length,m=Un(d.extra);f>65535&&se(11);var w=c?ha(l,d):l,y=w.length,b=ua();b.p(l),r.push(Qr(d,{size:l.length,crc:b.d(),c:w,f:u,m:_,u:f!=o.length||_&&h.length!=p,o:i,compression:c})),i+=30+f+m+y,s+=76+2*(f+m)+(p||0)+y;}for(var v=new ee(s+22),N=i,k=s-i,x=0;x<r.length;++x){var u=r[x];Hr(v,u.o,u,u.f,u.u,u.c.length);var C=30+u.f.length+Un(u.extra);v.set(u.c,u.o+C),Hr(v,i,u,u.f,u.u,u.c.length,u.o,u.m),i+=16+C+(u.m?u.m.length:0);}return va(v,i,r.length,k,N),v}g(Kr,"zipSync");function ct(n,e){for(var t={},r=n.length-22;pe(n,r)!=101010256;--r)(!r||n.length-r>65558)&&se(13);var i=xe(n,r+8);if(!i)return {};var s=pe(n,r+16),o=pe(n,r-20)==117853008;if(o){var a=pe(n,r-12);o=pe(n,a)==101075792,o&&(i=pe(n,a+32),s=pe(n,a+48));}for(var l=e&&e.filter,d=0;d<i;++d){var c=wa(n,s,o),u=c[0],f=c[1],h=c[2],_=c[3],p=c[4],m=c[5],w=ga(n,m);s=p,(!l||l({name:_,size:f,originalSize:h,compression:u}))&&(u?u==8?t[_]=pa(n.subarray(w,w+f),{out:new ee(h)}):se(14,"unknown compression type "+u):t[_]=Ct(n,w,w+f));}return t}g(ct,"unzipSync");var _s=Lt(Ht()),js=Lt(Ht());var kr=Lt(Ht());var Ke=1,ur=3,fr=4,Yi=8,hr=9,Gi=class{static{g(this,"FastNode");}nodeType=0;parentNode=null;ownerDocument=null;get firstChild(){return null}get lastChild(){return null}get nextSibling(){let n=this.parentNode;if(!n)return null;let e=n.childNodes,t=e.indexOf(this);return t>=0&&t+1<e.length?e[t+1]:null}get previousSibling(){let n=this.parentNode;if(!n)return null;let e=n.childNodes,t=e.indexOf(this);return t>0?e[t-1]:null}},Mt=class Ji extends Gi{static{g(this,"_FastText");}constructor(e){super(),this.data=e;}data;nodeType=ur;get nodeName(){return "#text"}get nodeValue(){return this.data}set nodeValue(e){this.data=e;}get textContent(){return this.data}set textContent(e){this.data=e,this.ownerDocument&&this.ownerDocument._inc++;}cloneNode(e){let t=new Ji(this.data);return t.ownerDocument=this.ownerDocument,t}toString(){return hn(this)}},Vi=class Qi extends Mt{static{g(this,"_FastComment");}nodeType=Yi;cloneNode(e){let t=new Qi(this.data);return t.ownerDocument=this.ownerDocument,t}},ba=class Zi extends Mt{static{g(this,"_FastCData");}nodeType=fr;cloneNode(e){let t=new Zi(this.data);return t.ownerDocument=this.ownerDocument,t}},Ki=class extends Gi{static{g(this,"FastParent");}childNodes=[];get firstChild(){return this.childNodes.length?this.childNodes[0]:null}get lastChild(){return this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}hasChildNodes(){return this.childNodes.length>0}bump(){let n=this.nodeType===hr?this:this.ownerDocument;n&&n._inc++;}appendChild(n){return n.parentNode&&n.parentNode.removeChild(n),this.childNodes.push(n),n.parentNode=this,this.bump(),n}insertBefore(n,e){if(!e)return this.appendChild(n);if(this.childNodes.indexOf(e)<0)throw new Error("insertBefore: reference node not a child");n.parentNode&&n.parentNode.removeChild(n);let r=this.childNodes.indexOf(e);return this.childNodes.splice(r,0,n),n.parentNode=this,this.bump(),n}removeChild(n){let e=this.childNodes.indexOf(n);if(e<0)throw new Error("removeChild: node is not a child");return this.childNodes.splice(e,1),n.parentNode=null,this.bump(),n}replaceChild(n,e){if(this.childNodes.indexOf(e)<0)throw new Error("replaceChild: node is not a child");n.parentNode&&n.parentNode.removeChild(n);let r=this.childNodes.indexOf(e);return this.childNodes[r]=n,n.parentNode=this,e.parentNode=null,this.bump(),e}getElementsByTagName(n){let e=[],t=n==="*",r=[];for(let i=this.childNodes.length-1;i>=0;i--)r.push(this.childNodes[i]);for(;r.length;){let i=r.pop();if(i.nodeType===Ke){let s=i;(t||s.tagName===n)&&e.push(s);for(let o=s.childNodes.length-1;o>=0;o--)r.push(s.childNodes[o]);}}return e}},es=class ts extends Ki{static{g(this,"_FastElement");}constructor(e){super(),this.tagName=e;}tagName;nodeType=Ke;attrs=[];get nodeName(){return this.tagName}get localName(){let e=this.tagName.indexOf(":");return e<0?this.tagName:this.tagName.slice(e+1)}get prefix(){let e=this.tagName.indexOf(":");return e<0?null:this.tagName.slice(0,e)}get nodeValue(){return null}get attributes(){let e=this.attrs.map(([t,r])=>({nodeType:2,name:t,value:r,nodeName:t,nodeValue:r,localName:t.indexOf(":")<0?t:t.slice(t.indexOf(":")+1),prefix:t.indexOf(":")<0?null:t.slice(0,t.indexOf(":")),ownerElement:this}));return e.item=t=>e[t]??null,e}toString(){return hn(this)}getAttribute(e){let t=this.attrs;for(let r=0;r<t.length;r++)if(t[r][0]===e)return t[r][1];return null}hasAttribute(e){return this.getAttribute(e)!==null}setAttribute(e,t){let r=this.attrs;for(let i=0;i<r.length;i++)if(r[i][0]===e){r[i][1]=String(t),this.ownerDocument&&this.ownerDocument._inc++;return}r.push([e,String(t)]),this.ownerDocument&&this.ownerDocument._inc++;}removeAttribute(e){let t=this.attrs;for(let r=0;r<t.length;r++)if(t[r][0]===e){t.splice(r,1),this.ownerDocument&&this.ownerDocument._inc++;return}}get textContent(){let e="",t=[];for(let r=this.childNodes.length-1;r>=0;r--)t.push(this.childNodes[r]);for(;t.length;){let r=t.pop();if(r.nodeType===ur||r.nodeType===fr)e+=r.data;else if(r.nodeType===Ke){let i=r;for(let s=i.childNodes.length-1;s>=0;s--)t.push(i.childNodes[s]);}}return e}set textContent(e){for(let t of this.childNodes)t.parentNode=null;if(this.childNodes.length=0,e!==""&&e!==null&&e!==void 0){let t=new Mt(String(e));t.ownerDocument=this.ownerDocument,t.parentNode=this,this.childNodes.push(t);}this.ownerDocument&&this.ownerDocument._inc++;}cloneNode(e=false){let t=new ts(this.tagName);if(t.ownerDocument=this.ownerDocument,this.attrs.length&&(t.attrs=this.attrs.map(([r,i])=>[r,i])),e)for(let r of this.childNodes){let i=r.cloneNode(true);i.parentNode=t,t.childNodes.push(i);}return t}},xa=class extends Ki{static{g(this,"FastDocument");}nodeType=hr;_inc=1;documentElement=null;get nodeName(){return "#document"}createElement(n){let e=new es(n);return e.ownerDocument=this,e}createElementNS(n,e){return this.createElement(e)}createTextNode(n){let e=new Mt(String(n));return e.ownerDocument=this,e}createComment(n){let e=new Vi(String(n));return e.ownerDocument=this,e}toString(){return hn(this)}appendChild(n){let e=super.appendChild(n);return n.nodeType===Ke&&(this.documentElement=n),e}replaceChild(n,e){let t=super.replaceChild(n,e);return e===this.documentElement&&n.nodeType===Ke&&(this.documentElement=n),t}},Na=/&(?:amp|lt|gt|quot|apos|#x?[0-9a-fA-F]+);/g;function ns(n){return n.indexOf("&")<0?n:n.replace(Na,e=>{switch(e){case "&amp;":return "&";case "&lt;":return "<";case "&gt;":return ">";case "&quot;":return '"';case "&apos;":return "'";default:{let t=e.slice(2,-1),r=t[0]==="x"||t[0]==="X"?parseInt(t.slice(1),16):parseInt(t,10);return Number.isFinite(r)?String.fromCodePoint(r):e}}})}g(ns,"decodeEntities");function Kn(n){return n.indexOf("\r")<0?n:n.replace(/\r\n?/g,`
@@ -93,7 +93,7 @@ ${l}`:l);}else s=[...r];let o=s.length;return {pages:s.map((l,d)=>({page:d+1,tot
93
93
  ${d}`,l++;else break}e.push([a,i]),t=l;}return e}g(ic,"_merge_footnote_sections");function sc(n){if(!n.length)return [[""],[0]];let e=[],t=[],r=[],i=0,s=-1,o=g(()=>{r.length>0&&(e.push(r.join(`
94
94
 
95
95
  `)),t.push(s)),r=[],i=0,s=-1;},"flush_current");for(let[a,l,d]of n){let c=a.length,u=c+(r.length>0?2:0);if(r.length>0&&i+u>vi&&o(),r.length===0&&c>vi){e.push(a),t.push(l);continue}r.length===0&&(s=l),r.push(a),i+=i>0?u:c,d&&o();}return o(),e.length?[e,t]:[[""],[0]]}g(sc,"_assemble_pages");function xi(n){let e=[...n.matchAll(tc)];return new Set(e.map(r=>r[1])).size}g(xi,"_count_tracked_changes");var oc=5,Ni=50;function ac(n,e,t,r){let i=r.length;if(i<2)throw new Error(`format_ambiguity_error requires at least 2 matches, got ${i}`);let s=r.slice(0,oc),o=i-s.length,a=[`- Edit ${n} Failed: Ambiguous match. Target text appears ${i} times. First ${s.length} occurrences:`];for(let l=0;l<s.length;l++){let[d,c]=s[l],u=Math.max(0,d-Ni),f=Math.min(t.length,c+Ni),h=t.substring(u,d).replace(/\n/g," "),_=t.substring(c,f).replace(/\n/g," "),p=t.substring(d,c).replace(/\n/g," ");p.length>50&&(p=p.substring(0,25)+"..."+p.substring(p.length-20));let m=u>0?"...":"",w=f<t.length?"...":"";a.push(` ${l+1}. "${m}${h}[${p}]${_}${w}"`);}return o>0&&a.push(` ... and ${o} more occurrence(s) not shown.`),a.push(" To resolve, re-send this edit using ONE of these strategies:"),a.push(' 1. RECOMMENDED: Provide more surrounding context in your target_text to uniquely identify a single location (keep the default "match_mode": "strict").'),a.push(` 2. Set "match_mode": "all" to modify ALL ${i} occurrences \u2014 only after verifying from the occurrence list above that EVERY occurrence should change.`),a.push(' 3. Set "match_mode": "first" to modify only the FIRST occurrence \u2014 only after verifying the first occurrence above is the one you intend to change.'),a.join(`
96
- `)}g(ac,"format_ambiguity_error");var lc="4.0.0";function ne(n,e){let t=[],r=n.getElementsByTagName("*");for(let i=0;i<r.length;i++){let s=r[i].tagName;(s===e||s.endsWith(":"+e))&&t.push(r[i]);}return t}g(ne,"findDescendantsByLocalName");function cc(n){let e=0;function t(o,a){let l=o?o.toString():"",d=a?a.toString():"";return l===d}g(t,"areRunsIdentical");function r(o){let a=["w:t","w:tab","w:br","w:cr","w:delText","w:rPr"];for(let l=0;l<o.childNodes.length;l++){let d=o.childNodes[l];if(d.nodeType===1){let c=d.tagName;if(!a.includes(c))return true}}return false}g(r,"hasSpecialContent");function i(o){let a=Array.from(o.childNodes).filter(d=>d.nodeType===1),l=0;for(;l<a.length-1;){let d=a[l],c=a[l+1];if(d.tagName==="w:r"&&c.tagName==="w:r"&&!r(d)&&!r(c)){let u=S(d,"w:rPr"),f=S(c,"w:rPr");if(t(u,f)){let h=null;for(let p=0;p<d.childNodes.length;p++){let m=d.childNodes[p];m.nodeType===1&&(m.tagName==="w:t"||m.tagName==="w:delText")&&(h=m);}let _=Array.from(c.childNodes).filter(p=>p.nodeType===1);for(let p of _)if(p.tagName!=="w:rPr")if((p.tagName==="w:t"||p.tagName==="w:delText")&&h&&h.tagName===p.tagName){let m=h.textContent||"",w=p.textContent||"",y=m+w;h.textContent=y,y.trim()!==y&&h.setAttribute("xml:space","preserve");}else d.appendChild(p),(p.tagName==="w:t"||p.tagName==="w:delText")&&(h=p);o.removeChild(c),a.splice(l+1,1),e++;continue}}["w:ins","w:del","w:hyperlink","w:sdt","w:smartTag","w:fldSimple","w:sdtContent"].includes(d.tagName)&&i(d),l++;}if(a.length>0){let d=a[a.length-1];["w:ins","w:del","w:hyperlink","w:sdt","w:smartTag","w:fldSimple","w:sdtContent"].includes(d.tagName)&&i(d);}}g(i,"coalesceContainer");let s=R(n.element,"w:p");for(let o of s)i(o);return e?[`Adjacent identical runs coalesced: ${e}`]:[]}g(cc,"coalesce_runs");function dc(n){let e=0,t=["w:rsidR","w:rsidRPr","w:rsidRDefault","w:rsidP","w:rsidDel","w:rsidSect","w:rsidTr"],r=n.element.getElementsByTagName("*");for(let s=0;s<r.length;s++)for(let o of t)r[s].hasAttribute(o)&&(r[s].removeAttribute(o),e++);let i=R(n.element,"w:rsids");for(let s of i)s.parentNode&&(s.parentNode.removeChild(s),e++);return e?[`rsid attributes: ${e} removed`]:[]}g(dc,"strip_rsid");function uc(n){let e=0,t=["w14:paraId","w14:textId"],r=n.element.getElementsByTagName("*");for(let i=0;i<r.length;i++)for(let s of t)r[i].hasAttribute(s)&&(r[i].removeAttribute(s),e++);return e?[`Paragraph/text IDs: ${e} removed`]:[]}g(uc,"strip_para_ids");function fc(n){let e=R(n.element,"w:proofErr");return e.forEach(t=>t.parentNode?.removeChild(t)),e.length?[`Spell check markers: ${e.length} removed`]:[]}g(fc,"strip_proof_errors");function hc(n){let e=0;for(let t of ["w:rPr","w:pPr"]){let r=R(n.element,t);for(let i of r)(i.childNodes.length===0||i.childNodes.length===1&&i.childNodes[0].nodeType===3&&!i.childNodes[0].textContent?.trim())&&(i.parentNode?.removeChild(i),e++);}return e?[`Empty property elements: ${e} removed`]:[]}g(hc,"strip_empty_properties");function pc(n){let e=0,t=R(n.element,"w:rPr");for(let r of t)if(S(r,"w:vanish")||S(r,"w:webHidden")){let i=r.parentNode;i&&i.tagName==="w:r"&&i.parentNode&&(i.parentNode.removeChild(i),e++);}return e?[`Hidden text runs: ${e} removed`]:[]}g(pc,"strip_hidden_text");function ki(n){let e=R(n.element,"w:ins").length,t=R(n.element,"w:del").length,r=R(n.element,"w:rPrChange").length+R(n.element,"w:pPrChange").length+R(n.element,"w:sectPrChange").length;return [e,t,r]}g(ki,"count_tracked_changes");function _c(n){let e=new Set;for(let t of ["w:ins","w:del","w:rPrChange","w:pPrChange","w:sectPrChange"])for(let r of R(n.element,t)){let i=r.getAttribute("w:author");i&&e.add(i);}return e}g(_c,"get_track_change_authors");function Ci(n){let e=[],t=R(n,"w:t");for(let i of t)i.textContent&&e.push(i.textContent);let r=R(n,"w:delText");for(let i of r)i.textContent&&e.push(i.textContent);return e.join("")}g(Ci,"_getElementText");function He(n,e=60){let t=n.replace(/\n/g," ").trim();return t.length<=e?t:t.substring(0,e-3)+"..."}g(He,"_truncate");function Ei(n){let e=n.parentNode;if(e&&e.tagName==="w:rPr"){let t=e.parentNode;if(t&&t.tagName==="w:pPr")return "(paragraph mark)"}return e&&e.tagName==="w:trPr"?"(table row)":"(no visible text)"}g(Ei,"_describe_textless_revision");function mc(n){let e=[],t=R(n.element,"w:ins"),r=R(n.element,"w:del");for(let o of t){let a=Ci(o).trim();a?e.push(` Accepted insertion: "${He(a,60)}"`):e.push(` Accepted insertion: ${Ei(o)}`);}for(let o of r){let a=Ci(o).trim();a?e.push(` Accepted deletion of: "${He(a,60)}"`):e.push(` Accepted deletion of: ${Ei(o)}`);}new Ft(n).accept_all_revisions();for(let o of ["w:rPrChange","w:pPrChange","w:sectPrChange"])for(let a of R(n.element,o))a.parentNode?.removeChild(a);let s=t.length+r.length;return s?[`Tracked changes auto-accepted: ${s}`].concat(e):[]}g(mc,"accept_all_tracked_changes");function Jt(n){let e=We(n.pkg),t=[],r=0,i=0;for(let[s,o]of Object.entries(e))o.resolved?i++:r++,t.push({id:s,...o});return {total:t.length,open:r,resolved:i,comments:t}}g(Jt,"get_comments_summary");function gc(n){let e=We(n.pkg),t=Object.keys(e);if(t.length===0)return [];let r=[],i=new Dt(n);for(let[l,d]of Object.entries(e)){let c=d.resolved?"[Resolved]":"[Open]";r.push(` ${c} "${He(d.text||"",60)}" (${d.author||"Unknown"})`),i.deleteComment(l);}for(let l of ["w:commentRangeStart","w:commentRangeEnd"])for(let d of R(n.element,l))d.parentNode?.removeChild(d);let s=R(n.element,"w:commentReference");for(let l of s){let d=l.parentNode;d&&((d.tagName==="w:r"||d.tagName.endsWith(":r"))&&Array.from(d.childNodes).filter(u=>u.nodeType===1&&u.tagName!=="w:rPr"&&u.tagName!=="rPr").length<=1?d.parentNode?.removeChild(d):d.removeChild(l));}let o=Object.values(e).filter(l=>l.resolved).length,a=Object.values(e).filter(l=>!l.resolved).length;return [`Comments removed: ${t.length} (${o} resolved, ${a} open)`].concat(r)}g(gc,"remove_all_comments");function wc(n){let e=n.pkg,t=new Set;for(let i of e.parts)if(i.partname.toLowerCase().includes("comments")){t.add(i.partname);let s=i.partname.startsWith("/")?i.partname:"/"+i.partname,o=i.partname.startsWith("/")?i.partname.substring(1):i.partname;t.add(s),t.add(o);}if(t.size===0)return;for(let i of e.parts)if(i.partname.endsWith(".rels")){let s=R(i._element,"Relationship"),o=[];for(let a of s)if((a.getAttribute("Target")||"").toLowerCase().includes("comments")){o.push(a);let d=i.partname.replace("/_rels/","/").replace(".rels",""),c=e.getPartByPath(d);if(c){let u=a.getAttribute("Id");u&&c.rels.delete(u);}}for(let a of o)a.parentNode?.removeChild(a);}let r=e.getPartByPath("[Content_Types].xml");if(r){let i=R(r._element,"Override"),s=[];for(let o of i){let a=o.getAttribute("PartName")||"";(t.has(a)||a.toLowerCase().includes("comments"))&&s.push(o);}for(let o of s)o.parentNode?.removeChild(o);}e.parts=e.parts.filter(i=>!i.partname.toLowerCase().includes("comments"));for(let i of Object.keys(e.unzipped))i.toLowerCase().includes("comments")&&delete e.unzipped[i];}g(wc,"eject_comment_parts");function yc(n,e){let t=new Dt(n);if(!t.commentsPart)return [];let r=new Set,i=R(t.commentsPart._element,"w:comment");for(let s of i){let o=s.getAttribute("w:author");if(o&&(r.add(o),s.setAttribute("w:author",e)),s.hasAttribute("w:initials")){let a=e.split(" ").filter(Boolean).map(l=>l[0]).join("").toUpperCase();s.setAttribute("w:initials",a);}}return r.size?[`Comment authors replaced: ${Array.from(r).sort().join(", ")} \u2192 "${e}"`]:[]}g(yc,"replace_comment_authors");function vc(n,e){let t=new Set;for(let r of ["w:ins","w:del","w:rPrChange","w:pPrChange"])for(let i of R(n.element,r)){let s=i.getAttribute("w:author");s&&(t.add(s),i.setAttribute("w:author",e));}return t.size?[`Track change authors replaced: ${Array.from(t).sort().join(", ")} \u2192 "${e}"`]:[]}g(vc,"replace_change_authors");function bc(n){let e=0,t="2025-01-01T00:00:00Z";for(let r of ["w:ins","w:del","w:rPrChange","w:pPrChange"])for(let i of R(n.element,r))i.hasAttribute("w:date")&&(i.setAttribute("w:date",t),e++);return e?[`Track change timestamps: ${e} normalized`]:[]}g(bc,"normalize_change_dates");function xc(n){let e=0,t="2025-01-01T00:00:00Z";for(let r of n.pkg.parts)if(r.contentType.includes("comments")){for(let i of R(r._element,"w:comment"))i.hasAttribute("w:date")&&(i.setAttribute("w:date",t),e++);for(let i of R(r._element,"w16cex:commentExtensible"))i.hasAttribute("w16cex:dateUtc")&&(i.setAttribute("w16cex:dateUtc",t),e++);}return e?[`Comment timestamps: ${e} normalized`]:[]}g(xc,"normalize_comment_dates");function Nc(n){let e=[],t=n.pkg.getPartByPath("docProps/core.xml");if(t){ne(t._element,"creator").forEach(d=>{d.textContent&&(e.push(`Author: ${d.textContent}`),d.textContent="");}),ne(t._element,"lastModifiedBy").forEach(d=>{d.textContent&&(e.push(`Last modified by: ${d.textContent}`),d.textContent="");}),ne(t._element,"title").forEach(d=>{d.textContent&&e.push(`Title kept (review manually): "${d.textContent}"`);});let a=[["category","Category"],["keywords","Keywords"],["subject","Subject"],["contentStatus","Content status"],["description","Description/comments"],["identifier","Identifier"],["language","Language"],["version","Version"]];for(let[d,c]of a)ne(t._element,d).forEach(u=>{u.textContent&&(e.push(`${c}: ${u.textContent}`),u.textContent="");});ne(t._element,"revision").forEach(d=>{d.textContent&&parseInt(d.textContent)>1&&(e.push(`Revision count: ${d.textContent} \u2192 1`),d.textContent="1");});}let r=n.pkg.getPartByPath("docProps/app.xml");if(r){let i=r._element,s=["TotalTime","Words","Characters","Paragraphs","Lines","CharactersWithSpaces"];for(let a of s)ne(i,a).forEach(l=>{l.textContent&&l.textContent!=="0"&&(a==="TotalTime"&&e.push(`Total editing time: ${l.textContent} minutes`),l.textContent="0");});let o=["Template","Manager","Company"];for(let a of o)ne(i,a).forEach(l=>{l.textContent&&(e.push(`${a}: ${l.textContent}`),l.textContent="");});}return e.length?["Metadata scrubbed:",...e.map(i=>` ${i}`)]:[]}g(Nc,"scrub_doc_properties");function kc(n){let e=false,t="1970-01-01T00:00:00Z",r=n.pkg.getPartByPath("docProps/core.xml");if(r)for(let i of ["created","modified","lastPrinted"])ne(r._element,i).forEach(s=>{s.textContent&&s.textContent!==t&&(s.textContent=t,e=true);});return e?["Timestamps normalized to epoch"]:[]}g(kc,"scrub_timestamps");function Us(n,e,t){let r=n.pkg,i=g(o=>o.startsWith("/")?o.substring(1):o,"normalized");for(let o of r.parts){if(!o.partname.endsWith(".rels"))continue;let a=[];for(let l of R(o._element,"Relationship")){let d=l.getAttribute("Target")||"";if(t(d)){a.push(l);let c=o.partname.replace("/_rels/","/").replace(".rels",""),u=r.getPartByPath(c);if(u){let f=l.getAttribute("Id");f&&u.rels.delete(f);}}}a.forEach(l=>l.parentNode?.removeChild(l));}let s=r.getPartByPath("[Content_Types].xml");if(s){let o=[];for(let a of R(s._element,"Override")){let l=a.getAttribute("PartName")||"";e(i(l))&&o.push(a);}o.forEach(a=>a.parentNode?.removeChild(a));}r.parts=r.parts.filter(o=>!e(i(o.partname)));for(let o of Object.keys(r.unzipped))e(i(o))&&delete r.unzipped[o];}g(Us,"ejectPackageMembers");function Cc(n){let e=g(i=>i.startsWith("customXml/"),"isCustomXml"),t=n.pkg.parts.filter(i=>e(i.partname.startsWith("/")?i.partname.substring(1):i.partname)),r=Object.keys(n.pkg.unzipped).filter(e);if(t.length===0&&r.length===0)return [];Us(n,e,i=>i.includes("customXml"));for(let i of R(n.element,"w:sdtPr"))pn(i,"w:dataBinding").forEach(s=>i.removeChild(s));return [`Custom XML parts: ${Math.max(t.length,r.length)} removed`]}g(Cc,"strip_custom_xml");var Qn="docProps/custom.xml";function Ec(n){let e=n.pkg.getPartByPath(Qn),t=Object.keys(n.pkg.unzipped).includes(Qn);if(!e&&!t)return [];let r=[];if(e)for(let s of ne(e._element,"property")){let o=s.getAttribute("name")||"(unnamed)",a=(s.textContent||"").trim();r.push(` Custom property removed: ${o} = "${He(a,60)}"`);}return Us(n,s=>s===Qn,s=>s.includes("docProps/custom.xml")),[`Custom document properties: ${Math.max(r.length,1)} removed (docProps/custom.xml)`].concat(r)}g(Ec,"strip_custom_properties");function Ac(n){let e=n.pkg.getPartByPath("word/settings.xml");if(!e)return [];let t=[],r=false;for(let s of ne(e._element,"docVars")){for(let o of Array.from(s.childNodes)){let a=o,l=a.tagName||"";(l==="docVar"||l.endsWith(":docVar"))&&t.push(a.getAttribute("w:name")||a.getAttribute("name")||"(unnamed)");}s.parentNode?.removeChild(s),r=true;}for(let s of ne(e._element,"docVar"))t.push(s.getAttribute("w:name")||s.getAttribute("name")||"(unnamed)"),s.parentNode?.removeChild(s),r=true;if(!r)return [];let i=Array.from(new Set(t)).sort().join(", ")||"(unnamed)";return [`Document variables: ${t.length} removed (${i})`]}g(Ac,"strip_document_variables");function Pc(n){let e=0;for(let t of ne(n.element,"docPr")){let r=t.getAttribute("descr");if(r){let i=r.length<10,s=r.includes(".")&&r.length<60;(i||s)&&(t.removeAttribute("descr"),e++);}}return e?[`Image alt text: ${e} auto-generated descriptions removed`]:[]}g(Pc,"strip_image_alt_text");function Tc(n){let e=[],t=new Set;for(let r of n.pkg.parts){let i=String(r.partname),s;if(i.startsWith("/word/header"))s="header";else if(i.startsWith("/word/footer"))s="footer";else if(i==="/word/document.xml")s="body";else continue;let o;try{o=ne(r._element,"textpath");}catch{continue}for(let a of o){let l=(a.getAttribute("string")||"").trim(),d=`${s}${l}`;if(t.has(d))continue;t.add(d);let c=l?`"${He(l,60)}"`:"(no text)";e.push(`Watermark-like text object in ${s}: ${c} \u2014 NOT removed. It remains in the document package and may render in other applications; review and remove it in Word if it must not reach the counterparty.`);}}return e}g(Tc,"detect_watermarks");function Sc(n){let e=["sharepoint.com","onedrive.com",".internal","intranet","localhost","10.","192.168.","172.16."],t=[],r=n.pkg.getOrCreateRelsPart(n.part.partname);for(let i of R(r._element,"Relationship"))if(i.getAttribute("TargetMode")==="External"){let s=i.getAttribute("Target")||"";for(let o of e)if(s.toLowerCase().includes(o.toLowerCase())){t.push(`Hyperlink targets internal URL: ${He(s,80)}`);break}}return t}g(Sc,"audit_hyperlinks");var $c="word/settings.xml",Ic=new Set(["readOnly","forms","comments","trackedChanges"]),Oc={readOnly:"read-only",forms:"fill-in-forms",comments:"comments-only",trackedChanges:"tracked-changes-only"},Et=Object.freeze({edit:null,enforced:false});function xn(n){return n.edit!==null&&n.enforced}g(xn,"isProtectionActive");function Pr(n){return n.edit===null?"unprotected":`${Oc[n.edit]??n.edit}, ${n.enforced?"enforced":"not enforced"}`}g(Pr,"describeProtection");function Dc(n){return n==null?true:!["0","false","off"].includes(n.toLowerCase())}g(Dc,"isTruthy");function Nn(n){let e=null;try{let s=n?.pkg?.getPartByPath?.($c);if(!s?._element)return Et;e=ne(s._element,"documentProtection")[0]??null;}catch{return Et}if(!e)return Et;let t=null,r=null,i=e.attributes;if(i)for(let s=0;s<i.length;s++){let o=i[s],a=(o.name??"").split(":").pop()??"";a==="edit"?t=o.value:a==="enforcement"&&(r=o.value);}return t===null||!Ic.has(t)?Et:{edit:t,enforced:Dc(r)}}g(Nn,"readDocumentProtection");var kn="ignore_control_locks",St="ignore_document_protection",Tr="allow_untracked_writes",st=Object.freeze({ignore_control_locks:false,ignore_document_protection:false,allow_untracked_writes:false});function Rc(n){return n.ignore_control_locks||n.ignore_document_protection||n.allow_untracked_writes}g(Rc,"anyOverrideUsed");function ye(n){let e=[`CC:${n.ordinal}`];return n.alias&&e.push(`"${n.alias}"`),n.tag&&e.push(`(tag: ${n.tag})`),e.join(" ")}g(ye,"describeControl");function we(n,e){let t=`- Edit ${n} Failed: ${e.subject} ${e.rule} ${Mc(e.alternative)}`;return e.override&&(t+=` Pass ${e.override}=true to override deliberately.`),t.split(/\s+/).join(" ")}g(we,"gateError");function Mc(n){let e=n.replace(/\s+$/,"");return /[.!?:]$/.test(e)?e:`${e}.`}g(Mc,"endSentence");function jc(n){return n.find(e=>e.contentLocked)??null}g(jc,"lockedAncestor");function Bc(n,e,t=st){if(t.ignore_control_locks)return null;let r=jc(e);return r?we(n,{subject:`edit targets content inside ${ye(r)}, which is content-locked (sdtContentLocked).`,rule:"Word refuses edits inside locked controls, so this edit would silently fail to appear in the document.",alternative:"Remove the lock in Word (Developer -> Properties)",override:kn}):null}g(Bc,"checkContentLock");function Fc(n,e,t=st){if(t.ignore_control_locks)return null;let r=e.find(i=>i.cls==="group");return !r||e.some(i=>i.cls!=="group")?null:we(n,{subject:`edit targets text inside ${ye(r)}, which is a group (a locked region).`,rule:"Word treats a group's own text as fixed boilerplate and only permits edits to the fields nested inside it.",alternative:"Target one of the nested controls instead",override:kn})}g(Fc,"checkGroupRegion");function Lc(n,e,t,r=st){if(r.ignore_control_locks||!t)return null;let i=e.find(s=>s.deleteLocked);return i?we(n,{subject:`edit would remove ${ye(i)} itself, which is delete-locked (sdtLocked).`,rule:"Word refuses to delete a locked control, and hoisting its content out would dissolve the wrapper.",alternative:"Delete the control's CONTENT instead (the wrapper stays, leaving an empty field)",override:kn}):null}g(Lc,"checkDeleteLock");function Wc(n,e,t={}){let r=t.overrides??st;if(!xn(e)||r.ignore_document_protection)return null;let i=Pr(e);return e.edit==="readOnly"?we(n,{subject:`the document is protected (${i}).`,rule:"Word blocks every modification while read-only protection is enforced.",alternative:"Remove the restriction in Word (Review -> Restrict Editing -> Stop Protection)",override:St}):e.edit==="comments"?t.isCommentOnly?null:we(n,{subject:`the document is protected (${i}).`,rule:"Word permits only comments while comments-only protection is enforced; text mutations are blocked.",alternative:"Attach a comment instead (set new_text equal to target_text and supply comment)",override:St}):e.edit==="forms"?(t.controls??[]).some(o=>o.cls!=="group")?null:we(n,{subject:`the document is protected (${i}).`,rule:"Word permits only form-field fills while fill-in-forms protection is enforced; body text outside a content control is locked.",alternative:"Target the content of a form field instead",override:St}):null}g(Wc,"checkProtectionBlocksEdit");function zc(n,e,t,r=st){if(!xn(t)||r.ignore_document_protection||e!=="accept"&&e!=="reject"||t.edit!=="trackedChanges"&&t.edit!=="readOnly")return null;let i=t.edit==="readOnly"?"Word blocks every modification while read-only protection is enforced.":"Resolving revisions is exactly what this protection forbids, so Word refuses Accept and Reject.";return `- Action ${n} Failed: the document is protected (${Pr(t)}). ${i} Remove the restriction in Word (Review -> Restrict Editing -> Stop Protection) or pass ${St}=true to override deliberately.`}g(zc,"checkProtectionBlocksReview");function Uc(n,e,t=st){return !xn(e)||e.edit!=="forms"||t.allow_untracked_writes?null:we(n,{subject:`the document is protected (${Pr(e)}).`,rule:"Word records fills in a forms-protected document as UNTRACKED changes, so Adeu cannot honour its guarantee that every write is a tracked change.",alternative:"Remove the protection to write tracked changes normally",override:Tr})}g(Uc,"checkUntrackedWrite");function Hc(n,e,t){let r=(e||"").trim();if(!r)return null;for(let i of t){if(!i.showingPlaceholder)continue;let s=(i.placeholderText||"").trim();if(!(!s||!s.includes(r)))return we(n,{subject:`target_text is the placeholder text of ${ye(i)}, which is EMPTY.`,rule:"Placeholder text is a ghost prompt, not content: Word discards it as soon as the field is filled, so an edit to it would be silently lost.",alternative:`Fill the field with set_field, or insert at its empty pair {#cc:${i.ordinal}}{#/cc:${i.ordinal}}`})}return null}g(Hc,"checkPlaceholderTarget");var At=["[ ]","[x]"];function Xc(n,e,t,r){let i=e.find(o=>o.cls==="checkbox");if(!i)return null;let s=At;return s.includes(t.trim())&&s.includes(r.trim())?null:we(n,{subject:`edit targets ${ye(i)}, which is a checkbox.`,rule:"Its [x] / [ ] projection reflects the w14:checked state rather than editable text, so replacing it with other text would leave the checkbox state unchanged.",alternative:"Toggle it by replacing [x] with [ ] (or the reverse), or use set_field"})}g(Xc,"checkCheckboxEdit");function qc(n,e){let t=e.find(i=>i.bound);if(!t)return null;let r=t.bindingXpath?` (bound to ${t.bindingXpath})`:"";return we(n,{subject:`edit targets the content of ${ye(t)}, which is data-bound${r}.`,rule:"Its text is a projection of an XML data store, and Word re-reads that store when the document opens, so an edit that skips the store is reverted.",alternative:"Use set_field, which writes the control and its bound store together"})}g(qc,"checkBoundControl");function Ai(n,e,t){let r=new Set(e),i=new Set(t);return n.filter(s=>r.has(s)!==i.has(s))}g(Ai,"crossedControlWalls");function Yc(n,e){if(e.length===0)return null;let t=e.map(ye).join(", ");return we(n,{subject:`edit merges paragraphs across the boundary of ${t}.`,rule:"Content may not be hoisted into or out of a content control by a merge: the wrapper would gain or lose text that was never scoped to it.",alternative:"Split this into two edits, one on each side of the control boundary"})}g(Yc,"checkBlockMergeAcrossControl");function Gc(n){return `segmented at the boundary of ${n.map(ye).join(", ")}: only the text outside the control was changed`}g(Gc,"segmentationNote");function Jc(n,e){if(!Rc(n))return null;let t=[];if(n.ignore_control_locks){let r=e.length>0?` (${e.map(ye).join(", ")} edited inside locked controls)`:"";t.push(`${kn}${r}`);}return n.ignore_document_protection&&t.push(St),n.allow_untracked_writes&&t.push(Tr),"Overrides: "+t.join(", ")}g(Jc,"overridesNote");function Vc(n,e,t=2){if(n===e)return 0;if(Math.abs(n.length-e.length)>t)return t+1;if(n.length===0)return e.length<=t?e.length:t+1;if(e.length===0)return n.length<=t?n.length:t+1;if(n.length>e.length){let i=n;n=e,e=i;}let r=Array.from({length:n.length+1},(i,s)=>s);for(let i=1;i<=e.length;i++){let s=[i],o=i;for(let a=1;a<=n.length;a++){let l=n[a-1]===e[i-1]?0:1,d=Math.min(r[a]+1,s[a-1]+1,r[a-1]+l);s.push(d),d<o&&(o=d);}if(o>t)return t+1;r=s;}return r[n.length]<=t?r[n.length]:t+1}g(Vc,"boundedLevenshtein");function Qc(n){let e="",t=R(n._element,"w:r");for(let r of t){let i=false,s=r.parentNode;for(;s&&s.nodeType===1;){if(s.tagName==="w:del"){i=true;break}s=s.parentNode;}i||(e+=Oe(new Le(r,n)));}return e}g(Qc,"_get_paragraph_text");var Sr="[A-Z][A-Za-z0-9\\s\\-&'\u2019]{1,60}",Zc=new RegExp(`^(?:[\\d.\\-()a-zA-Z]+\\s*)?["\u201C](${Sr})["\u201D]`,"d"),Kc=new RegExp(`(?<=[.;:!?])\\s+(?:[\\d.\\-()a-zA-Z]+\\s+)?["\u201C](${Sr})["\u201D]`,"dg"),ed=new RegExp(`\\([^)]*?["\u201C](${Sr})["\u201D][^)]*?\\)`,"dg");function td(n){let e=[],t=Zc.exec(n);t&&t.indices&&t.indices[1]&&n.slice(t[0].length).trim()&&e.push([t.indices[1][0],t[1].trim()]);for(let s of n.matchAll(Kc)){let o=s.indices;o&&o[1]&&e.push([o[1][0],s[1].trim()]);}for(let s of n.matchAll(ed)){let o=s.indices;o&&o[1]&&e.push([o[1][0],s[1].trim()]);}let r=[],i=new Set;e.sort((s,o)=>s[0]-o[0]);for(let[s,o]of e)i.has(s)||(i.add(s),r.push(o));return r}g(td,"extract_terms_from_paragraph");function nd(n,e){let t=Object.create(null),r=new Set,i=Object.create(null),s=[];for(let p of qe(n)){if(!(p instanceof ie))continue;let m=Qc(p).trim();if(!m)continue;for(let b of td(m))t[b]?r.add(b):t[b]={count:0};let w=m.length>60?m.substring(0,60)+"...":m,y=R(p._element,"*");for(let b of y){if(b.tagName==="w:bookmarkStart"){let N=b.getAttribute("w:name");N&&(!N.startsWith("_")||N.startsWith("_Ref"))&&(i[N]||(i[N]={anchored_to:w,referenced_from:[]}));}let v=null;if(b.tagName==="w:fldSimple"){let k=(b.getAttribute("w:instr")||"").trim().split(/\s+/);k.length>1&&k[0]==="REF"&&(v=k[1]);}else if(b.tagName==="w:instrText"){let k=(b.textContent||"").trim().split(/\s+/);k.length>1&&k[0]==="REF"&&(v=k[1]);}v&&s.push([v,w]);}}for(let[p,m]of s)i[p]&&i[p].referenced_from.push(m);let o=[],a=Object.keys(t);if(a.length>0){let p=a.sort((b,v)=>v.length-b.length),m=g(b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegExp"),w=p.map(m).join("|"),y=new RegExp(`(?<!["\u201C])\\b(${w})\\b(?![\u201D"])`,"g");for(let b of e.matchAll(y)){let v=b[1];t[v]&&t[v].count++;}for(let b of a)t[b].count===0&&(delete t[b],r.has(b)||o.push(`[Warning] Unused Definition: '${b}' is defined but never used.`));}for(let p of r)o.push(`[Error] Duplicate Definition: '${p}' is defined multiple times.`);let l=new Set(["The","This","That","Such","A","An","Any","All","Some","No","Every","Each","As","In","Of","For","To","On","By","With"]),d=/\b[A-Z][a-zA-Z]*(?:\s+[A-Z][a-zA-Z]*)*\b/g,c=new Set(e.match(d)||[]),u=new Set(Object.keys(t)),f={};for(let p of u){let m=p[0].toLowerCase();f[m]||(f[m]=[]),f[m].push(p);}let h=Object.create(null);for(let p of c){let m=p.trim(),w=m.split(/\s+/);for(;w.length>0;){let v=w[0],N=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();if(l.has(N))w.shift();else break}if(m=w.join(" "),m.length<4||u.has(m))continue;let y=m[0].toLowerCase(),b=f[y]||[];if(m.length>5)for(let[v,N]of Object.entries(f))v!==y&&(b=b.concat(N));for(let v of b){if(Math.abs(m.length-v.length)>2||m===v+"s"||m===v+"es"||v===m+"s"||v===m+"es")continue;let N=Vc(m,v,2);N===0||N>2||v.length<=5&&(N>1||m[0].toLowerCase()!==v[0].toLowerCase())||(h[v]||(h[v]=[]),h[v].includes(m)||h[v].push(m));}}for(let[p,m]of Object.entries(h)){m.sort();let w=m.map(y=>`'${y}'`).join(", ");o.push(`[Info] Possible Typos for '${p}': Found ${w}`);}function _(p){return p.startsWith("[Error]")?0:p.startsWith("[Warning]")?1:2}return g(_,"diag_sort_key"),o.sort((p,m)=>{let w=_(p),y=_(m);return w!==y?w-y:p.localeCompare(m)}),[t,o,i]}g(nd,"extract_all_domain_metadata");function rd(n){let e=[],t=n.pkg.getPartByPath("word/settings.xml");if(!t)return e;let r=g(o=>{if(!o.hasAttribute("w:val"))return true;let a=(o.getAttribute("w:val")||"").toLowerCase();return a!=="0"&&a!=="false"&&a!=="off"},"isTruthy2"),i=ne(t._element,"removePersonalInformation");i.length>0&&r(i[0])&&e.push("[Warning] Privacy flag `removePersonalInformation` is enabled in word/settings.xml. Microsoft Word will strip the `w:author`, `w:initials`, and `w:date` attributes from every tracked change and comment the next time this document is opened and saved. Edits made by this agent will lose attribution, breaking audit trails and any multi-turn workflow that relies on identifying prior edits.");let s=ne(t._element,"removeDateAndTime");return s.length>0&&r(s[0])&&e.push("[Warning] Privacy flag `removeDateAndTime` is enabled in word/settings.xml. Microsoft Word will strip the `w:date` attribute from every tracked change and comment the next time this document is opened and saved. Timestamps on this agent's edits will be lost on the next Word save."),e}g(rd,"extract_document_settings_warnings");function id(n,e){try{let t=Od(n),r=Nn(n);return jd(t,r,'Read with mode="fields" for the full field ledger.')}catch{return []}}g(id,"content_controls_appendix_section");function sd(n,e){let[t,r,i]=nd(n,e),s=rd(n),o=[`
96
+ `)}g(ac,"format_ambiguity_error");var lc="4.0.1";function ne(n,e){let t=[],r=n.getElementsByTagName("*");for(let i=0;i<r.length;i++){let s=r[i].tagName;(s===e||s.endsWith(":"+e))&&t.push(r[i]);}return t}g(ne,"findDescendantsByLocalName");function cc(n){let e=0;function t(o,a){let l=o?o.toString():"",d=a?a.toString():"";return l===d}g(t,"areRunsIdentical");function r(o){let a=["w:t","w:tab","w:br","w:cr","w:delText","w:rPr"];for(let l=0;l<o.childNodes.length;l++){let d=o.childNodes[l];if(d.nodeType===1){let c=d.tagName;if(!a.includes(c))return true}}return false}g(r,"hasSpecialContent");function i(o){let a=Array.from(o.childNodes).filter(d=>d.nodeType===1),l=0;for(;l<a.length-1;){let d=a[l],c=a[l+1];if(d.tagName==="w:r"&&c.tagName==="w:r"&&!r(d)&&!r(c)){let u=S(d,"w:rPr"),f=S(c,"w:rPr");if(t(u,f)){let h=null;for(let p=0;p<d.childNodes.length;p++){let m=d.childNodes[p];m.nodeType===1&&(m.tagName==="w:t"||m.tagName==="w:delText")&&(h=m);}let _=Array.from(c.childNodes).filter(p=>p.nodeType===1);for(let p of _)if(p.tagName!=="w:rPr")if((p.tagName==="w:t"||p.tagName==="w:delText")&&h&&h.tagName===p.tagName){let m=h.textContent||"",w=p.textContent||"",y=m+w;h.textContent=y,y.trim()!==y&&h.setAttribute("xml:space","preserve");}else d.appendChild(p),(p.tagName==="w:t"||p.tagName==="w:delText")&&(h=p);o.removeChild(c),a.splice(l+1,1),e++;continue}}["w:ins","w:del","w:hyperlink","w:sdt","w:smartTag","w:fldSimple","w:sdtContent"].includes(d.tagName)&&i(d),l++;}if(a.length>0){let d=a[a.length-1];["w:ins","w:del","w:hyperlink","w:sdt","w:smartTag","w:fldSimple","w:sdtContent"].includes(d.tagName)&&i(d);}}g(i,"coalesceContainer");let s=R(n.element,"w:p");for(let o of s)i(o);return e?[`Adjacent identical runs coalesced: ${e}`]:[]}g(cc,"coalesce_runs");function dc(n){let e=0,t=["w:rsidR","w:rsidRPr","w:rsidRDefault","w:rsidP","w:rsidDel","w:rsidSect","w:rsidTr"],r=n.element.getElementsByTagName("*");for(let s=0;s<r.length;s++)for(let o of t)r[s].hasAttribute(o)&&(r[s].removeAttribute(o),e++);let i=R(n.element,"w:rsids");for(let s of i)s.parentNode&&(s.parentNode.removeChild(s),e++);return e?[`rsid attributes: ${e} removed`]:[]}g(dc,"strip_rsid");function uc(n){let e=0,t=["w14:paraId","w14:textId"],r=n.element.getElementsByTagName("*");for(let i=0;i<r.length;i++)for(let s of t)r[i].hasAttribute(s)&&(r[i].removeAttribute(s),e++);return e?[`Paragraph/text IDs: ${e} removed`]:[]}g(uc,"strip_para_ids");function fc(n){let e=R(n.element,"w:proofErr");return e.forEach(t=>t.parentNode?.removeChild(t)),e.length?[`Spell check markers: ${e.length} removed`]:[]}g(fc,"strip_proof_errors");function hc(n){let e=0;for(let t of ["w:rPr","w:pPr"]){let r=R(n.element,t);for(let i of r)(i.childNodes.length===0||i.childNodes.length===1&&i.childNodes[0].nodeType===3&&!i.childNodes[0].textContent?.trim())&&(i.parentNode?.removeChild(i),e++);}return e?[`Empty property elements: ${e} removed`]:[]}g(hc,"strip_empty_properties");function pc(n){let e=0,t=R(n.element,"w:rPr");for(let r of t)if(S(r,"w:vanish")||S(r,"w:webHidden")){let i=r.parentNode;i&&i.tagName==="w:r"&&i.parentNode&&(i.parentNode.removeChild(i),e++);}return e?[`Hidden text runs: ${e} removed`]:[]}g(pc,"strip_hidden_text");function ki(n){let e=R(n.element,"w:ins").length,t=R(n.element,"w:del").length,r=R(n.element,"w:rPrChange").length+R(n.element,"w:pPrChange").length+R(n.element,"w:sectPrChange").length;return [e,t,r]}g(ki,"count_tracked_changes");function _c(n){let e=new Set;for(let t of ["w:ins","w:del","w:rPrChange","w:pPrChange","w:sectPrChange"])for(let r of R(n.element,t)){let i=r.getAttribute("w:author");i&&e.add(i);}return e}g(_c,"get_track_change_authors");function Ci(n){let e=[],t=R(n,"w:t");for(let i of t)i.textContent&&e.push(i.textContent);let r=R(n,"w:delText");for(let i of r)i.textContent&&e.push(i.textContent);return e.join("")}g(Ci,"_getElementText");function He(n,e=60){let t=n.replace(/\n/g," ").trim();return t.length<=e?t:t.substring(0,e-3)+"..."}g(He,"_truncate");function Ei(n){let e=n.parentNode;if(e&&e.tagName==="w:rPr"){let t=e.parentNode;if(t&&t.tagName==="w:pPr")return "(paragraph mark)"}return e&&e.tagName==="w:trPr"?"(table row)":"(no visible text)"}g(Ei,"_describe_textless_revision");function mc(n){let e=[],t=R(n.element,"w:ins"),r=R(n.element,"w:del");for(let o of t){let a=Ci(o).trim();a?e.push(` Accepted insertion: "${He(a,60)}"`):e.push(` Accepted insertion: ${Ei(o)}`);}for(let o of r){let a=Ci(o).trim();a?e.push(` Accepted deletion of: "${He(a,60)}"`):e.push(` Accepted deletion of: ${Ei(o)}`);}new Ft(n).accept_all_revisions();for(let o of ["w:rPrChange","w:pPrChange","w:sectPrChange"])for(let a of R(n.element,o))a.parentNode?.removeChild(a);let s=t.length+r.length;return s?[`Tracked changes auto-accepted: ${s}`].concat(e):[]}g(mc,"accept_all_tracked_changes");function Jt(n){let e=We(n.pkg),t=[],r=0,i=0;for(let[s,o]of Object.entries(e))o.resolved?i++:r++,t.push({id:s,...o});return {total:t.length,open:r,resolved:i,comments:t}}g(Jt,"get_comments_summary");function gc(n){let e=We(n.pkg),t=Object.keys(e);if(t.length===0)return [];let r=[],i=new Dt(n);for(let[l,d]of Object.entries(e)){let c=d.resolved?"[Resolved]":"[Open]";r.push(` ${c} "${He(d.text||"",60)}" (${d.author||"Unknown"})`),i.deleteComment(l);}for(let l of ["w:commentRangeStart","w:commentRangeEnd"])for(let d of R(n.element,l))d.parentNode?.removeChild(d);let s=R(n.element,"w:commentReference");for(let l of s){let d=l.parentNode;d&&((d.tagName==="w:r"||d.tagName.endsWith(":r"))&&Array.from(d.childNodes).filter(u=>u.nodeType===1&&u.tagName!=="w:rPr"&&u.tagName!=="rPr").length<=1?d.parentNode?.removeChild(d):d.removeChild(l));}let o=Object.values(e).filter(l=>l.resolved).length,a=Object.values(e).filter(l=>!l.resolved).length;return [`Comments removed: ${t.length} (${o} resolved, ${a} open)`].concat(r)}g(gc,"remove_all_comments");function wc(n){let e=n.pkg,t=new Set;for(let i of e.parts)if(i.partname.toLowerCase().includes("comments")){t.add(i.partname);let s=i.partname.startsWith("/")?i.partname:"/"+i.partname,o=i.partname.startsWith("/")?i.partname.substring(1):i.partname;t.add(s),t.add(o);}if(t.size===0)return;for(let i of e.parts)if(i.partname.endsWith(".rels")){let s=R(i._element,"Relationship"),o=[];for(let a of s)if((a.getAttribute("Target")||"").toLowerCase().includes("comments")){o.push(a);let d=i.partname.replace("/_rels/","/").replace(".rels",""),c=e.getPartByPath(d);if(c){let u=a.getAttribute("Id");u&&c.rels.delete(u);}}for(let a of o)a.parentNode?.removeChild(a);}let r=e.getPartByPath("[Content_Types].xml");if(r){let i=R(r._element,"Override"),s=[];for(let o of i){let a=o.getAttribute("PartName")||"";(t.has(a)||a.toLowerCase().includes("comments"))&&s.push(o);}for(let o of s)o.parentNode?.removeChild(o);}e.parts=e.parts.filter(i=>!i.partname.toLowerCase().includes("comments"));for(let i of Object.keys(e.unzipped))i.toLowerCase().includes("comments")&&delete e.unzipped[i];}g(wc,"eject_comment_parts");function yc(n,e){let t=new Dt(n);if(!t.commentsPart)return [];let r=new Set,i=R(t.commentsPart._element,"w:comment");for(let s of i){let o=s.getAttribute("w:author");if(o&&(r.add(o),s.setAttribute("w:author",e)),s.hasAttribute("w:initials")){let a=e.split(" ").filter(Boolean).map(l=>l[0]).join("").toUpperCase();s.setAttribute("w:initials",a);}}return r.size?[`Comment authors replaced: ${Array.from(r).sort().join(", ")} \u2192 "${e}"`]:[]}g(yc,"replace_comment_authors");function vc(n,e){let t=new Set;for(let r of ["w:ins","w:del","w:rPrChange","w:pPrChange"])for(let i of R(n.element,r)){let s=i.getAttribute("w:author");s&&(t.add(s),i.setAttribute("w:author",e));}return t.size?[`Track change authors replaced: ${Array.from(t).sort().join(", ")} \u2192 "${e}"`]:[]}g(vc,"replace_change_authors");function bc(n){let e=0,t="2025-01-01T00:00:00Z";for(let r of ["w:ins","w:del","w:rPrChange","w:pPrChange"])for(let i of R(n.element,r))i.hasAttribute("w:date")&&(i.setAttribute("w:date",t),e++);return e?[`Track change timestamps: ${e} normalized`]:[]}g(bc,"normalize_change_dates");function xc(n){let e=0,t="2025-01-01T00:00:00Z";for(let r of n.pkg.parts)if(r.contentType.includes("comments")){for(let i of R(r._element,"w:comment"))i.hasAttribute("w:date")&&(i.setAttribute("w:date",t),e++);for(let i of R(r._element,"w16cex:commentExtensible"))i.hasAttribute("w16cex:dateUtc")&&(i.setAttribute("w16cex:dateUtc",t),e++);}return e?[`Comment timestamps: ${e} normalized`]:[]}g(xc,"normalize_comment_dates");function Nc(n){let e=[],t=n.pkg.getPartByPath("docProps/core.xml");if(t){ne(t._element,"creator").forEach(d=>{d.textContent&&(e.push(`Author: ${d.textContent}`),d.textContent="");}),ne(t._element,"lastModifiedBy").forEach(d=>{d.textContent&&(e.push(`Last modified by: ${d.textContent}`),d.textContent="");}),ne(t._element,"title").forEach(d=>{d.textContent&&e.push(`Title kept (review manually): "${d.textContent}"`);});let a=[["category","Category"],["keywords","Keywords"],["subject","Subject"],["contentStatus","Content status"],["description","Description/comments"],["identifier","Identifier"],["language","Language"],["version","Version"]];for(let[d,c]of a)ne(t._element,d).forEach(u=>{u.textContent&&(e.push(`${c}: ${u.textContent}`),u.textContent="");});ne(t._element,"revision").forEach(d=>{d.textContent&&parseInt(d.textContent)>1&&(e.push(`Revision count: ${d.textContent} \u2192 1`),d.textContent="1");});}let r=n.pkg.getPartByPath("docProps/app.xml");if(r){let i=r._element,s=["TotalTime","Words","Characters","Paragraphs","Lines","CharactersWithSpaces"];for(let a of s)ne(i,a).forEach(l=>{l.textContent&&l.textContent!=="0"&&(a==="TotalTime"&&e.push(`Total editing time: ${l.textContent} minutes`),l.textContent="0");});let o=["Template","Manager","Company"];for(let a of o)ne(i,a).forEach(l=>{l.textContent&&(e.push(`${a}: ${l.textContent}`),l.textContent="");});}return e.length?["Metadata scrubbed:",...e.map(i=>` ${i}`)]:[]}g(Nc,"scrub_doc_properties");function kc(n){let e=false,t="1970-01-01T00:00:00Z",r=n.pkg.getPartByPath("docProps/core.xml");if(r)for(let i of ["created","modified","lastPrinted"])ne(r._element,i).forEach(s=>{s.textContent&&s.textContent!==t&&(s.textContent=t,e=true);});return e?["Timestamps normalized to epoch"]:[]}g(kc,"scrub_timestamps");function Us(n,e,t){let r=n.pkg,i=g(o=>o.startsWith("/")?o.substring(1):o,"normalized");for(let o of r.parts){if(!o.partname.endsWith(".rels"))continue;let a=[];for(let l of R(o._element,"Relationship")){let d=l.getAttribute("Target")||"";if(t(d)){a.push(l);let c=o.partname.replace("/_rels/","/").replace(".rels",""),u=r.getPartByPath(c);if(u){let f=l.getAttribute("Id");f&&u.rels.delete(f);}}}a.forEach(l=>l.parentNode?.removeChild(l));}let s=r.getPartByPath("[Content_Types].xml");if(s){let o=[];for(let a of R(s._element,"Override")){let l=a.getAttribute("PartName")||"";e(i(l))&&o.push(a);}o.forEach(a=>a.parentNode?.removeChild(a));}r.parts=r.parts.filter(o=>!e(i(o.partname)));for(let o of Object.keys(r.unzipped))e(i(o))&&delete r.unzipped[o];}g(Us,"ejectPackageMembers");function Cc(n){let e=g(i=>i.startsWith("customXml/"),"isCustomXml"),t=n.pkg.parts.filter(i=>e(i.partname.startsWith("/")?i.partname.substring(1):i.partname)),r=Object.keys(n.pkg.unzipped).filter(e);if(t.length===0&&r.length===0)return [];Us(n,e,i=>i.includes("customXml"));for(let i of R(n.element,"w:sdtPr"))pn(i,"w:dataBinding").forEach(s=>i.removeChild(s));return [`Custom XML parts: ${Math.max(t.length,r.length)} removed`]}g(Cc,"strip_custom_xml");var Qn="docProps/custom.xml";function Ec(n){let e=n.pkg.getPartByPath(Qn),t=Object.keys(n.pkg.unzipped).includes(Qn);if(!e&&!t)return [];let r=[];if(e)for(let s of ne(e._element,"property")){let o=s.getAttribute("name")||"(unnamed)",a=(s.textContent||"").trim();r.push(` Custom property removed: ${o} = "${He(a,60)}"`);}return Us(n,s=>s===Qn,s=>s.includes("docProps/custom.xml")),[`Custom document properties: ${Math.max(r.length,1)} removed (docProps/custom.xml)`].concat(r)}g(Ec,"strip_custom_properties");function Ac(n){let e=n.pkg.getPartByPath("word/settings.xml");if(!e)return [];let t=[],r=false;for(let s of ne(e._element,"docVars")){for(let o of Array.from(s.childNodes)){let a=o,l=a.tagName||"";(l==="docVar"||l.endsWith(":docVar"))&&t.push(a.getAttribute("w:name")||a.getAttribute("name")||"(unnamed)");}s.parentNode?.removeChild(s),r=true;}for(let s of ne(e._element,"docVar"))t.push(s.getAttribute("w:name")||s.getAttribute("name")||"(unnamed)"),s.parentNode?.removeChild(s),r=true;if(!r)return [];let i=Array.from(new Set(t)).sort().join(", ")||"(unnamed)";return [`Document variables: ${t.length} removed (${i})`]}g(Ac,"strip_document_variables");function Pc(n){let e=0;for(let t of ne(n.element,"docPr")){let r=t.getAttribute("descr");if(r){let i=r.length<10,s=r.includes(".")&&r.length<60;(i||s)&&(t.removeAttribute("descr"),e++);}}return e?[`Image alt text: ${e} auto-generated descriptions removed`]:[]}g(Pc,"strip_image_alt_text");function Tc(n){let e=[],t=new Set;for(let r of n.pkg.parts){let i=String(r.partname),s;if(i.startsWith("/word/header"))s="header";else if(i.startsWith("/word/footer"))s="footer";else if(i==="/word/document.xml")s="body";else continue;let o;try{o=ne(r._element,"textpath");}catch{continue}for(let a of o){let l=(a.getAttribute("string")||"").trim(),d=`${s}${l}`;if(t.has(d))continue;t.add(d);let c=l?`"${He(l,60)}"`:"(no text)";e.push(`Watermark-like text object in ${s}: ${c} \u2014 NOT removed. It remains in the document package and may render in other applications; review and remove it in Word if it must not reach the counterparty.`);}}return e}g(Tc,"detect_watermarks");function Sc(n){let e=["sharepoint.com","onedrive.com",".internal","intranet","localhost","10.","192.168.","172.16."],t=[],r=n.pkg.getOrCreateRelsPart(n.part.partname);for(let i of R(r._element,"Relationship"))if(i.getAttribute("TargetMode")==="External"){let s=i.getAttribute("Target")||"";for(let o of e)if(s.toLowerCase().includes(o.toLowerCase())){t.push(`Hyperlink targets internal URL: ${He(s,80)}`);break}}return t}g(Sc,"audit_hyperlinks");var $c="word/settings.xml",Ic=new Set(["readOnly","forms","comments","trackedChanges"]),Oc={readOnly:"read-only",forms:"fill-in-forms",comments:"comments-only",trackedChanges:"tracked-changes-only"},Et=Object.freeze({edit:null,enforced:false});function xn(n){return n.edit!==null&&n.enforced}g(xn,"isProtectionActive");function Pr(n){return n.edit===null?"unprotected":`${Oc[n.edit]??n.edit}, ${n.enforced?"enforced":"not enforced"}`}g(Pr,"describeProtection");function Dc(n){return n==null?true:!["0","false","off"].includes(n.toLowerCase())}g(Dc,"isTruthy");function Nn(n){let e=null;try{let s=n?.pkg?.getPartByPath?.($c);if(!s?._element)return Et;e=ne(s._element,"documentProtection")[0]??null;}catch{return Et}if(!e)return Et;let t=null,r=null,i=e.attributes;if(i)for(let s=0;s<i.length;s++){let o=i[s],a=(o.name??"").split(":").pop()??"";a==="edit"?t=o.value:a==="enforcement"&&(r=o.value);}return t===null||!Ic.has(t)?Et:{edit:t,enforced:Dc(r)}}g(Nn,"readDocumentProtection");var kn="ignore_control_locks",St="ignore_document_protection",Tr="allow_untracked_writes",st=Object.freeze({ignore_control_locks:false,ignore_document_protection:false,allow_untracked_writes:false});function Rc(n){return n.ignore_control_locks||n.ignore_document_protection||n.allow_untracked_writes}g(Rc,"anyOverrideUsed");function ye(n){let e=[`CC:${n.ordinal}`];return n.alias&&e.push(`"${n.alias}"`),n.tag&&e.push(`(tag: ${n.tag})`),e.join(" ")}g(ye,"describeControl");function we(n,e){let t=`- Edit ${n} Failed: ${e.subject} ${e.rule} ${Mc(e.alternative)}`;return e.override&&(t+=` Pass ${e.override}=true to override deliberately.`),t.split(/\s+/).join(" ")}g(we,"gateError");function Mc(n){let e=n.replace(/\s+$/,"");return /[.!?:]$/.test(e)?e:`${e}.`}g(Mc,"endSentence");function jc(n){return n.find(e=>e.contentLocked)??null}g(jc,"lockedAncestor");function Bc(n,e,t=st){if(t.ignore_control_locks)return null;let r=jc(e);return r?we(n,{subject:`edit targets content inside ${ye(r)}, which is content-locked (sdtContentLocked).`,rule:"Word refuses edits inside locked controls, so this edit would silently fail to appear in the document.",alternative:"Remove the lock in Word (Developer -> Properties)",override:kn}):null}g(Bc,"checkContentLock");function Fc(n,e,t=st){if(t.ignore_control_locks)return null;let r=e.find(i=>i.cls==="group");return !r||e.some(i=>i.cls!=="group")?null:we(n,{subject:`edit targets text inside ${ye(r)}, which is a group (a locked region).`,rule:"Word treats a group's own text as fixed boilerplate and only permits edits to the fields nested inside it.",alternative:"Target one of the nested controls instead",override:kn})}g(Fc,"checkGroupRegion");function Lc(n,e,t,r=st){if(r.ignore_control_locks||!t)return null;let i=e.find(s=>s.deleteLocked);return i?we(n,{subject:`edit would remove ${ye(i)} itself, which is delete-locked (sdtLocked).`,rule:"Word refuses to delete a locked control, and hoisting its content out would dissolve the wrapper.",alternative:"Delete the control's CONTENT instead (the wrapper stays, leaving an empty field)",override:kn}):null}g(Lc,"checkDeleteLock");function Wc(n,e,t={}){let r=t.overrides??st;if(!xn(e)||r.ignore_document_protection)return null;let i=Pr(e);return e.edit==="readOnly"?we(n,{subject:`the document is protected (${i}).`,rule:"Word blocks every modification while read-only protection is enforced.",alternative:"Remove the restriction in Word (Review -> Restrict Editing -> Stop Protection)",override:St}):e.edit==="comments"?t.isCommentOnly?null:we(n,{subject:`the document is protected (${i}).`,rule:"Word permits only comments while comments-only protection is enforced; text mutations are blocked.",alternative:"Attach a comment instead (set new_text equal to target_text and supply comment)",override:St}):e.edit==="forms"?(t.controls??[]).some(o=>o.cls!=="group")?null:we(n,{subject:`the document is protected (${i}).`,rule:"Word permits only form-field fills while fill-in-forms protection is enforced; body text outside a content control is locked.",alternative:"Target the content of a form field instead",override:St}):null}g(Wc,"checkProtectionBlocksEdit");function zc(n,e,t,r=st){if(!xn(t)||r.ignore_document_protection||e!=="accept"&&e!=="reject"||t.edit!=="trackedChanges"&&t.edit!=="readOnly")return null;let i=t.edit==="readOnly"?"Word blocks every modification while read-only protection is enforced.":"Resolving revisions is exactly what this protection forbids, so Word refuses Accept and Reject.";return `- Action ${n} Failed: the document is protected (${Pr(t)}). ${i} Remove the restriction in Word (Review -> Restrict Editing -> Stop Protection) or pass ${St}=true to override deliberately.`}g(zc,"checkProtectionBlocksReview");function Uc(n,e,t=st){return !xn(e)||e.edit!=="forms"||t.allow_untracked_writes?null:we(n,{subject:`the document is protected (${Pr(e)}).`,rule:"Word records fills in a forms-protected document as UNTRACKED changes, so Adeu cannot honour its guarantee that every write is a tracked change.",alternative:"Remove the protection to write tracked changes normally",override:Tr})}g(Uc,"checkUntrackedWrite");function Hc(n,e,t){let r=(e||"").trim();if(!r)return null;for(let i of t){if(!i.showingPlaceholder)continue;let s=(i.placeholderText||"").trim();if(!(!s||!s.includes(r)))return we(n,{subject:`target_text is the placeholder text of ${ye(i)}, which is EMPTY.`,rule:"Placeholder text is a ghost prompt, not content: Word discards it as soon as the field is filled, so an edit to it would be silently lost.",alternative:`Fill the field with set_field, or insert at its empty pair {#cc:${i.ordinal}}{#/cc:${i.ordinal}}`})}return null}g(Hc,"checkPlaceholderTarget");var At=["[ ]","[x]"];function Xc(n,e,t,r){let i=e.find(o=>o.cls==="checkbox");if(!i)return null;let s=At;return s.includes(t.trim())&&s.includes(r.trim())?null:we(n,{subject:`edit targets ${ye(i)}, which is a checkbox.`,rule:"Its [x] / [ ] projection reflects the w14:checked state rather than editable text, so replacing it with other text would leave the checkbox state unchanged.",alternative:"Toggle it by replacing [x] with [ ] (or the reverse), or use set_field"})}g(Xc,"checkCheckboxEdit");function qc(n,e){let t=e.find(i=>i.bound);if(!t)return null;let r=t.bindingXpath?` (bound to ${t.bindingXpath})`:"";return we(n,{subject:`edit targets the content of ${ye(t)}, which is data-bound${r}.`,rule:"Its text is a projection of an XML data store, and Word re-reads that store when the document opens, so an edit that skips the store is reverted.",alternative:"Use set_field, which writes the control and its bound store together"})}g(qc,"checkBoundControl");function Ai(n,e,t){let r=new Set(e),i=new Set(t);return n.filter(s=>r.has(s)!==i.has(s))}g(Ai,"crossedControlWalls");function Yc(n,e){if(e.length===0)return null;let t=e.map(ye).join(", ");return we(n,{subject:`edit merges paragraphs across the boundary of ${t}.`,rule:"Content may not be hoisted into or out of a content control by a merge: the wrapper would gain or lose text that was never scoped to it.",alternative:"Split this into two edits, one on each side of the control boundary"})}g(Yc,"checkBlockMergeAcrossControl");function Gc(n){return `segmented at the boundary of ${n.map(ye).join(", ")}: only the text outside the control was changed`}g(Gc,"segmentationNote");function Jc(n,e){if(!Rc(n))return null;let t=[];if(n.ignore_control_locks){let r=e.length>0?` (${e.map(ye).join(", ")} edited inside locked controls)`:"";t.push(`${kn}${r}`);}return n.ignore_document_protection&&t.push(St),n.allow_untracked_writes&&t.push(Tr),"Overrides: "+t.join(", ")}g(Jc,"overridesNote");function Vc(n,e,t=2){if(n===e)return 0;if(Math.abs(n.length-e.length)>t)return t+1;if(n.length===0)return e.length<=t?e.length:t+1;if(e.length===0)return n.length<=t?n.length:t+1;if(n.length>e.length){let i=n;n=e,e=i;}let r=Array.from({length:n.length+1},(i,s)=>s);for(let i=1;i<=e.length;i++){let s=[i],o=i;for(let a=1;a<=n.length;a++){let l=n[a-1]===e[i-1]?0:1,d=Math.min(r[a]+1,s[a-1]+1,r[a-1]+l);s.push(d),d<o&&(o=d);}if(o>t)return t+1;r=s;}return r[n.length]<=t?r[n.length]:t+1}g(Vc,"boundedLevenshtein");function Qc(n){let e="",t=R(n._element,"w:r");for(let r of t){let i=false,s=r.parentNode;for(;s&&s.nodeType===1;){if(s.tagName==="w:del"){i=true;break}s=s.parentNode;}i||(e+=Oe(new Le(r,n)));}return e}g(Qc,"_get_paragraph_text");var Sr="[A-Z][A-Za-z0-9\\s\\-&'\u2019]{1,60}",Zc=new RegExp(`^(?:[\\d.\\-()a-zA-Z]+\\s*)?["\u201C](${Sr})["\u201D]`,"d"),Kc=new RegExp(`(?<=[.;:!?])\\s+(?:[\\d.\\-()a-zA-Z]+\\s+)?["\u201C](${Sr})["\u201D]`,"dg"),ed=new RegExp(`\\([^)]*?["\u201C](${Sr})["\u201D][^)]*?\\)`,"dg");function td(n){let e=[],t=Zc.exec(n);t&&t.indices&&t.indices[1]&&n.slice(t[0].length).trim()&&e.push([t.indices[1][0],t[1].trim()]);for(let s of n.matchAll(Kc)){let o=s.indices;o&&o[1]&&e.push([o[1][0],s[1].trim()]);}for(let s of n.matchAll(ed)){let o=s.indices;o&&o[1]&&e.push([o[1][0],s[1].trim()]);}let r=[],i=new Set;e.sort((s,o)=>s[0]-o[0]);for(let[s,o]of e)i.has(s)||(i.add(s),r.push(o));return r}g(td,"extract_terms_from_paragraph");function nd(n,e){let t=Object.create(null),r=new Set,i=Object.create(null),s=[];for(let p of qe(n)){if(!(p instanceof ie))continue;let m=Qc(p).trim();if(!m)continue;for(let b of td(m))t[b]?r.add(b):t[b]={count:0};let w=m.length>60?m.substring(0,60)+"...":m,y=R(p._element,"*");for(let b of y){if(b.tagName==="w:bookmarkStart"){let N=b.getAttribute("w:name");N&&(!N.startsWith("_")||N.startsWith("_Ref"))&&(i[N]||(i[N]={anchored_to:w,referenced_from:[]}));}let v=null;if(b.tagName==="w:fldSimple"){let k=(b.getAttribute("w:instr")||"").trim().split(/\s+/);k.length>1&&k[0]==="REF"&&(v=k[1]);}else if(b.tagName==="w:instrText"){let k=(b.textContent||"").trim().split(/\s+/);k.length>1&&k[0]==="REF"&&(v=k[1]);}v&&s.push([v,w]);}}for(let[p,m]of s)i[p]&&i[p].referenced_from.push(m);let o=[],a=Object.keys(t);if(a.length>0){let p=a.sort((b,v)=>v.length-b.length),m=g(b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegExp"),w=p.map(m).join("|"),y=new RegExp(`(?<!["\u201C])\\b(${w})\\b(?![\u201D"])`,"g");for(let b of e.matchAll(y)){let v=b[1];t[v]&&t[v].count++;}for(let b of a)t[b].count===0&&(delete t[b],r.has(b)||o.push(`[Warning] Unused Definition: '${b}' is defined but never used.`));}for(let p of r)o.push(`[Error] Duplicate Definition: '${p}' is defined multiple times.`);let l=new Set(["The","This","That","Such","A","An","Any","All","Some","No","Every","Each","As","In","Of","For","To","On","By","With"]),d=/\b[A-Z][a-zA-Z]*(?:\s+[A-Z][a-zA-Z]*)*\b/g,c=new Set(e.match(d)||[]),u=new Set(Object.keys(t)),f={};for(let p of u){let m=p[0].toLowerCase();f[m]||(f[m]=[]),f[m].push(p);}let h=Object.create(null);for(let p of c){let m=p.trim(),w=m.split(/\s+/);for(;w.length>0;){let v=w[0],N=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();if(l.has(N))w.shift();else break}if(m=w.join(" "),m.length<4||u.has(m))continue;let y=m[0].toLowerCase(),b=f[y]||[];if(m.length>5)for(let[v,N]of Object.entries(f))v!==y&&(b=b.concat(N));for(let v of b){if(Math.abs(m.length-v.length)>2||m===v+"s"||m===v+"es"||v===m+"s"||v===m+"es")continue;let N=Vc(m,v,2);N===0||N>2||v.length<=5&&(N>1||m[0].toLowerCase()!==v[0].toLowerCase())||(h[v]||(h[v]=[]),h[v].includes(m)||h[v].push(m));}}for(let[p,m]of Object.entries(h)){m.sort();let w=m.map(y=>`'${y}'`).join(", ");o.push(`[Info] Possible Typos for '${p}': Found ${w}`);}function _(p){return p.startsWith("[Error]")?0:p.startsWith("[Warning]")?1:2}return g(_,"diag_sort_key"),o.sort((p,m)=>{let w=_(p),y=_(m);return w!==y?w-y:p.localeCompare(m)}),[t,o,i]}g(nd,"extract_all_domain_metadata");function rd(n){let e=[],t=n.pkg.getPartByPath("word/settings.xml");if(!t)return e;let r=g(o=>{if(!o.hasAttribute("w:val"))return true;let a=(o.getAttribute("w:val")||"").toLowerCase();return a!=="0"&&a!=="false"&&a!=="off"},"isTruthy2"),i=ne(t._element,"removePersonalInformation");i.length>0&&r(i[0])&&e.push("[Warning] Privacy flag `removePersonalInformation` is enabled in word/settings.xml. Microsoft Word will strip the `w:author`, `w:initials`, and `w:date` attributes from every tracked change and comment the next time this document is opened and saved. Edits made by this agent will lose attribution, breaking audit trails and any multi-turn workflow that relies on identifying prior edits.");let s=ne(t._element,"removeDateAndTime");return s.length>0&&r(s[0])&&e.push("[Warning] Privacy flag `removeDateAndTime` is enabled in word/settings.xml. Microsoft Word will strip the `w:date` attribute from every tracked change and comment the next time this document is opened and saved. Timestamps on this agent's edits will be lost on the next Word save."),e}g(rd,"extract_document_settings_warnings");function id(n,e){try{let t=Od(n),r=Nn(n);return jd(t,r,'Read with mode="fields" for the full field ledger.')}catch{return []}}g(id,"content_controls_appendix_section");function sd(n,e){let[t,r,i]=nd(n,e),s=rd(n),o=[`
97
97
 
98
98
  ---`,"","<!-- READONLY_BOUNDARY_START -->","# Document Structure (Read-Only)","The content below is metadata describing the document's reference structure. Do not include this section in any tracked changes or edits \u2014 it is for your context only and will be discarded on write."],a=false;if(s.length>0){a=true,o.push(`
99
99
  ## Document Settings`);for(let d of s)o.push(`- ${d}`);}let l=id(n);if(l.length>0&&(a=true,o.push(""),o.push(...l)),Object.keys(t).length>0){a=true,o.push(`
@@ -1 +1 @@
1
- {"inputs":{"shims/module.js":{"bytes":224,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/fflate/esm/index.mjs":{"bytes":91765,"imports":[{"path":"shims/module.js","kind":"import-statement","original":"module"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/diff-match-patch/index.js":{"bytes":78052,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../core/dist/index.js":{"bytes":691614,"imports":[{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/GenericFunctions.ts":{"bytes":21500,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts":{"bytes":8418,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/extractMarkdown.operation.ts":{"bytes":9476,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/extractOutline.operation.ts":{"bytes":3088,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/applyEdits.operation.ts":{"bytes":17314,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/applyTextRevision.operation.ts":{"bytes":7550,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/generateDiff.operation.ts":{"bytes":13540,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/finalizeDocument.operation.ts":{"bytes":8501,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/index.ts":{"bytes":8081,"imports":[{"path":"nodes/Adeu/descriptions/extractMarkdown.operation.ts","kind":"import-statement","original":"./extractMarkdown.operation"},{"path":"nodes/Adeu/descriptions/extractOutline.operation.ts","kind":"import-statement","original":"./extractOutline.operation"},{"path":"nodes/Adeu/descriptions/applyEdits.operation.ts","kind":"import-statement","original":"./applyEdits.operation"},{"path":"nodes/Adeu/descriptions/applyTextRevision.operation.ts","kind":"import-statement","original":"./applyTextRevision.operation"},{"path":"nodes/Adeu/descriptions/generateDiff.operation.ts","kind":"import-statement","original":"./generateDiff.operation"},{"path":"nodes/Adeu/descriptions/finalizeDocument.operation.ts","kind":"import-statement","original":"./finalizeDocument.operation"},{"path":"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts","kind":"import-statement","original":"./hydrateToolOutput.operation"}],"format":"esm"},"nodes/Adeu/Adeu.node.ts":{"bytes":8841,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts","kind":"import-statement","original":"./descriptions/hydrateToolOutput.operation"},{"path":"nodes/Adeu/descriptions/index.ts","kind":"import-statement","original":"./descriptions"},{"path":"nodes/Adeu/descriptions/extractMarkdown.operation.ts","kind":"import-statement","original":"./descriptions/extractMarkdown.operation"},{"path":"nodes/Adeu/descriptions/extractOutline.operation.ts","kind":"import-statement","original":"./descriptions/extractOutline.operation"},{"path":"nodes/Adeu/descriptions/applyEdits.operation.ts","kind":"import-statement","original":"./descriptions/applyEdits.operation"},{"path":"nodes/Adeu/descriptions/applyTextRevision.operation.ts","kind":"import-statement","original":"./descriptions/applyTextRevision.operation"},{"path":"nodes/Adeu/descriptions/generateDiff.operation.ts","kind":"import-statement","original":"./descriptions/generateDiff.operation"},{"path":"nodes/Adeu/descriptions/finalizeDocument.operation.ts","kind":"import-statement","original":"./descriptions/finalizeDocument.operation"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"./GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/nodes/Adeu/Adeu.node.js":{"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true}],"exports":["Adeu"],"entryPoint":"nodes/Adeu/Adeu.node.ts","inputs":{"shims/module.js":{"bytesInOutput":121},"../../node_modules/diff-match-patch/index.js":{"bytesInOutput":19270},"nodes/Adeu/Adeu.node.ts":{"bytesInOutput":6103},"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts":{"bytesInOutput":5290},"nodes/Adeu/GenericFunctions.ts":{"bytesInOutput":9606},"../../node_modules/fflate/esm/index.mjs":{"bytesInOutput":13293},"../core/dist/index.js":{"bytesInOutput":302741},"nodes/Adeu/descriptions/extractMarkdown.operation.ts":{"bytesInOutput":5291},"nodes/Adeu/descriptions/extractOutline.operation.ts":{"bytesInOutput":1244},"nodes/Adeu/descriptions/applyEdits.operation.ts":{"bytesInOutput":11512},"nodes/Adeu/descriptions/applyTextRevision.operation.ts":{"bytesInOutput":4344},"nodes/Adeu/descriptions/generateDiff.operation.ts":{"bytesInOutput":7234},"nodes/Adeu/descriptions/finalizeDocument.operation.ts":{"bytesInOutput":5496},"nodes/Adeu/descriptions/index.ts":{"bytesInOutput":6021}},"bytes":398176}}}
1
+ {"inputs":{"shims/module.js":{"bytes":224,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../../node_modules/fflate/esm/index.mjs":{"bytes":91765,"imports":[{"path":"shims/module.js","kind":"import-statement","original":"module"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/diff-match-patch/index.js":{"bytes":78052,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"cjs"},"../core/dist/index.js":{"bytes":691614,"imports":[{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"../../node_modules/diff-match-patch/index.js","kind":"import-statement","original":"diff-match-patch"},{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/fflate/esm/index.mjs","kind":"import-statement","original":"fflate"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/GenericFunctions.ts":{"bytes":21500,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts":{"bytes":8418,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/extractMarkdown.operation.ts":{"bytes":9476,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/extractOutline.operation.ts":{"bytes":3088,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/applyEdits.operation.ts":{"bytes":17314,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/applyTextRevision.operation.ts":{"bytes":7550,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/generateDiff.operation.ts":{"bytes":13540,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/finalizeDocument.operation.ts":{"bytes":8501,"imports":[{"path":"../core/dist/index.js","kind":"import-statement","original":"@adeu/core"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"../GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"nodes/Adeu/descriptions/index.ts":{"bytes":8081,"imports":[{"path":"nodes/Adeu/descriptions/extractMarkdown.operation.ts","kind":"import-statement","original":"./extractMarkdown.operation"},{"path":"nodes/Adeu/descriptions/extractOutline.operation.ts","kind":"import-statement","original":"./extractOutline.operation"},{"path":"nodes/Adeu/descriptions/applyEdits.operation.ts","kind":"import-statement","original":"./applyEdits.operation"},{"path":"nodes/Adeu/descriptions/applyTextRevision.operation.ts","kind":"import-statement","original":"./applyTextRevision.operation"},{"path":"nodes/Adeu/descriptions/generateDiff.operation.ts","kind":"import-statement","original":"./generateDiff.operation"},{"path":"nodes/Adeu/descriptions/finalizeDocument.operation.ts","kind":"import-statement","original":"./finalizeDocument.operation"},{"path":"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts","kind":"import-statement","original":"./hydrateToolOutput.operation"}],"format":"esm"},"nodes/Adeu/Adeu.node.ts":{"bytes":8841,"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts","kind":"import-statement","original":"./descriptions/hydrateToolOutput.operation"},{"path":"nodes/Adeu/descriptions/index.ts","kind":"import-statement","original":"./descriptions"},{"path":"nodes/Adeu/descriptions/extractMarkdown.operation.ts","kind":"import-statement","original":"./descriptions/extractMarkdown.operation"},{"path":"nodes/Adeu/descriptions/extractOutline.operation.ts","kind":"import-statement","original":"./descriptions/extractOutline.operation"},{"path":"nodes/Adeu/descriptions/applyEdits.operation.ts","kind":"import-statement","original":"./descriptions/applyEdits.operation"},{"path":"nodes/Adeu/descriptions/applyTextRevision.operation.ts","kind":"import-statement","original":"./descriptions/applyTextRevision.operation"},{"path":"nodes/Adeu/descriptions/generateDiff.operation.ts","kind":"import-statement","original":"./descriptions/generateDiff.operation"},{"path":"nodes/Adeu/descriptions/finalizeDocument.operation.ts","kind":"import-statement","original":"./descriptions/finalizeDocument.operation"},{"path":"nodes/Adeu/GenericFunctions.ts","kind":"import-statement","original":"./GenericFunctions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/nodes/Adeu/Adeu.node.js":{"imports":[{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"n8n-workflow","kind":"import-statement","external":true}],"exports":["Adeu"],"entryPoint":"nodes/Adeu/Adeu.node.ts","inputs":{"shims/module.js":{"bytesInOutput":121},"../../node_modules/diff-match-patch/index.js":{"bytesInOutput":19270},"nodes/Adeu/Adeu.node.ts":{"bytesInOutput":6103},"nodes/Adeu/descriptions/hydrateToolOutput.operation.ts":{"bytesInOutput":5290},"nodes/Adeu/GenericFunctions.ts":{"bytesInOutput":9606},"../../node_modules/fflate/esm/index.mjs":{"bytesInOutput":13293},"../core/dist/index.js":{"bytesInOutput":302741},"nodes/Adeu/descriptions/extractMarkdown.operation.ts":{"bytesInOutput":5291},"nodes/Adeu/descriptions/extractOutline.operation.ts":{"bytesInOutput":1244},"nodes/Adeu/descriptions/applyEdits.operation.ts":{"bytesInOutput":11512},"nodes/Adeu/descriptions/applyTextRevision.operation.ts":{"bytesInOutput":4344},"nodes/Adeu/descriptions/generateDiff.operation.ts":{"bytesInOutput":7234},"nodes/Adeu/descriptions/finalizeDocument.operation.ts":{"bytesInOutput":5496},"nodes/Adeu/descriptions/index.ts":{"bytesInOutput":6021}},"bytes":398209}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-adeu",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "n8n community node for Adeu — apply AI-driven tracked changes, generate diffs, and sanitize Microsoft Word (.docx) documents.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -30,7 +30,7 @@
30
30
  "main": "dist/nodes/Adeu/Adeu.node.js",
31
31
  "scripts": {
32
32
  "build": "tsup && npm run copy-assets",
33
- "copy-assets": "copyfiles -u 1 \"nodes/**/*.svg\" \"nodes/**/*.json\" dist/nodes/",
33
+ "copy-assets": "node -e \"const fs=require('fs');fs.cpSync('nodes','dist/nodes',{recursive:true,filter:s=>fs.statSync(s).isDirectory()||/\\.(svg|json)$/.test(s)})\"",
34
34
  "dev": "tsup --watch",
35
35
  "lint": "eslint nodes/**/*.ts",
36
36
  "lintfix": "eslint nodes/**/*.ts --fix",
@@ -49,15 +49,14 @@
49
49
  "n8n-workflow": "*"
50
50
  },
51
51
  "devDependencies": {
52
- "@adeu/core": "^4.0.0",
53
- "@n8n/eslint-plugin-community-nodes": "^0.36.0",
54
- "@types/node": "^26.6.5",
55
- "@typescript-eslint/parser": "^8.71.2",
56
- "copyfiles": "^2.4.1",
57
- "eslint": "^10.12.0",
58
- "n8n-workflow": "^2.44.0",
59
- "tsup": "^8.5.1",
52
+ "@adeu/core": "^4.0.1",
53
+ "@n8n/eslint-plugin-community-nodes": "^0.40.0",
54
+ "@types/node": "^26.6.6",
55
+ "@typescript-eslint/parser": "^8.72.2",
56
+ "eslint": "9.29.0",
57
+ "n8n-workflow": "^3.2.0",
58
+ "tsup": "^9.0.0",
60
59
  "typescript": "~6.0.3",
61
- "vitest": "^5.0.4"
60
+ "vitest": "^5.1.0"
62
61
  }
63
62
  }