{"format":"rockvault-plugin-pack-v1","name":"磐石密码本 · 71 款官方插件全量离线扩展包","version":"1.0.0","generatedAt":"2026-11-18T09:28:56.823Z","count":71,"runtimes":{"pdflib":"!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=t||self).PDFLib={})}(this,(function(t){\"use strict\";\n/*! *****************************************************************************\n    Copyright (c) Microsoft Corporation. All rights reserved.\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n    this file except in compliance with the License. You may obtain a copy of the\n    License at http://www.apache.org/licenses/LICENSE-2.0\n\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\n    MERCHANTABLITY OR NON-INFRINGEMENT.\n\n    See the Apache Version 2.0 License for specific language governing permissions\n    and limitations under the License.\n    ***************************************************************************** */var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},\"function\"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError(\"Generator is already executing.\");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function a(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}for(var s=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",l=new Uint8Array(256),h=0;h<s.length;h++)l[s.charCodeAt(h)]=h;var u,c=function(t){for(var e=\"\",n=t.length,r=0;r<n;r+=3)e+=s[t[r]>>2],e+=s[(3&t[r])<<4|t[r+1]>>4],e+=s[(15&t[r+1])<<2|t[r+2]>>6],e+=s[63&t[r+2]];return n%3==2?e=e.substring(0,e.length-1)+\"=\":n%3==1&&(e=e.substring(0,e.length-2)+\"==\"),e},d=function(t){var e,n,r,i,o,a=.75*t.length,s=t.length,h=0;\"=\"===t[t.length-1]&&(a--,\"=\"===t[t.length-2]&&a--);var u=new Uint8Array(a);for(e=0;e<s;e+=4)n=l[t.charCodeAt(e)],r=l[t.charCodeAt(e+1)],i=l[t.charCodeAt(e+2)],o=l[t.charCodeAt(e+3)],u[h++]=n<<2|r>>4,u[h++]=(15&r)<<4|i>>2,u[h++]=(3&i)<<6|63&o;return u},f=/^(data)?:?([\\w\\/\\+]+)?;?(charset=[\\w-]+|base64)?.*,/i,p=function(t){var e=t.trim(),n=e.substring(0,100).match(f);if(!n)return d(e);var r=n[0],i=e.substring(r.length);return d(i)},g=function(t){return t.charCodeAt(0)},v=function(t){return t.codePointAt(0)},y=function(t,e){return x(t.toString(16),e,\"0\").toUpperCase()},m=function(t){return y(t,2)},b=function(t){return String.fromCharCode(t)},w=function(t){return b(parseInt(t,16))},x=function(t,e,n){for(var r=\"\",i=0,o=e-t.length;i<o;i++)r+=n;return r+t},k=function(t,e,n){for(var r=t.length,i=0;i<r;i++)e[n++]=t.charCodeAt(i);return r},F=function(t){return t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")},S=function(t){return t.replace(/\\t|\\u0085|\\u2028|\\u2029/g,\"    \").replace(/[\\b\\v]/g,\"\")},C=[\"\\\\n\",\"\\\\f\",\"\\\\r\",\"\\\\u000B\"],A=function(t){return/^[\\n\\f\\r\\u000B]$/.test(t)},T=function(t){return t.split(/[\\n\\f\\r\\u000B]/)},P=function(t){return t.replace(/[\\n\\f\\r\\u000B]/g,\" \")},z=function(t,e){var n,r=t.charCodeAt(e),i=e+1,o=1;return r>=55296&&r<=56319&&t.length>i&&(n=t.charCodeAt(i))>=56320&&n<=57343&&(o=2),[t.slice(e,e+o),o]},R=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=z(t,n),o=i[0],a=i[1];e.push(o),n+=a}return e},O=function(t,e,n,r){for(var i=function(t){for(var e=C.join(\"|\"),n=[\"$\"],r=0,i=t.length;r<i;r++){var o=t[r];if(A(o))throw new TypeError(\"`wordBreak` must not include \"+e);n.push(\"\"===o?\".\":F(o))}var a=n.join(\"|\");return new RegExp(\"(\"+e+\")|((.*?)(\"+a+\"))\",\"gm\")}(e),o=S(t).match(i),a=\"\",s=0,l=[],h=function(){\"\"!==a&&l.push(a),a=\"\",s=0},u=0,c=o.length;u<c;u++){var d=o[u];if(A(d))h();else{var f=r(d);s+f>n&&h(),a+=d,s+=f}}return h(),l},D=/^D:(\\d\\d\\d\\d)(\\d\\d)?(\\d\\d)?(\\d\\d)?(\\d\\d)?(\\d\\d)?([+\\-Z])?(\\d\\d)?'?(\\d\\d)?'?$/,B=function(t){var e=t.match(D);if(e){var n=e[1],r=e[2],i=void 0===r?\"01\":r,o=e[3],a=void 0===o?\"01\":o,s=e[4],l=void 0===s?\"00\":s,h=e[5],u=void 0===h?\"00\":h,c=e[6],d=void 0===c?\"00\":c,f=e[7],p=void 0===f?\"Z\":f,g=e[8],v=void 0===g?\"00\":g,y=e[9];return new Date(n+\"-\"+i+\"-\"+a+\"T\"+l+\":\"+u+\":\"+d+(\"Z\"===p?\"Z\":\"\"+p+v+\":\"+(void 0===y?\"00\":y)))}},N=function(t,e){for(var n,r,i=0;i<t.length;){var o=t.substring(i).match(e);if(!o)return{match:r,pos:i};r=o,i+=(null!==(n=o.index)&&void 0!==n?n:0)+o[0].length}return{match:r,pos:i}},E=function(t){return t[t.length-1]},j=function(t){if(t instanceof Uint8Array)return t;for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},M=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.length,r=[],i=0;i<n;i++){var o=t[i];r[i]=o instanceof Uint8Array?o:j(o)}var a=0;for(i=0;i<n;i++)a+=t[i].length;for(var s=new Uint8Array(a),l=0,h=0;h<n;h++)for(var u=r[h],c=0,d=u.length;c<d;c++)s[l++]=u[c];return s},I=function(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n].length;var i=new Uint8Array(e),o=0;for(n=0,r=t.length;n<r;n++){var a=t[n];i.set(a,o),o+=a.length}return i},U=function(t){for(var e=\"\",n=0,r=t.length;n<r;n++)e+=b(t[n]);return e},V=function(t,e){return t.id-e.id},W=function(t,e){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r],a=t[r-1];0!==r&&e(o)===e(a)||n.push(o)}return n},q=function(t){for(var e=t.length,n=0,r=Math.floor(e/2);n<r;n++){var i=n,o=e-n-1,a=t[n];t[i]=t[o],t[o]=a}return t},L=function(t){for(var e=0,n=0,r=t.length;n<r;n++)e+=t[n];return e},K=function(t,e){for(var n=new Array(e-t),r=0,i=n.length;r<i;r++)n[r]=t+r;return n},G=function(t,e){for(var n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t[e[r]];return n},H=function(t){return t instanceof Uint8Array||t instanceof ArrayBuffer||\"string\"==typeof t},_=function(t){if(\"string\"==typeof t)return p(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(t instanceof Uint8Array)return t;throw new TypeError(\"`input` must be one of `string | ArrayBuffer | Uint8Array`\")},X=function(){return new Promise((function(t){setTimeout((function(){return t()}),0)}))},Z=function(t,e){void 0===e&&(e=!0);var n=[];e&&n.push(65279);for(var r=0,i=t.length;r<i;){var o=t.codePointAt(r);if(o<65536)n.push(o),r+=1;else{if(!(o<1114112))throw new Error(\"Invalid code point: 0x\"+m(o));n.push(Q(o),$(o)),r+=2}}return new Uint16Array(n)},Y=function(t){return t>=0&&t<=65535},J=function(t){return t>=65536&&t<=1114111},Q=function(t){return Math.floor((t-65536)/1024)+55296},$=function(t){return(t-65536)%1024+56320};!function(t){t.BigEndian=\"BigEndian\",t.LittleEndian=\"LittleEndian\"}(u||(u={}));var tt=\"�\".codePointAt(0),et=function(t,e){if(void 0===e&&(e=!0),t.length<=1)return String.fromCodePoint(tt);for(var n=e?ot(t):u.BigEndian,r=e?2:0,i=[];t.length-r>=2;){var o=it(t[r++],t[r++],n);if(nt(o))if(t.length-r<2)i.push(tt);else{var a=it(t[r++],t[r++],n);rt(a)?i.push(o,a):i.push(tt)}else rt(o)?(r+=2,i.push(tt)):i.push(o)}return r<t.length&&i.push(tt),String.fromCodePoint.apply(String,i)},nt=function(t){return t>=55296&&t<=56319},rt=function(t){return t>=56320&&t<=57343},it=function(t,e,n){if(n===u.LittleEndian)return e<<8|t;if(n===u.BigEndian)return t<<8|e;throw new Error(\"Invalid byteOrder: \"+n)},ot=function(t){return at(t)?u.BigEndian:st(t)?u.LittleEndian:u.BigEndian},at=function(t){return 254===t[0]&&255===t[1]},st=function(t){return 255===t[0]&&254===t[1]},lt=function(t){return at(t)||st(t)},ht=function(t){var e,n=String(t);if(Math.abs(t)<1){if(e=parseInt(t.toString().split(\"e-\")[1])){var r=t<0;r&&(t*=-1),t*=Math.pow(10,e-1),n=\"0.\"+new Array(e).join(\"0\")+t.toString().substring(2),r&&(n=\"-\"+n)}}else(e=parseInt(t.toString().split(\"+\")[1]))>20&&(e-=20,n=(t/=Math.pow(10,e)).toString()+new Array(e+1).join(\"0\"));return n},ut=function(t){return Math.ceil(t.toString(2).length/8)},ct=function(t){for(var e=new Uint8Array(ut(t)),n=1;n<=e.length;n++)e[n-1]=t>>8*(e.length-n);return e},dt=function(t){throw new Error(t)};function ft(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error(\"Dynamic requires are not currently supported by @rollup/plugin-commonjs\")}(null==e&&n.path)}},n.exports),n.exports}var pt=ft((function(t,e){var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(\"object\"!=typeof n)throw new TypeError(n+\"must be non-object\");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)}));function gt(t){for(var e=t.length;--e>=0;)t[e]=0}var vt=[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],yt=[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],mt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wt=new Array(576);gt(wt);var xt=new Array(60);gt(xt);var kt=new Array(512);gt(kt);var Ft=new Array(256);gt(Ft);var St=new Array(29);gt(St);var Ct,At,Tt,Pt=new Array(30);function zt(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function Rt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ot(t){return t<256?kt[t]:kt[256+(t>>>7)]}function Dt(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Bt(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,Dt(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function Nt(t,e,n){Bt(t,n[2*e],n[2*e+1])}function Et(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function jt(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Et(o[s]++,s))}}function Mt(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function It(t){t.bi_valid>8?Dt(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Ut(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Vt(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Ut(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Ut(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function Wt(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?Nt(t,i,e):(Nt(t,(o=Ft[i])+256+1,e),0!==(a=vt[o])&&Bt(t,i-=St[o],a),Nt(t,o=Ot(--r),n),0!==(a=yt[o])&&Bt(t,r-=Pt[o],a))}while(s<t.last_lit);Nt(t,256,e)}function qt(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=h=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=h,n=t.heap_len>>1;n>=1;n--)Vt(t,o,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Vt(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Vt(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,g++),l[2*r+1]=o,r>h||(t.bl_count[o]++,a=0,r>=f&&(a=d[r-f]),s=l[2*r],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>h||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),jt(o,h,t.bl_count)}function Lt(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Kt(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<h)do{Nt(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Nt(t,i,t.bl_tree),s--),Nt(t,16,t.bl_tree),Bt(t,s-3,2)):s<=10?(Nt(t,17,t.bl_tree),Bt(t,s-3,3)):(Nt(t,18,t.bl_tree),Bt(t,s-11,7));s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4)}}gt(Pt);var Gt=!1;function Ht(t,e,n,r){Bt(t,0+(r?1:0),3),function(t,e,n,r){It(t),r&&(Dt(t,n),Dt(t,~n)),pt.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}var _t={_tr_init:function(t){Gt||(!function(){var t,e,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(St[r]=n,t=0;t<1<<vt[r];t++)Ft[n++]=r;for(Ft[n-1]=r,i=0,r=0;r<16;r++)for(Pt[r]=i,t=0;t<1<<yt[r];t++)kt[i++]=r;for(i>>=7;r<30;r++)for(Pt[r]=i<<7,t=0;t<1<<yt[r]-7;t++)kt[256+i++]=r;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)wt[2*t+1]=8,t++,o[8]++;for(;t<=255;)wt[2*t+1]=9,t++,o[9]++;for(;t<=279;)wt[2*t+1]=7,t++,o[7]++;for(;t<=287;)wt[2*t+1]=8,t++,o[8]++;for(jt(wt,287,o),t=0;t<30;t++)xt[2*t+1]=5,xt[2*t]=Et(t,5);Ct=new zt(wt,vt,257,286,15),At=new zt(xt,yt,0,30,15),Tt=new zt(new Array(0),mt,0,19,7)}(),Gt=!0),t.l_desc=new Rt(t.dyn_ltree,Ct),t.d_desc=new Rt(t.dyn_dtree,At),t.bl_desc=new Rt(t.bl_tree,Tt),t.bi_buf=0,t.bi_valid=0,Mt(t)},_tr_stored_block:Ht,_tr_flush_block:function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),qt(t,t.l_desc),qt(t,t.d_desc),a=function(t){var e;for(Lt(t,t.dyn_ltree,t.l_desc.max_code),Lt(t,t.dyn_dtree,t.d_desc.max_code),qt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*bt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?Ht(t,e,n,r):4===t.strategy||o===i?(Bt(t,2+(r?1:0),3),Wt(t,wt,xt)):(Bt(t,4+(r?1:0),3),function(t,e,n,r){var i;for(Bt(t,e-257,5),Bt(t,n-1,5),Bt(t,r-4,4),i=0;i<r;i++)Bt(t,t.bl_tree[2*bt[i]+1],3);Kt(t,t.dyn_ltree,e-1),Kt(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Wt(t,t.dyn_ltree,t.dyn_dtree)),Mt(t),r&&It(t)},_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(Ft[n]+256+1)]++,t.dyn_dtree[2*Ot(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){Bt(t,2,3),Nt(t,256,wt),function(t){16===t.bi_valid?(Dt(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}};var Xt=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var Zt=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();var Yt,Jt=function(t,e,n,r){var i=Zt,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},Qt={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"};function $t(t,e){return t.msg=Qt[e],e}function te(t){return(t<<1)-(t>4?9:0)}function ee(t){for(var e=t.length;--e>=0;)t[e]=0}function ne(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(pt.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function re(t,e){_t._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ne(t.strm)}function ie(t,e){t.pending_buf[t.pending++]=e}function oe(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ae(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,pt.arraySet(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=Xt(t.adler,e,i,n):2===t.state.wrap&&(t.adler=Jt(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function se(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,f=h[o+a-1],p=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(n=e)+a]===p&&h[n+a-1]===f&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;f=h[o+a-1],p=h[o+a]}}}while((e=c[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function le(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-262)){pt.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=ae(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function he(t,e){for(var n,r;;){if(t.lookahead<262){if(le(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=se(t,n)),t.match_length>=3)if(r=_t._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=_t._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}function ue(t,e){for(var n,r,i;;){if(t.lookahead<262){if(le(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=se(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=_t._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(re(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=_t._tr_tally(t,0,t.window[t.strstart-1]))&&re(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=_t._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}function ce(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function de(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new pt.Buf16(1146),this.dyn_dtree=new pt.Buf16(122),this.bl_tree=new pt.Buf16(78),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new pt.Buf16(16),this.heap=new pt.Buf16(573),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new pt.Buf16(573),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function fe(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,_t._tr_init(e),0):$t(t,-2)}function pe(t){var e,n=fe(t);return 0===n&&((e=t.state).window_size=2*e.w_size,ee(e.head),e.max_lazy_match=Yt[e.level].max_lazy,e.good_match=Yt[e.level].good_length,e.nice_match=Yt[e.level].nice_length,e.max_chain_length=Yt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function ge(t,e,n,r,i,o){if(!t)return-2;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return $t(t,-2);8===r&&(r=9);var s=new de;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new pt.Buf8(2*s.w_size),s.head=new pt.Buf16(s.hash_size),s.prev=new pt.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new pt.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,pe(t)}Yt=[new ce(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(le(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,re(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(re(t,!1),t.strm.avail_out),1)})),new ce(4,4,8,4,he),new ce(4,5,16,8,he),new ce(4,6,32,32,he),new ce(4,4,16,16,ue),new ce(8,16,32,32,ue),new ce(8,16,128,128,ue),new ce(8,32,128,256,ue),new ce(32,128,258,1024,ue),new ce(32,258,258,4096,ue)];var ve={deflateInit:function(t,e){return ge(t,e,8,15,8,0)},deflateInit2:ge,deflateReset:pe,deflateResetKeep:fe,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},deflate:function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?$t(t,-2):-2;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return $t(t,0===t.avail_out?-5:-2);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,ie(r,31),ie(r,139),ie(r,8),r.gzhead?(ie(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),ie(r,255&r.gzhead.time),ie(r,r.gzhead.time>>8&255),ie(r,r.gzhead.time>>16&255),ie(r,r.gzhead.time>>24&255),ie(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ie(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(ie(r,255&r.gzhead.extra.length),ie(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=Jt(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(ie(r,0),ie(r,0),ie(r,0),ie(r,0),ie(r,0),ie(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ie(r,3),r.status=113);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=113,oe(r,a),0!==r.strstart&&(oe(r,t.adler>>>16),oe(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),ne(t),i=r.pending,r.pending!==r.pending_buf_size));)ie(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),ne(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,ie(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),ne(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,ie(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=Jt(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&ne(t),r.pending+2<=r.pending_buf_size&&(ie(r,255&t.adler),ie(r,t.adler>>8&255),t.adler=0,r.status=113)):r.status=113),0!==r.pending){if(ne(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&te(e)<=te(n)&&4!==e)return $t(t,-5);if(666===r.status&&0!==t.avail_in)return $t(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(le(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=_t._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=258){if(le(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+258;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=_t._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=_t._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}(r,e):Yt[r.level].func(r,e);if(3!==s&&4!==s||(r.status=666),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?_t._tr_align(r):5!==e&&(_t._tr_stored_block(r,0,0,!1),3===e&&(ee(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),ne(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(ie(r,255&t.adler),ie(r,t.adler>>8&255),ie(r,t.adler>>16&255),ie(r,t.adler>>24&255),ie(r,255&t.total_in),ie(r,t.total_in>>8&255),ie(r,t.total_in>>16&255),ie(r,t.total_in>>24&255)):(oe(r,t.adler>>>16),oe(r,65535&t.adler)),ne(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},deflateEnd:function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?$t(t,-2):(t.state=null,113===e?$t(t,-3):0):-2},deflateSetDictionary:function(t,e){var n,r,i,o,a,s,l,h,u=e.length;if(!t||!t.state)return-2;if(2===(o=(n=t.state).wrap)||1===o&&42!==n.status||n.lookahead)return-2;for(1===o&&(t.adler=Xt(t.adler,e,u,0)),n.wrap=0,u>=n.w_size&&(0===o&&(ee(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new pt.Buf8(n.w_size),pt.arraySet(h,e,u-n.w_size,n.w_size,0),e=h,u=n.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,le(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,le(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=l,t.avail_in=a,n.wrap=o,0},deflateInfo:\"pako deflate (from Nodeca project)\"},ye=!0,me=!0;try{String.fromCharCode.apply(null,[0])}catch(t){ye=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){me=!1}for(var be=new pt.Buf8(256),we=0;we<256;we++)be[we]=we>=252?6:we>=248?5:we>=240?4:we>=224?3:we>=192?2:1;be[254]=be[254]=1;function xe(t,e){if(e<65534&&(t.subarray&&me||!t.subarray&&ye))return String.fromCharCode.apply(null,pt.shrinkBuf(t,e));for(var n=\"\",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}var ke=function(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new pt.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},Fe=function(t){return xe(t,t.length)},Se=function(t){for(var e=new pt.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},Ce=function(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=be[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return xe(s,r)},Ae=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+be[t[n]]>e?n:e};var Te=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0},Pe=Object.prototype.toString;function ze(t){if(!(this instanceof ze))return new ze(t);this.options=pt.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Te,this.strm.avail_out=0;var n=ve.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(Qt[n]);if(e.header&&ve.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r=\"string\"==typeof e.dictionary?ke(e.dictionary):\"[object ArrayBuffer]\"===Pe.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=ve.deflateSetDictionary(this.strm,r)))throw new Error(Qt[n]);this._dict_set=!0}}function Re(t,e){var n=new ze(e);if(n.push(t,!0),n.err)throw n.msg||Qt[n.err];return n.result}ze.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,\"string\"==typeof t?i.input=ke(t):\"[object ArrayBuffer]\"===Pe.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new pt.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=ve.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||(\"string\"===this.options.to?this.onData(Fe(pt.shrinkBuf(i.output,i.next_out))):this.onData(pt.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=ve.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),i.avail_out=0,!0)},ze.prototype.onData=function(t){this.chunks.push(t)},ze.prototype.onEnd=function(t){0===t&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=pt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Oe={Deflate:ze,deflate:Re,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Re(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Re(t,e)}},De=function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,h=n.wsize,u=n.whave,c=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=g[f&y];e:for(;;){if(f>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))A[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg=\"invalid literal/length code\",n.mode=30;break t}x=65535&b,(w&=15)&&(p<w&&(f+=C[r++]<<p,p+=8),x+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=v[f&m];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(f&(1<<w)-1)];continue n}t.msg=\"invalid distance code\",n.mode=30;break t}if(k=65535&b,p<(w&=15)&&(f+=C[r++]<<p,(p+=8)<w&&(f+=C[r++]<<p,p+=8)),(k+=f&(1<<w)-1)>l){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(f>>>=w,p-=w,k>(w=o-a)){if((w=k-w)>u&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(F=0,S=d,0===c){if(F+=h-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}else if(c<w){if(F+=h+c-w,(w-=c)<x){x-=w;do{A[o++]=d[F++]}while(--w);if(F=0,c<x){x-=w=c;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}}else if(F+=c-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}for(;x>2;)A[o++]=S[F++],A[o++]=S[F++],A[o++]=S[F++],x-=3;x&&(A[o++]=S[F++],x>1&&(A[o++]=S[F++]))}else{F=o-k;do{A[o++]=A[F++],A[o++]=A[F++],A[o++]=A[F++],x-=3}while(x>2);x&&(A[o++]=A[F++],x>1&&(A[o++]=A[F++]))}break}}break}}while(r<i&&o<s);r-=x=p>>3,f&=(1<<(p-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p},Be=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Ne=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ee=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],je=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Me=function(t,e,n,r,i,o,a,s){var l,h,u,c,d,f,p,g,v,y=s.bits,m=0,b=0,w=0,x=0,k=0,F=0,S=0,C=0,A=0,T=0,P=null,z=0,R=new pt.Buf16(16),O=new pt.Buf16(16),D=null,B=0;for(m=0;m<=15;m++)R[m]=0;for(b=0;b<r;b++)R[e[n+b]]++;for(k=y,x=15;x>=1&&0===R[x];x--);if(k>x&&(k=x),0===x)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<x&&0===R[w];w++);for(k<w&&(k=w),C=1,m=1;m<=15;m++)if(C<<=1,(C-=R[m])<0)return-1;if(C>0&&(0===t||1!==x))return-1;for(O[1]=0,m=1;m<15;m++)O[m+1]=O[m]+R[m];for(b=0;b<r;b++)0!==e[n+b]&&(a[O[e[n+b]]++]=b);if(0===t?(P=D=a,f=19):1===t?(P=Be,z-=257,D=Ne,B-=257,f=256):(P=Ee,D=je,f=-1),T=0,b=0,m=w,d=o,F=k,S=0,u=-1,c=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,a[b]<f?(g=0,v=a[b]):a[b]>f?(g=D[B+a[b]],v=P[z+a[b]]):(g=96,v=0),l=1<<m-S,w=h=1<<F;do{i[d+(T>>S)+(h-=l)]=p<<24|g<<16|v|0}while(0!==h);for(l=1<<m-1;T&l;)l>>=1;if(0!==l?(T&=l-1,T+=l):T=0,b++,0==--R[m]){if(m===x)break;m=e[n+a[b]]}if(m>k&&(T&c)!==u){for(0===S&&(S=k),d+=w,C=1<<(F=m-S);F+S<x&&!((C-=R[F+S])<=0);)F++,C<<=1;if(A+=1<<F,1===t&&A>852||2===t&&A>592)return 1;i[u=T&c]=k<<24|F<<16|d-o|0}}return 0!==T&&(i[d+T]=m-S<<24|64<<16|0),s.bits=k,0};function Ie(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Ue(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new pt.Buf16(320),this.work=new pt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ve(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new pt.Buf32(852),e.distcode=e.distdyn=new pt.Buf32(592),e.sane=1,e.back=-1,0):-2}function We(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,Ve(t)):-2}function qe(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,We(t))):-2}function Le(t,e){var n,r;return t?(r=new Ue,t.state=r,r.window=null,0!==(n=qe(t,e))&&(t.state=null),n):-2}var Ke,Ge,He=!0;function _e(t){if(He){var e;for(Ke=new pt.Buf32(512),Ge=new pt.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Me(1,t.lens,0,288,Ke,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Me(2,t.lens,0,32,Ge,0,t.work,{bits:5}),He=!1}t.lencode=Ke,t.lenbits=9,t.distcode=Ge,t.distbits=5}function Xe(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new pt.Buf8(o.wsize)),r>=o.wsize?(pt.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),pt.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(pt.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var Ze={inflateReset:We,inflateReset2:qe,inflateResetKeep:Ve,inflateInit:function(t){return Le(t,15)},inflateInit2:Le,inflate:function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A=0,T=new pt.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,c=s,d=l,F=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===h){n.check=0,T[0]=255&h,T[1]=h>>>8&255,n.check=Jt(n.check,T,2,0),h=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg=\"incorrect header check\",n.mode=30;break}if(8!=(15&h)){t.msg=\"unknown compression method\",n.mode=30;break}if(u-=4,k=8+(15&(h>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg=\"invalid window size\",n.mode=30;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&h?10:12,h=0,u=0;break;case 2:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.flags=h,8!=(255&n.flags)){t.msg=\"unknown compression method\",n.mode=30;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=30;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=Jt(n.check,T,2,0)),h=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.time=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,n.check=Jt(n.check,T,4,0)),h=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=Jt(n.check,T,2,0)),h=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=Jt(n.check,T,2,0)),h=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),pt.arraySet(n.head.extra,r,o,f,k)),512&n.flags&&(n.check=Jt(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=Jt(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=Jt(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=30;break}h=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}t.adler=n.check=Ie(h),h=0,u=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){h>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}switch(n.last=1&h,u-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(_e(n),n.mode=20,6===e){h>>>=2,u-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg=\"invalid block type\",n.mode=30}h>>>=2,u-=2;break;case 14:for(h>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=30;break}if(n.length=65535&h,h=0,u=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break t;pt.arraySet(i,r,o,f,a),s-=f,o+=f,l-=f,a+=f,n.length-=f;break}n.mode=12;break;case 17:for(;u<14;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.nlen=257+(31&h),h>>>=5,u-=5,n.ndist=1+(31&h),h>>>=5,u-=5,n.ncode=4+(15&h),h>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.lens[P[n.have++]]=7&h,h>>>=3,u-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},F=Me(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid code lengths set\",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(m<16)h>>>=v,u-=v,n.lens[n.have++]=m;else{if(16===m){for(C=v+2;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h>>>=v,u-=v,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=30;break}k=n.lens[n.have-1],f=3+(3&h),h>>>=2,u-=2}else if(17===m){for(C=v+3;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=3+(7&(h>>>=v)),h>>>=3,u-=3}else{for(C=v+7;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=11+(127&(h>>>=v)),h>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=30;break}for(;f--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},F=Me(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid literal/lengths set\",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},F=Me(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,F){t.msg=\"invalid distances set\",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,De(t,d),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(y&&0==(240&y)){for(b=v,w=y,x=m;y=(A=n.lencode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,n.length=m,0===y){n.mode=26;break}if(32&y){n.back=-1,n.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",n.mode=30;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;y=(A=n.distcode[h&(1<<n.distbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(0==(240&y)){for(b=v,w=y,x=m;y=(A=n.distcode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,64&y){t.msg=\"invalid distance code\",n.mode=30;break}n.offset=m,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=30;break}n.mode=25;case 25:if(0===l)break t;if(f=d-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=a-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[a++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break t;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break t;s--,h|=r[o++]<<u,u+=8}if(d-=l,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?Jt(n.check,i,d,a-d):Xt(n.check,i,d,a-d)),d=l,(n.flags?h:Ie(h))!==n.check){t.msg=\"incorrect data check\",n.mode=30;break}h=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=30;break}h=0,u=0}n.mode=29;case 29:F=1;break t;case 30:F=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&Xe(t,t.output,t.next_out,d-t.avail_out),c-=t.avail_in,d-=t.avail_out,t.total_in+=c,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?Jt(n.check,i,d,t.next_out-d):Xt(n.check,i,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===c&&0===d||4===e)&&0===F&&(F=-5),F},inflateEnd:function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},inflateGetHeader:function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},inflateSetDictionary:function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&Xt(1,e,r,0)!==n.check?-3:Xe(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},inflateInfo:\"pako inflate (from Nodeca project)\"},Ye={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var Je=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1},Qe=Object.prototype.toString;function $e(t){if(!(this instanceof $e))return new $e(t);this.options=pt.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Te,this.strm.avail_out=0;var n=Ze.inflateInit2(this.strm,e.windowBits);if(n!==Ye.Z_OK)throw new Error(Qt[n]);if(this.header=new Je,Ze.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=ke(e.dictionary):\"[object ArrayBuffer]\"===Qe.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Ze.inflateSetDictionary(this.strm,e.dictionary))!==Ye.Z_OK))throw new Error(Qt[n])}function tn(t,e){var n=new $e(e);if(n.push(t,!0),n.err)throw n.msg||Qt[n.err];return n.result}$e.prototype.push=function(t,e){var n,r,i,o,a,s=this.strm,l=this.options.chunkSize,h=this.options.dictionary,u=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?Ye.Z_FINISH:Ye.Z_NO_FLUSH,\"string\"==typeof t?s.input=Se(t):\"[object ArrayBuffer]\"===Qe.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new pt.Buf8(l),s.next_out=0,s.avail_out=l),(n=Ze.inflate(s,Ye.Z_NO_FLUSH))===Ye.Z_NEED_DICT&&h&&(n=Ze.inflateSetDictionary(this.strm,h)),n===Ye.Z_BUF_ERROR&&!0===u&&(n=Ye.Z_OK,u=!1),n!==Ye.Z_STREAM_END&&n!==Ye.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==Ye.Z_STREAM_END&&(0!==s.avail_in||r!==Ye.Z_FINISH&&r!==Ye.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(i=Ae(s.output,s.next_out),o=s.next_out-i,a=Ce(s.output,i),s.next_out=o,s.avail_out=l-o,o&&pt.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(pt.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==Ye.Z_STREAM_END);return n===Ye.Z_STREAM_END&&(r=Ye.Z_FINISH),r===Ye.Z_FINISH?(n=Ze.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ye.Z_OK):r!==Ye.Z_SYNC_FLUSH||(this.onEnd(Ye.Z_OK),s.avail_out=0,!0)},$e.prototype.onData=function(t){this.chunks.push(t)},$e.prototype.onEnd=function(t){t===Ye.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=pt.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var en={Inflate:$e,inflate:tn,inflateRaw:function(t,e){return(e=e||{}).raw=!0,tn(t,e)},ungzip:tn},nn={};(0,pt.assign)(nn,Oe,en,Ye);for(var rn=nn,on=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",an=new Uint8Array(256),sn=0;sn<on.length;sn++)an[on.charCodeAt(sn)]=sn;var ln,hn=function(t){return function(t){for(var e=\"\",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}(rn.inflate(function(t){var e,n,r,i,o,a=.75*t.length,s=t.length,l=0;\"=\"===t[t.length-1]&&(a--,\"=\"===t[t.length-2]&&a--);var h=new Uint8Array(a);for(e=0;e<s;e+=4)n=an[t.charCodeAt(e)],r=an[t.charCodeAt(e+1)],i=an[t.charCodeAt(e+2)],o=an[t.charCodeAt(e+3)],h[l++]=n<<2|r>>4,h[l++]=(15&r)<<4|i>>2,h[l++]=(3&i)<<6|63&o;return h}(t)))},un={Courier:\"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdf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XodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w==\"};!function(t){t.Courier=\"Courier\",t.CourierBold=\"Courier-Bold\",t.CourierOblique=\"Courier-Oblique\",t.CourierBoldOblique=\"Courier-BoldOblique\",t.Helvetica=\"Helvetica\",t.HelveticaBold=\"Helvetica-Bold\",t.HelveticaOblique=\"Helvetica-Oblique\",t.HelveticaBoldOblique=\"Helvetica-BoldOblique\",t.TimesRoman=\"Times-Roman\",t.TimesRomanBold=\"Times-Bold\",t.TimesRomanItalic=\"Times-Italic\",t.TimesRomanBoldItalic=\"Times-BoldItalic\",t.Symbol=\"Symbol\",t.ZapfDingbats=\"ZapfDingbats\"}(ln||(ln={}));for(var cn={},dn=function(){function t(){var t=this;this.getWidthOfGlyph=function(e){return t.CharWidths[e]},this.getXAxisKerningForPair=function(e,n){return(t.KernPairXAmounts[e]||{})[n]}}return t.load=function(e){var n=cn[e];if(n)return n;var r=hn(un[e]),i=Object.assign(new t,JSON.parse(r));return i.CharWidths=i.CharMetrics.reduce((function(t,e){return t[e.N]=e.WX,t}),{}),i.KernPairXAmounts=i.KernPairs.reduce((function(t,e){var n=e[0],r=e[1],i=e[2];return t[n]||(t[n]={}),t[n][r]=i,t}),{}),cn[e]=i,i},t}(),fn=hn(\"eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlW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oq1dA==\"),pn=JSON.parse(fn),gn=function(t,e){var n=this;this.canEncodeUnicodeCodePoint=function(t){return t in n.unicodeMappings},this.encodeUnicodeCodePoint=function(t){var e=n.unicodeMappings[t];if(!e){var r=String.fromCharCode(t),i=\"0x\"+function(t,e,n){for(var r=\"\",i=0,o=e-t.length;i<o;i++)r+=n;return r+t}(t.toString(16),4,\"0\"),o=n.name+' cannot encode \"'+r+'\" ('+i+\")\";throw new Error(o)}return{code:e[0],name:e[1]}},this.name=t,this.supportedCodePoints=Object.keys(e).map(Number).sort((function(t,e){return t-e})),this.unicodeMappings=e},vn={Symbol:new gn(\"Symbol\",pn.symbol),ZapfDingbats:new gn(\"ZapfDingbats\",pn.zapfdingbats),WinAnsi:new gn(\"WinAnsi\",pn.win1252)},yn=function(t){return Object.keys(t).map((function(e){return t[e]}))},mn=yn(ln),bn=function(t){return mn.includes(t)},wn=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},xn=function(t){return\"`\"+t+\"`\"},kn=function(t){return\"'\"+t+\"'\"},Fn=function(t){var e=typeof t;return\"string\"===e?kn(t):\"undefined\"===e?xn(t):t},Sn=function(t,e,n){for(var r=new Array(n.length),i=0,o=n.length;i<o;i++){var a=n[i];r[i]=Fn(a)}var s=r.join(\" or \");return xn(e)+\" must be one of \"+s+\", but was actually \"+Fn(t)},Cn=function(t,e,n){Array.isArray(n)||(n=yn(n));for(var r=0,i=n.length;r<i;r++)if(t===n[r])return;throw new TypeError(Sn(t,e,n))},An=function(t,e,n){Array.isArray(n)||(n=yn(n)),Cn(t,e,n.concat(void 0))},Tn=function(t,e,n){Array.isArray(n)||(n=yn(n));for(var r=0,i=t.length;r<i;r++)Cn(t[r],e,n)},Pn=function(t){return null===t?\"null\":void 0===t?\"undefined\":\"string\"==typeof t?\"string\":isNaN(t)?\"NaN\":\"number\"==typeof t?\"number\":\"boolean\"==typeof t?\"boolean\":\"symbol\"==typeof t?\"symbol\":\"bigint\"==typeof t?\"bigint\":t.constructor&&t.constructor.name?t.constructor.name:t.name?t.name:t.constructor?String(t.constructor):String(t)},zn=function(t,e){return\"null\"===e?null===t:\"undefined\"===e?void 0===t:\"string\"===e?\"string\"==typeof t:\"number\"===e?\"number\"==typeof t&&!isNaN(t):\"boolean\"===e?\"boolean\"==typeof t:\"symbol\"===e?\"symbol\"==typeof t:\"bigint\"===e?\"bigint\"==typeof t:e===Date?t instanceof Date:e===Array?t instanceof Array:e===Uint8Array?t instanceof Uint8Array:e===ArrayBuffer?t instanceof ArrayBuffer:e===Function?t instanceof Function:t instanceof e[0]},Rn=function(t,e,n){for(var r=new Array(n.length),i=0,o=n.length;i<o;i++){var a=n[i];\"null\"===a&&(r[i]=xn(\"null\")),\"undefined\"===a&&(r[i]=xn(\"undefined\")),\"string\"===a?r[i]=xn(\"string\"):\"number\"===a?r[i]=xn(\"number\"):\"boolean\"===a?r[i]=xn(\"boolean\"):\"symbol\"===a?r[i]=xn(\"symbol\"):\"bigint\"===a?r[i]=xn(\"bigint\"):a===Array?r[i]=xn(\"Array\"):a===Uint8Array?r[i]=xn(\"Uint8Array\"):a===ArrayBuffer?r[i]=xn(\"ArrayBuffer\"):r[i]=xn(a[1])}var s=r.join(\" or \");return xn(e)+\" must be of type \"+s+\", but was actually of type \"+xn(Pn(t))},On=function(t,e,n){for(var r=0,i=n.length;r<i;r++)if(zn(t,n[r]))return;throw new TypeError(Rn(t,e,n))},Dn=function(t,e,n){On(t,e,n.concat(\"undefined\"))},Bn=function(t,e,n){for(var r=0,i=t.length;r<i;r++)On(t[r],e,n)},Nn=function(t,e,n,r){if(On(t,e,[\"number\"]),On(n,\"min\",[\"number\"]),On(r,\"max\",[\"number\"]),r=Math.max(n,r),t<n||t>r)throw new Error(xn(e)+\" must be at least \"+n+\" and at most \"+r+\", but was actually \"+t)},En=function(t,e,n,r){On(t,e,[\"number\",\"undefined\"]),\"number\"==typeof t&&Nn(t,e,n,r)},jn=function(t,e,n){if(On(t,e,[\"number\"]),t%n!=0)throw new Error(xn(e)+\" must be a multiple of \"+n+\", but was actually \"+t)},Mn=function(t,e){if(!Number.isInteger(t))throw new Error(xn(e)+\" must be an integer, but was actually \"+t)},In=function(t,e){if(![1,0].includes(Math.sign(t)))throw new Error(xn(e)+\" must be a positive number or 0, but was actually \"+t)},Un=new Uint16Array(256),Vn=0;Vn<256;Vn++)Un[Vn]=Vn;Un[22]=g(\"\u0017\"),Un[24]=g(\"˘\"),Un[25]=g(\"ˇ\"),Un[26]=g(\"ˆ\"),Un[27]=g(\"˙\"),Un[28]=g(\"˝\"),Un[29]=g(\"˛\"),Un[30]=g(\"˚\"),Un[31]=g(\"˜\"),Un[127]=g(\"�\"),Un[128]=g(\"•\"),Un[129]=g(\"†\"),Un[130]=g(\"‡\"),Un[131]=g(\"…\"),Un[132]=g(\"—\"),Un[133]=g(\"–\"),Un[134]=g(\"ƒ\"),Un[135]=g(\"⁄\"),Un[136]=g(\"‹\"),Un[137]=g(\"›\"),Un[138]=g(\"−\"),Un[139]=g(\"‰\"),Un[140]=g(\"„\"),Un[141]=g(\"“\"),Un[142]=g(\"”\"),Un[143]=g(\"‘\"),Un[144]=g(\"’\"),Un[145]=g(\"‚\"),Un[146]=g(\"™\"),Un[147]=g(\"ﬁ\"),Un[148]=g(\"ﬂ\"),Un[149]=g(\"Ł\"),Un[150]=g(\"Œ\"),Un[151]=g(\"Š\"),Un[152]=g(\"Ÿ\"),Un[153]=g(\"Ž\"),Un[154]=g(\"ı\"),Un[155]=g(\"ł\"),Un[156]=g(\"œ\"),Un[157]=g(\"š\"),Un[158]=g(\"ž\"),Un[159]=g(\"�\"),Un[160]=g(\"€\"),Un[173]=g(\"�\");var Wn,qn=function(t){for(var e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]=Un[t[n]];return String.fromCodePoint.apply(String,e)},Ln=function(){function t(t){this.populate=t,this.value=void 0}return t.prototype.getValue=function(){return this.value},t.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},t.prototype.invalidate=function(){this.value=void 0},t.populatedBy=function(e){return new t(e)},t}(),Kn=function(t){function e(e,n){var r=\"Method \"+e+\".\"+n+\"() not implemented\";return t.call(this,r)||this}return n(e,t),e}(Error),Gn=function(t){function e(e){var n=\"Cannot construct \"+e+\" - it has a private constructor\";return t.call(this,n)||this}return n(e,t),e}(Error),Hn=function(t){function e(e,n){var r=function(t){var e,n;return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:null===(n=null==t?void 0:t.constructor)||void 0===n?void 0:n.name},i=\"Expected instance of \"+(Array.isArray(e)?e.map(r):[r(e)]).join(\" or \")+\", but got instance of \"+(n?r(n):n);return t.call(this,i)||this}return n(e,t),e}(Error),_n=function(t){function e(e){var n=e+\" stream encoding not supported\";return t.call(this,n)||this}return n(e,t),e}(Error),Xn=function(t){function e(e,n){var r=\"Cannot call \"+e+\".\"+n+\"() more than once\";return t.call(this,r)||this}return n(e,t),e}(Error),Zn=function(t){function e(e){var n=\"Missing catalog (ref=\"+e+\")\";return t.call(this,n)||this}return n(e,t),e}(Error),Yn=function(t){function e(){return t.call(this,\"Can't embed page with missing Contents\")||this}return n(e,t),e}(Error),Jn=function(t){function e(e){var n,r,i,o=\"Unrecognized stream type: \"+(null!==(i=null!==(r=null===(n=null==e?void 0:e.contructor)||void 0===n?void 0:n.name)&&void 0!==r?r:null==e?void 0:e.name)&&void 0!==i?i:e);return t.call(this,o)||this}return n(e,t),e}(Error),Qn=function(t){function e(){return t.call(this,\"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.\")||this}return n(e,t),e}(Error),$n=function(t){function e(e){var n=\"Attempted to convert PDFArray with \"+e+\" elements to rectangle, but must have exactly 4 elements.\";return t.call(this,n)||this}return n(e,t),e}(Error),tr=function(t){function e(e){var n='Attempted to convert \"'+e+'\" to a date, but it does not match the PDF date string format.';return t.call(this,n)||this}return n(e,t),e}(Error),er=function(t){function e(e,n){var r=\"Invalid targetIndex specified: targetIndex=\"+e+\" must be less than Count=\"+n;return t.call(this,r)||this}return n(e,t),e}(Error),nr=function(t){function e(e,n){var r=\"Failed to \"+n+\" at targetIndex=\"+e+\" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid\";return t.call(this,r)||this}return n(e,t),e}(Error),rr=function(t){function e(e,n,r){var i=\"index should be at least \"+n+\" and at most \"+r+\", but was actually \"+e;return t.call(this,i)||this}return n(e,t),e}(Error),ir=function(t){function e(){return t.call(this,\"Attempted to set invalid field value\")||this}return n(e,t),e}(Error),or=function(t){function e(){return t.call(this,\"Attempted to select multiple values for single-select field\")||this}return n(e,t),e}(Error),ar=function(t){function e(e){var n=\"No /DA (default appearance) entry found for field: \"+e;return t.call(this,n)||this}return n(e,t),e}(Error),sr=function(t){function e(e){var n=\"No Tf operator found for DA of field: \"+e;return t.call(this,n)||this}return n(e,t),e}(Error),lr=function(t){function e(e,n){var r=\"Failed to parse number (line:\"+e.line+\" col:\"+e.column+\" offset=\"+e.offset+'): \"'+n+'\"';return t.call(this,r)||this}return n(e,t),e}(Error),hr=function(t){function e(e,n){var r=\"Failed to parse PDF document (line:\"+e.line+\" col:\"+e.column+\" offset=\"+e.offset+\"): \"+n;return t.call(this,r)||this}return n(e,t),e}(Error),ur=function(t){function e(e,n,r){var i=\"Expected next byte to be \"+n+\" but it was actually \"+r;return t.call(this,e,i)||this}return n(e,t),e}(hr),cr=function(t){function e(e,n){var r=\"Failed to parse PDF object starting with the following byte: \"+n;return t.call(this,e,r)||this}return n(e,t),e}(hr),dr=function(t){function e(e){return t.call(this,e,\"Failed to parse invalid PDF object\")||this}return n(e,t),e}(hr),fr=function(t){function e(e){return t.call(this,e,\"Failed to parse PDF stream\")||this}return n(e,t),e}(hr),pr=function(t){function e(e){return t.call(this,e,\"Failed to parse PDF literal string due to unbalanced parenthesis\")||this}return n(e,t),e}(hr),gr=function(t){function e(e){return t.call(this,e,\"Parser stalled\")||this}return n(e,t),e}(hr),vr=function(t){function e(e){return t.call(this,e,\"No PDF header found\")||this}return n(e,t),e}(hr),yr=function(t){function e(e,n){var r=\"Did not find expected keyword '\"+U(n)+\"'\";return t.call(this,e,r)||this}return n(e,t),e}(hr);!function(t){t[t.Null=0]=\"Null\",t[t.Backspace=8]=\"Backspace\",t[t.Tab=9]=\"Tab\",t[t.Newline=10]=\"Newline\",t[t.FormFeed=12]=\"FormFeed\",t[t.CarriageReturn=13]=\"CarriageReturn\",t[t.Space=32]=\"Space\",t[t.ExclamationPoint=33]=\"ExclamationPoint\",t[t.Hash=35]=\"Hash\",t[t.Percent=37]=\"Percent\",t[t.LeftParen=40]=\"LeftParen\",t[t.RightParen=41]=\"RightParen\",t[t.Plus=43]=\"Plus\",t[t.Minus=45]=\"Minus\",t[t.Dash=45]=\"Dash\",t[t.Period=46]=\"Period\",t[t.ForwardSlash=47]=\"ForwardSlash\",t[t.Zero=48]=\"Zero\",t[t.One=49]=\"One\",t[t.Two=50]=\"Two\",t[t.Three=51]=\"Three\",t[t.Four=52]=\"Four\",t[t.Five=53]=\"Five\",t[t.Six=54]=\"Six\",t[t.Seven=55]=\"Seven\",t[t.Eight=56]=\"Eight\",t[t.Nine=57]=\"Nine\",t[t.LessThan=60]=\"LessThan\",t[t.GreaterThan=62]=\"GreaterThan\",t[t.A=65]=\"A\",t[t.D=68]=\"D\",t[t.E=69]=\"E\",t[t.F=70]=\"F\",t[t.O=79]=\"O\",t[t.P=80]=\"P\",t[t.R=82]=\"R\",t[t.LeftSquareBracket=91]=\"LeftSquareBracket\",t[t.BackSlash=92]=\"BackSlash\",t[t.RightSquareBracket=93]=\"RightSquareBracket\",t[t.a=97]=\"a\",t[t.b=98]=\"b\",t[t.d=100]=\"d\",t[t.e=101]=\"e\",t[t.f=102]=\"f\",t[t.i=105]=\"i\",t[t.j=106]=\"j\",t[t.l=108]=\"l\",t[t.m=109]=\"m\",t[t.n=110]=\"n\",t[t.o=111]=\"o\",t[t.r=114]=\"r\",t[t.s=115]=\"s\",t[t.t=116]=\"t\",t[t.u=117]=\"u\",t[t.x=120]=\"x\",t[t.LeftCurly=123]=\"LeftCurly\",t[t.RightCurly=125]=\"RightCurly\",t[t.Tilde=126]=\"Tilde\"}(Wn||(Wn={}));var mr=Wn,br=ft((function(t,e){var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(\"object\"!=typeof n)throw new TypeError(n+\"must be non-object\");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)}));function wr(t){for(var e=t.length;--e>=0;)t[e]=0}var xr=[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],kr=[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],Fr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Sr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cr=new Array(576);wr(Cr);var Ar=new Array(60);wr(Ar);var Tr=new Array(512);wr(Tr);var Pr=new Array(256);wr(Pr);var zr=new Array(29);wr(zr);var Rr,Or,Dr,Br=new Array(30);function Nr(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function Er(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function jr(t){return t<256?Tr[t]:Tr[256+(t>>>7)]}function Mr(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Ir(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,Mr(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function Ur(t,e,n){Ir(t,n[2*e],n[2*e+1])}function Vr(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function Wr(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Vr(o[s]++,s))}}function qr(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Lr(t){t.bi_valid>8?Mr(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Kr(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Gr(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Kr(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Kr(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function Hr(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?Ur(t,i,e):(Ur(t,(o=Pr[i])+256+1,e),0!==(a=xr[o])&&Ir(t,i-=zr[o],a),Ur(t,o=jr(--r),n),0!==(a=kr[o])&&Ir(t,r-=Br[o],a))}while(s<t.last_lit);Ur(t,256,e)}function _r(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=h=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=h,n=t.heap_len>>1;n>=1;n--)Gr(t,o,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Gr(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Gr(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,g++),l[2*r+1]=o,r>h||(t.bl_count[o]++,a=0,r>=f&&(a=d[r-f]),s=l[2*r],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>h||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),Wr(o,h,t.bl_count)}function Xr(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Zr(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<h)do{Ur(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ur(t,i,t.bl_tree),s--),Ur(t,16,t.bl_tree),Ir(t,s-3,2)):s<=10?(Ur(t,17,t.bl_tree),Ir(t,s-3,3)):(Ur(t,18,t.bl_tree),Ir(t,s-11,7));s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4)}}wr(Br);var Yr=!1;function Jr(t,e,n,r){Ir(t,0+(r?1:0),3),function(t,e,n,r){Lr(t),r&&(Mr(t,n),Mr(t,~n)),br.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}var Qr={_tr_init:function(t){Yr||(!function(){var t,e,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(zr[r]=n,t=0;t<1<<xr[r];t++)Pr[n++]=r;for(Pr[n-1]=r,i=0,r=0;r<16;r++)for(Br[r]=i,t=0;t<1<<kr[r];t++)Tr[i++]=r;for(i>>=7;r<30;r++)for(Br[r]=i<<7,t=0;t<1<<kr[r]-7;t++)Tr[256+i++]=r;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)Cr[2*t+1]=8,t++,o[8]++;for(;t<=255;)Cr[2*t+1]=9,t++,o[9]++;for(;t<=279;)Cr[2*t+1]=7,t++,o[7]++;for(;t<=287;)Cr[2*t+1]=8,t++,o[8]++;for(Wr(Cr,287,o),t=0;t<30;t++)Ar[2*t+1]=5,Ar[2*t]=Vr(t,5);Rr=new Nr(Cr,xr,257,286,15),Or=new Nr(Ar,kr,0,30,15),Dr=new Nr(new Array(0),Fr,0,19,7)}(),Yr=!0),t.l_desc=new Er(t.dyn_ltree,Rr),t.d_desc=new Er(t.dyn_dtree,Or),t.bl_desc=new Er(t.bl_tree,Dr),t.bi_buf=0,t.bi_valid=0,qr(t)},_tr_stored_block:Jr,_tr_flush_block:function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),_r(t,t.l_desc),_r(t,t.d_desc),a=function(t){var e;for(Xr(t,t.dyn_ltree,t.l_desc.max_code),Xr(t,t.dyn_dtree,t.d_desc.max_code),_r(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*Sr[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?Jr(t,e,n,r):4===t.strategy||o===i?(Ir(t,2+(r?1:0),3),Hr(t,Cr,Ar)):(Ir(t,4+(r?1:0),3),function(t,e,n,r){var i;for(Ir(t,e-257,5),Ir(t,n-1,5),Ir(t,r-4,4),i=0;i<r;i++)Ir(t,t.bl_tree[2*Sr[i]+1],3);Zr(t,t.dyn_ltree,e-1),Zr(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Hr(t,t.dyn_ltree,t.dyn_dtree)),qr(t),r&&Lr(t)},_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(Pr[n]+256+1)]++,t.dyn_dtree[2*jr(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){Ir(t,2,3),Ur(t,256,Cr),function(t){16===t.bi_valid?(Mr(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}};var $r=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var ti=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();var ei,ni=function(t,e,n,r){var i=ti,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},ri={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"};function ii(t,e){return t.msg=ri[e],e}function oi(t){return(t<<1)-(t>4?9:0)}function ai(t){for(var e=t.length;--e>=0;)t[e]=0}function si(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(br.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function li(t,e){Qr._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,si(t.strm)}function hi(t,e){t.pending_buf[t.pending++]=e}function ui(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ci(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,br.arraySet(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=$r(t.adler,e,i,n):2===t.state.wrap&&(t.adler=ni(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function di(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,f=h[o+a-1],p=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(n=e)+a]===p&&h[n+a-1]===f&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;f=h[o+a-1],p=h[o+a]}}}while((e=c[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function fi(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-262)){br.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=ci(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function pi(t,e){for(var n,r;;){if(t.lookahead<262){if(fi(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=di(t,n)),t.match_length>=3)if(r=Qr._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=Qr._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(li(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(li(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(li(t,!1),0===t.strm.avail_out)?1:2}function gi(t,e){for(var n,r,i;;){if(t.lookahead<262){if(fi(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=di(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=Qr._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(li(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=Qr._tr_tally(t,0,t.window[t.strstart-1]))&&li(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Qr._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(li(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(li(t,!1),0===t.strm.avail_out)?1:2}function vi(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function yi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new br.Buf16(1146),this.dyn_dtree=new br.Buf16(122),this.bl_tree=new br.Buf16(78),ai(this.dyn_ltree),ai(this.dyn_dtree),ai(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new br.Buf16(16),this.heap=new br.Buf16(573),ai(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new br.Buf16(573),ai(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function mi(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,Qr._tr_init(e),0):ii(t,-2)}function bi(t){var e,n=mi(t);return 0===n&&((e=t.state).window_size=2*e.w_size,ai(e.head),e.max_lazy_match=ei[e.level].max_lazy,e.good_match=ei[e.level].good_length,e.nice_match=ei[e.level].nice_length,e.max_chain_length=ei[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function wi(t,e,n,r,i,o){if(!t)return-2;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return ii(t,-2);8===r&&(r=9);var s=new yi;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new br.Buf8(2*s.w_size),s.head=new br.Buf16(s.hash_size),s.prev=new br.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new br.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,bi(t)}ei=[new vi(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(fi(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,li(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(li(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(li(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(li(t,!1),t.strm.avail_out),1)})),new vi(4,4,8,4,pi),new vi(4,5,16,8,pi),new vi(4,6,32,32,pi),new vi(4,4,16,16,gi),new vi(8,16,32,32,gi),new vi(8,16,128,128,gi),new vi(8,32,128,256,gi),new vi(32,128,258,1024,gi),new vi(32,258,258,4096,gi)];var xi={deflateInit:function(t,e){return wi(t,e,8,15,8,0)},deflateInit2:wi,deflateReset:bi,deflateResetKeep:mi,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},deflate:function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?ii(t,-2):-2;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return ii(t,0===t.avail_out?-5:-2);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,hi(r,31),hi(r,139),hi(r,8),r.gzhead?(hi(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),hi(r,255&r.gzhead.time),hi(r,r.gzhead.time>>8&255),hi(r,r.gzhead.time>>16&255),hi(r,r.gzhead.time>>24&255),hi(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),hi(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(hi(r,255&r.gzhead.extra.length),hi(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=ni(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(hi(r,0),hi(r,0),hi(r,0),hi(r,0),hi(r,0),hi(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),hi(r,3),r.status=113);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=113,ui(r,a),0!==r.strstart&&(ui(r,t.adler>>>16),ui(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),si(t),i=r.pending,r.pending!==r.pending_buf_size));)hi(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),si(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,hi(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),si(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,hi(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=ni(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&si(t),r.pending+2<=r.pending_buf_size&&(hi(r,255&t.adler),hi(r,t.adler>>8&255),t.adler=0,r.status=113)):r.status=113),0!==r.pending){if(si(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&oi(e)<=oi(n)&&4!==e)return ii(t,-5);if(666===r.status&&0!==t.avail_in)return ii(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(fi(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=Qr._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(li(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(li(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(li(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=258){if(fi(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+258;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Qr._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Qr._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(li(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(li(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(li(t,!1),0===t.strm.avail_out)?1:2}(r,e):ei[r.level].func(r,e);if(3!==s&&4!==s||(r.status=666),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?Qr._tr_align(r):5!==e&&(Qr._tr_stored_block(r,0,0,!1),3===e&&(ai(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),si(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(hi(r,255&t.adler),hi(r,t.adler>>8&255),hi(r,t.adler>>16&255),hi(r,t.adler>>24&255),hi(r,255&t.total_in),hi(r,t.total_in>>8&255),hi(r,t.total_in>>16&255),hi(r,t.total_in>>24&255)):(ui(r,t.adler>>>16),ui(r,65535&t.adler)),si(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},deflateEnd:function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?ii(t,-2):(t.state=null,113===e?ii(t,-3):0):-2},deflateSetDictionary:function(t,e){var n,r,i,o,a,s,l,h,u=e.length;if(!t||!t.state)return-2;if(2===(o=(n=t.state).wrap)||1===o&&42!==n.status||n.lookahead)return-2;for(1===o&&(t.adler=$r(t.adler,e,u,0)),n.wrap=0,u>=n.w_size&&(0===o&&(ai(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new br.Buf8(n.w_size),br.arraySet(h,e,u-n.w_size,n.w_size,0),e=h,u=n.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,fi(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,fi(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=l,t.avail_in=a,n.wrap=o,0},deflateInfo:\"pako deflate (from Nodeca project)\"},ki=!0,Fi=!0;try{String.fromCharCode.apply(null,[0])}catch(t){ki=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Fi=!1}for(var Si=new br.Buf8(256),Ci=0;Ci<256;Ci++)Si[Ci]=Ci>=252?6:Ci>=248?5:Ci>=240?4:Ci>=224?3:Ci>=192?2:1;Si[254]=Si[254]=1;function Ai(t,e){if(e<65534&&(t.subarray&&Fi||!t.subarray&&ki))return String.fromCharCode.apply(null,br.shrinkBuf(t,e));for(var n=\"\",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}var Ti=function(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new br.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},Pi=function(t){return Ai(t,t.length)},zi=function(t){for(var e=new br.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},Ri=function(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=Si[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return Ai(s,r)},Oi=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+Si[t[n]]>e?n:e};var Di=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0},Bi=Object.prototype.toString;function Ni(t){if(!(this instanceof Ni))return new Ni(t);this.options=br.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Di,this.strm.avail_out=0;var n=xi.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(ri[n]);if(e.header&&xi.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r=\"string\"==typeof e.dictionary?Ti(e.dictionary):\"[object ArrayBuffer]\"===Bi.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=xi.deflateSetDictionary(this.strm,r)))throw new Error(ri[n]);this._dict_set=!0}}function Ei(t,e){var n=new Ni(e);if(n.push(t,!0),n.err)throw n.msg||ri[n.err];return n.result}Ni.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,\"string\"==typeof t?i.input=Ti(t):\"[object ArrayBuffer]\"===Bi.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new br.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=xi.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||(\"string\"===this.options.to?this.onData(Pi(br.shrinkBuf(i.output,i.next_out))):this.onData(br.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=xi.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),i.avail_out=0,!0)},Ni.prototype.onData=function(t){this.chunks.push(t)},Ni.prototype.onEnd=function(t){0===t&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=br.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ji={Deflate:Ni,deflate:Ei,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Ei(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Ei(t,e)}},Mi=function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,h=n.wsize,u=n.whave,c=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=g[f&y];e:for(;;){if(f>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))A[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg=\"invalid literal/length code\",n.mode=30;break t}x=65535&b,(w&=15)&&(p<w&&(f+=C[r++]<<p,p+=8),x+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=v[f&m];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(f&(1<<w)-1)];continue n}t.msg=\"invalid distance code\",n.mode=30;break t}if(k=65535&b,p<(w&=15)&&(f+=C[r++]<<p,(p+=8)<w&&(f+=C[r++]<<p,p+=8)),(k+=f&(1<<w)-1)>l){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(f>>>=w,p-=w,k>(w=o-a)){if((w=k-w)>u&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(F=0,S=d,0===c){if(F+=h-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}else if(c<w){if(F+=h+c-w,(w-=c)<x){x-=w;do{A[o++]=d[F++]}while(--w);if(F=0,c<x){x-=w=c;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}}else if(F+=c-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}for(;x>2;)A[o++]=S[F++],A[o++]=S[F++],A[o++]=S[F++],x-=3;x&&(A[o++]=S[F++],x>1&&(A[o++]=S[F++]))}else{F=o-k;do{A[o++]=A[F++],A[o++]=A[F++],A[o++]=A[F++],x-=3}while(x>2);x&&(A[o++]=A[F++],x>1&&(A[o++]=A[F++]))}break}}break}}while(r<i&&o<s);r-=x=p>>3,f&=(1<<(p-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p},Ii=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Ui=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Vi=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Wi=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],qi=function(t,e,n,r,i,o,a,s){var l,h,u,c,d,f,p,g,v,y=s.bits,m=0,b=0,w=0,x=0,k=0,F=0,S=0,C=0,A=0,T=0,P=null,z=0,R=new br.Buf16(16),O=new br.Buf16(16),D=null,B=0;for(m=0;m<=15;m++)R[m]=0;for(b=0;b<r;b++)R[e[n+b]]++;for(k=y,x=15;x>=1&&0===R[x];x--);if(k>x&&(k=x),0===x)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<x&&0===R[w];w++);for(k<w&&(k=w),C=1,m=1;m<=15;m++)if(C<<=1,(C-=R[m])<0)return-1;if(C>0&&(0===t||1!==x))return-1;for(O[1]=0,m=1;m<15;m++)O[m+1]=O[m]+R[m];for(b=0;b<r;b++)0!==e[n+b]&&(a[O[e[n+b]]++]=b);if(0===t?(P=D=a,f=19):1===t?(P=Ii,z-=257,D=Ui,B-=257,f=256):(P=Vi,D=Wi,f=-1),T=0,b=0,m=w,d=o,F=k,S=0,u=-1,c=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,a[b]<f?(g=0,v=a[b]):a[b]>f?(g=D[B+a[b]],v=P[z+a[b]]):(g=96,v=0),l=1<<m-S,w=h=1<<F;do{i[d+(T>>S)+(h-=l)]=p<<24|g<<16|v|0}while(0!==h);for(l=1<<m-1;T&l;)l>>=1;if(0!==l?(T&=l-1,T+=l):T=0,b++,0==--R[m]){if(m===x)break;m=e[n+a[b]]}if(m>k&&(T&c)!==u){for(0===S&&(S=k),d+=w,C=1<<(F=m-S);F+S<x&&!((C-=R[F+S])<=0);)F++,C<<=1;if(A+=1<<F,1===t&&A>852||2===t&&A>592)return 1;i[u=T&c]=k<<24|F<<16|d-o|0}}return 0!==T&&(i[d+T]=m-S<<24|64<<16|0),s.bits=k,0};function Li(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Ki(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new br.Buf16(320),this.work=new br.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Gi(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new br.Buf32(852),e.distcode=e.distdyn=new br.Buf32(592),e.sane=1,e.back=-1,0):-2}function Hi(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,Gi(t)):-2}function _i(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Hi(t))):-2}function Xi(t,e){var n,r;return t?(r=new Ki,t.state=r,r.window=null,0!==(n=_i(t,e))&&(t.state=null),n):-2}var Zi,Yi,Ji=!0;function Qi(t){if(Ji){var e;for(Zi=new br.Buf32(512),Yi=new br.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(qi(1,t.lens,0,288,Zi,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;qi(2,t.lens,0,32,Yi,0,t.work,{bits:5}),Ji=!1}t.lencode=Zi,t.lenbits=9,t.distcode=Yi,t.distbits=5}function $i(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new br.Buf8(o.wsize)),r>=o.wsize?(br.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),br.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(br.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var to={inflateReset:Hi,inflateReset2:_i,inflateResetKeep:Gi,inflateInit:function(t){return Xi(t,15)},inflateInit2:Xi,inflate:function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A=0,T=new br.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,c=s,d=l,F=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===h){n.check=0,T[0]=255&h,T[1]=h>>>8&255,n.check=ni(n.check,T,2,0),h=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg=\"incorrect header check\",n.mode=30;break}if(8!=(15&h)){t.msg=\"unknown compression method\",n.mode=30;break}if(u-=4,k=8+(15&(h>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg=\"invalid window size\",n.mode=30;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&h?10:12,h=0,u=0;break;case 2:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.flags=h,8!=(255&n.flags)){t.msg=\"unknown compression method\",n.mode=30;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=30;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=ni(n.check,T,2,0)),h=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.time=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,n.check=ni(n.check,T,4,0)),h=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=ni(n.check,T,2,0)),h=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=ni(n.check,T,2,0)),h=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),br.arraySet(n.head.extra,r,o,f,k)),512&n.flags&&(n.check=ni(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=ni(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=ni(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=30;break}h=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}t.adler=n.check=Li(h),h=0,u=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){h>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}switch(n.last=1&h,u-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(Qi(n),n.mode=20,6===e){h>>>=2,u-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg=\"invalid block type\",n.mode=30}h>>>=2,u-=2;break;case 14:for(h>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=30;break}if(n.length=65535&h,h=0,u=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break t;br.arraySet(i,r,o,f,a),s-=f,o+=f,l-=f,a+=f,n.length-=f;break}n.mode=12;break;case 17:for(;u<14;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.nlen=257+(31&h),h>>>=5,u-=5,n.ndist=1+(31&h),h>>>=5,u-=5,n.ncode=4+(15&h),h>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.lens[P[n.have++]]=7&h,h>>>=3,u-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},F=qi(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid code lengths set\",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(m<16)h>>>=v,u-=v,n.lens[n.have++]=m;else{if(16===m){for(C=v+2;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h>>>=v,u-=v,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=30;break}k=n.lens[n.have-1],f=3+(3&h),h>>>=2,u-=2}else if(17===m){for(C=v+3;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=3+(7&(h>>>=v)),h>>>=3,u-=3}else{for(C=v+7;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=11+(127&(h>>>=v)),h>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=30;break}for(;f--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},F=qi(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid literal/lengths set\",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},F=qi(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,F){t.msg=\"invalid distances set\",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,Mi(t,d),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(y&&0==(240&y)){for(b=v,w=y,x=m;y=(A=n.lencode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,n.length=m,0===y){n.mode=26;break}if(32&y){n.back=-1,n.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",n.mode=30;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;y=(A=n.distcode[h&(1<<n.distbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(0==(240&y)){for(b=v,w=y,x=m;y=(A=n.distcode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,64&y){t.msg=\"invalid distance code\",n.mode=30;break}n.offset=m,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=30;break}n.mode=25;case 25:if(0===l)break t;if(f=d-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=a-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[a++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break t;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break t;s--,h|=r[o++]<<u,u+=8}if(d-=l,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?ni(n.check,i,d,a-d):$r(n.check,i,d,a-d)),d=l,(n.flags?h:Li(h))!==n.check){t.msg=\"incorrect data check\",n.mode=30;break}h=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=30;break}h=0,u=0}n.mode=29;case 29:F=1;break t;case 30:F=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&$i(t,t.output,t.next_out,d-t.avail_out),c-=t.avail_in,d-=t.avail_out,t.total_in+=c,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?ni(n.check,i,d,t.next_out-d):$r(n.check,i,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===c&&0===d||4===e)&&0===F&&(F=-5),F},inflateEnd:function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},inflateGetHeader:function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},inflateSetDictionary:function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&$r(1,e,r,0)!==n.check?-3:$i(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},inflateInfo:\"pako inflate (from Nodeca project)\"},eo={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var no=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1},ro=Object.prototype.toString;function io(t){if(!(this instanceof io))return new io(t);this.options=br.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Di,this.strm.avail_out=0;var n=to.inflateInit2(this.strm,e.windowBits);if(n!==eo.Z_OK)throw new Error(ri[n]);if(this.header=new no,to.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=Ti(e.dictionary):\"[object ArrayBuffer]\"===ro.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=to.inflateSetDictionary(this.strm,e.dictionary))!==eo.Z_OK))throw new Error(ri[n])}function oo(t,e){var n=new io(e);if(n.push(t,!0),n.err)throw n.msg||ri[n.err];return n.result}io.prototype.push=function(t,e){var n,r,i,o,a,s=this.strm,l=this.options.chunkSize,h=this.options.dictionary,u=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?eo.Z_FINISH:eo.Z_NO_FLUSH,\"string\"==typeof t?s.input=zi(t):\"[object ArrayBuffer]\"===ro.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new br.Buf8(l),s.next_out=0,s.avail_out=l),(n=to.inflate(s,eo.Z_NO_FLUSH))===eo.Z_NEED_DICT&&h&&(n=to.inflateSetDictionary(this.strm,h)),n===eo.Z_BUF_ERROR&&!0===u&&(n=eo.Z_OK,u=!1),n!==eo.Z_STREAM_END&&n!==eo.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==eo.Z_STREAM_END&&(0!==s.avail_in||r!==eo.Z_FINISH&&r!==eo.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(i=Oi(s.output,s.next_out),o=s.next_out-i,a=Ri(s.output,i),s.next_out=o,s.avail_out=l-o,o&&br.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(br.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==eo.Z_STREAM_END);return n===eo.Z_STREAM_END&&(r=eo.Z_FINISH),r===eo.Z_FINISH?(n=to.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===eo.Z_OK):r!==eo.Z_SYNC_FLUSH||(this.onEnd(eo.Z_OK),s.avail_out=0,!0)},io.prototype.onData=function(t){this.chunks.push(t)},io.prototype.onEnd=function(t){t===eo.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=br.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ao={Inflate:io,inflate:oo,inflateRaw:function(t,e){return(e=e||{}).raw=!0,oo(t,e)},ungzip:oo},so={};(0,br.assign)(so,ji,ao,eo);var lo=so,ho=function(){function t(t,e){this.major=String(t),this.minor=String(e)}return t.prototype.toString=function(){var t=b(129);return\"%PDF-\"+this.major+\".\"+this.minor+\"\\n%\"+t+t+t+t},t.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},t.prototype.copyBytesInto=function(t,e){var n=e;return t[e++]=mr.Percent,t[e++]=mr.P,t[e++]=mr.D,t[e++]=mr.F,t[e++]=mr.Dash,e+=k(this.major,t,e),t[e++]=mr.Period,e+=k(this.minor,t,e),t[e++]=mr.Newline,t[e++]=mr.Percent,t[e++]=129,t[e++]=129,t[e++]=129,t[e++]=129,e-n},t.forVersion=function(e,n){return new t(e,n)},t}(),uo=function(){function t(){}return t.prototype.clone=function(t){throw new Kn(this.constructor.name,\"clone\")},t.prototype.toString=function(){throw new Kn(this.constructor.name,\"toString\")},t.prototype.sizeInBytes=function(){throw new Kn(this.constructor.name,\"sizeInBytes\")},t.prototype.copyBytesInto=function(t,e){throw new Kn(this.constructor.name,\"copyBytesInto\")},t}(),co=function(t){function e(e){var n=t.call(this)||this;return n.numberValue=e,n.stringValue=ht(e),n}return n(e,t),e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(t,e){return e+=k(this.stringValue,t,e),this.stringValue.length},e.of=function(t){return new e(t)},e}(uo),fo=function(t){function e(e){var n=t.call(this)||this;return n.array=[],n.context=e,n}return n(e,t),e.prototype.size=function(){return this.array.length},e.prototype.push=function(t){this.array.push(t)},e.prototype.insert=function(t,e){this.array.splice(t,0,e)},e.prototype.indexOf=function(t){var e=this.array.indexOf(t);return-1===e?void 0:e},e.prototype.remove=function(t){this.array.splice(t,1)},e.prototype.set=function(t,e){this.array[t]=e},e.prototype.get=function(t){return this.array[t]},e.prototype.lookupMaybe=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(e=this.context).lookupMaybe.apply(e,a([this.get(t)],n))},e.prototype.lookup=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(e=this.context).lookup.apply(e,a([this.get(t)],n))},e.prototype.asRectangle=function(){if(4!==this.size())throw new $n(this.size());var t=this.lookup(0,co).asNumber(),e=this.lookup(1,co).asNumber();return{x:t,y:e,width:this.lookup(2,co).asNumber()-t,height:this.lookup(3,co).asNumber()-e}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(t){for(var n=e.withContext(t||this.context),r=0,i=this.size();r<i;r++)n.push(this.array[r]);return n},e.prototype.toString=function(){for(var t=\"[ \",e=0,n=this.size();e<n;e++)t+=this.get(e).toString(),t+=\" \";return t+=\"]\"},e.prototype.sizeInBytes=function(){for(var t=3,e=0,n=this.size();e<n;e++)t+=this.get(e).sizeInBytes()+1;return t},e.prototype.copyBytesInto=function(t,e){var n=e;t[e++]=mr.LeftSquareBracket,t[e++]=mr.Space;for(var r=0,i=this.size();r<i;r++)e+=this.get(r).copyBytesInto(t,e),t[e++]=mr.Space;return t[e++]=mr.RightSquareBracket,e-n},e.prototype.scalePDFNumbers=function(t,e){for(var n=0,r=this.size();n<r;n++){var i=this.lookup(n);if(i instanceof co){var o=n%2==0?t:e;this.set(n,co.of(i.asNumber()*o))}}},e.withContext=function(t){return new e(t)},e}(uo),po={},go=function(t){function e(e,n){var r=this;if(e!==po)throw new Gn(\"PDFBool\");return(r=t.call(this)||this).value=n,r}return n(e,t),e.prototype.asBoolean=function(){return this.value},e.prototype.clone=function(){return this},e.prototype.toString=function(){return String(this.value)},e.prototype.sizeInBytes=function(){return this.value?4:5},e.prototype.copyBytesInto=function(t,e){return this.value?(t[e++]=mr.t,t[e++]=mr.r,t[e++]=mr.u,t[e++]=mr.e,4):(t[e++]=mr.f,t[e++]=mr.a,t[e++]=mr.l,t[e++]=mr.s,t[e++]=mr.e,5)},e.True=new e(po,!0),e.False=new e(po,!1),e}(uo),vo=new Uint8Array(256);vo[mr.LeftParen]=1,vo[mr.RightParen]=1,vo[mr.LessThan]=1,vo[mr.GreaterThan]=1,vo[mr.LeftSquareBracket]=1,vo[mr.RightSquareBracket]=1,vo[mr.LeftCurly]=1,vo[mr.RightCurly]=1,vo[mr.ForwardSlash]=1,vo[mr.Percent]=1;var yo=new Uint8Array(256);yo[mr.Null]=1,yo[mr.Tab]=1,yo[mr.Newline]=1,yo[mr.FormFeed]=1,yo[mr.CarriageReturn]=1,yo[mr.Space]=1;for(var mo=new Uint8Array(256),bo=0;bo<256;bo++)mo[bo]=yo[bo]||vo[bo]?1:0;mo[mr.Hash]=1;var wo,xo={},ko=new Map,Fo=function(t){function e(e,n){var r=this;if(e!==xo)throw new Gn(\"PDFName\");r=t.call(this)||this;for(var i,o=\"/\",a=0,s=n.length;a<s;a++){var l=n[a],h=g(l);o+=(i=h)>=mr.ExclamationPoint&&i<=mr.Tilde&&!mo[i]?l:\"#\"+m(h)}return r.encodedName=o,r}return n(e,t),e.prototype.asBytes=function(){for(var t=[],e=\"\",n=!1,r=function(e){void 0!==e&&t.push(e),n=!1},i=1,o=this.encodedName.length;i<o;i++){var a=this.encodedName[i],s=g(a),l=this.encodedName[i+1];n?s>=mr.Zero&&s<=mr.Nine||s>=mr.a&&s<=mr.f||s>=mr.A&&s<=mr.F?2!==(e+=a).length&&(l>=\"0\"&&l<=\"9\"||l>=\"a\"&&l<=\"f\"||l>=\"A\"&&l<=\"F\")||(r(parseInt(e,16)),e=\"\"):r(s):s===mr.Hash?n=!0:r(s)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return String.fromCharCode.apply(String,Array.from(t))},e.prototype.asString=function(){return this.encodedName},e.prototype.value=function(){return this.encodedName},e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.encodedName},e.prototype.sizeInBytes=function(){return this.encodedName.length},e.prototype.copyBytesInto=function(t,e){return e+=k(this.encodedName,t,e),this.encodedName.length},e.of=function(t){var n=function(t){return t.replace(/#([\\dABCDEF]{2})/g,(function(t,e){return w(e)}))}(t),r=ko.get(n);return r||(r=new e(xo,n),ko.set(n,r)),r},e.Length=e.of(\"Length\"),e.FlateDecode=e.of(\"FlateDecode\"),e.Resources=e.of(\"Resources\"),e.Font=e.of(\"Font\"),e.XObject=e.of(\"XObject\"),e.ExtGState=e.of(\"ExtGState\"),e.Contents=e.of(\"Contents\"),e.Type=e.of(\"Type\"),e.Parent=e.of(\"Parent\"),e.MediaBox=e.of(\"MediaBox\"),e.Page=e.of(\"Page\"),e.Annots=e.of(\"Annots\"),e.TrimBox=e.of(\"TrimBox\"),e.ArtBox=e.of(\"ArtBox\"),e.BleedBox=e.of(\"BleedBox\"),e.CropBox=e.of(\"CropBox\"),e.Rotate=e.of(\"Rotate\"),e.Title=e.of(\"Title\"),e.Author=e.of(\"Author\"),e.Subject=e.of(\"Subject\"),e.Creator=e.of(\"Creator\"),e.Keywords=e.of(\"Keywords\"),e.Producer=e.of(\"Producer\"),e.CreationDate=e.of(\"CreationDate\"),e.ModDate=e.of(\"ModDate\"),e}(uo),So=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.asNull=function(){return null},e.prototype.clone=function(){return this},e.prototype.toString=function(){return\"null\"},e.prototype.sizeInBytes=function(){return 4},e.prototype.copyBytesInto=function(t,e){return t[e++]=mr.n,t[e++]=mr.u,t[e++]=mr.l,t[e++]=mr.l,4},e}(uo)),Co=function(t){function e(e,n){var r=t.call(this)||this;return r.dict=e,r.context=n,r}return n(e,t),e.prototype.keys=function(){return Array.from(this.dict.keys())},e.prototype.values=function(){return Array.from(this.dict.values())},e.prototype.entries=function(){return Array.from(this.dict.entries())},e.prototype.set=function(t,e){this.dict.set(t,e)},e.prototype.get=function(t,e){void 0===e&&(e=!1);var n=this.dict.get(t);if(n!==So||e)return n},e.prototype.has=function(t){var e=this.dict.get(t);return void 0!==e&&e!==So},e.prototype.lookupMaybe=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=n.includes(So),o=(e=this.context).lookupMaybe.apply(e,a([this.get(t,i)],n));if(o!==So||i)return o},e.prototype.lookup=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=n.includes(So),o=(e=this.context).lookup.apply(e,a([this.get(t,i)],n));if(o!==So||i)return o},e.prototype.delete=function(t){return this.dict.delete(t)},e.prototype.asMap=function(){return new Map(this.dict)},e.prototype.uniqueKey=function(t){void 0===t&&(t=\"\");for(var e=this.keys(),n=Fo.of(this.context.addRandomSuffix(t,10));e.includes(n);)n=Fo.of(this.context.addRandomSuffix(t,10));return n},e.prototype.clone=function(t){for(var n=e.withContext(t||this.context),r=this.entries(),i=0,o=r.length;i<o;i++){var a=r[i],s=a[0],l=a[1];n.set(s,l)}return n},e.prototype.toString=function(){for(var t=\"<<\\n\",e=this.entries(),n=0,r=e.length;n<r;n++){var i=e[n],o=i[0],a=i[1];t+=o.toString()+\" \"+a.toString()+\"\\n\"}return t+=\">>\"},e.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),n=0,r=e.length;n<r;n++){var i=e[n],o=i[0],a=i[1];t+=o.sizeInBytes()+a.sizeInBytes()+2}return t},e.prototype.copyBytesInto=function(t,e){var n=e;t[e++]=mr.LessThan,t[e++]=mr.LessThan,t[e++]=mr.Newline;for(var r=this.entries(),i=0,o=r.length;i<o;i++){var a=r[i],s=a[0],l=a[1];e+=s.copyBytesInto(t,e),t[e++]=mr.Space,e+=l.copyBytesInto(t,e),t[e++]=mr.Newline}return t[e++]=mr.GreaterThan,t[e++]=mr.GreaterThan,e-n},e.withContext=function(t){return new e(new Map,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(uo),Ao=function(t){function e(e){var n=t.call(this)||this;return n.dict=e,n}return n(e,t),e.prototype.clone=function(t){throw new Kn(this.constructor.name,\"clone\")},e.prototype.getContentsString=function(){throw new Kn(this.constructor.name,\"getContentsString\")},e.prototype.getContents=function(){throw new Kn(this.constructor.name,\"getContents\")},e.prototype.getContentsSize=function(){throw new Kn(this.constructor.name,\"getContentsSize\")},e.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(Fo.Length,co.of(t))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){this.updateDict();var t=this.dict.toString();return t+=\"\\nstream\\n\",t+=this.getContentsString(),t+=\"\\nendstream\"},e.prototype.copyBytesInto=function(t,e){this.updateDict();var n=e;e+=this.dict.copyBytesInto(t,e),t[e++]=mr.Newline,t[e++]=mr.s,t[e++]=mr.t,t[e++]=mr.r,t[e++]=mr.e,t[e++]=mr.a,t[e++]=mr.m,t[e++]=mr.Newline;for(var r=this.getContents(),i=0,o=r.length;i<o;i++)t[e++]=r[i];return t[e++]=mr.Newline,t[e++]=mr.e,t[e++]=mr.n,t[e++]=mr.d,t[e++]=mr.s,t[e++]=mr.t,t[e++]=mr.r,t[e++]=mr.e,t[e++]=mr.a,t[e++]=mr.m,e-n},e}(uo),To=function(t){function e(e,n){var r=t.call(this,e)||this;return r.contents=n,r}return n(e,t),e.prototype.asUint8Array=function(){return this.contents.slice()},e.prototype.clone=function(t){return e.of(this.dict.clone(t),this.contents.slice())},e.prototype.getContentsString=function(){return U(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(t,n){return new e(t,n)},e}(Ao),Po={},zo=new Map,Ro=function(t){function e(e,n,r){var i=this;if(e!==Po)throw new Gn(\"PDFRef\");return(i=t.call(this)||this).objectNumber=n,i.generationNumber=r,i.tag=n+\" \"+r+\" R\",i}return n(e,t),e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.tag},e.prototype.sizeInBytes=function(){return this.tag.length},e.prototype.copyBytesInto=function(t,e){return e+=k(this.tag,t,e),this.tag.length},e.of=function(t,n){void 0===n&&(n=0);var r=t+\" \"+n+\" R\",i=zo.get(r);return i||(i=new e(Po,t,n),zo.set(r,i)),i},e}(uo),Oo=function(){function t(t,e){this.name=t,this.args=e||[]}return t.prototype.clone=function(e){for(var n=new Array(this.args.length),r=0,i=n.length;r<i;r++){var o=this.args[r];n[r]=o instanceof uo?o.clone(e):o}return t.of(this.name,n)},t.prototype.toString=function(){for(var t=\"\",e=0,n=this.args.length;e<n;e++)t+=String(this.args[e])+\" \";return t+=this.name},t.prototype.sizeInBytes=function(){for(var t=0,e=0,n=this.args.length;e<n;e++){var r=this.args[e];t+=(r instanceof uo?r.sizeInBytes():r.length)+1}return t+=this.name.length},t.prototype.copyBytesInto=function(t,e){for(var n=e,r=0,i=this.args.length;r<i;r++){var o=this.args[r];e+=o instanceof uo?o.copyBytesInto(t,e):k(o,t,e),t[e++]=mr.Space}return(e+=k(this.name,t,e))-n},t.of=function(e,n){return new t(e,n)},t}();!function(t){t.NonStrokingColor=\"sc\",t.NonStrokingColorN=\"scn\",t.NonStrokingColorRgb=\"rg\",t.NonStrokingColorGray=\"g\",t.NonStrokingColorCmyk=\"k\",t.NonStrokingColorspace=\"cs\",t.StrokingColor=\"SC\",t.StrokingColorN=\"SCN\",t.StrokingColorRgb=\"RG\",t.StrokingColorGray=\"G\",t.StrokingColorCmyk=\"K\",t.StrokingColorspace=\"CS\",t.BeginMarkedContentSequence=\"BDC\",t.BeginMarkedContent=\"BMC\",t.EndMarkedContent=\"EMC\",t.MarkedContentPointWithProps=\"DP\",t.MarkedContentPoint=\"MP\",t.DrawObject=\"Do\",t.ConcatTransformationMatrix=\"cm\",t.PopGraphicsState=\"Q\",t.PushGraphicsState=\"q\",t.SetFlatness=\"i\",t.SetGraphicsStateParams=\"gs\",t.SetLineCapStyle=\"J\",t.SetLineDashPattern=\"d\",t.SetLineJoinStyle=\"j\",t.SetLineMiterLimit=\"M\",t.SetLineWidth=\"w\",t.SetTextMatrix=\"Tm\",t.SetRenderingIntent=\"ri\",t.AppendRectangle=\"re\",t.BeginInlineImage=\"BI\",t.BeginInlineImageData=\"ID\",t.EndInlineImage=\"EI\",t.ClipEvenOdd=\"W*\",t.ClipNonZero=\"W\",t.CloseAndStroke=\"s\",t.CloseFillEvenOddAndStroke=\"b*\",t.CloseFillNonZeroAndStroke=\"b\",t.ClosePath=\"h\",t.AppendBezierCurve=\"c\",t.CurveToReplicateFinalPoint=\"y\",t.CurveToReplicateInitialPoint=\"v\",t.EndPath=\"n\",t.FillEvenOddAndStroke=\"B*\",t.FillEvenOdd=\"f*\",t.FillNonZeroAndStroke=\"B\",t.FillNonZero=\"f\",t.LegacyFillNonZero=\"F\",t.LineTo=\"l\",t.MoveTo=\"m\",t.ShadingFill=\"sh\",t.StrokePath=\"S\",t.BeginText=\"BT\",t.EndText=\"ET\",t.MoveText=\"Td\",t.MoveTextSetLeading=\"TD\",t.NextLine=\"T*\",t.SetCharacterSpacing=\"Tc\",t.SetFontAndSize=\"Tf\",t.SetTextHorizontalScaling=\"Tz\",t.SetTextLineHeight=\"TL\",t.SetTextRenderingMode=\"Tr\",t.SetTextRise=\"Ts\",t.SetWordSpacing=\"Tw\",t.ShowText=\"Tj\",t.ShowTextAdjusted=\"TJ\",t.ShowTextLine=\"'\",t.ShowTextLineAndSpace='\"',t.Type3D0=\"d0\",t.Type3D1=\"d1\",t.BeginCompatibilitySection=\"BX\",t.EndCompatibilitySection=\"EX\"}(wo||(wo={}));var Do,Bo=wo,No=function(t){function e(e,n){var r=t.call(this,e)||this;return r.computeContents=function(){var t=r.getUnencodedContents();return r.encode?lo.deflate(t):t},r.encode=n,n&&e.set(Fo.of(\"Filter\"),Fo.of(\"FlateDecode\")),r.contentsCache=Ln.populatedBy(r.computeContents),r}return n(e,t),e.prototype.getContents=function(){return this.contentsCache.access()},e.prototype.getContentsSize=function(){return this.contentsCache.access().length},e.prototype.getUnencodedContents=function(){throw new Kn(this.constructor.name,\"getUnencodedContents\")},e}(Ao),Eo=function(t){function e(e,n,r){void 0===r&&(r=!0);var i=t.call(this,e,r)||this;return i.operators=n,i}return n(e,t),e.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this.operators).push.apply(t,e)},e.prototype.clone=function(t){for(var n=new Array(this.operators.length),r=0,i=this.operators.length;r<i;r++)n[r]=this.operators[r].clone(t);var o=this.dict,a=this.encode;return e.of(o.clone(t),n,a)},e.prototype.getContentsString=function(){for(var t=\"\",e=0,n=this.operators.length;e<n;e++)t+=this.operators[e]+\"\\n\";return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=0,n=0,r=this.operators.length;n<r;n++)e+=this.operators[n].copyBytesInto(t,e),t[e++]=mr.Newline;return t},e.prototype.getUnencodedContentsSize=function(){for(var t=0,e=0,n=this.operators.length;e<n;e++)t+=this.operators[e].sizeInBytes()+1;return t},e.of=function(t,n,r){return void 0===r&&(r=!0),new e(t,n,r)},e}(No),jo=function(){function t(t){this.seed=t}return t.prototype.nextInt=function(){var t=1e4*Math.sin(this.seed++);return t-Math.floor(t)},t.withSeed=function(e){return new t(e)},t}(),Mo=function(t,e){var n=t[0],r=e[0];return n.objectNumber-r.objectNumber},Io=function(){function t(){this.largestObjectNumber=0,this.header=ho.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=jo.withSeed(1)}return t.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},t.prototype.nextRef=function(){return this.largestObjectNumber+=1,Ro.of(this.largestObjectNumber)},t.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},t.prototype.delete=function(t){return this.indirectObjects.delete(t)},t.prototype.lookupMaybe=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=e.includes(So),i=t instanceof Ro?this.indirectObjects.get(t):t;if(i&&(i!==So||r)){for(var o=0,a=e.length;o<a;o++){var s=e[o];if(s===So){if(i===So)return i}else if(i instanceof s)return i}throw new Hn(e,i)}},t.prototype.lookup=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t instanceof Ro?this.indirectObjects.get(t):t;if(0===e.length)return r;for(var i=0,o=e.length;i<o;i++){var a=e[i];if(a===So){if(r===So)return r}else if(r instanceof a)return r}throw new Hn(e,r)},t.prototype.getObjectRef=function(t){for(var e=Array.from(this.indirectObjects.entries()),n=0,r=e.length;n<r;n++){var i=e[n],o=i[0];if(i[1]===t)return o}},t.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(Mo)},t.prototype.obj=function(t){if(t instanceof uo)return t;if(null==t)return So;if(\"string\"==typeof t)return Fo.of(t);if(\"number\"==typeof t)return co.of(t);if(\"boolean\"==typeof t)return t?go.True:go.False;if(Array.isArray(t)){for(var e=fo.withContext(this),n=0,r=t.length;n<r;n++)e.push(this.obj(t[n]));return e}var i=Co.withContext(this),o=Object.keys(t);for(n=0,r=o.length;n<r;n++){var a=o[n],s=t[a];void 0!==s&&i.set(Fo.of(a),this.obj(s))}return i},t.prototype.stream=function(t,e){return void 0===e&&(e={}),To.of(this.obj(e),j(t))},t.prototype.flateStream=function(t,e){return void 0===e&&(e={}),this.stream(lo.deflate(j(t)),r(r({},e),{Filter:\"FlateDecode\"}))},t.prototype.contentStream=function(t,e){return void 0===e&&(e={}),Eo.of(this.obj(e),t)},t.prototype.formXObject=function(t,e){return void 0===e&&(e={}),this.contentStream(t,r(r({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},e),{Type:\"XObject\",Subtype:\"Form\"}))},t.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),e=Oo.of(Bo.PushGraphicsState),n=Eo.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(n),this.pushGraphicsStateContentStreamRef},t.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=Oo.of(Bo.PopGraphicsState),n=Eo.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(n),this.popGraphicsStateContentStreamRef},t.prototype.addRandomSuffix=function(t,e){return void 0===e&&(e=4),t+\"-\"+Math.floor(this.rng.nextInt()*Math.pow(10,e))},t.create=function(){return new t},t}(),Uo=function(t){function e(e,n,r){void 0===r&&(r=!0);var i=t.call(this,e,n)||this;return i.normalized=!1,i.autoNormalizeCTM=r,i}return n(e,t),e.prototype.clone=function(t){for(var n=e.fromMapWithContext(new Map,t||this.context,this.autoNormalizeCTM),r=this.entries(),i=0,o=r.length;i<o;i++){var a=r[i],s=a[0],l=a[1];n.set(s,l)}return n},e.prototype.Parent=function(){return this.lookupMaybe(Fo.Parent,Co)},e.prototype.Contents=function(){return this.lookup(Fo.of(\"Contents\"))},e.prototype.Annots=function(){return this.lookupMaybe(Fo.Annots,fo)},e.prototype.BleedBox=function(){return this.lookupMaybe(Fo.BleedBox,fo)},e.prototype.TrimBox=function(){return this.lookupMaybe(Fo.TrimBox,fo)},e.prototype.ArtBox=function(){return this.lookupMaybe(Fo.ArtBox,fo)},e.prototype.Resources=function(){var t=this.getInheritableAttribute(Fo.Resources);return this.context.lookupMaybe(t,Co)},e.prototype.MediaBox=function(){var t=this.getInheritableAttribute(Fo.MediaBox);return this.context.lookup(t,fo)},e.prototype.CropBox=function(){var t=this.getInheritableAttribute(Fo.CropBox);return this.context.lookupMaybe(t,fo)},e.prototype.Rotate=function(){var t=this.getInheritableAttribute(Fo.Rotate);return this.context.lookupMaybe(t,co)},e.prototype.getInheritableAttribute=function(t){var e;return this.ascend((function(n){e||(e=n.get(t))})),e},e.prototype.setParent=function(t){this.set(Fo.Parent,t)},e.prototype.addContentStream=function(t){var e=this.normalizedEntries().Contents||this.context.obj([]);this.set(Fo.Contents,e),e.push(t)},e.prototype.wrapContentStreams=function(t,e){var n=this.Contents();return n instanceof fo&&(n.insert(0,t),n.push(e),!0)},e.prototype.addAnnot=function(t){this.normalizedEntries().Annots.push(t)},e.prototype.removeAnnot=function(t){var e=this.normalizedEntries().Annots,n=e.indexOf(t);void 0!==n&&e.remove(n)},e.prototype.setFontDictionary=function(t,e){this.normalizedEntries().Font.set(t,e)},e.prototype.newFontDictionaryKey=function(t){return this.normalizedEntries().Font.uniqueKey(t)},e.prototype.newFontDictionary=function(t,e){var n=this.newFontDictionaryKey(t);return this.setFontDictionary(n,e),n},e.prototype.setXObject=function(t,e){this.normalizedEntries().XObject.set(t,e)},e.prototype.newXObjectKey=function(t){return this.normalizedEntries().XObject.uniqueKey(t)},e.prototype.newXObject=function(t,e){var n=this.newXObjectKey(t);return this.setXObject(n,e),n},e.prototype.setExtGState=function(t,e){this.normalizedEntries().ExtGState.set(t,e)},e.prototype.newExtGStateKey=function(t){return this.normalizedEntries().ExtGState.uniqueKey(t)},e.prototype.newExtGState=function(t,e){var n=this.newExtGStateKey(t);return this.setExtGState(n,e),n},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.normalize=function(){if(!this.normalized){var t=this.context,e=this.get(Fo.Contents);this.context.lookup(e)instanceof Ao&&this.set(Fo.Contents,t.obj([e])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var n=this.getInheritableAttribute(Fo.Resources),r=t.lookupMaybe(n,Co)||t.obj({});this.set(Fo.Resources,r);var i=r.lookupMaybe(Fo.Font,Co)||t.obj({});r.set(Fo.Font,i);var o=r.lookupMaybe(Fo.XObject,Co)||t.obj({});r.set(Fo.XObject,o);var a=r.lookupMaybe(Fo.ExtGState,Co)||t.obj({});r.set(Fo.ExtGState,a);var s=this.Annots()||t.obj([]);this.set(Fo.Annots,s),this.normalized=!0}},e.prototype.normalizedEntries=function(){this.normalize();var t=this.Annots(),e=this.Resources();return{Annots:t,Resources:e,Contents:this.Contents(),Font:e.lookup(Fo.Font,Co),XObject:e.lookup(Fo.XObject,Co),ExtGState:e.lookup(Fo.ExtGState,Co)}},e.InheritableEntries=[\"Resources\",\"MediaBox\",\"CropBox\",\"Rotate\"],e.withContextAndParent=function(t,n){var r=new Map;return r.set(Fo.Type,Fo.Page),r.set(Fo.Parent,n),r.set(Fo.Resources,t.obj({})),r.set(Fo.MediaBox,t.obj([0,0,612,792])),new e(r,t,!1)},e.fromMapWithContext=function(t,n,r){return void 0===r&&(r=!0),new e(t,n,r)},e}(Co),Vo=function(){function t(t,e){var n=this;this.traversedObjects=new Map,this.copy=function(t){return t instanceof Uo?n.copyPDFPage(t):t instanceof Co?n.copyPDFDict(t):t instanceof fo?n.copyPDFArray(t):t instanceof Ao?n.copyPDFStream(t):t instanceof Ro?n.copyPDFIndirectObject(t):t.clone()},this.copyPDFPage=function(t){for(var e=t.clone(),r=Uo.InheritableEntries,i=0,o=r.length;i<o;i++){var a=Fo.of(r[i]),s=e.getInheritableAttribute(a);!e.get(a)&&s&&e.set(a,s)}return e.delete(Fo.of(\"Parent\")),n.copyPDFDict(e)},this.copyPDFDict=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var r=t.entries(),i=0,o=r.length;i<o;i++){var a=r[i],s=a[0],l=a[1];e.set(s,n.copy(l))}return e},this.copyPDFArray=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var r=0,i=t.size();r<i;r++){var o=t.get(r);e.set(r,n.copy(o))}return e},this.copyPDFStream=function(t){if(n.traversedObjects.has(t))return n.traversedObjects.get(t);var e=t.clone(n.dest);n.traversedObjects.set(t,e);for(var r=t.dict.entries(),i=0,o=r.length;i<o;i++){var a=r[i],s=a[0],l=a[1];e.dict.set(s,n.copy(l))}return e},this.copyPDFIndirectObject=function(t){if(!n.traversedObjects.has(t)){var e=n.dest.nextRef();n.traversedObjects.set(t,e);var r=n.src.lookup(t);if(r){var i=n.copy(r);n.dest.assign(e,i)}}return n.traversedObjects.get(t)},this.src=t,this.dest=e}return t.for=function(e,n){return new t(e,n)},t}(),Wo=function(){function t(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return t.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},t.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},t.prototype.toString=function(){for(var t=\"xref\\n\",e=0,n=this.subsections.length;e<n;e++){var r=this.subsections[e];t+=r[0].ref.objectNumber+\" \"+r.length+\"\\n\";for(var i=0,o=r.length;i<o;i++){var a=r[i];t+=x(String(a.offset),10,\"0\"),t+=\" \",t+=x(String(a.ref.generationNumber),5,\"0\"),t+=\" \",t+=a.deleted?\"f\":\"n\",t+=\" \\n\"}}return t},t.prototype.sizeInBytes=function(){for(var t=5,e=0,n=this.subsections.length;e<n;e++){var r=this.subsections[e],i=r.length,o=r[0];t+=2,t+=String(o.ref.objectNumber).length,t+=String(i).length,t+=20*i}return t},t.prototype.copyBytesInto=function(t,e){var n=e;return t[e++]=mr.x,t[e++]=mr.r,t[e++]=mr.e,t[e++]=mr.f,t[e++]=mr.Newline,(e+=this.copySubsectionsIntoBuffer(this.subsections,t,e))-n},t.prototype.copySubsectionsIntoBuffer=function(t,e,n){for(var r=n,i=t.length,o=0;o<i;o++){var a=this.subsections[o],s=String(a[0].ref.objectNumber);n+=k(s,e,n),e[n++]=mr.Space;var l=String(a.length);n+=k(l,e,n),e[n++]=mr.Newline,n+=this.copyEntriesIntoBuffer(a,e,n)}return n-r},t.prototype.copyEntriesIntoBuffer=function(t,e,n){for(var r=t.length,i=0;i<r;i++){var o=t[i],a=x(String(o.offset),10,\"0\");n+=k(a,e,n),e[n++]=mr.Space;var s=x(String(o.ref.generationNumber),5,\"0\");n+=k(s,e,n),e[n++]=mr.Space,e[n++]=o.deleted?mr.f:mr.n,e[n++]=mr.Space,e[n++]=mr.Newline}return 20*r},t.prototype.append=function(t){if(0===this.chunkLength)return this.subsections.push([t]),this.chunkIdx=0,void(this.chunkLength=1);var e=this.subsections[this.chunkIdx],n=e[this.chunkLength-1];t.ref.objectNumber-n.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},t.create=function(){return new t({ref:Ro.of(0,65535),offset:0,deleted:!0})},t.createEmpty=function(){return new t},t}(),qo=function(){function t(t){this.lastXRefOffset=String(t)}return t.prototype.toString=function(){return\"startxref\\n\"+this.lastXRefOffset+\"\\n%%EOF\"},t.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},t.prototype.copyBytesInto=function(t,e){var n=e;return t[e++]=mr.s,t[e++]=mr.t,t[e++]=mr.a,t[e++]=mr.r,t[e++]=mr.t,t[e++]=mr.x,t[e++]=mr.r,t[e++]=mr.e,t[e++]=mr.f,t[e++]=mr.Newline,e+=k(this.lastXRefOffset,t,e),t[e++]=mr.Newline,t[e++]=mr.Percent,t[e++]=mr.Percent,t[e++]=mr.E,t[e++]=mr.O,t[e++]=mr.F,e-n},t.forLastCrossRefSectionOffset=function(e){return new t(e)},t}(),Lo=function(){function t(t){this.dict=t}return t.prototype.toString=function(){return\"trailer\\n\"+this.dict.toString()},t.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},t.prototype.copyBytesInto=function(t,e){var n=e;return t[e++]=mr.t,t[e++]=mr.r,t[e++]=mr.a,t[e++]=mr.i,t[e++]=mr.l,t[e++]=mr.e,t[e++]=mr.r,t[e++]=mr.Newline,(e+=this.dict.copyBytesInto(t,e))-n},t.of=function(e){return new t(e)},t}(),Ko=function(t){function e(e,n,r){void 0===r&&(r=!0);var i=t.call(this,e.obj({}),r)||this;return i.objects=n,i.offsets=i.computeObjectOffsets(),i.offsetsString=i.computeOffsetsString(),i.dict.set(Fo.of(\"Type\"),Fo.of(\"ObjStm\")),i.dict.set(Fo.of(\"N\"),co.of(i.objects.length)),i.dict.set(Fo.of(\"First\"),co.of(i.offsetsString.length)),i}return n(e,t),e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,e=0,n=this.objects.length;e<n;e++){t+=this.objects[e][1]+\"\\n\"}return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=k(this.offsetsString,t,0),n=0,r=this.objects.length;n<r;n++){e+=this.objects[n][1].copyBytesInto(t,e),t[e++]=mr.Newline}return t},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+E(this.offsets)[1]+E(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var t=\"\",e=0,n=this.offsets.length;e<n;e++){var r=this.offsets[e];t+=r[0]+\" \"+r[1]+\" \"}return t},e.prototype.computeObjectOffsets=function(){for(var t=0,e=new Array(this.objects.length),n=0,r=this.objects.length;n<r;n++){var i=this.objects[n],o=i[0],a=i[1];e[n]=[o.objectNumber,t],t+=a.sizeInBytes()+1}return e},e.withContextAndObjects=function(t,n,r){return void 0===r&&(r=!0),new e(t,n,r)},e}(No),Go=function(){function t(t,e){var n=this;this.parsedObjects=0,this.shouldWaitForTick=function(t){return n.parsedObjects+=t,n.parsedObjects%n.objectsPerTick==0},this.context=t,this.objectsPerTick=e}return t.prototype.serializeToBuffer=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a,s,l,h,u,c,d,f,p,g,v,y;return o(this,(function(o){switch(o.label){case 0:return[4,this.computeBufferSize()];case 1:t=o.sent(),e=t.size,n=t.header,r=t.indirectObjects,i=t.xref,a=t.trailerDict,s=t.trailer,l=0,h=new Uint8Array(e),l+=n.copyBytesInto(h,l),h[l++]=mr.Newline,h[l++]=mr.Newline,u=0,c=r.length,o.label=2;case 2:return u<c?(d=r[u],f=d[0],p=d[1],g=String(f.objectNumber),l+=k(g,h,l),h[l++]=mr.Space,v=String(f.generationNumber),l+=k(v,h,l),h[l++]=mr.Space,h[l++]=mr.o,h[l++]=mr.b,h[l++]=mr.j,h[l++]=mr.Newline,l+=p.copyBytesInto(h,l),h[l++]=mr.Newline,h[l++]=mr.e,h[l++]=mr.n,h[l++]=mr.d,h[l++]=mr.o,h[l++]=mr.b,h[l++]=mr.j,h[l++]=mr.Newline,h[l++]=mr.Newline,y=p instanceof Ko?p.getObjectsCount():1,this.shouldWaitForTick(y)?[4,X()]:[3,4]):[3,5];case 3:o.sent(),o.label=4;case 4:return u++,[3,2];case 5:return i&&(l+=i.copyBytesInto(h,l),h[l++]=mr.Newline),a&&(l+=a.copyBytesInto(h,l),h[l++]=mr.Newline,h[l++]=mr.Newline),l+=s.copyBytesInto(h,l),[2,h]}}))}))},t.prototype.computeIndirectObjectSize=function(t){var e=t[0],n=t[1];return e.sizeInBytes()+3+(n.sizeInBytes()+9)},t.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},t.prototype.computeBufferSize=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a,s,l,h,u,c;return o(this,(function(o){switch(o.label){case 0:t=ho.forVersion(1,7),e=t.sizeInBytes()+2,n=Wo.create(),r=this.context.enumerateIndirectObjects(),i=0,a=r.length,o.label=1;case 1:return i<a?(s=r[i],l=s[0],n.addEntry(l,e),e+=this.computeIndirectObjectSize(s),this.shouldWaitForTick(1)?[4,X()]:[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return i++,[3,1];case 4:return h=e,e+=n.sizeInBytes()+1,u=Lo.of(this.createTrailerDict()),e+=u.sizeInBytes()+2,c=qo.forLastCrossRefSectionOffset(h),[2,{size:e+=c.sizeInBytes(),header:t,indirectObjects:r,xref:n,trailerDict:u,trailer:c}]}}))}))},t.forContext=function(e,n){return new t(e,n)},t}(),Ho=function(t){function e(e){var n=t.call(this)||this;return n.data=e,n}return n(e,t),e.prototype.clone=function(){return e.of(this.data.slice())},e.prototype.toString=function(){return\"PDFInvalidObject(\"+this.data.length+\" bytes)\"},e.prototype.sizeInBytes=function(){return this.data.length},e.prototype.copyBytesInto=function(t,e){for(var n=this.data.length,r=0;r<n;r++)t[e++]=this.data[r];return n},e.of=function(t){return new e(t)},e}(uo);!function(t){t[t.Deleted=0]=\"Deleted\",t[t.Uncompressed=1]=\"Uncompressed\",t[t.Compressed=2]=\"Compressed\"}(Do||(Do={}));var _o,Xo=function(t){function e(e,n,r){void 0===r&&(r=!0);var i=t.call(this,e,r)||this;return i.computeIndex=function(){for(var t=[],e=0,n=0,r=i.entries.length;n<r;n++){var o=i.entries[n],a=i.entries[n-1];0===n?t.push(o.ref.objectNumber):o.ref.objectNumber-a.ref.objectNumber>1&&(t.push(e),t.push(o.ref.objectNumber),e=0),e+=1}return t.push(e),t},i.computeEntryTuples=function(){for(var t=new Array(i.entries.length),e=0,n=i.entries.length;e<n;e++){var r=i.entries[e];if(r.type===Do.Deleted){var o=r.type,a=r.nextFreeObjectNumber,s=r.ref;t[e]=[o,a,s.generationNumber]}if(r.type===Do.Uncompressed){o=r.type;var l=r.offset;s=r.ref;t[e]=[o,l,s.generationNumber]}if(r.type===Do.Compressed){o=r.type;var h=r.objectStreamRef,u=r.index;t[e]=[o,h.objectNumber,u]}}return t},i.computeMaxEntryByteWidths=function(){for(var t=i.entryTuplesCache.access(),e=[0,0,0],n=0,r=t.length;n<r;n++){var o=t[n],a=o[0],s=o[1],l=o[2],h=ut(a),u=ut(s),c=ut(l);h>e[0]&&(e[0]=h),u>e[1]&&(e[1]=u),c>e[2]&&(e[2]=c)}return e},i.entries=n||[],i.entryTuplesCache=Ln.populatedBy(i.computeEntryTuples),i.maxByteWidthsCache=Ln.populatedBy(i.computeMaxEntryByteWidths),i.indexCache=Ln.populatedBy(i.computeIndex),e.set(Fo.of(\"Type\"),Fo.of(\"XRef\")),i}return n(e,t),e.prototype.addDeletedEntry=function(t,e){var n=Do.Deleted;this.entries.push({type:n,ref:t,nextFreeObjectNumber:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addUncompressedEntry=function(t,e){var n=Do.Uncompressed;this.entries.push({type:n,ref:t,offset:e}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.addCompressedEntry=function(t,e,n){var r=Do.Compressed;this.entries.push({type:r,ref:t,objectStreamRef:e,index:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},e.prototype.clone=function(t){var n=this.dict,r=this.entries,i=this.encode;return e.of(n.clone(t),r.slice(),i)},e.prototype.getContentsString=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),n=\"\",r=0,i=t.length;r<i;r++){for(var o=t[r],a=o[0],s=o[1],l=o[2],h=q(ct(a)),u=q(ct(s)),c=q(ct(l)),d=e[0]-1;d>=0;d--)n+=(h[d]||0).toString(2);for(d=e[1]-1;d>=0;d--)n+=(u[d]||0).toString(2);for(d=e[2]-1;d>=0;d--)n+=(c[d]||0).toString(2)}return n},e.prototype.getUnencodedContents=function(){for(var t=this.entryTuplesCache.access(),e=this.maxByteWidthsCache.access(),n=new Uint8Array(this.getUnencodedContentsSize()),r=0,i=0,o=t.length;i<o;i++){for(var a=t[i],s=a[0],l=a[1],h=a[2],u=q(ct(s)),c=q(ct(l)),d=q(ct(h)),f=e[0]-1;f>=0;f--)n[r++]=u[f]||0;for(f=e[1]-1;f>=0;f--)n[r++]=c[f]||0;for(f=e[2]-1;f>=0;f--)n[r++]=d[f]||0}return n},e.prototype.getUnencodedContentsSize=function(){var t=this.maxByteWidthsCache.access();return L(t)*this.entries.length},e.prototype.updateDict=function(){t.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),n=this.indexCache.access(),r=this.dict.context;this.dict.set(Fo.of(\"W\"),r.obj(e)),this.dict.set(Fo.of(\"Index\"),r.obj(n))},e.create=function(t,n){void 0===n&&(n=!0);var r=new e(t,[],n);return r.addDeletedEntry(Ro.of(0,65535),0),r},e.of=function(t,n,r){return void 0===r&&(r=!0),new e(t,n,r)},e}(No),Zo=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.encodeStreams=r,o.objectsPerStream=i,o}return n(e,t),e.prototype.computeBufferSize=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a,s,l,h,u,c,d,f,p,g,v,y,m,b;return o(this,(function(o){switch(o.label){case 0:t=this.context.largestObjectNumber+1,e=ho.forVersion(1,7),n=e.sizeInBytes()+2,r=Xo.create(this.createTrailerDict(),this.encodeStreams),i=[],a=[],s=[],l=this.context.enumerateIndirectObjects(),d=0,f=l.length,o.label=1;case 1:return d<f?(h=l[d],g=h[0],u=h[1],g===this.context.trailerInfo.Encrypt||u instanceof Ao||u instanceof Ho||0!==g.generationNumber?(i.push(h),r.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize(h),this.shouldWaitForTick(1)?[4,X()]:[3,3]):[3,4]):[3,6];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:p=E(a),c=E(s),p&&p.length%this.objectsPerStream!=0||(p=[],a.push(p),c=Ro.of(t++),s.push(c)),r.addCompressedEntry(g,c,p.length),p.push(h),o.label=5;case 5:return d++,[3,1];case 6:d=0,f=a.length,o.label=7;case 7:return d<f?(p=a[d],g=s[d],v=Ko.withContextAndObjects(this.context,p,this.encodeStreams),r.addUncompressedEntry(g,n),n+=this.computeIndirectObjectSize([g,v]),i.push([g,v]),this.shouldWaitForTick(p.length)?[4,X()]:[3,9]):[3,10];case 8:o.sent(),o.label=9;case 9:return d++,[3,7];case 10:return y=Ro.of(t++),r.dict.set(Fo.of(\"Size\"),co.of(t)),r.addUncompressedEntry(y,n),m=n,n+=this.computeIndirectObjectSize([y,r]),i.push([y,r]),b=qo.forLastCrossRefSectionOffset(m),[2,{size:n+=b.sizeInBytes(),header:e,indirectObjects:i,trailer:b}]}}))}))},e.forContext=function(t,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=50),new e(t,n,r,i)},e}(Go),Yo=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return n(e,t),e.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2==1?\"0\":\"\"),e=t.length,n=new Uint8Array(t.length/2),r=0,i=0;r<e;){var o=parseInt(t.substring(r,r+2),16);n[i]=o,r+=2,i+=1}return n},e.prototype.decodeText=function(){var t=this.asBytes();return lt(t)?et(t):qn(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=B(t);if(!e)throw new tr(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return\"<\"+this.value+\">\"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=mr.LessThan,e+=k(this.value,t,e),t[e++]=mr.GreaterThan,this.value.length+2},e.of=function(t){return new e(t)},e.fromText=function(t){for(var n=Z(t),r=\"\",i=0,o=n.length;i<o;i++)r+=y(n[i],4);return new e(r)},e}(uo),Jo=function(){function t(t,e){this.encoding=t===ln.ZapfDingbats?vn.ZapfDingbats:t===ln.Symbol?vn.Symbol:vn.WinAnsi,this.font=dn.load(t),this.fontName=this.font.FontName,this.customName=e}return t.prototype.encodeText=function(t){for(var e=this.encodeTextAsGlyphs(t),n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=m(e[r].code);return Yo.of(n.join(\"\"))},t.prototype.widthOfTextAtSize=function(t,e){for(var n=this.encodeTextAsGlyphs(t),r=0,i=0,o=n.length;i<o;i++){var a=n[i].name,s=(n[i+1]||{}).name,l=this.font.getXAxisKerningForPair(a,s)||0;r+=this.widthOfGlyph(a)+l}return r*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,r=void 0===n||n,i=this.font,o=i.Ascender,a=i.Descender,s=i.FontBBox,l=(o||s[3])-(a||s[1]);return r||(l+=a||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.Ascender,r=e.Descender,i=e.FontBBox;return 1e3*t/((n||i[3])-(r||i[1]))},t.prototype.embedIntoContext=function(t,e){var n=t.obj({Type:\"Font\",Subtype:\"Type1\",BaseFont:this.customName||this.fontName,Encoding:this.encoding===vn.WinAnsi?\"WinAnsiEncoding\":void 0});return e?(t.assign(e,n),e):t.register(n)},t.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},t.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),n=new Array(e.length),r=0,i=e.length;r<i;r++){var o=v(e[r]);n[r]=this.encoding.encodeUnicodeCodePoint(o)}return n},t.for=function(e,n){return new t(e,n)},t}(),Qo=function(t){return\"/CIDInit /ProcSet findresource begin\\n12 dict begin\\nbegincmap\\n/CIDSystemInfo <<\\n  /Registry (Adobe)\\n  /Ordering (UCS)\\n  /Supplement 0\\n>> def\\n/CMapName /Adobe-Identity-UCS def\\n/CMapType 2 def\\n1 begincodespacerange\\n<0000><ffff>\\nendcodespacerange\\n\"+t.length+\" beginbfchar\\n\"+t.map((function(t){return t[0]+\" \"+t[1]})).join(\"\\n\")+\"\\nendbfchar\\nendcmap\\nCMapName currentdict /CMap defineresource pop\\nend\\nend\"},$o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return\"<\"+t.join(\"\")+\">\"},ta=function(t){return y(t,4)},ea=function(t){if(Y(t))return ta(t);if(J(t)){var e=Q(t),n=$(t);return\"\"+ta(e)+ta(n)}var r=m(t);throw new Error(\"0x\"+r+\" is not a valid UTF-8 or UTF-16 codepoint.\")},na=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return n(e,t),e.prototype.asBytes=function(){for(var t=[],e=\"\",n=!1,r=function(e){void 0!==e&&t.push(e),n=!1},i=0,o=this.value.length;i<o;i++){var a=this.value[i],s=g(a),l=this.value[i+1];n?s===mr.Newline||s===mr.CarriageReturn?r():s===mr.n?r(mr.Newline):s===mr.r?r(mr.CarriageReturn):s===mr.t?r(mr.Tab):s===mr.b?r(mr.Backspace):s===mr.f?r(mr.FormFeed):s===mr.LeftParen?r(mr.LeftParen):s===mr.RightParen?r(mr.RightParen):s===mr.Backspace?r(mr.BackSlash):s>=mr.Zero&&s<=mr.Seven?3!==(e+=a).length&&l>=\"0\"&&l<=\"7\"||(r(parseInt(e,8)),e=\"\"):r(s):s===mr.BackSlash?n=!0:r(s)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return lt(t)?et(t):qn(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),e=B(t);if(!e)throw new tr(t);return e},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return\"(\"+this.value+\")\"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,e){return t[e++]=mr.LeftParen,e+=k(this.value,t,e),t[e++]=mr.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){return new e(\"D:\"+x(String(t.getUTCFullYear()),4,\"0\")+x(String(t.getUTCMonth()+1),2,\"0\")+x(String(t.getUTCDate()),2,\"0\")+x(String(t.getUTCHours()),2,\"0\")+x(String(t.getUTCMinutes()),2,\"0\")+x(String(t.getUTCSeconds()),2,\"0\")+\"Z\")},e}(uo),ra=function(){function t(t,e,n,r){var i=this;this.allGlyphsInFontSortedById=function(){for(var t=new Array(i.font.characterSet.length),e=0,n=t.length;e<n;e++){var r=i.font.characterSet[e];t[e]=i.font.glyphForCodePoint(r)}return W(t.sort(V),(function(t){return t.id}))},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=e,this.fontName=this.font.postscriptName||\"Font\",this.customName=n,this.fontFeatures=r,this.baseFontName=\"\",this.glyphCache=Ln.populatedBy(this.allGlyphsInFontSortedById)}return t.for=function(e,n,r,a){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,e.create(n)];case 1:return[2,new t(i.sent(),n,r,a)]}}))}))},t.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=y(e[r].id,4);return Yo.of(n.join(\"\"))},t.prototype.widthOfTextAtSize=function(t,e){for(var n=this.font.layout(t,this.fontFeatures).glyphs,r=0,i=0,o=n.length;i<o;i++)r+=n[i].advanceWidth*this.scale;return r*(e/1e3)},t.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,r=void 0===n||n,i=this.font,o=i.ascent,a=i.descent,s=i.bbox,l=(o||s.maxY)*this.scale-(a||s.minY)*this.scale;return r||(l-=Math.abs(a)||0),l/1e3*t},t.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.ascent,r=e.descent,i=e.bbox;return 1e3*t/((n||i.maxY)*this.scale-(r||i.minY)*this.scale)},t.prototype.embedIntoContext=function(t,e){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,e)},t.prototype.embedFontDict=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return n=o.sent(),r=this.embedUnicodeCmap(t),i=t.obj({Type:\"Font\",Subtype:\"Type0\",BaseFont:this.baseFontName,Encoding:\"Identity-H\",DescendantFonts:[n],ToUnicode:r}),e?(t.assign(e,i),[2,e]):[2,t.register(i)]}}))}))},t.prototype.isCFF=function(){return this.font.cff},t.prototype.embedCIDFontDict=function(t){return i(this,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return e=r.sent(),n=t.obj({Type:\"Font\",Subtype:this.isCFF()?\"CIDFontType0\":\"CIDFontType2\",CIDToGIDMap:\"Identity\",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:na.of(\"Adobe\"),Ordering:na.of(\"Identity\"),Supplement:0},FontDescriptor:e,W:this.computeWidths()}),[2,t.register(n)]}}))}))},t.prototype.embedFontDescriptor=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i,a,s,l,h,u,c,d,f,p,g,v;return o(this,(function(o){switch(o.label){case 0:return[4,this.embedFontStream(t)];case 1:return e=o.sent(),n=this.scale,r=this.font,i=r.italicAngle,a=r.ascent,s=r.descent,l=r.capHeight,h=r.xHeight,u=this.font.bbox,c=u.minX,d=u.minY,f=u.maxX,p=u.maxY,g=t.obj(((v={Type:\"FontDescriptor\",FontName:this.baseFontName,Flags:(w=this.font,x=w[\"OS/2\"]?w[\"OS/2\"].sFamilyClass:0,y={fixedPitch:w.post.isFixedPitch,serif:1<=x&&x<=7,symbolic:!0,script:10===x,italic:w.head.macStyle.italic},m=0,b=function(t){m|=1<<t-1},y.fixedPitch&&b(1),y.serif&&b(2),y.symbolic&&b(3),y.script&&b(4),y.nonsymbolic&&b(6),y.italic&&b(7),y.allCap&&b(17),y.smallCap&&b(18),y.forceBold&&b(19),m),FontBBox:[c*n,d*n,f*n,p*n],ItalicAngle:i,Ascent:a*n,Descent:s*n,CapHeight:(l||a)*n,XHeight:(h||0)*n,StemV:0})[this.isCFF()?\"FontFile3\":\"FontFile2\"]=e,v)),[2,t.register(g)]}var y,m,b,w,x}))}))},t.prototype.serializeFont=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this.fontData]}))}))},t.prototype.embedFontStream=function(t){return i(this,void 0,void 0,(function(){var e,n,r;return o(this,(function(i){switch(i.label){case 0:return r=(n=t).flateStream,[4,this.serializeFont()];case 1:return e=r.apply(n,[i.sent(),{Subtype:this.isCFF()?\"CIDFontType0C\":void 0}]),[2,t.register(e)]}}))}))},t.prototype.embedUnicodeCmap=function(t){var e=function(t,e){for(var n=new Array(t.length),r=0,i=t.length;r<i;r++){var o=t[r],a=$o(ta(e(o))),s=$o.apply(void 0,o.codePoints.map(ea));n[r]=[a,s]}return Qo(n)}(this.glyphCache.access(),this.glyphId.bind(this)),n=t.flateStream(e);return t.register(n)},t.prototype.glyphId=function(t){return t?t.id:-1},t.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r],a=t[r-1],s=this.glyphId(o),l=this.glyphId(a);0===r?e.push(s):s-l!=1&&(e.push(n),e.push(s),n=[]),n.push(o.advanceWidth*this.scale)}return e.push(n),e},t}(),ia=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=Ln.populatedBy((function(){return o.glyphs})),o.glyphIdMap=new Map,o}return n(e,t),e.for=function(t,n,r,a){return i(this,void 0,void 0,(function(){return o(this,(function(i){switch(i.label){case 0:return[4,t.create(n)];case 1:return[2,new e(i.sent(),n,r,a)]}}))}))},e.prototype.encodeText=function(t){for(var e=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(e.length),r=0,i=e.length;r<i;r++){var o=e[r],a=this.subset.includeGlyph(o);this.glyphs[a-1]=o,this.glyphIdMap.set(o.id,a),n[r]=y(a,4)}return this.glyphCache.invalidate(),Yo.of(n.join(\"\"))},e.prototype.isCFF=function(){return this.subset.cff},e.prototype.glyphId=function(t){return t?this.glyphIdMap.get(t.id):-1},e.prototype.serializeFont=function(){var t=this;return new Promise((function(e,n){var r=[];t.subset.encodeStream().on(\"data\",(function(t){return r.push(t)})).on(\"end\",(function(){return e(I(r))})).on(\"error\",(function(t){return n(t)}))}))},e}(ra);(_o=t.AFRelationship||(t.AFRelationship={})).Source=\"Source\",_o.Data=\"Data\",_o.Alternative=\"Alternative\",_o.Supplement=\"Supplement\",_o.EncryptedPayload=\"EncryptedPayload\",_o.FormData=\"EncryptedPayload\",_o.Schema=\"Schema\",_o.Unspecified=\"Unspecified\";var oa,aa=function(){function t(t,e,n){void 0===n&&(n={}),this.fileData=t,this.fileName=e,this.options=n}return t.for=function(e,n,r){return void 0===r&&(r={}),new t(e,n,r)},t.prototype.embedIntoContext=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i,a,s,l,h,u,c;return o(this,(function(o){return n=this.options,r=n.mimeType,i=n.description,a=n.creationDate,s=n.modificationDate,l=n.afRelationship,h=t.flateStream(this.fileData,{Type:\"EmbeddedFile\",Subtype:null!=r?r:void 0,Params:{Size:this.fileData.length,CreationDate:a?na.fromDate(a):void 0,ModDate:s?na.fromDate(s):void 0}}),u=t.register(h),c=t.obj({Type:\"Filespec\",F:na.of(this.fileName),UF:Yo.fromText(this.fileName),EF:{F:u},Desc:i?Yo.fromText(i):void 0,AFRelationship:null!=l?l:void 0}),e?(t.assign(e,c),[2,e]):[2,t.register(c)]}))}))},t}(),sa=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(t){t.DeviceGray=\"DeviceGray\",t.DeviceRGB=\"DeviceRGB\",t.DeviceCMYK=\"DeviceCMYK\"}(oa||(oa={}));var la={1:oa.DeviceGray,3:oa.DeviceRGB,4:oa.DeviceCMYK},ha=function(){function t(t,e,n,r,i){this.imageData=t,this.bitsPerComponent=e,this.width=n,this.height=r,this.colorSpace=i}return t.for=function(e){return i(this,void 0,void 0,(function(){var n,r,i,a,s,l,h,u;return o(this,(function(o){if(n=new DataView(e.buffer),65496!==n.getUint16(0))throw new Error(\"SOI not found in JPEG\");for(r=2;r<n.byteLength&&(i=n.getUint16(r),r+=2,!sa.includes(i));)r+=n.getUint16(r);if(!sa.includes(i))throw new Error(\"Invalid JPEG\");if(r+=2,a=n.getUint8(r++),s=n.getUint16(r),r+=2,l=n.getUint16(r),r+=2,h=n.getUint8(r++),!(u=la[h]))throw new Error(\"Unknown JPEG channel.\");return[2,new t(e,a,l,s,u)]}))}))},t.prototype.embedIntoContext=function(t,e){return i(this,void 0,void 0,(function(){var n;return o(this,(function(r){return n=t.stream(this.imageData,{Type:\"XObject\",Subtype:\"Image\",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:\"DCTDecode\",Decode:this.colorSpace===oa.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]}))}))},t}(),ua=ft((function(t,e){var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if(\"object\"!=typeof n)throw new TypeError(n+\"must be non-object\");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(n)}));function ca(t){for(var e=t.length;--e>=0;)t[e]=0}var da=[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],fa=[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],pa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ga=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],va=new Array(576);ca(va);var ya=new Array(60);ca(ya);var ma=new Array(512);ca(ma);var ba=new Array(256);ca(ba);var wa=new Array(29);ca(wa);var xa,ka,Fa,Sa=new Array(30);function Ca(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function Aa(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function Ta(t){return t<256?ma[t]:ma[256+(t>>>7)]}function Pa(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function za(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,Pa(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function Ra(t,e,n){za(t,n[2*e],n[2*e+1])}function Oa(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function Da(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Oa(o[s]++,s))}}function Ba(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Na(t){t.bi_valid>8?Pa(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Ea(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function ja(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Ea(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Ea(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function Ma(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?Ra(t,i,e):(Ra(t,(o=ba[i])+256+1,e),0!==(a=da[o])&&za(t,i-=wa[o],a),Ra(t,o=Ta(--r),n),0!==(a=fa[o])&&za(t,r-=Sa[o],a))}while(s<t.last_lit);Ra(t,256,e)}function Ia(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=h=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=h,n=t.heap_len>>1;n>=1;n--)ja(t,o,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],ja(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,ja(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,g++),l[2*r+1]=o,r>h||(t.bl_count[o]++,a=0,r>=f&&(a=d[r-f]),s=l[2*r],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>h||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),Da(o,h,t.bl_count)}function Ua(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Va(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<h)do{Ra(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Ra(t,i,t.bl_tree),s--),Ra(t,16,t.bl_tree),za(t,s-3,2)):s<=10?(Ra(t,17,t.bl_tree),za(t,s-3,3)):(Ra(t,18,t.bl_tree),za(t,s-11,7));s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4)}}ca(Sa);var Wa=!1;function qa(t,e,n,r){za(t,0+(r?1:0),3),function(t,e,n,r){Na(t),r&&(Pa(t,n),Pa(t,~n)),ua.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}var La={_tr_init:function(t){Wa||(!function(){var t,e,n,r,i,o=new Array(16);for(n=0,r=0;r<28;r++)for(wa[r]=n,t=0;t<1<<da[r];t++)ba[n++]=r;for(ba[n-1]=r,i=0,r=0;r<16;r++)for(Sa[r]=i,t=0;t<1<<fa[r];t++)ma[i++]=r;for(i>>=7;r<30;r++)for(Sa[r]=i<<7,t=0;t<1<<fa[r]-7;t++)ma[256+i++]=r;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)va[2*t+1]=8,t++,o[8]++;for(;t<=255;)va[2*t+1]=9,t++,o[9]++;for(;t<=279;)va[2*t+1]=7,t++,o[7]++;for(;t<=287;)va[2*t+1]=8,t++,o[8]++;for(Da(va,287,o),t=0;t<30;t++)ya[2*t+1]=5,ya[2*t]=Oa(t,5);xa=new Ca(va,da,257,286,15),ka=new Ca(ya,fa,0,30,15),Fa=new Ca(new Array(0),pa,0,19,7)}(),Wa=!0),t.l_desc=new Aa(t.dyn_ltree,xa),t.d_desc=new Aa(t.dyn_dtree,ka),t.bl_desc=new Aa(t.bl_tree,Fa),t.bi_buf=0,t.bi_valid=0,Ba(t)},_tr_stored_block:qa,_tr_flush_block:function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),Ia(t,t.l_desc),Ia(t,t.d_desc),a=function(t){var e;for(Ua(t,t.dyn_ltree,t.l_desc.max_code),Ua(t,t.dyn_dtree,t.d_desc.max_code),Ia(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*ga[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?qa(t,e,n,r):4===t.strategy||o===i?(za(t,2+(r?1:0),3),Ma(t,va,ya)):(za(t,4+(r?1:0),3),function(t,e,n,r){var i;for(za(t,e-257,5),za(t,n-1,5),za(t,r-4,4),i=0;i<r;i++)za(t,t.bl_tree[2*ga[i]+1],3);Va(t,t.dyn_ltree,e-1),Va(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Ma(t,t.dyn_ltree,t.dyn_dtree)),Ba(t),r&&Na(t)},_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ba[n]+256+1)]++,t.dyn_dtree[2*Ta(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){za(t,2,3),Ra(t,256,va),function(t){16===t.bi_valid?(Pa(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}};var Ka=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var Ga=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();var Ha,_a=function(t,e,n,r){var i=Ga,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},Xa={2:\"need dictionary\",1:\"stream end\",0:\"\",\"-1\":\"file error\",\"-2\":\"stream error\",\"-3\":\"data error\",\"-4\":\"insufficient memory\",\"-5\":\"buffer error\",\"-6\":\"incompatible version\"};function Za(t,e){return t.msg=Xa[e],e}function Ya(t){return(t<<1)-(t>4?9:0)}function Ja(t){for(var e=t.length;--e>=0;)t[e]=0}function Qa(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(ua.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function $a(t,e){La._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Qa(t.strm)}function ts(t,e){t.pending_buf[t.pending++]=e}function es(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ns(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,ua.arraySet(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=Ka(t.adler,e,i,n):2===t.state.wrap&&(t.adler=_a(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function rs(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,f=h[o+a-1],p=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(n=e)+a]===p&&h[n+a-1]===f&&h[n]===h[o]&&h[++n]===h[o+1]){o+=2,n++;do{}while(h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&h[++o]===h[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(t.match_start=e,a=r,r>=s)break;f=h[o+a-1],p=h[o+a]}}}while((e=c[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function is(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-262)){ua.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=ns(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)}function os(t,e){for(var n,r;;){if(t.lookahead<262){if(is(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-262&&(t.match_length=rs(t,n)),t.match_length>=3)if(r=La._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=La._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&($a(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?($a(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&($a(t,!1),0===t.strm.avail_out)?1:2}function as(t,e){for(var n,r,i;;){if(t.lookahead<262){if(is(t),t.lookahead<262&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-262&&(t.match_length=rs(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=La._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&($a(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=La._tr_tally(t,0,t.window[t.strstart-1]))&&$a(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=La._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?($a(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&($a(t,!1),0===t.strm.avail_out)?1:2}function ss(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function ls(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ua.Buf16(1146),this.dyn_dtree=new ua.Buf16(122),this.bl_tree=new ua.Buf16(78),Ja(this.dyn_ltree),Ja(this.dyn_dtree),Ja(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ua.Buf16(16),this.heap=new ua.Buf16(573),Ja(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ua.Buf16(573),Ja(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function hs(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=0,La._tr_init(e),0):Za(t,-2)}function us(t){var e,n=hs(t);return 0===n&&((e=t.state).window_size=2*e.w_size,Ja(e.head),e.max_lazy_match=Ha[e.level].max_lazy,e.good_match=Ha[e.level].good_length,e.nice_match=Ha[e.level].nice_length,e.max_chain_length=Ha[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),n}function cs(t,e,n,r,i,o){if(!t)return-2;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return Za(t,-2);8===r&&(r=9);var s=new ls;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new ua.Buf8(2*s.w_size),s.head=new ua.Buf16(s.hash_size),s.prev=new ua.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ua.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,us(t)}Ha=[new ss(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(is(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,$a(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&($a(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?($a(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&($a(t,!1),t.strm.avail_out),1)})),new ss(4,4,8,4,os),new ss(4,5,16,8,os),new ss(4,6,32,32,os),new ss(4,4,16,16,as),new ss(8,16,32,32,as),new ss(8,16,128,128,as),new ss(8,32,128,256,as),new ss(32,128,258,1024,as),new ss(32,258,258,4096,as)];var ds={deflateInit:function(t,e){return cs(t,e,8,15,8,0)},deflateInit2:cs,deflateReset:us,deflateResetKeep:hs,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},deflate:function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?Za(t,-2):-2;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return Za(t,0===t.avail_out?-5:-2);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,ts(r,31),ts(r,139),ts(r,8),r.gzhead?(ts(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),ts(r,255&r.gzhead.time),ts(r,r.gzhead.time>>8&255),ts(r,r.gzhead.time>>16&255),ts(r,r.gzhead.time>>24&255),ts(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ts(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(ts(r,255&r.gzhead.extra.length),ts(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=_a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(ts(r,0),ts(r,0),ts(r,0),ts(r,0),ts(r,0),ts(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),ts(r,3),r.status=113);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=113,es(r,a),0!==r.strstart&&(es(r,t.adler>>>16),es(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),Qa(t),i=r.pending,r.pending!==r.pending_buf_size));)ts(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),Qa(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,ts(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),Qa(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,ts(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=_a(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Qa(t),r.pending+2<=r.pending_buf_size&&(ts(r,255&t.adler),ts(r,t.adler>>8&255),t.adler=0,r.status=113)):r.status=113),0!==r.pending){if(Qa(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&Ya(e)<=Ya(n)&&4!==e)return Za(t,-5);if(666===r.status&&0!==t.avail_in)return Za(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(is(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=La._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&($a(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?($a(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&($a(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=258){if(is(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+258;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=258-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=La._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=La._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&($a(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?($a(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&($a(t,!1),0===t.strm.avail_out)?1:2}(r,e):Ha[r.level].func(r,e);if(3!==s&&4!==s||(r.status=666),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?La._tr_align(r):5!==e&&(La._tr_stored_block(r,0,0,!1),3===e&&(Ja(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Qa(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(ts(r,255&t.adler),ts(r,t.adler>>8&255),ts(r,t.adler>>16&255),ts(r,t.adler>>24&255),ts(r,255&t.total_in),ts(r,t.total_in>>8&255),ts(r,t.total_in>>16&255),ts(r,t.total_in>>24&255)):(es(r,t.adler>>>16),es(r,65535&t.adler)),Qa(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},deflateEnd:function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?Za(t,-2):(t.state=null,113===e?Za(t,-3):0):-2},deflateSetDictionary:function(t,e){var n,r,i,o,a,s,l,h,u=e.length;if(!t||!t.state)return-2;if(2===(o=(n=t.state).wrap)||1===o&&42!==n.status||n.lookahead)return-2;for(1===o&&(t.adler=Ka(t.adler,e,u,0)),n.wrap=0,u>=n.w_size&&(0===o&&(Ja(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new ua.Buf8(n.w_size),ua.arraySet(h,e,u-n.w_size,n.w_size,0),e=h,u=n.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,is(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,is(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=l,t.avail_in=a,n.wrap=o,0},deflateInfo:\"pako deflate (from Nodeca project)\"},fs=!0,ps=!0;try{String.fromCharCode.apply(null,[0])}catch(t){fs=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){ps=!1}for(var gs=new ua.Buf8(256),vs=0;vs<256;vs++)gs[vs]=vs>=252?6:vs>=248?5:vs>=240?4:vs>=224?3:vs>=192?2:1;gs[254]=gs[254]=1;function ys(t,e){if(e<65534&&(t.subarray&&ps||!t.subarray&&fs))return String.fromCharCode.apply(null,ua.shrinkBuf(t,e));for(var n=\"\",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}var ms=function(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new ua.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},bs=function(t){return ys(t,t.length)},ws=function(t){for(var e=new ua.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},xs=function(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=gs[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return ys(s,r)},ks=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+gs[t[n]]>e?n:e};var Fs=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0},Ss=Object.prototype.toString;function Cs(t){if(!(this instanceof Cs))return new Cs(t);this.options=ua.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Fs,this.strm.avail_out=0;var n=ds.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(Xa[n]);if(e.header&&ds.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r=\"string\"==typeof e.dictionary?ms(e.dictionary):\"[object ArrayBuffer]\"===Ss.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=ds.deflateSetDictionary(this.strm,r)))throw new Error(Xa[n]);this._dict_set=!0}}function As(t,e){var n=new Cs(e);if(n.push(t,!0),n.err)throw n.msg||Xa[n.err];return n.result}Cs.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,\"string\"==typeof t?i.input=ms(t):\"[object ArrayBuffer]\"===Ss.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new ua.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=ds.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||(\"string\"===this.options.to?this.onData(bs(ua.shrinkBuf(i.output,i.next_out))):this.onData(ua.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=ds.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),i.avail_out=0,!0)},Cs.prototype.onData=function(t){this.chunks.push(t)},Cs.prototype.onEnd=function(t){0===t&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=ua.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Ts={Deflate:Cs,deflate:As,deflateRaw:function(t,e){return(e=e||{}).raw=!0,As(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,As(t,e)}},Ps=function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,A=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,h=n.wsize,u=n.whave,c=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=g[f&y];e:for(;;){if(f>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))A[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg=\"invalid literal/length code\",n.mode=30;break t}x=65535&b,(w&=15)&&(p<w&&(f+=C[r++]<<p,p+=8),x+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),b=v[f&m];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(f&(1<<w)-1)];continue n}t.msg=\"invalid distance code\",n.mode=30;break t}if(k=65535&b,p<(w&=15)&&(f+=C[r++]<<p,(p+=8)<w&&(f+=C[r++]<<p,p+=8)),(k+=f&(1<<w)-1)>l){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(f>>>=w,p-=w,k>(w=o-a)){if((w=k-w)>u&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break t}if(F=0,S=d,0===c){if(F+=h-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}else if(c<w){if(F+=h+c-w,(w-=c)<x){x-=w;do{A[o++]=d[F++]}while(--w);if(F=0,c<x){x-=w=c;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}}}else if(F+=c-w,w<x){x-=w;do{A[o++]=d[F++]}while(--w);F=o-k,S=A}for(;x>2;)A[o++]=S[F++],A[o++]=S[F++],A[o++]=S[F++],x-=3;x&&(A[o++]=S[F++],x>1&&(A[o++]=S[F++]))}else{F=o-k;do{A[o++]=A[F++],A[o++]=A[F++],A[o++]=A[F++],x-=3}while(x>2);x&&(A[o++]=A[F++],x>1&&(A[o++]=A[F++]))}break}}break}}while(r<i&&o<s);r-=x=p>>3,f&=(1<<(p-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p},zs=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Rs=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Os=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ds=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Bs=function(t,e,n,r,i,o,a,s){var l,h,u,c,d,f,p,g,v,y=s.bits,m=0,b=0,w=0,x=0,k=0,F=0,S=0,C=0,A=0,T=0,P=null,z=0,R=new ua.Buf16(16),O=new ua.Buf16(16),D=null,B=0;for(m=0;m<=15;m++)R[m]=0;for(b=0;b<r;b++)R[e[n+b]]++;for(k=y,x=15;x>=1&&0===R[x];x--);if(k>x&&(k=x),0===x)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<x&&0===R[w];w++);for(k<w&&(k=w),C=1,m=1;m<=15;m++)if(C<<=1,(C-=R[m])<0)return-1;if(C>0&&(0===t||1!==x))return-1;for(O[1]=0,m=1;m<15;m++)O[m+1]=O[m]+R[m];for(b=0;b<r;b++)0!==e[n+b]&&(a[O[e[n+b]]++]=b);if(0===t?(P=D=a,f=19):1===t?(P=zs,z-=257,D=Rs,B-=257,f=256):(P=Os,D=Ds,f=-1),T=0,b=0,m=w,d=o,F=k,S=0,u=-1,c=(A=1<<k)-1,1===t&&A>852||2===t&&A>592)return 1;for(;;){p=m-S,a[b]<f?(g=0,v=a[b]):a[b]>f?(g=D[B+a[b]],v=P[z+a[b]]):(g=96,v=0),l=1<<m-S,w=h=1<<F;do{i[d+(T>>S)+(h-=l)]=p<<24|g<<16|v|0}while(0!==h);for(l=1<<m-1;T&l;)l>>=1;if(0!==l?(T&=l-1,T+=l):T=0,b++,0==--R[m]){if(m===x)break;m=e[n+a[b]]}if(m>k&&(T&c)!==u){for(0===S&&(S=k),d+=w,C=1<<(F=m-S);F+S<x&&!((C-=R[F+S])<=0);)F++,C<<=1;if(A+=1<<F,1===t&&A>852||2===t&&A>592)return 1;i[u=T&c]=k<<24|F<<16|d-o|0}}return 0!==T&&(i[d+T]=m-S<<24|64<<16|0),s.bits=k,0};function Ns(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Es(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ua.Buf16(320),this.work=new ua.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function js(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg=\"\",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new ua.Buf32(852),e.distcode=e.distdyn=new ua.Buf32(592),e.sane=1,e.back=-1,0):-2}function Ms(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,js(t)):-2}function Is(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?-2:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Ms(t))):-2}function Us(t,e){var n,r;return t?(r=new Es,t.state=r,r.window=null,0!==(n=Is(t,e))&&(t.state=null),n):-2}var Vs,Ws,qs=!0;function Ls(t){if(qs){var e;for(Vs=new ua.Buf32(512),Ws=new ua.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Bs(1,t.lens,0,288,Vs,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Bs(2,t.lens,0,32,Ws,0,t.work,{bits:5}),qs=!1}t.lencode=Vs,t.lenbits=9,t.distcode=Ws,t.distbits=5}function Ks(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new ua.Buf8(o.wsize)),r>=o.wsize?(ua.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),ua.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(ua.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var Gs={inflateReset:Ms,inflateReset2:Is,inflateResetKeep:js,inflateInit:function(t){return Us(t,15)},inflateInit2:Us,inflate:function(t,e){var n,r,i,o,a,s,l,h,u,c,d,f,p,g,v,y,m,b,w,x,k,F,S,C,A=0,T=new ua.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return-2;12===(n=t.state).mode&&(n.mode=13),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,c=s,d=l,F=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===h){n.check=0,T[0]=255&h,T[1]=h>>>8&255,n.check=_a(n.check,T,2,0),h=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg=\"incorrect header check\",n.mode=30;break}if(8!=(15&h)){t.msg=\"unknown compression method\",n.mode=30;break}if(u-=4,k=8+(15&(h>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg=\"invalid window size\",n.mode=30;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&h?10:12,h=0,u=0;break;case 2:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.flags=h,8!=(255&n.flags)){t.msg=\"unknown compression method\",n.mode=30;break}if(57344&n.flags){t.msg=\"unknown header flags set\",n.mode=30;break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=_a(n.check,T,2,0)),h=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.time=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,n.check=_a(n.check,T,4,0)),h=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=_a(n.check,T,2,0)),h=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(T[0]=255&h,T[1]=h>>>8&255,n.check=_a(n.check,T,2,0)),h=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),ua.arraySet(n.head.extra,r,o,f,k)),512&n.flags&&(n.check=_a(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=_a(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;f=0;do{k=r[o+f++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&f<s);if(512&n.flags&&(n.check=_a(n.check,r,f,o)),s-=f,o+=f,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(65535&n.check)){t.msg=\"header crc mismatch\",n.mode=30;break}h=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}t.adler=n.check=Ns(h),h=0,u=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){h>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}switch(n.last=1&h,u-=1,3&(h>>>=1)){case 0:n.mode=14;break;case 1:if(Ls(n),n.mode=20,6===e){h>>>=2,u-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg=\"invalid block type\",n.mode=30}h>>>=2,u-=2;break;case 14:for(h>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){t.msg=\"invalid stored block lengths\",n.mode=30;break}if(n.length=65535&h,h=0,u=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break t;ua.arraySet(i,r,o,f,a),s-=f,o+=f,l-=f,a+=f,n.length-=f;break}n.mode=12;break;case 17:for(;u<14;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(n.nlen=257+(31&h),h>>>=5,u-=5,n.ndist=1+(31&h),h>>>=5,u-=5,n.ncode=4+(15&h),h>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg=\"too many length or distance symbols\",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.lens[P[n.have++]]=7&h,h>>>=3,u-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},F=Bs(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid code lengths set\",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(m<16)h>>>=v,u-=v,n.lens[n.have++]=m;else{if(16===m){for(C=v+2;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h>>>=v,u-=v,0===n.have){t.msg=\"invalid bit length repeat\",n.mode=30;break}k=n.lens[n.have-1],f=3+(3&h),h>>>=2,u-=2}else if(17===m){for(C=v+3;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=3+(7&(h>>>=v)),h>>>=3,u-=3}else{for(C=v+7;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}u-=v,k=0,f=11+(127&(h>>>=v)),h>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){t.msg=\"invalid bit length repeat\",n.mode=30;break}for(;f--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){t.msg=\"invalid code -- missing end-of-block\",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},F=Bs(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,F){t.msg=\"invalid literal/lengths set\",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},F=Bs(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,F){t.msg=\"invalid distances set\",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,Ps(t,d),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,h=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;y=(A=n.lencode[h&(1<<n.lenbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(y&&0==(240&y)){for(b=v,w=y,x=m;y=(A=n.lencode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,n.length=m,0===y){n.mode=26;break}if(32&y){n.back=-1,n.mode=12;break}if(64&y){t.msg=\"invalid literal/length code\",n.mode=30;break}n.extra=15&y,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;y=(A=n.distcode[h&(1<<n.distbits)-1])>>>16&255,m=65535&A,!((v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(0==(240&y)){for(b=v,w=y,x=m;y=(A=n.distcode[x+((h&(1<<b+w)-1)>>b)])>>>16&255,m=65535&A,!(b+(v=A>>>24)<=u);){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}h>>>=b,u-=b,n.back+=b}if(h>>>=v,u-=v,n.back+=v,64&y){t.msg=\"invalid distance code\",n.mode=30;break}n.offset=m,n.extra=15&y,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg=\"invalid distance too far back\",n.mode=30;break}n.mode=25;case 25:if(0===l)break t;if(f=d-l,n.offset>f){if((f=n.offset-f)>n.whave&&n.sane){t.msg=\"invalid distance too far back\",n.mode=30;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=a-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[a++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break t;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break t;s--,h|=r[o++]<<u,u+=8}if(d-=l,t.total_out+=d,n.total+=d,d&&(t.adler=n.check=n.flags?_a(n.check,i,d,a-d):Ka(n.check,i,d,a-d)),d=l,(n.flags?h:Ns(h))!==n.check){t.msg=\"incorrect data check\",n.mode=30;break}h=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,h+=r[o++]<<u,u+=8}if(h!==(4294967295&n.total)){t.msg=\"incorrect length check\",n.mode=30;break}h=0,u=0}n.mode=29;case 29:F=1;break t;case 30:F=-3;break t;case 31:return-4;case 32:default:return-2}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,n.hold=h,n.bits=u,(n.wsize||d!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&Ks(t,t.output,t.next_out,d-t.avail_out),c-=t.avail_in,d-=t.avail_out,t.total_in+=c,t.total_out+=d,n.total+=d,n.wrap&&d&&(t.adler=n.check=n.flags?_a(n.check,i,d,t.next_out-d):Ka(n.check,i,d,t.next_out-d)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===c&&0===d||4===e)&&0===F&&(F=-5),F},inflateEnd:function(t){if(!t||!t.state)return-2;var e=t.state;return e.window&&(e.window=null),t.state=null,0},inflateGetHeader:function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?-2:(n.head=e,e.done=!1,0):-2},inflateSetDictionary:function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?-2:11===n.mode&&Ka(1,e,r,0)!==n.check?-3:Ks(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},inflateInfo:\"pako inflate (from Nodeca project)\"},Hs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var _s=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=\"\",this.comment=\"\",this.hcrc=0,this.done=!1},Xs=Object.prototype.toString;function Zs(t){if(!(this instanceof Zs))return new Zs(t);this.options=ua.assign({chunkSize:16384,windowBits:0,to:\"\"},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Fs,this.strm.avail_out=0;var n=Gs.inflateInit2(this.strm,e.windowBits);if(n!==Hs.Z_OK)throw new Error(Xa[n]);if(this.header=new _s,Gs.inflateGetHeader(this.strm,this.header),e.dictionary&&(\"string\"==typeof e.dictionary?e.dictionary=ms(e.dictionary):\"[object ArrayBuffer]\"===Xs.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Gs.inflateSetDictionary(this.strm,e.dictionary))!==Hs.Z_OK))throw new Error(Xa[n])}function Ys(t,e){var n=new Zs(e);if(n.push(t,!0),n.err)throw n.msg||Xa[n.err];return n.result}Zs.prototype.push=function(t,e){var n,r,i,o,a,s=this.strm,l=this.options.chunkSize,h=this.options.dictionary,u=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?Hs.Z_FINISH:Hs.Z_NO_FLUSH,\"string\"==typeof t?s.input=ws(t):\"[object ArrayBuffer]\"===Xs.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new ua.Buf8(l),s.next_out=0,s.avail_out=l),(n=Gs.inflate(s,Hs.Z_NO_FLUSH))===Hs.Z_NEED_DICT&&h&&(n=Gs.inflateSetDictionary(this.strm,h)),n===Hs.Z_BUF_ERROR&&!0===u&&(n=Hs.Z_OK,u=!1),n!==Hs.Z_STREAM_END&&n!==Hs.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==Hs.Z_STREAM_END&&(0!==s.avail_in||r!==Hs.Z_FINISH&&r!==Hs.Z_SYNC_FLUSH)||(\"string\"===this.options.to?(i=ks(s.output,s.next_out),o=s.next_out-i,a=xs(s.output,i),s.next_out=o,s.avail_out=l-o,o&&ua.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(ua.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==Hs.Z_STREAM_END);return n===Hs.Z_STREAM_END&&(r=Hs.Z_FINISH),r===Hs.Z_FINISH?(n=Gs.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Hs.Z_OK):r!==Hs.Z_SYNC_FLUSH||(this.onEnd(Hs.Z_OK),s.avail_out=0,!0)},Zs.prototype.onData=function(t){this.chunks.push(t)},Zs.prototype.onEnd=function(t){t===Hs.Z_OK&&(\"string\"===this.options.to?this.result=this.chunks.join(\"\"):this.result=ua.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Js={Inflate:Zs,inflate:Ys,inflateRaw:function(t,e){return(e=e||{}).raw=!0,Ys(t,e)},ungzip:Ys},Qs={};(0,ua.assign)(Qs,Ts,Js,Hs);var $s,tl,el,nl=Qs,rl={};rl.toRGBA8=function(t){var e=t.width,n=t.height;if(null==t.tabs.acTL)return[rl.toRGBA8.decodeImage(t.data,e,n,t).buffer];var r=[];null==t.frames[0].data&&(t.frames[0].data=t.data);for(var i=e*n*4,o=new Uint8Array(i),a=new Uint8Array(i),s=new Uint8Array(i),l=0;l<t.frames.length;l++){var h=t.frames[l],u=h.rect.x,c=h.rect.y,d=h.rect.width,f=h.rect.height,p=rl.toRGBA8.decodeImage(h.data,d,f,t);if(0!=l)for(var g=0;g<i;g++)s[g]=o[g];if(0==h.blend?rl._copyTile(p,d,f,o,e,n,u,c,0):1==h.blend&&rl._copyTile(p,d,f,o,e,n,u,c,1),r.push(o.buffer.slice(0)),0==h.dispose);else if(1==h.dispose)rl._copyTile(a,d,f,o,e,n,u,c,0);else if(2==h.dispose)for(g=0;g<i;g++)o[g]=s[g]}return r},rl.toRGBA8.decodeImage=function(t,e,n,r){var i=e*n,o=rl.decode._getBPP(r),a=Math.ceil(e*o/8),s=new Uint8Array(4*i),l=new Uint32Array(s.buffer),h=r.ctype,u=r.depth,c=rl._bin.readUshort;if(6==h){var d=i<<2;if(8==u)for(var f=0;f<d;f+=4)s[f]=t[f],s[f+1]=t[f+1],s[f+2]=t[f+2],s[f+3]=t[f+3];if(16==u)for(f=0;f<d;f++)s[f]=t[f<<1]}else if(2==h){var p=r.tabs.tRNS;if(null==p){if(8==u)for(f=0;f<i;f++){var g=3*f;l[f]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(f=0;f<i;f++){g=6*f;l[f]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}}else{var v=p[0],y=p[1],m=p[2];if(8==u)for(f=0;f<i;f++){var b=f<<2;g=3*f;l[f]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==v&&t[g+1]==y&&t[g+2]==m&&(s[b+3]=0)}if(16==u)for(f=0;f<i;f++){b=f<<2,g=6*f;l[f]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],c(t,g)==v&&c(t,g+2)==y&&c(t,g+4)==m&&(s[b+3]=0)}}}else if(3==h){var w=r.tabs.PLTE,x=r.tabs.tRNS,k=x?x.length:0;if(1==u)for(var F=0;F<n;F++){var S=F*a,C=F*e;for(f=0;f<e;f++){b=C+f<<2;var A=3*(T=t[S+(f>>3)]>>7-((7&f)<<0)&1);s[b]=w[A],s[b+1]=w[A+1],s[b+2]=w[A+2],s[b+3]=T<k?x[T]:255}}if(2==u)for(F=0;F<n;F++)for(S=F*a,C=F*e,f=0;f<e;f++){b=C+f<<2,A=3*(T=t[S+(f>>2)]>>6-((3&f)<<1)&3);s[b]=w[A],s[b+1]=w[A+1],s[b+2]=w[A+2],s[b+3]=T<k?x[T]:255}if(4==u)for(F=0;F<n;F++)for(S=F*a,C=F*e,f=0;f<e;f++){b=C+f<<2,A=3*(T=t[S+(f>>1)]>>4-((1&f)<<2)&15);s[b]=w[A],s[b+1]=w[A+1],s[b+2]=w[A+2],s[b+3]=T<k?x[T]:255}if(8==u)for(f=0;f<i;f++){var T;b=f<<2,A=3*(T=t[f]);s[b]=w[A],s[b+1]=w[A+1],s[b+2]=w[A+2],s[b+3]=T<k?x[T]:255}}else if(4==h){if(8==u)for(f=0;f<i;f++){b=f<<2;var P=t[z=f<<1];s[b]=P,s[b+1]=P,s[b+2]=P,s[b+3]=t[z+1]}if(16==u)for(f=0;f<i;f++){var z;b=f<<2,P=t[z=f<<2];s[b]=P,s[b+1]=P,s[b+2]=P,s[b+3]=t[z+2]}}else if(0==h)for(v=r.tabs.tRNS?r.tabs.tRNS:-1,F=0;F<n;F++){var R=F*a,O=F*e;if(1==u)for(var D=0;D<e;D++){var B=(P=255*(t[R+(D>>>3)]>>>7-(7&D)&1))==255*v?0:255;l[O+D]=B<<24|P<<16|P<<8|P}else if(2==u)for(D=0;D<e;D++){B=(P=85*(t[R+(D>>>2)]>>>6-((3&D)<<1)&3))==85*v?0:255;l[O+D]=B<<24|P<<16|P<<8|P}else if(4==u)for(D=0;D<e;D++){B=(P=17*(t[R+(D>>>1)]>>>4-((1&D)<<2)&15))==17*v?0:255;l[O+D]=B<<24|P<<16|P<<8|P}else if(8==u)for(D=0;D<e;D++){B=(P=t[R+D])==v?0:255;l[O+D]=B<<24|P<<16|P<<8|P}else if(16==u)for(D=0;D<e;D++){P=t[R+(D<<1)],B=c(t,R+(D<<f))==v?0:255;l[O+D]=B<<24|P<<16|P<<8|P}}return s},rl.decode=function(t){for(var e,n=new Uint8Array(t),r=8,i=rl._bin,o=i.readUshort,a=i.readUint,s={tabs:{},frames:[]},l=new Uint8Array(n.length),h=0,u=0,c=[137,80,78,71,13,10,26,10],d=0;d<8;d++)if(n[d]!=c[d])throw\"The input is not a PNG file!\";for(;r<n.length;){var f=i.readUint(n,r);r+=4;var p=i.readASCII(n,r,4);if(r+=4,\"IHDR\"==p)rl.decode._IHDR(n,r,s);else if(\"IDAT\"==p){for(d=0;d<f;d++)l[h+d]=n[r+d];h+=f}else if(\"acTL\"==p)s.tabs[p]={num_frames:a(n,r),num_plays:a(n,r+4)},e=new Uint8Array(n.length);else if(\"fcTL\"==p){var g;if(0!=u)(g=s.frames[s.frames.length-1]).data=rl.decode._decompress(s,e.slice(0,u),g.rect.width,g.rect.height),u=0;var v={x:a(n,r+12),y:a(n,r+16),width:a(n,r+4),height:a(n,r+8)},y=o(n,r+22);y=o(n,r+20)/(0==y?100:y);var m={rect:v,delay:Math.round(1e3*y),dispose:n[r+24],blend:n[r+25]};s.frames.push(m)}else if(\"fdAT\"==p){for(d=0;d<f-4;d++)e[u+d]=n[r+d+4];u+=f-4}else if(\"pHYs\"==p)s.tabs[p]=[i.readUint(n,r),i.readUint(n,r+4),n[r+8]];else if(\"cHRM\"==p){s.tabs[p]=[];for(d=0;d<8;d++)s.tabs[p].push(i.readUint(n,r+4*d))}else if(\"tEXt\"==p){null==s.tabs[p]&&(s.tabs[p]={});var b=i.nextZero(n,r),w=i.readASCII(n,r,b-r),x=i.readASCII(n,b+1,r+f-b-1);s.tabs[p][w]=x}else if(\"iTXt\"==p){null==s.tabs[p]&&(s.tabs[p]={});b=0;var k=r;b=i.nextZero(n,k);w=i.readASCII(n,k,b-k);k=b+1,k+=2,b=i.nextZero(n,k);i.readASCII(n,k,b-k);k=b+1,b=i.nextZero(n,k);i.readUTF8(n,k,b-k);k=b+1;x=i.readUTF8(n,k,f-(k-r));s.tabs[p][w]=x}else if(\"PLTE\"==p)s.tabs[p]=i.readBytes(n,r,f);else if(\"hIST\"==p){var F=s.tabs.PLTE.length/3;s.tabs[p]=[];for(d=0;d<F;d++)s.tabs[p].push(o(n,r+2*d))}else if(\"tRNS\"==p)3==s.ctype?s.tabs[p]=i.readBytes(n,r,f):0==s.ctype?s.tabs[p]=o(n,r):2==s.ctype&&(s.tabs[p]=[o(n,r),o(n,r+2),o(n,r+4)]);else if(\"gAMA\"==p)s.tabs[p]=i.readUint(n,r)/1e5;else if(\"sRGB\"==p)s.tabs[p]=n[r];else if(\"bKGD\"==p)0==s.ctype||4==s.ctype?s.tabs[p]=[o(n,r)]:2==s.ctype||6==s.ctype?s.tabs[p]=[o(n,r),o(n,r+2),o(n,r+4)]:3==s.ctype&&(s.tabs[p]=n[r]);else if(\"IEND\"==p)break;r+=f;i.readUint(n,r);r+=4}0!=u&&((g=s.frames[s.frames.length-1]).data=rl.decode._decompress(s,e.slice(0,u),g.rect.width,g.rect.height),u=0);return s.data=rl.decode._decompress(s,l,s.width,s.height),delete s.compress,delete s.interlace,delete s.filter,s},rl.decode._decompress=function(t,e,n,r){var i=rl.decode._getBPP(t),o=Math.ceil(n*i/8),a=new Uint8Array((o+1+t.interlace)*r);return e=rl.decode._inflate(e,a),0==t.interlace?e=rl.decode._filterZero(e,t,0,n,r):1==t.interlace&&(e=rl.decode._readInterlace(e,t)),e},rl.decode._inflate=function(t,e){return rl.inflateRaw(new Uint8Array(t.buffer,2,t.length-6),e)},rl.inflateRaw=((el={}).H={},el.H.N=function(t,e){var n,r,i=Uint8Array,o=0,a=0,s=0,l=0,h=0,u=0,c=0,d=0,f=0;if(3==t[0]&&0==t[1])return e||new i(0);var p=el.H,g=p.b,v=p.e,y=p.R,m=p.n,b=p.A,w=p.Z,x=p.m,k=null==e;for(k&&(e=new i(t.length>>>2<<3));0==o;)if(o=g(t,f,1),a=g(t,f+1,2),f+=3,0!=a){if(k&&(e=el.H.W(e,d+(1<<17))),1==a&&(n=x.J,r=x.h,u=511,c=31),2==a){s=v(t,f,5)+257,l=v(t,f+5,5)+1,h=v(t,f+10,4)+4,f+=14;for(var F=1,S=0;S<38;S+=2)x.Q[S]=0,x.Q[S+1]=0;for(S=0;S<h;S++){var C=v(t,f+3*S,3);x.Q[1+(x.X[S]<<1)]=C,C>F&&(F=C)}f+=3*h,m(x.Q,F),b(x.Q,F,x.u),n=x.w,r=x.d,f=y(x.u,(1<<F)-1,s+l,t,f,x.v);var A=p.V(x.v,0,s,x.C);u=(1<<A)-1;var T=p.V(x.v,s,l,x.D);c=(1<<T)-1,m(x.C,A),b(x.C,A,n),m(x.D,T),b(x.D,T,r)}for(;;){var P=n[w(t,f)&u];f+=15&P;var z=P>>>4;if(z>>>8==0)e[d++]=z;else{if(256==z)break;var R=d+z-254;if(z>264){var O=x.q[z-257];R=d+(O>>>3)+v(t,f,7&O),f+=7&O}var D=r[w(t,f)&c];f+=15&D;var B=D>>>4,N=x.c[B],E=(N>>>4)+g(t,f,15&N);for(f+=15&N;d<R;)e[d]=e[d++-E],e[d]=e[d++-E],e[d]=e[d++-E],e[d]=e[d++-E];d=R}}}else{0!=(7&f)&&(f+=8-(7&f));var j=4+(f>>>3),M=t[j-4]|t[j-3]<<8;k&&(e=el.H.W(e,d+M)),e.set(new i(t.buffer,t.byteOffset+j,M),d),f=j+M<<3,d+=M}return e.length==d?e:e.slice(0,d)},el.H.W=function(t,e){var n=t.length;if(e<=n)return t;var r=new Uint8Array(n<<1);return r.set(t,0),r},el.H.R=function(t,e,n,r,i,o){for(var a=el.H.e,s=el.H.Z,l=0;l<n;){var h=t[s(r,i)&e];i+=15&h;var u=h>>>4;if(u<=15)o[l]=u,l++;else{var c=0,d=0;16==u?(d=3+a(r,i,2),i+=2,c=o[l-1]):17==u?(d=3+a(r,i,3),i+=3):18==u&&(d=11+a(r,i,7),i+=7);for(var f=l+d;l<f;)o[l]=c,l++}}return i},el.H.V=function(t,e,n,r){for(var i=0,o=0,a=r.length>>>1;o<n;){var s=t[o+e];r[o<<1]=0,r[1+(o<<1)]=s,s>i&&(i=s),o++}for(;o<a;)r[o<<1]=0,r[1+(o<<1)]=0,o++;return i},el.H.n=function(t,e){for(var n,r,i,o,a=el.H.m,s=t.length,l=a.j,h=0;h<=e;h++)l[h]=0;for(h=1;h<s;h+=2)l[t[h]]++;var u=a.K;for(n=0,l[0]=0,r=1;r<=e;r++)n=n+l[r-1]<<1,u[r]=n;for(i=0;i<s;i+=2)0!=(o=t[i+1])&&(t[i]=u[o],u[o]++)},el.H.A=function(t,e,n){for(var r=t.length,i=el.H.m.r,o=0;o<r;o+=2)if(0!=t[o+1])for(var a=o>>1,s=t[o+1],l=a<<4|s,h=e-s,u=t[o]<<h,c=u+(1<<h);u!=c;)n[i[u]>>>15-e]=l,u++},el.H.l=function(t,e){for(var n=el.H.m.r,r=15-e,i=0;i<t.length;i+=2){var o=t[i]<<e-t[i+1];t[i]=n[o]>>>r}},el.H.M=function(t,e,n){n<<=7&e;var r=e>>>3;t[r]|=n,t[r+1]|=n>>>8},el.H.I=function(t,e,n){n<<=7&e;var r=e>>>3;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},el.H.e=function(t,e,n){return(t[e>>>3]|t[1+(e>>>3)]<<8)>>>(7&e)&(1<<n)-1},el.H.b=function(t,e,n){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)&(1<<n)-1},el.H.Z=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16)>>>(7&e)},el.H.i=function(t,e){return(t[e>>>3]|t[1+(e>>>3)]<<8|t[2+(e>>>3)]<<16|t[3+(e>>>3)]<<24)>>>(7&e)},el.H.m=($s=Uint16Array,tl=Uint32Array,{K:new $s(16),j:new $s(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[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],q:new $s(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[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],c:new tl(32),J:new $s(512),_:[],h:new $s(32),$:[],w:new $s(32768),C:[],v:[],d:new $s(32768),D:[],u:new $s(512),Q:[],r:new $s(32768),s:new tl(286),Y:new tl(30),a:new tl(19),t:new tl(15e3),k:new $s(65536),g:new $s(32768)}),function(){for(var t=el.H.m,e=0;e<32768;e++){var n=e;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,t.r[e]=(n>>>16|n<<16)>>>17}function r(t,e,n){for(;0!=e--;)t.push(0,n)}for(e=0;e<32;e++)t.q[e]=t.S[e]<<3|t.T[e],t.c[e]=t.p[e]<<4|t.z[e];r(t._,144,8),r(t._,112,9),r(t._,24,7),r(t._,8,8),el.H.n(t._,9),el.H.A(t._,9,t.J),el.H.l(t._,9),r(t.$,32,5),el.H.n(t.$,5),el.H.A(t.$,5,t.h),el.H.l(t.$,5),r(t.Q,19,0),r(t.C,286,0),r(t.D,30,0),r(t.v,320,0)}(),el.H.N),rl.decode._readInterlace=function(t,e){for(var n=e.width,r=e.height,i=rl.decode._getBPP(e),o=i>>3,a=Math.ceil(n*i/8),s=new Uint8Array(r*a),l=0,h=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],c=[8,8,8,4,4,2,2],d=[8,8,4,4,2,2,1],f=0;f<7;){for(var p=c[f],g=d[f],v=0,y=0,m=h[f];m<r;)m+=p,y++;for(var b=u[f];b<n;)b+=g,v++;var w=Math.ceil(v*i/8);rl.decode._filterZero(t,e,l,v,y);for(var x=0,k=h[f];k<r;){for(var F=u[f],S=l+x*w<<3;F<n;){var C;if(1==i)C=(C=t[S>>3])>>7-(7&S)&1,s[k*a+(F>>3)]|=C<<7-((7&F)<<0);if(2==i)C=(C=t[S>>3])>>6-(7&S)&3,s[k*a+(F>>2)]|=C<<6-((3&F)<<1);if(4==i)C=(C=t[S>>3])>>4-(7&S)&15,s[k*a+(F>>1)]|=C<<4-((1&F)<<2);if(i>=8)for(var A=k*a+F*o,T=0;T<o;T++)s[A+T]=t[(S>>3)+T];S+=i,F+=g}x++,k+=p}v*y!=0&&(l+=y*(1+w)),f+=1}return s},rl.decode._getBPP=function(t){return[1,null,3,1,2,null,4][t.ctype]*t.depth},rl.decode._filterZero=function(t,e,n,r,i){var o=rl.decode._getBPP(e),a=Math.ceil(r*o/8),s=rl.decode._paeth;o=Math.ceil(o/8);var l=0,h=1,u=t[n],c=0;if(u>1&&(t[n]=[0,0,1][u-2]),3==u)for(c=o;c<a;c++)t[c+1]=t[c+1]+(t[c+1-o]>>>1)&255;for(var d=0;d<i;d++)if(c=0,0==(u=t[(h=(l=n+d*a)+d+1)-1]))for(;c<a;c++)t[l+c]=t[h+c];else if(1==u){for(;c<o;c++)t[l+c]=t[h+c];for(;c<a;c++)t[l+c]=t[h+c]+t[l+c-o]}else if(2==u)for(;c<a;c++)t[l+c]=t[h+c]+t[l+c-a];else if(3==u){for(;c<o;c++)t[l+c]=t[h+c]+(t[l+c-a]>>>1);for(;c<a;c++)t[l+c]=t[h+c]+(t[l+c-a]+t[l+c-o]>>>1)}else{for(;c<o;c++)t[l+c]=t[h+c]+s(0,t[l+c-a],0);for(;c<a;c++)t[l+c]=t[h+c]+s(t[l+c-o],t[l+c-a],t[l+c-o-a])}return t},rl.decode._paeth=function(t,e,n){var r=t+e-n,i=r-t,o=r-e,a=r-n;return i*i<=o*o&&i*i<=a*a?t:o*o<=a*a?e:n},rl.decode._IHDR=function(t,e,n){var r=rl._bin;n.width=r.readUint(t,e),e+=4,n.height=r.readUint(t,e),e+=4,n.depth=t[e],e++,n.ctype=t[e],e++,n.compress=t[e],e++,n.filter=t[e],e++,n.interlace=t[e],e++},rl._bin={nextZero:function(t,e){for(;0!=t[e];)e++;return e},readUshort:function(t,e){return t[e]<<8|t[e+1]},writeUshort:function(t,e,n){t[e]=n>>8&255,t[e+1]=255&n},readUint:function(t,e){return 16777216*t[e]+(t[e+1]<<16|t[e+2]<<8|t[e+3])},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n},readASCII:function(t,e,n){for(var r=\"\",i=0;i<n;i++)r+=String.fromCharCode(t[e+i]);return r},writeASCII:function(t,e,n){for(var r=0;r<n.length;r++)t[e+r]=n.charCodeAt(r)},readBytes:function(t,e,n){for(var r=[],i=0;i<n;i++)r.push(t[e+i]);return r},pad:function(t){return t.length<2?\"0\"+t:t},readUTF8:function(t,e,n){for(var r,i=\"\",o=0;o<n;o++)i+=\"%\"+rl._bin.pad(t[e+o].toString(16));try{r=decodeURIComponent(i)}catch(r){return rl._bin.readASCII(t,e,n)}return r}},rl._copyTile=function(t,e,n,r,i,o,a,s,l){for(var h=Math.min(e,i),u=Math.min(n,o),c=0,d=0,f=0;f<u;f++)for(var p=0;p<h;p++)if(a>=0&&s>=0?(c=f*e+p<<2,d=(s+f)*i+a+p<<2):(c=(-s+f)*e-a+p<<2,d=f*i+p<<2),0==l)r[d]=t[c],r[d+1]=t[c+1],r[d+2]=t[c+2],r[d+3]=t[c+3];else if(1==l){var g=t[c+3]*(1/255),v=t[c]*g,y=t[c+1]*g,m=t[c+2]*g,b=r[d+3]*(1/255),w=r[d]*b,x=r[d+1]*b,k=r[d+2]*b,F=1-g,S=g+b*F,C=0==S?0:1/S;r[d+3]=255*S,r[d+0]=(v+w*F)*C,r[d+1]=(y+x*F)*C,r[d+2]=(m+k*F)*C}else if(2==l){g=t[c+3],v=t[c],y=t[c+1],m=t[c+2],b=r[d+3],w=r[d],x=r[d+1],k=r[d+2];g==b&&v==w&&y==x&&m==k?(r[d]=0,r[d+1]=0,r[d+2]=0,r[d+3]=0):(r[d]=v,r[d+1]=y,r[d+2]=m,r[d+3]=g)}else if(3==l){g=t[c+3],v=t[c],y=t[c+1],m=t[c+2],b=r[d+3],w=r[d],x=r[d+1],k=r[d+2];if(g==b&&v==w&&y==x&&m==k)continue;if(g<220&&b>20)return!1}return!0},rl.encode=function(t,e,n,r,i,o,a){null==r&&(r=0),null==a&&(a=!1);var s=rl.encode.compress(t,e,n,r,[!1,!1,!1,0,a]);return rl.encode.compressPNG(s,-1),rl.encode._main(s,e,n,i,o)},rl.encodeLL=function(t,e,n,r,i,o,a,s){for(var l={ctype:0+(1==r?0:2)+(0==i?0:4),depth:o,frames:[]},h=(r+i)*o,u=h*e,c=0;c<t.length;c++)l.frames.push({rect:{x:0,y:0,width:e,height:n},img:new Uint8Array(t[c]),blend:0,dispose:1,bpp:Math.ceil(h/8),bpl:Math.ceil(u/8)});return rl.encode.compressPNG(l,0,!0),rl.encode._main(l,e,n,a,s)},rl.encode._main=function(t,e,n,r,i){null==i&&(i={});var o=rl.crc.crc,a=rl._bin.writeUint,s=rl._bin.writeUshort,l=rl._bin.writeASCII,h=8,u=t.frames.length>1,c=!1,d=33+(u?20:0);if(null!=i.sRGB&&(d+=13),null!=i.pHYs&&(d+=21),3==t.ctype){for(var f=t.plte.length,p=0;p<f;p++)t.plte[p]>>>24!=255&&(c=!0);d+=8+3*f+4+(c?8+1*f+4:0)}for(var g=0;g<t.frames.length;g++){u&&(d+=38),d+=(S=t.frames[g]).cimg.length+12,0!=g&&(d+=4)}d+=12;var v=new Uint8Array(d),y=[137,80,78,71,13,10,26,10];for(p=0;p<8;p++)v[p]=y[p];if(a(v,h,13),l(v,h+=4,\"IHDR\"),a(v,h+=4,e),a(v,h+=4,n),v[h+=4]=t.depth,v[++h]=t.ctype,v[++h]=0,v[++h]=0,v[++h]=0,a(v,++h,o(v,h-17,17)),h+=4,null!=i.sRGB&&(a(v,h,1),l(v,h+=4,\"sRGB\"),v[h+=4]=i.sRGB,a(v,++h,o(v,h-5,5)),h+=4),null!=i.pHYs&&(a(v,h,9),l(v,h+=4,\"pHYs\"),a(v,h+=4,i.pHYs[0]),a(v,h+=4,i.pHYs[1]),v[h+=4]=i.pHYs[2],a(v,++h,o(v,h-13,13)),h+=4),u&&(a(v,h,8),l(v,h+=4,\"acTL\"),a(v,h+=4,t.frames.length),a(v,h+=4,null!=i.loop?i.loop:0),a(v,h+=4,o(v,h-12,12)),h+=4),3==t.ctype){a(v,h,3*(f=t.plte.length)),l(v,h+=4,\"PLTE\"),h+=4;for(p=0;p<f;p++){var m=3*p,b=t.plte[p],w=255&b,x=b>>>8&255,k=b>>>16&255;v[h+m+0]=w,v[h+m+1]=x,v[h+m+2]=k}if(a(v,h+=3*f,o(v,h-3*f-4,3*f+4)),h+=4,c){a(v,h,f),l(v,h+=4,\"tRNS\"),h+=4;for(p=0;p<f;p++)v[h+p]=t.plte[p]>>>24&255;a(v,h+=f,o(v,h-f-4,f+4)),h+=4}}var F=0;for(g=0;g<t.frames.length;g++){var S=t.frames[g];u&&(a(v,h,26),l(v,h+=4,\"fcTL\"),a(v,h+=4,F++),a(v,h+=4,S.rect.width),a(v,h+=4,S.rect.height),a(v,h+=4,S.rect.x),a(v,h+=4,S.rect.y),s(v,h+=4,r[g]),s(v,h+=2,1e3),v[h+=2]=S.dispose,v[++h]=S.blend,a(v,++h,o(v,h-30,30)),h+=4);var C=S.cimg;a(v,h,(f=C.length)+(0==g?0:4));var A=h+=4;l(v,h,0==g?\"IDAT\":\"fdAT\"),h+=4,0!=g&&(a(v,h,F++),h+=4),v.set(C,h),a(v,h+=f,o(v,A,h-A)),h+=4}return a(v,h,0),l(v,h+=4,\"IEND\"),a(v,h+=4,o(v,h-4,4)),h+=4,v.buffer},rl.encode.compressPNG=function(t,e,n){for(var r=0;r<t.frames.length;r++){var i=t.frames[r],o=(i.rect.width,i.rect.height),a=new Uint8Array(o*i.bpl+o);i.cimg=rl.encode._filterZero(i.img,o,i.bpp,i.bpl,a,e,n)}},rl.encode.compress=function(t,e,n,r,i){for(var o=i[0],a=i[1],s=i[2],l=i[3],h=i[4],u=6,c=8,d=255,f=0;f<t.length;f++)for(var p=new Uint8Array(t[f]),g=p.length,v=0;v<g;v+=4)d&=p[v+3];var y=255!=d,m=rl.encode.framize(t,e,n,o,a,s),b={},w=[],x=[];if(0!=r){var k=[];for(v=0;v<m.length;v++)k.push(m[v].img.buffer);var F=rl.encode.concatRGBA(k),S=rl.quantize(F,r),C=0,A=new Uint8Array(S.abuf);for(v=0;v<m.length;v++){var T=(G=m[v].img).length;x.push(new Uint8Array(S.inds.buffer,C>>2,T>>2));for(f=0;f<T;f+=4)G[f]=A[C+f],G[f+1]=A[C+f+1],G[f+2]=A[C+f+2],G[f+3]=A[C+f+3];C+=T}for(v=0;v<S.plte.length;v++)w.push(S.plte[v].est.rgba)}else for(f=0;f<m.length;f++){var P=m[f],z=new Uint32Array(P.img.buffer),R=P.rect.width,O=(g=z.length,new Uint8Array(g));x.push(O);for(v=0;v<g;v++){var D=z[v];if(0!=v&&D==z[v-1])O[v]=O[v-1];else if(v>R&&D==z[v-R])O[v]=O[v-R];else{var B=b[D];if(null==B&&(b[D]=B=w.length,w.push(D),w.length>=300))break;O[v]=B}}}var N=w.length;N<=256&&0==h&&(c=N<=2?1:N<=4?2:N<=16?4:8,c=Math.max(c,l));for(f=0;f<m.length;f++){(P=m[f]).rect.x,P.rect.y,R=P.rect.width;var E=P.rect.height,j=P.img,M=(new Uint32Array(j.buffer),4*R),I=4;if(N<=256&&0==h){M=Math.ceil(c*R/8);for(var U=new Uint8Array(M*E),V=x[f],W=0;W<E;W++){v=W*M;var q=W*R;if(8==c)for(var L=0;L<R;L++)U[v+L]=V[q+L];else if(4==c)for(L=0;L<R;L++)U[v+(L>>1)]|=V[q+L]<<4-4*(1&L);else if(2==c)for(L=0;L<R;L++)U[v+(L>>2)]|=V[q+L]<<6-2*(3&L);else if(1==c)for(L=0;L<R;L++)U[v+(L>>3)]|=V[q+L]<<7-1*(7&L)}j=U,u=3,I=1}else if(0==y&&1==m.length){U=new Uint8Array(R*E*3);var K=R*E;for(v=0;v<K;v++){var G,H=4*v;U[G=3*v]=j[H],U[G+1]=j[H+1],U[G+2]=j[H+2]}j=U,u=2,I=3,M=3*R}P.img=j,P.bpl=M,P.bpp=I}return{ctype:u,depth:c,plte:w,frames:m}},rl.encode.framize=function(t,e,n,r,i,o){for(var a=[],s=0;s<t.length;s++){var l,h=new Uint8Array(t[s]),u=new Uint32Array(h.buffer),c=0,d=0,f=e,p=n,g=r?1:0;if(0!=s){for(var v=o||r||1==s||0!=a[s-2].dispose?1:2,y=0,m=1e9,b=0;b<v;b++){for(var w=new Uint8Array(t[s-1-b]),x=new Uint32Array(t[s-1-b]),k=e,F=n,S=-1,C=-1,A=0;A<n;A++)for(var T=0;T<e;T++){u[N=A*e+T]!=x[N]&&(T<k&&(k=T),T>S&&(S=T),A<F&&(F=A),A>C&&(C=A))}-1==S&&(k=F=S=C=0),i&&(1==(1&k)&&k--,1==(1&F)&&F--);var P=(S-k+1)*(C-F+1);P<m&&(m=P,y=b,c=k,d=F,f=S-k+1,p=C-F+1)}w=new Uint8Array(t[s-1-y]);1==y&&(a[s-1].dispose=2),l=new Uint8Array(f*p*4),rl._copyTile(w,e,n,l,f,p,-c,-d,0),1==(g=rl._copyTile(h,e,n,l,f,p,-c,-d,3)?1:0)?rl.encode._prepareDiff(h,e,n,l,{x:c,y:d,width:f,height:p}):rl._copyTile(h,e,n,l,f,p,-c,-d,0)}else l=h.slice(0);a.push({rect:{x:c,y:d,width:f,height:p},img:l,blend:g,dispose:0})}if(r)for(s=0;s<a.length;s++){if(1!=(E=a[s]).blend){var z=E.rect,R=a[s-1].rect,O=Math.min(z.x,R.x),D=Math.min(z.y,R.y),B={x:O,y:D,width:Math.max(z.x+z.width,R.x+R.width)-O,height:Math.max(z.y+z.height,R.y+R.height)-D};a[s-1].dispose=1,s-1!=0&&rl.encode._updateFrame(t,e,n,a,s-1,B,i),rl.encode._updateFrame(t,e,n,a,s,B,i)}}if(1!=t.length)for(var N=0;N<a.length;N++){var E;(E=a[N]).rect.width*E.rect.height}return a},rl.encode._updateFrame=function(t,e,n,r,i,o,a){for(var s=Uint8Array,l=Uint32Array,h=new s(t[i-1]),u=new l(t[i-1]),c=i+1<t.length?new s(t[i+1]):null,d=new s(t[i]),f=new l(d.buffer),p=e,g=n,v=-1,y=-1,m=0;m<o.height;m++)for(var b=0;b<o.width;b++){var w=o.x+b,x=o.y+m,k=x*e+w,F=f[k];0==F||0==r[i-1].dispose&&u[k]==F&&(null==c||0!=c[4*k+3])||(w<p&&(p=w),w>v&&(v=w),x<g&&(g=x),x>y&&(y=x))}-1==v&&(p=g=v=y=0),a&&(1==(1&p)&&p--,1==(1&g)&&g--),o={x:p,y:g,width:v-p+1,height:y-g+1};var S=r[i];S.rect=o,S.blend=1,S.img=new Uint8Array(o.width*o.height*4),0==r[i-1].dispose?(rl._copyTile(h,e,n,S.img,o.width,o.height,-o.x,-o.y,0),rl.encode._prepareDiff(d,e,n,S.img,o)):rl._copyTile(d,e,n,S.img,o.width,o.height,-o.x,-o.y,0)},rl.encode._prepareDiff=function(t,e,n,r,i){rl._copyTile(t,e,n,r,i.width,i.height,-i.x,-i.y,2)},rl.encode._filterZero=function(t,e,n,r,i,o,a){var s,l=[],h=[0,1,2,3,4];-1!=o?h=[o]:(e*r>5e5||1==n)&&(h=[0]),a&&(s={level:0});for(var u=a&&null!=UZIP?UZIP:nl,c=0;c<h.length;c++){for(var d=0;d<e;d++)rl.encode._filterLine(i,t,d,r,n,h[c]);l.push(u.deflate(i,s))}var f,p=1e9;for(c=0;c<l.length;c++)l[c].length<p&&(f=c,p=l[c].length);return l[f]},rl.encode._filterLine=function(t,e,n,r,i,o){var a=n*r,s=a+n,l=rl.decode._paeth;if(t[s]=o,s++,0==o)if(r<500)for(var h=0;h<r;h++)t[s+h]=e[a+h];else t.set(new Uint8Array(e.buffer,a,r),s);else if(1==o){for(h=0;h<i;h++)t[s+h]=e[a+h];for(h=i;h<r;h++)t[s+h]=e[a+h]-e[a+h-i]+256&255}else if(0==n){for(h=0;h<i;h++)t[s+h]=e[a+h];if(2==o)for(h=i;h<r;h++)t[s+h]=e[a+h];if(3==o)for(h=i;h<r;h++)t[s+h]=e[a+h]-(e[a+h-i]>>1)+256&255;if(4==o)for(h=i;h<r;h++)t[s+h]=e[a+h]-l(e[a+h-i],0,0)+256&255}else{if(2==o)for(h=0;h<r;h++)t[s+h]=e[a+h]+256-e[a+h-r]&255;if(3==o){for(h=0;h<i;h++)t[s+h]=e[a+h]+256-(e[a+h-r]>>1)&255;for(h=i;h<r;h++)t[s+h]=e[a+h]+256-(e[a+h-r]+e[a+h-i]>>1)&255}if(4==o){for(h=0;h<i;h++)t[s+h]=e[a+h]+256-l(0,e[a+h-r],0)&255;for(h=i;h<r;h++)t[s+h]=e[a+h]+256-l(e[a+h-i],e[a+h-r],e[a+h-i-r])&255}}},rl.crc={table:function(){for(var t=new Uint32Array(256),e=0;e<256;e++){for(var n=e,r=0;r<8;r++)1&n?n=3988292384^n>>>1:n>>>=1;t[e]=n}return t}(),update:function(t,e,n,r){for(var i=0;i<r;i++)t=rl.crc.table[255&(t^e[n+i])]^t>>>8;return t},crc:function(t,e,n){return 4294967295^rl.crc.update(4294967295,t,e,n)}},rl.quantize=function(t,e){for(var n=new Uint8Array(t),r=n.slice(0),i=new Uint32Array(r.buffer),o=rl.quantize.getKDtree(r,e),a=o[0],s=o[1],l=(rl.quantize.planeDst,n),h=i,u=l.length,c=new Uint8Array(n.length>>2),d=0;d<u;d+=4){var f=l[d]*(1/255),p=l[d+1]*(1/255),g=l[d+2]*(1/255),v=l[d+3]*(1/255),y=rl.quantize.getNearest(a,f,p,g,v);c[d>>2]=y.ind,h[d>>2]=y.est.rgba}return{abuf:r.buffer,inds:c,plte:s}},rl.quantize.getKDtree=function(t,e,n){null==n&&(n=1e-4);var r=new Uint32Array(t.buffer),i={i0:0,i1:t.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=rl.quantize.stats(t,i.i0,i.i1),i.est=rl.quantize.estats(i.bst);for(var o=[i];o.length<e;){for(var a=0,s=0,l=0;l<o.length;l++)o[l].est.L>a&&(a=o[l].est.L,s=l);if(a<n)break;var h=o[s],u=rl.quantize.splitPixels(t,r,h.i0,h.i1,h.est.e,h.est.eMq255);if(h.i0>=u||h.i1<=u)h.est.L=0;else{var c={i0:h.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};c.bst=rl.quantize.stats(t,c.i0,c.i1),c.est=rl.quantize.estats(c.bst);var d={i0:u,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};d.bst={R:[],m:[],N:h.bst.N-c.bst.N};for(l=0;l<16;l++)d.bst.R[l]=h.bst.R[l]-c.bst.R[l];for(l=0;l<4;l++)d.bst.m[l]=h.bst.m[l]-c.bst.m[l];d.est=rl.quantize.estats(d.bst),h.left=c,h.right=d,o[s]=c,o.push(d)}}o.sort((function(t,e){return e.bst.N-t.bst.N}));for(l=0;l<o.length;l++)o[l].ind=l;return[i,o]},rl.quantize.getNearest=function(t,e,n,r,i){if(null==t.left)return t.tdst=rl.quantize.dist(t.est.q,e,n,r,i),t;var o=rl.quantize.planeDst(t.est,e,n,r,i),a=t.left,s=t.right;o>0&&(a=t.right,s=t.left);var l=rl.quantize.getNearest(a,e,n,r,i);if(l.tdst<=o*o)return l;var h=rl.quantize.getNearest(s,e,n,r,i);return h.tdst<l.tdst?h:l},rl.quantize.planeDst=function(t,e,n,r,i){var o=t.e;return o[0]*e+o[1]*n+o[2]*r+o[3]*i-t.eMq},rl.quantize.dist=function(t,e,n,r,i){var o=e-t[0],a=n-t[1],s=r-t[2],l=i-t[3];return o*o+a*a+s*s+l*l},rl.quantize.splitPixels=function(t,e,n,r,i,o){var a=rl.quantize.vecDot;for(r-=4;n<r;){for(;a(t,n,i)<=o;)n+=4;for(;a(t,r,i)>o;)r-=4;if(n>=r)break;var s=e[n>>2];e[n>>2]=e[r>>2],e[r>>2]=s,n+=4,r-=4}for(;a(t,n,i)>o;)n-=4;return n+4},rl.quantize.vecDot=function(t,e,n){return t[e]*n[0]+t[e+1]*n[1]+t[e+2]*n[2]+t[e+3]*n[3]},rl.quantize.stats=function(t,e,n){for(var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],o=n-e>>2,a=e;a<n;a+=4){var s=t[a]*(1/255),l=t[a+1]*(1/255),h=t[a+2]*(1/255),u=t[a+3]*(1/255);i[0]+=s,i[1]+=l,i[2]+=h,i[3]+=u,r[0]+=s*s,r[1]+=s*l,r[2]+=s*h,r[3]+=s*u,r[5]+=l*l,r[6]+=l*h,r[7]+=l*u,r[10]+=h*h,r[11]+=h*u,r[15]+=u*u}return r[4]=r[1],r[8]=r[2],r[9]=r[6],r[12]=r[3],r[13]=r[7],r[14]=r[11],{R:r,m:i,N:o}},rl.quantize.estats=function(t){var e=t.R,n=t.m,r=t.N,i=n[0],o=n[1],a=n[2],s=n[3],l=0==r?0:1/r,h=[e[0]-i*i*l,e[1]-i*o*l,e[2]-i*a*l,e[3]-i*s*l,e[4]-o*i*l,e[5]-o*o*l,e[6]-o*a*l,e[7]-o*s*l,e[8]-a*i*l,e[9]-a*o*l,e[10]-a*a*l,e[11]-a*s*l,e[12]-s*i*l,e[13]-s*o*l,e[14]-s*a*l,e[15]-s*s*l],u=h,c=rl.M4,d=[.5,.5,.5,.5],f=0,p=0;if(0!=r)for(var g=0;g<10&&(d=c.multVec(u,d),p=Math.sqrt(c.dot(d,d)),d=c.sml(1/p,d),!(Math.abs(p-f)<1e-9));g++)f=p;var v=[i*l,o*l,a*l,s*l];return{Cov:h,q:v,e:d,L:f,eMq255:c.dot(c.sml(255,v),d),eMq:c.dot(d,v),rgba:(Math.round(255*v[3])<<24|Math.round(255*v[2])<<16|Math.round(255*v[1])<<8|Math.round(255*v[0])<<0)>>>0}},rl.M4={multVec:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3],t[4]*e[0]+t[5]*e[1]+t[6]*e[2]+t[7]*e[3],t[8]*e[0]+t[9]*e[1]+t[10]*e[2]+t[11]*e[3],t[12]*e[0]+t[13]*e[1]+t[14]*e[2]+t[15]*e[3]]},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},sml:function(t,e){return[t*e[0],t*e[1],t*e[2],t*e[3]]}},rl.encode.concatRGBA=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].byteLength;var r=new Uint8Array(e),i=0;for(n=0;n<t.length;n++){for(var o=new Uint8Array(t[n]),a=o.length,s=0;s<a;s+=4){var l=o[s],h=o[s+1],u=o[s+2],c=o[s+3];0==c&&(l=h=u=0),r[i+s]=l,r[i+s+1]=h,r[i+s+2]=u,r[i+s+3]=c}i+=a}return r.buffer};var il;!function(t){t.Greyscale=\"Greyscale\",t.Truecolour=\"Truecolour\",t.IndexedColour=\"IndexedColour\",t.GreyscaleWithAlpha=\"GreyscaleWithAlpha\",t.TruecolourWithAlpha=\"TruecolourWithAlpha\"}(il||(il={}));var ol,al,sl,ll,hl=function(){function t(t){var e=rl.decode(t),n=rl.toRGBA8(e);if(n.length>1)throw new Error(\"Animated PNGs are not supported\");var r=function(t){for(var e=Math.floor(t.length/4),n=new Uint8Array(3*e),r=new Uint8Array(1*e),i=0,o=0,a=0;i<t.length;)n[o++]=t[i++],n[o++]=t[i++],n[o++]=t[i++],r[a++]=t[i++];return{rgbChannel:n,alphaChannel:r}}(new Uint8Array(n[0])),i=r.rgbChannel,o=r.alphaChannel;this.rgbChannel=i,o.some((function(t){return t<255}))&&(this.alphaChannel=o),this.type=function(t){if(0===t)return il.Greyscale;if(2===t)return il.Truecolour;if(3===t)return il.IndexedColour;if(4===t)return il.GreyscaleWithAlpha;if(6===t)return il.TruecolourWithAlpha;throw new Error(\"Unknown color type: \"+t)}(e.ctype),this.width=e.width,this.height=e.height,this.bitsPerComponent=8}return t.load=function(e){return new t(e)},t}(),ul=function(){function t(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace=\"DeviceRGB\"}return t.for=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(n){return[2,new t(hl.load(e))]}))}))},t.prototype.embedIntoContext=function(t,e){return i(this,void 0,void 0,(function(){var n,r;return o(this,(function(i){return n=this.embedAlphaChannel(t),r=t.flateStream(this.image.rgbChannel,{Type:\"XObject\",Subtype:\"Image\",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n}),e?(t.assign(e,r),[2,e]):[2,t.register(r)]}))}))},t.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var e=t.flateStream(this.image.alphaChannel,{Type:\"XObject\",Subtype:\"Image\",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:\"DeviceGray\",Decode:[0,1]});return t.register(e)}},t}(),cl=function(){function t(t,e,n){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&n?e+n:this.bytes.length}return Object.defineProperty(t.prototype,\"length\",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"isEmpty\",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var n=this.bytes,r=this.pos,i=this.end;if(t){var o=r+t;o>i&&(o=i),this.pos=o;a=n.subarray(r,o);return e?new Uint8ClampedArray(a):a}var a=n.subarray(r,i);return e?new Uint8ClampedArray(a):a},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var n=this.getBytes(t,e);return this.pos-=n.length,n},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,n){return new t(this.bytes,e,n)},t.prototype.decode=function(){return this.bytes},t}(),dl=new Uint8Array(0),fl=function(){function t(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=dl,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(t.prototype,\"isEmpty\",{get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){var n;void 0===e&&(e=!1);var r=this.pos;if(t){for(this.ensureBuffer(r+t),n=r+t;!this.eof&&this.bufferLength<n;)this.readBlock();var i=this.bufferLength;n>i&&(n=i)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;var o=this.buffer.subarray(r,n);return!e||o instanceof Uint8ClampedArray?o:new Uint8ClampedArray(o)},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var n=this.getBytes(t,e);return this.pos-=n.length,n},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=0},t.prototype.makeSubStream=function(t,e){for(var n=t+e;this.bufferLength<=n&&!this.eof;)this.readBlock();return new cl(this.buffer,t,e)},t.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},t.prototype.readBlock=function(){throw new Kn(this.constructor.name,\"readBlock\")},t.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var n=this.minBufferLength;n<t;)n*=2;var r=new Uint8Array(n);return r.set(e),this.buffer=r},t}(),pl=function(t){return 32===t||9===t||13===t||10===t},gl=function(t){function e(e,n){var r=t.call(this,n)||this;return r.stream=e,r.input=new Uint8Array(5),n&&(n*=.8),r}return n(e,t),e.prototype.readBlock=function(){for(var t=this.stream,e=t.getByte();pl(e);)e=t.getByte();if(-1!==e&&126!==e){var n,r,i=this.bufferLength;if(122===e){for(n=this.ensureBuffer(i+4),r=0;r<4;++r)n[i+r]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=e,r=1;r<5;++r){for(e=t.getByte();pl(e);)e=t.getByte();if(o[r]=e,-1===e||126===e)break}if(n=this.ensureBuffer(i+r-1),this.bufferLength+=r-1,r<5){for(;r<5;++r)o[r]=117;this.eof=!0}var a=0;for(r=0;r<5;++r)a=85*a+(o[r]-33);for(r=3;r>=0;--r)n[i+r]=255&a,a>>=8}}else this.eof=!0},e}(fl),vl=function(t){function e(e,n){var r=t.call(this,n)||this;return r.stream=e,r.firstDigit=-1,n&&(n*=.5),r}return n(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(8e3);if(t.length){for(var e=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+e),r=this.bufferLength,i=this.firstDigit,o=0,a=t.length;o<a;o++){var s=t[o],l=void 0;if(s>=48&&s<=57)l=15&s;else{if(!(s>=65&&s<=70||s>=97&&s<=102)){if(62===s){this.eof=!0;break}continue}l=9+(15&s)}i<0?i=l:(n[r++]=i<<4|l,i=-1)}i>=0&&this.eof&&(n[r++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=r}else this.eof=!0},e}(fl),yl=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ml=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),bl=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),wl=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],xl=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],kl=function(t){function e(e,n){var r=t.call(this,n)||this;r.stream=e;var i=e.getByte(),o=e.getByte();if(-1===i||-1===o)throw new Error(\"Invalid header in flate stream: \"+i+\", \"+o);if(8!=(15&i))throw new Error(\"Unknown compression method in flate stream: \"+i+\", \"+o);if(((i<<8)+o)%31!=0)throw new Error(\"Bad FCHECK in flate stream: \"+i+\", \"+o);if(32&o)throw new Error(\"FDICT bit set in flate stream: \"+i+\", \"+o);return r.codeSize=0,r.codeBuf=0,r}return n(e,t),e.prototype.readBlock=function(){var t,e,n=this.stream,r=this.getBits(3);if(1&r&&(this.eof=!0),0!==(r>>=1)){var i,o;if(1===r)i=wl,o=xl;else{if(2!==r)throw new Error(\"Unknown block type in flate stream\");var a=this.getBits(5)+257,s=this.getBits(5)+1,l=this.getBits(4)+4,h=new Uint8Array(yl.length),u=void 0;for(u=0;u<l;++u)h[yl[u]]=this.getBits(3);var c=this.generateHuffmanTable(h);e=0,u=0;for(var d=a+s,f=new Uint8Array(d),p=void 0,g=void 0,v=void 0;u<d;){var y=this.getCode(c);if(16===y)p=2,g=3,v=e;else if(17===y)p=3,g=3,v=e=0;else{if(18!==y){f[u++]=e=y;continue}p=7,g=11,v=e=0}for(var m=this.getBits(p)+g;m-- >0;)f[u++]=v}i=this.generateHuffmanTable(f.subarray(0,a)),o=this.generateHuffmanTable(f.subarray(a,d))}for(var b=(t=this.buffer)?t.length:0,w=this.bufferLength;;){var x=this.getCode(i);if(x<256)w+1>=b&&(b=(t=this.ensureBuffer(w+1)).length),t[w++]=x;else{if(256===x)return void(this.bufferLength=w);var k=(x=ml[x-=257])>>16;k>0&&(k=this.getBits(k)),e=(65535&x)+k,x=this.getCode(o),(k=(x=bl[x])>>16)>0&&(k=this.getBits(k));var F=(65535&x)+k;w+e>=b&&(b=(t=this.ensureBuffer(w+e)).length);for(var S=0;S<e;++S,++w)t[w]=t[w-F]}}}else{var C=void 0;if(-1===(C=n.getByte()))throw new Error(\"Bad block header in flate stream\");var A=C;if(-1===(C=n.getByte()))throw new Error(\"Bad block header in flate stream\");if(A|=C<<8,-1===(C=n.getByte()))throw new Error(\"Bad block header in flate stream\");var T=C;if(-1===(C=n.getByte()))throw new Error(\"Bad block header in flate stream\");if((T|=C<<8)!==(65535&~A)&&(0!==A||0!==T))throw new Error(\"Bad uncompressed block length in flate stream\");this.codeBuf=0,this.codeSize=0;var P=this.bufferLength;t=this.ensureBuffer(P+A);var z=P+A;if(this.bufferLength=z,0===A)-1===n.peekByte()&&(this.eof=!0);else for(var R=P;R<z;++R){if(-1===(C=n.getByte())){this.eof=!0;break}t[R]=C}}},e.prototype.getBits=function(t){for(var e,n=this.stream,r=this.codeSize,i=this.codeBuf;r<t;){if(-1===(e=n.getByte()))throw new Error(\"Bad encoding in flate stream\");i|=e<<r,r+=8}return e=i&(1<<t)-1,this.codeBuf=i>>t,this.codeSize=r-=t,e},e.prototype.getCode=function(t){for(var e,n=this.stream,r=t[0],i=t[1],o=this.codeSize,a=this.codeBuf;o<i&&-1!==(e=n.getByte());)a|=e<<o,o+=8;var s=r[a&(1<<i)-1];\"number\"==typeof r&&console.log(\"FLATE:\",s);var l=s>>16,h=65535&s;if(l<1||o<l)throw new Error(\"Bad encoding in flate stream\");return this.codeBuf=a>>l,this.codeSize=o-l,h},e.prototype.generateHuffmanTable=function(t){var e,n=t.length,r=0;for(e=0;e<n;++e)t[e]>r&&(r=t[e]);for(var i=1<<r,o=new Int32Array(i),a=1,s=0,l=2;a<=r;++a,s<<=1,l<<=1)for(var h=0;h<n;++h)if(t[h]===a){var u=0,c=s;for(e=0;e<a;++e)u=u<<1|1&c,c>>=1;for(e=u;e<i;e+=l)o[e]=a<<16|h;++s}return[o,r]},e}(fl),Fl=function(t){function e(e,n,r){var i=t.call(this,n)||this;i.stream=e,i.cachedData=0,i.bitsCached=0;for(var o={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},a=0;a<256;++a)o.dictionaryValues[a]=a,o.dictionaryLengths[a]=1;return i.lzwState=o,i}return n(e,t),e.prototype.readBlock=function(){var t,e,n,r=1024,i=this.lzwState;if(i){var o=i.earlyChange,a=i.nextCode,s=i.dictionaryValues,l=i.dictionaryLengths,h=i.dictionaryPrevCodes,u=i.codeLength,c=i.prevCode,d=i.currentSequence,f=i.currentSequenceLength,p=0,g=this.bufferLength,v=this.ensureBuffer(this.bufferLength+r);for(t=0;t<512;t++){var y=this.readBits(u),m=f>0;if(!y||y<256)d[0]=y,f=1;else{if(!(y>=258)){if(256===y){u=9,a=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(y<a)for(e=(f=l[y])-1,n=y;e>=0;e--)d[e]=s[n],n=h[n];else d[f++]=d[0]}if(m&&(h[a]=c,l[a]=l[c]+1,s[a]=d[0],u=++a+o&a+o-1?u:0|Math.min(Math.log(a+o)/.6931471805599453+1,12)),c=y,r<(p+=f)){do{r+=512}while(r<p);v=this.ensureBuffer(this.bufferLength+r)}for(e=0;e<f;e++)v[g++]=d[e]}i.nextCode=a,i.codeLength=u,i.prevCode=c,i.currentSequenceLength=f,this.bufferLength=g}},e.prototype.readBits=function(t){for(var e=this.bitsCached,n=this.cachedData;e<t;){var r=this.stream.getByte();if(-1===r)return this.eof=!0,null;n=n<<8|r,e+=8}return this.bitsCached=e-=t,this.cachedData=n,n>>>e&(1<<t)-1},e}(fl),Sl=function(t){function e(e,n){var r=t.call(this,n)||this;return r.stream=e,r}return n(e,t),e.prototype.readBlock=function(){var t=this.stream.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var e,n=this.bufferLength,r=t[0];if(r<128){if((e=this.ensureBuffer(n+r+1))[n++]=t[1],r>0){var i=this.stream.getBytes(r);e.set(i,n),n+=r}}else{r=257-r;var o=t[1];e=this.ensureBuffer(n+r+1);for(var a=0;a<r;a++)e[n++]=o}this.bufferLength=n}},e}(fl),Cl=function(t,e,n){if(e===Fo.of(\"FlateDecode\"))return new kl(t);if(e===Fo.of(\"LZWDecode\")){var r=1;if(n instanceof Co){var i=n.lookup(Fo.of(\"EarlyChange\"));i instanceof co&&(r=i.asNumber())}return new Fl(t,void 0,r)}if(e===Fo.of(\"ASCII85Decode\"))return new gl(t);if(e===Fo.of(\"ASCIIHexDecode\"))return new vl(t);if(e===Fo.of(\"RunLengthDecode\"))return new Sl(t);throw new _n(e.asString())},Al=function(t){var e=t.dict,n=t.contents,r=new cl(n),i=e.lookup(Fo.of(\"Filter\")),o=e.lookup(Fo.of(\"DecodeParms\"));if(i instanceof Fo)r=Cl(r,i,o);else if(i instanceof fo)for(var a=0,s=i.size();a<s;a++)r=Cl(r,i.lookup(a,Fo),o&&o.lookupMaybe(a,Co));else if(i)throw new Hn([Fo,fo],i);return r},Tl=function(){function t(t,e,n){this.page=t;var r=null!=e?e:function(t){var e=t.MediaBox();return{left:0,bottom:0,right:e.lookup(2,co).asNumber()-e.lookup(0,co).asNumber(),top:e.lookup(3,co).asNumber()-e.lookup(1,co).asNumber()}}(t);this.width=r.right-r.left,this.height=r.top-r.bottom,this.boundingBox=r,this.transformationMatrix=null!=n?n:function(t){return[1,0,0,1,-t.left,-t.bottom]}(r)}return t.for=function(e,n,r){return i(this,void 0,void 0,(function(){return o(this,(function(i){return[2,new t(e,n,r)]}))}))},t.prototype.embedIntoContext=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i,a,s,l,h,u,c,d;return o(this,(function(o){if(n=this.page.normalizedEntries(),r=n.Contents,i=n.Resources,!r)throw new Yn;return a=this.decodeContents(r),s=this.boundingBox,l=s.left,h=s.bottom,u=s.right,c=s.top,d=t.flateStream(a,{Type:\"XObject\",Subtype:\"Form\",FormType:1,BBox:[l,h,u,c],Matrix:this.transformationMatrix,Resources:i}),e?(t.assign(e,d),[2,e]):[2,t.register(d)]}))}))},t.prototype.decodeContents=function(t){for(var e=Uint8Array.of(mr.Newline),n=[],r=0,i=t.size();r<i;r++){var o=t.lookup(r,Ao),a=void 0;if(o instanceof To)a=Al(o).decode();else{if(!(o instanceof Eo))throw new Jn(o);a=o.getUnencodedContents()}n.push(a,e)}return M.apply(void 0,n)},t}(),Pl=function(t,e){if(void 0!==t)return e[t]};(ol=t.NonFullScreenPageMode||(t.NonFullScreenPageMode={})).UseNone=\"UseNone\",ol.UseOutlines=\"UseOutlines\",ol.UseThumbs=\"UseThumbs\",ol.UseOC=\"UseOC\",(al=t.ReadingDirection||(t.ReadingDirection={})).L2R=\"L2R\",al.R2L=\"R2L\",(sl=t.PrintScaling||(t.PrintScaling={})).None=\"None\",sl.AppDefault=\"AppDefault\",(ll=t.Duplex||(t.Duplex={})).Simplex=\"Simplex\",ll.DuplexFlipShortEdge=\"DuplexFlipShortEdge\",ll.DuplexFlipLongEdge=\"DuplexFlipLongEdge\";var zl,Rl,Ol,Dl,Bl=function(){function e(t){this.dict=t}return e.prototype.lookupBool=function(t){var e=this.dict.lookup(Fo.of(t));if(e instanceof go)return e},e.prototype.lookupName=function(t){var e=this.dict.lookup(Fo.of(t));if(e instanceof Fo)return e},e.prototype.HideToolbar=function(){return this.lookupBool(\"HideToolbar\")},e.prototype.HideMenubar=function(){return this.lookupBool(\"HideMenubar\")},e.prototype.HideWindowUI=function(){return this.lookupBool(\"HideWindowUI\")},e.prototype.FitWindow=function(){return this.lookupBool(\"FitWindow\")},e.prototype.CenterWindow=function(){return this.lookupBool(\"CenterWindow\")},e.prototype.DisplayDocTitle=function(){return this.lookupBool(\"DisplayDocTitle\")},e.prototype.NonFullScreenPageMode=function(){return this.lookupName(\"NonFullScreenPageMode\")},e.prototype.Direction=function(){return this.lookupName(\"Direction\")},e.prototype.PrintScaling=function(){return this.lookupName(\"PrintScaling\")},e.prototype.Duplex=function(){return this.lookupName(\"Duplex\")},e.prototype.PickTrayByPDFSize=function(){return this.lookupBool(\"PickTrayByPDFSize\")},e.prototype.PrintPageRange=function(){var t=this.dict.lookup(Fo.of(\"PrintPageRange\"));if(t instanceof fo)return t},e.prototype.NumCopies=function(){var t=this.dict.lookup(Fo.of(\"NumCopies\"));if(t instanceof co)return t},e.prototype.getHideToolbar=function(){var t,e;return null!==(e=null===(t=this.HideToolbar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getHideMenubar=function(){var t,e;return null!==(e=null===(t=this.HideMenubar())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getHideWindowUI=function(){var t,e;return null!==(e=null===(t=this.HideWindowUI())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getFitWindow=function(){var t,e;return null!==(e=null===(t=this.FitWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getCenterWindow=function(){var t,e;return null!==(e=null===(t=this.CenterWindow())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getDisplayDocTitle=function(){var t,e;return null!==(e=null===(t=this.DisplayDocTitle())||void 0===t?void 0:t.asBoolean())&&void 0!==e&&e},e.prototype.getNonFullScreenPageMode=function(){var e,n,r=null===(e=this.NonFullScreenPageMode())||void 0===e?void 0:e.decodeText();return null!==(n=Pl(r,t.NonFullScreenPageMode))&&void 0!==n?n:t.NonFullScreenPageMode.UseNone},e.prototype.getReadingDirection=function(){var e,n,r=null===(e=this.Direction())||void 0===e?void 0:e.decodeText();return null!==(n=Pl(r,t.ReadingDirection))&&void 0!==n?n:t.ReadingDirection.L2R},e.prototype.getPrintScaling=function(){var e,n,r=null===(e=this.PrintScaling())||void 0===e?void 0:e.decodeText();return null!==(n=Pl(r,t.PrintScaling))&&void 0!==n?n:t.PrintScaling.AppDefault},e.prototype.getDuplex=function(){var e,n=null===(e=this.Duplex())||void 0===e?void 0:e.decodeText();return Pl(n,t.Duplex)},e.prototype.getPickTrayByPDFSize=function(){var t;return null===(t=this.PickTrayByPDFSize())||void 0===t?void 0:t.asBoolean()},e.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var e=[],n=0;n<t.size();n+=2){var r=t.lookup(n,co).asNumber(),i=t.lookup(n+1,co).asNumber();e.push({start:r,end:i})}return e},e.prototype.getNumCopies=function(){var t,e;return null!==(e=null===(t=this.NumCopies())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},e.prototype.setHideToolbar=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"HideToolbar\"),e)},e.prototype.setHideMenubar=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"HideMenubar\"),e)},e.prototype.setHideWindowUI=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"HideWindowUI\"),e)},e.prototype.setFitWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"FitWindow\"),e)},e.prototype.setCenterWindow=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"CenterWindow\"),e)},e.prototype.setDisplayDocTitle=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"DisplayDocTitle\"),e)},e.prototype.setNonFullScreenPageMode=function(e){Cn(e,\"nonFullScreenPageMode\",t.NonFullScreenPageMode);var n=Fo.of(e);this.dict.set(Fo.of(\"NonFullScreenPageMode\"),n)},e.prototype.setReadingDirection=function(e){Cn(e,\"readingDirection\",t.ReadingDirection);var n=Fo.of(e);this.dict.set(Fo.of(\"Direction\"),n)},e.prototype.setPrintScaling=function(e){Cn(e,\"printScaling\",t.PrintScaling);var n=Fo.of(e);this.dict.set(Fo.of(\"PrintScaling\"),n)},e.prototype.setDuplex=function(e){Cn(e,\"duplex\",t.Duplex);var n=Fo.of(e);this.dict.set(Fo.of(\"Duplex\"),n)},e.prototype.setPickTrayByPDFSize=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"PickTrayByPDFSize\"),e)},e.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var e=[],n=0,r=t.length;n<r;n++)e.push(t[n].start),e.push(t[n].end);Bn(e,\"printPageRange\",[\"number\"]);var i=this.dict.context.obj(e);this.dict.set(Fo.of(\"PrintPageRange\"),i)},e.prototype.setNumCopies=function(t){Nn(t,\"numCopies\",1,Number.MAX_VALUE),Mn(t,\"numCopies\");var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"NumCopies\"),e)},e.fromDict=function(t){return new e(t)},e.create=function(t){return new e(t.obj({}))},e}(),Nl=/\\/([^\\0\\t\\n\\f\\r\\ ]+)[\\0\\t\\n\\f\\r\\ ]*(\\d*\\.\\d+|\\d+)?[\\0\\t\\n\\f\\r\\ ]+Tf/,El=function(){function t(t,e){this.dict=t,this.ref=e}return t.prototype.T=function(){return this.dict.lookupMaybe(Fo.of(\"T\"),na,Yo)},t.prototype.Ff=function(){var t=this.getInheritableAttribute(Fo.of(\"Ff\"));return this.dict.context.lookupMaybe(t,co)},t.prototype.V=function(){var t=this.getInheritableAttribute(Fo.of(\"V\"));return this.dict.context.lookup(t)},t.prototype.Kids=function(){return this.dict.lookupMaybe(Fo.of(\"Kids\"),fo)},t.prototype.DA=function(){var t=this.dict.lookup(Fo.of(\"DA\"));if(t instanceof na||t instanceof Yo)return t},t.prototype.setKids=function(t){this.dict.set(Fo.of(\"Kids\"),this.dict.context.obj(t))},t.prototype.getParent=function(){var e=this.dict.get(Fo.of(\"Parent\"));if(e instanceof Ro)return new t(this.dict.lookup(Fo.of(\"Parent\"),Co),e)},t.prototype.setParent=function(t){t?this.dict.set(Fo.of(\"Parent\"),t):this.dict.delete(Fo.of(\"Parent\"))},t.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+\".\"+this.getPartialName():this.getPartialName()},t.prototype.getPartialName=function(){var t;return null===(t=this.T())||void 0===t?void 0:t.decodeText()},t.prototype.setPartialName=function(t){t?this.dict.set(Fo.of(\"T\"),Yo.fromText(t)):this.dict.delete(Fo.of(\"T\"))},t.prototype.setDefaultAppearance=function(t){this.dict.set(Fo.of(\"DA\"),na.of(t))},t.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof Yo?t.decodeText():null==t?void 0:t.asString()},t.prototype.setFontSize=function(t){var e,n=null!==(e=this.getFullyQualifiedName())&&void 0!==e?e:\"\",r=this.getDefaultAppearance();if(!r)throw new ar(n);var i=N(r,Nl);if(!i.match)throw new sr(n);var o=r.slice(0,i.pos-i.match[0].length),a=i.pos<=r.length?r.slice(i.pos):\"\",s=o+\" /\"+i.match[1]+\" \"+t+\" Tf \"+a;this.setDefaultAppearance(s)},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.Ff())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(Fo.of(\"Ff\"),co.of(t))},t.prototype.hasFlag=function(t){return 0!=(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.prototype.getInheritableAttribute=function(t){var e;return this.ascend((function(n){e||(e=n.dict.get(t))})),e},t.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},t}(),jl=function(){function t(t){this.dict=t}return t.prototype.W=function(){var t=this.dict.lookup(Fo.of(\"W\"));if(t instanceof co)return t},t.prototype.getWidth=function(){var t,e;return null!==(e=null===(t=this.W())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},t.prototype.setWidth=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"W\"),e)},t.fromDict=function(e){return new t(e)},t}(),Ml=function(){function t(t){this.dict=t}return t.prototype.Rect=function(){return this.dict.lookup(Fo.of(\"Rect\"),fo)},t.prototype.AP=function(){return this.dict.lookupMaybe(Fo.of(\"AP\"),Co)},t.prototype.F=function(){var t=this.dict.lookup(Fo.of(\"F\"));return this.dict.context.lookupMaybe(t,co)},t.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:{x:0,y:0,width:0,height:0}},t.prototype.setRectangle=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=this.dict.context.obj([e,n,e+r,n+i]);this.dict.set(Fo.of(\"Rect\"),o)},t.prototype.getAppearanceState=function(){var t=this.dict.lookup(Fo.of(\"AS\"));if(t instanceof Fo)return t},t.prototype.setAppearanceState=function(t){this.dict.set(Fo.of(\"AS\"),t)},t.prototype.setAppearances=function(t){this.dict.set(Fo.of(\"AP\"),t)},t.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(Fo.of(\"AP\"),t)),t},t.prototype.getNormalAppearance=function(){var t=this.ensureAP().get(Fo.of(\"N\"));if(t instanceof Ro||t instanceof Co)return t;throw new Error(\"Unexpected N type: \"+(null==t?void 0:t.constructor.name))},t.prototype.setNormalAppearance=function(t){this.ensureAP().set(Fo.of(\"N\"),t)},t.prototype.setRolloverAppearance=function(t){this.ensureAP().set(Fo.of(\"R\"),t)},t.prototype.setDownAppearance=function(t){this.ensureAP().set(Fo.of(\"D\"),t)},t.prototype.removeRolloverAppearance=function(){var t=this.AP();null==t||t.delete(Fo.of(\"R\"))},t.prototype.removeDownAppearance=function(){var t=this.AP();null==t||t.delete(Fo.of(\"D\"))},t.prototype.getAppearances=function(){var t=this.AP();if(t)return{normal:t.lookup(Fo.of(\"N\"),Co,Ao),rollover:t.lookupMaybe(Fo.of(\"R\"),Co,Ao),down:t.lookupMaybe(Fo.of(\"D\"),Co,Ao)}},t.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.F())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},t.prototype.setFlags=function(t){this.dict.set(Fo.of(\"F\"),co.of(t))},t.prototype.hasFlag=function(t){return 0!=(this.getFlags()&t)},t.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},t.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},t.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},t.fromDict=function(e){return new t(e)},t}(),Il=function(){function t(t){this.dict=t}return t.prototype.R=function(){var t=this.dict.lookup(Fo.of(\"R\"));if(t instanceof co)return t},t.prototype.BC=function(){var t=this.dict.lookup(Fo.of(\"BC\"));if(t instanceof fo)return t},t.prototype.BG=function(){var t=this.dict.lookup(Fo.of(\"BG\"));if(t instanceof fo)return t},t.prototype.CA=function(){var t=this.dict.lookup(Fo.of(\"CA\"));if(t instanceof Yo||t instanceof na)return t},t.prototype.RC=function(){var t=this.dict.lookup(Fo.of(\"RC\"));if(t instanceof Yo||t instanceof na)return t},t.prototype.AC=function(){var t=this.dict.lookup(Fo.of(\"AC\"));if(t instanceof Yo||t instanceof na)return t},t.prototype.getRotation=function(){var t;return null===(t=this.R())||void 0===t?void 0:t.asNumber()},t.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var e=[],n=0,r=null==t?void 0:t.size();n<r;n++){var i=t.get(n);i instanceof co&&e.push(i.asNumber())}return e}},t.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var e=[],n=0,r=null==t?void 0:t.size();n<r;n++){var i=t.get(n);i instanceof co&&e.push(i.asNumber())}return e}},t.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),n=this.AC();return{normal:null==t?void 0:t.decodeText(),rollover:null==e?void 0:e.decodeText(),down:null==n?void 0:n.decodeText()}},t.prototype.setRotation=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"R\"),e)},t.prototype.setBorderColor=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"BC\"),e)},t.prototype.setBackgroundColor=function(t){var e=this.dict.context.obj(t);this.dict.set(Fo.of(\"BG\"),e)},t.prototype.setCaptions=function(t){var e=Yo.fromText(t.normal);if(this.dict.set(Fo.of(\"CA\"),e),t.rollover){var n=Yo.fromText(t.rollover);this.dict.set(Fo.of(\"RC\"),n)}else this.dict.delete(Fo.of(\"RC\"));if(t.down){var r=Yo.fromText(t.down);this.dict.set(Fo.of(\"AC\"),r)}else this.dict.delete(Fo.of(\"AC\"))},t.fromDict=function(e){return new t(e)},t}(),Ul=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.MK=function(){var t=this.dict.lookup(Fo.of(\"MK\"));if(t instanceof Co)return t},e.prototype.BS=function(){var t=this.dict.lookup(Fo.of(\"BS\"));if(t instanceof Co)return t},e.prototype.DA=function(){var t=this.dict.lookup(Fo.of(\"DA\"));if(t instanceof na||t instanceof Yo)return t},e.prototype.P=function(){var t=this.dict.get(Fo.of(\"P\"));if(t instanceof Ro)return t},e.prototype.setP=function(t){this.dict.set(Fo.of(\"P\"),t)},e.prototype.setDefaultAppearance=function(t){this.dict.set(Fo.of(\"DA\"),na.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof Yo?t.decodeText():null==t?void 0:t.asString()},e.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return Il.fromDict(t)},e.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return Il.fromDict(t);var e=Il.fromDict(this.dict.context.obj({}));return this.dict.set(Fo.of(\"MK\"),e.dict),e},e.prototype.getBorderStyle=function(){var t=this.BS();if(t)return jl.fromDict(t)},e.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return jl.fromDict(t);var e=jl.fromDict(this.dict.context.obj({}));return this.dict.set(Fo.of(\"BS\"),e.dict),e},e.prototype.getOnValue=function(){var t,e=null===(t=this.getAppearances())||void 0===t?void 0:t.normal;if(e instanceof Co)for(var n=e.keys(),r=0,i=n.length;r<i;r++){var o=n[r];if(o!==Fo.of(\"Off\"))return o}},e.fromDict=function(t){return new e(t)},e.create=function(t,n){return new e(t.obj({Type:\"Annot\",Subtype:\"Widget\",Rect:[0,0,0,0],Parent:n}))},e}(Ml),Vl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.FT=function(){var t=this.getInheritableAttribute(Fo.of(\"FT\"));return this.dict.context.lookup(t,Fo)},e.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[Ul.fromDict(this.dict)];for(var e=new Array(t.size()),n=0,r=t.size();n<r;n++){var i=t.lookup(n,Co);e[n]=Ul.fromDict(i)}return e},e.prototype.addWidget=function(t){this.normalizedEntries().Kids.push(t)},e.prototype.removeWidget=function(t){var e=this.Kids();if(e){if(t<0||t>e.size())throw new rr(t,0,e.size());e.remove(t)}else{if(0!==t)throw new rr(t,0,0);this.setKids([])}},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(Fo.of(\"Kids\"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e}(El),Wl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.Opt=function(){return this.dict.lookupMaybe(Fo.of(\"Opt\"),na,Yo,fo)},e.prototype.setOpt=function(t){this.dict.set(Fo.of(\"Opt\"),this.dict.context.obj(t))},e.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof na||t instanceof Yo)return[t];for(var e=[],n=0,r=t.size();n<r;n++){var i=t.lookup(n);(i instanceof na||i instanceof Yo)&&e.push(i)}return e}},e.prototype.removeExportValue=function(t){var e=this.Opt();if(e)if(e instanceof na||e instanceof Yo){if(0!==t)throw new rr(t,0,0);this.setOpt([])}else{if(t<0||t>e.size())throw new rr(t,0,e.size());e.remove(t)}},e.prototype.normalizeExportValues=function(){for(var t,e,n,r,i=null!==(t=this.getExportValues())&&void 0!==t?t:[],o=[],a=this.getWidgets(),s=0,l=a.length;s<l;s++){var h=a[s],u=null!==(e=i[s])&&void 0!==e?e:Yo.fromText(null!==(r=null===(n=h.getOnValue())||void 0===n?void 0:n.decodeText())&&void 0!==r?r:\"\");o.push(u)}this.setOpt(o)},e.prototype.addOpt=function(t,e){var n;this.normalizeExportValues();var r,i=t.decodeText();if(e)for(var o=null!==(n=this.getExportValues())&&void 0!==n?n:[],a=0,s=o.length;a<s;a++){o[a].decodeText()===i&&(r=a)}var l=this.Opt();return l.push(t),null!=r?r:l.size()-1},e.prototype.addWidgetWithOpt=function(t,e,n){var r=this.addOpt(e,n),i=Fo.of(String(r));return this.addWidget(t),i},e}(Vl),ql=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.setValue=function(t){var e;if(t!==(null!==(e=this.getOnValue())&&void 0!==e?e:Fo.of(\"Yes\"))&&t!==Fo.of(\"Off\"))throw new ir;this.dict.set(Fo.of(\"V\"),t);for(var n=this.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],a=o.getOnValue()===t?t:Fo.of(\"Off\");o.setAppearanceState(a)}},e.prototype.getValue=function(){var t=this.V();return t instanceof Fo?t:Fo.of(\"Off\")},e.prototype.getOnValue=function(){var t=this.getWidgets()[0];return null==t?void 0:t.getOnValue()},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:\"Btn\",Kids:[]});return new e(n,t.register(n))},e}(Wl),Ll=function(t){return 1<<t};(zl=t.AcroFieldFlags||(t.AcroFieldFlags={}))[zl.ReadOnly=Ll(0)]=\"ReadOnly\",zl[zl.Required=Ll(1)]=\"Required\",zl[zl.NoExport=Ll(2)]=\"NoExport\",(Rl=t.AcroButtonFlags||(t.AcroButtonFlags={}))[Rl.NoToggleToOff=Ll(14)]=\"NoToggleToOff\",Rl[Rl.Radio=Ll(15)]=\"Radio\",Rl[Rl.PushButton=Ll(16)]=\"PushButton\",Rl[Rl.RadiosInUnison=Ll(25)]=\"RadiosInUnison\",(Ol=t.AcroTextFlags||(t.AcroTextFlags={}))[Ol.Multiline=Ll(12)]=\"Multiline\",Ol[Ol.Password=Ll(13)]=\"Password\",Ol[Ol.FileSelect=Ll(20)]=\"FileSelect\",Ol[Ol.DoNotSpellCheck=Ll(22)]=\"DoNotSpellCheck\",Ol[Ol.DoNotScroll=Ll(23)]=\"DoNotScroll\",Ol[Ol.Comb=Ll(24)]=\"Comb\",Ol[Ol.RichText=Ll(25)]=\"RichText\",(Dl=t.AcroChoiceFlags||(t.AcroChoiceFlags={}))[Dl.Combo=Ll(17)]=\"Combo\",Dl[Dl.Edit=Ll(18)]=\"Edit\",Dl[Dl.Sort=Ll(19)]=\"Sort\",Dl[Dl.MultiSelect=Ll(21)]=\"MultiSelect\",Dl[Dl.DoNotSpellCheck=Ll(22)]=\"DoNotSpellCheck\",Dl[Dl.CommitOnSelChange=Ll(26)]=\"CommitOnSelChange\";var Kl=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.setValues=function(e){if(this.hasFlag(t.AcroChoiceFlags.Combo)&&!this.hasFlag(t.AcroChoiceFlags.Edit)&&!this.valuesAreValid(e))throw new ir;if(0===e.length&&this.dict.delete(Fo.of(\"V\")),1===e.length&&this.dict.set(Fo.of(\"V\"),e[0]),e.length>1){if(!this.hasFlag(t.AcroChoiceFlags.MultiSelect))throw new or;this.dict.set(Fo.of(\"V\"),this.dict.context.obj(e))}this.updateSelectedIndices(e)},r.prototype.valuesAreValid=function(t){for(var e=this.getOptions(),n=function(n,r){var i=t[n].decodeText();if(!e.find((function(t){return i===(t.display||t.value).decodeText()})))return{value:!1}},r=0,i=t.length;r<i;r++){var o=n(r);if(\"object\"==typeof o)return o.value}return!0},r.prototype.updateSelectedIndices=function(t){if(t.length>1){for(var e=new Array(t.length),n=this.getOptions(),r=function(r,i){var o=t[r].decodeText();e[r]=n.findIndex((function(t){return o===(t.display||t.value).decodeText()}))},i=0,o=t.length;i<o;i++)r(i);this.dict.set(Fo.of(\"I\"),this.dict.context.obj(e.sort()))}else this.dict.delete(Fo.of(\"I\"))},r.prototype.getValues=function(){var t=this.V();if(t instanceof na||t instanceof Yo)return[t];if(t instanceof fo){for(var e=[],n=0,r=t.size();n<r;n++){var i=t.lookup(n);(i instanceof na||i instanceof Yo)&&e.push(i)}return e}return[]},r.prototype.Opt=function(){return this.dict.lookupMaybe(Fo.of(\"Opt\"),na,Yo,fo)},r.prototype.setOptions=function(t){for(var e=new Array(t.length),n=0,r=t.length;n<r;n++){var i=t[n],o=i.value,a=i.display;e[n]=this.dict.context.obj([o,a||o])}this.dict.set(Fo.of(\"Opt\"),this.dict.context.obj(e))},r.prototype.getOptions=function(){var t=this.Opt();if(t instanceof na||t instanceof Yo)return[{value:t,display:t}];if(t instanceof fo){for(var e=[],n=0,r=t.size();n<r;n++){var i=t.lookup(n);if((i instanceof na||i instanceof Yo)&&e.push({value:i,display:i}),i instanceof fo&&i.size()>0){var o=i.lookup(0,na,Yo),a=i.lookupMaybe(1,na,Yo);e.push({value:o,display:a||o})}}return e}return[]},r}(Vl),Gl=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.fromDict=function(t,e){return new r(t,e)},r.create=function(e){var n=e.obj({FT:\"Ch\",Ff:t.AcroChoiceFlags.Combo,Kids:[]});return new r(n,e.register(n))},r}(Kl),Hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.addField=function(t){var e=this.normalizedEntries().Kids;null==e||e.push(t)},e.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([]),this.dict.set(Fo.of(\"Kids\"),t)),{Kids:t}},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({});return new e(n,t.register(n))},e}(El),_l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.fromDict=function(t,n){return new e(t,n)},e}(Vl),Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.MaxLen=function(){var t=this.dict.lookup(Fo.of(\"MaxLen\"));if(t instanceof co)return t},e.prototype.Q=function(){var t=this.dict.lookup(Fo.of(\"Q\"));if(t instanceof co)return t},e.prototype.setMaxLength=function(t){this.dict.set(Fo.of(\"MaxLen\"),co.of(t))},e.prototype.removeMaxLength=function(){this.dict.delete(Fo.of(\"MaxLen\"))},e.prototype.getMaxLength=function(){var t;return null===(t=this.MaxLen())||void 0===t?void 0:t.asNumber()},e.prototype.setQuadding=function(t){this.dict.set(Fo.of(\"Q\"),co.of(t))},e.prototype.getQuadding=function(){var t;return null===(t=this.Q())||void 0===t?void 0:t.asNumber()},e.prototype.setValue=function(t){this.dict.set(Fo.of(\"V\"),t)},e.prototype.removeValue=function(){this.dict.delete(Fo.of(\"V\"))},e.prototype.getValue=function(){var t=this.V();if(t instanceof na||t instanceof Yo)return t},e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:\"Tx\",Kids:[]});return new e(n,t.register(n))},e}(Vl),Zl=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.fromDict=function(t,e){return new r(t,e)},r.create=function(e){var n=e.obj({FT:\"Btn\",Ff:t.AcroButtonFlags.PushButton,Kids:[]});return new r(n,e.register(n))},r}(Wl),Yl=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.setValue=function(t){if(!this.getOnValues().includes(t)&&t!==Fo.of(\"Off\"))throw new ir;this.dict.set(Fo.of(\"V\"),t);for(var e=this.getWidgets(),n=0,r=e.length;n<r;n++){var i=e[n],o=i.getOnValue()===t?t:Fo.of(\"Off\");i.setAppearanceState(o)}},r.prototype.getValue=function(){var t=this.V();return t instanceof Fo?t:Fo.of(\"Off\")},r.prototype.getOnValues=function(){for(var t=this.getWidgets(),e=[],n=0,r=t.length;n<r;n++){var i=t[n].getOnValue();i&&e.push(i)}return e},r.fromDict=function(t,e){return new r(t,e)},r.create=function(e){var n=e.obj({FT:\"Btn\",Ff:t.AcroButtonFlags.Radio,Kids:[]});return new r(n,e.register(n))},r}(Wl),Jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.fromDict=function(t,n){return new e(t,n)},e.create=function(t){var n=t.obj({FT:\"Ch\",Kids:[]});return new e(n,t.register(n))},e}(Kl),Ql=function(t){if(!t)return[];for(var e=[],n=0,r=t.size();n<r;n++){var i=t.get(n),o=t.lookup(n);i instanceof Ro&&o instanceof Co&&e.push([$l(o,i),i])}return e},$l=function(t,e){return th(t)?Hl.fromDict(t,e):eh(t,e)},th=function(t){var e=t.lookup(Fo.of(\"Kids\"));if(e instanceof fo)for(var n=0,r=e.size();n<r;n++){var i=e.lookup(n);if(i instanceof Co&&i.has(Fo.of(\"T\")))return!0}return!1},eh=function(t,e){var n=oh(t,Fo.of(\"FT\")),r=t.context.lookup(n,Fo);return r===Fo.of(\"Btn\")?nh(t,e):r===Fo.of(\"Ch\")?rh(t,e):r===Fo.of(\"Tx\")?Xl.fromDict(t,e):r===Fo.of(\"Sig\")?_l.fromDict(t,e):Vl.fromDict(t,e)},nh=function(e,n){var r,i=oh(e,Fo.of(\"Ff\")),o=e.context.lookupMaybe(i,co),a=null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0;return ih(a,t.AcroButtonFlags.PushButton)?Zl.fromDict(e,n):ih(a,t.AcroButtonFlags.Radio)?Yl.fromDict(e,n):ql.fromDict(e,n)},rh=function(e,n){var r,i=oh(e,Fo.of(\"Ff\")),o=e.context.lookupMaybe(i,co),a=null!==(r=null==o?void 0:o.asNumber())&&void 0!==r?r:0;return ih(a,t.AcroChoiceFlags.Combo)?Gl.fromDict(e,n):Jl.fromDict(e,n)},ih=function(t,e){return 0!=(t&e)},oh=function(t,e){var n;return ah(t,(function(t){n||(n=t.get(e))})),n},ah=function(t,e){e(t);var n=t.lookupMaybe(Fo.of(\"Parent\"),Co);n&&ah(n,e)},sh=function(){function t(t){this.dict=t}return t.prototype.Fields=function(){var t=this.dict.lookup(Fo.of(\"Fields\"));if(t instanceof fo)return t},t.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,e=new Array(t.size()),n=0,r=t.size();n<r;n++){var i=t.get(n),o=t.lookup(n,Co);e[n]=[$l(o,i),i]}return e},t.prototype.getAllFields=function(){var t=[],e=function(n){if(n)for(var r=0,i=n.length;r<i;r++){var o=n[r];t.push(o);var a=o[0];a instanceof Hl&&e(Ql(a.Kids()))}};return e(this.getFields()),t},t.prototype.addField=function(t){var e=this.normalizedEntries().Fields;null==e||e.push(t)},t.prototype.removeField=function(t){var e=t.getParent(),n=void 0===e?this.normalizedEntries().Fields:e.Kids(),r=null==n?void 0:n.indexOf(t.ref);if(void 0===n||void 0===r)throw new Error(\"Tried to remove inexistent field \"+t.getFullyQualifiedName());n.remove(r),void 0!==e&&0===n.size()&&this.removeField(e)},t.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(Fo.of(\"Fields\"),t)),{Fields:t}},t.fromDict=function(e){return new t(e)},t.create=function(e){return new t(e.obj({Fields:[]}))},t}(),lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.Pages=function(){return this.lookup(Fo.of(\"Pages\"),Co)},e.prototype.AcroForm=function(){return this.lookupMaybe(Fo.of(\"AcroForm\"),Co)},e.prototype.getAcroForm=function(){var t=this.AcroForm();if(t)return sh.fromDict(t)},e.prototype.getOrCreateAcroForm=function(){var t=this.getAcroForm();if(!t){t=sh.create(this.context);var e=this.context.register(t.dict);this.set(Fo.of(\"AcroForm\"),e)}return t},e.prototype.ViewerPreferences=function(){return this.lookupMaybe(Fo.of(\"ViewerPreferences\"),Co)},e.prototype.getViewerPreferences=function(){var t=this.ViewerPreferences();if(t)return Bl.fromDict(t)},e.prototype.getOrCreateViewerPreferences=function(){var t=this.getViewerPreferences();if(!t){t=Bl.create(this.context);var e=this.context.register(t.dict);this.set(Fo.of(\"ViewerPreferences\"),e)}return t},e.prototype.insertLeafNode=function(t,e){var n=this.get(Fo.of(\"Pages\"));return this.Pages().insertLeafNode(t,e)||n},e.prototype.removeLeafNode=function(t){this.Pages().removeLeafNode(t)},e.withContextAndPages=function(t,n){var r=new Map;return r.set(Fo.of(\"Type\"),Fo.of(\"Catalog\")),r.set(Fo.of(\"Pages\"),n),new e(r,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(Co),hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.Parent=function(){return this.lookup(Fo.of(\"Parent\"))},e.prototype.Kids=function(){return this.lookup(Fo.of(\"Kids\"),fo)},e.prototype.Count=function(){return this.lookup(Fo.of(\"Count\"),co)},e.prototype.pushTreeNode=function(t){this.Kids().push(t)},e.prototype.pushLeafNode=function(t){var e=this.Kids();this.insertLeafKid(e.size(),t)},e.prototype.insertLeafNode=function(t,n){var r=this.Kids(),i=this.Count().asNumber();if(n>i)throw new er(n,i);for(var o=n,a=0,s=r.size();a<s;a++){if(0===o)return void this.insertLeafKid(a,t);var l=r.get(a),h=this.context.lookup(l);if(h instanceof e){if(h.Count().asNumber()>o)return h.insertLeafNode(t,o)||l;o-=h.Count().asNumber()}h instanceof Uo&&(o-=1)}if(0!==o)throw new nr(n,\"insertLeafNode\");this.insertLeafKid(r.size(),t)},e.prototype.removeLeafNode=function(t,n){void 0===n&&(n=!0);var r=this.Kids(),i=this.Count().asNumber();if(t>=i)throw new er(t,i);for(var o=t,a=0,s=r.size();a<s;a++){var l=r.get(a),h=this.context.lookup(l);if(h instanceof e){if(h.Count().asNumber()>o)return h.removeLeafNode(o,n),void(n&&0===h.Kids().size()&&r.remove(a));o-=h.Count().asNumber()}if(h instanceof Uo){if(0===o)return void this.removeKid(a);o-=1}}throw new nr(t,\"removeLeafNode\")},e.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},e.prototype.traverse=function(t){for(var n=this.Kids(),r=0,i=n.size();r<i;r++){var o=n.get(r),a=this.context.lookup(o);a instanceof e&&a.traverse(t),t(a,o)}},e.prototype.insertLeafKid=function(t,e){var n=this.Kids();this.ascend((function(t){var e=t.Count().asNumber()+1;t.set(Fo.of(\"Count\"),co.of(e))})),n.insert(t,e)},e.prototype.removeKid=function(t){var e=this.Kids();e.lookup(t)instanceof Uo&&this.ascend((function(t){var e=t.Count().asNumber()-1;t.set(Fo.of(\"Count\"),co.of(e))})),e.remove(t)},e.withContext=function(t,n){var r=new Map;return r.set(Fo.of(\"Type\"),Fo.of(\"Pages\")),r.set(Fo.of(\"Kids\"),t.obj([])),r.set(Fo.of(\"Count\"),t.obj(0)),n&&r.set(Fo.of(\"Parent\"),n),new e(r,t)},e.fromMapWithContext=function(t,n){return new e(t,n)},e}(Co),uh=new Uint8Array(256);uh[mr.Zero]=1,uh[mr.One]=1,uh[mr.Two]=1,uh[mr.Three]=1,uh[mr.Four]=1,uh[mr.Five]=1,uh[mr.Six]=1,uh[mr.Seven]=1,uh[mr.Eight]=1,uh[mr.Nine]=1;var ch=new Uint8Array(256);ch[mr.Period]=1,ch[mr.Plus]=1,ch[mr.Minus]=1;for(var dh=new Uint8Array(256),fh=0;fh<256;fh++)dh[fh]=uh[fh]||ch[fh]?1:0;var ph,gh=mr.Newline,vh=mr.CarriageReturn,yh=function(){function t(t,e){void 0===e&&(e=!1),this.bytes=t,this.capNumbers=e}return t.prototype.parseRawInt=function(){for(var t=\"\";!this.bytes.done();){var e=this.bytes.peek();if(!uh[e])break;t+=b(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new lr(this.bytes.position(),t);return n},t.prototype.parseRawNumber=function(){for(var t=\"\";!this.bytes.done();){var e=this.bytes.peek();if(!dh[e])break;if(t+=b(this.bytes.next()),e===mr.Period)break}for(;!this.bytes.done();){e=this.bytes.peek();if(!uh[e])break;t+=b(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new lr(this.bytes.position(),t);if(n>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var r=\"Parsed number that is too large for some PDF readers: \"+t+\", using Number.MAX_SAFE_INTEGER instead.\";return console.warn(r),Number.MAX_SAFE_INTEGER}r=\"Parsed number that is too large for some PDF readers: \"+t+\", not capping.\";console.warn(r)}return n},t.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&yo[this.bytes.peek()];)this.bytes.next()},t.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===gh||t===vh)return;this.bytes.next()}},t.prototype.skipComment=function(){if(this.bytes.peek()!==mr.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===gh||t===vh)return!0;this.bytes.next()}return!0},t.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},t.prototype.matchKeyword=function(t){for(var e=this.bytes.offset(),n=0,r=t.length;n<r;n++)if(this.bytes.done()||this.bytes.next()!==t[n])return this.bytes.moveTo(e),!1;return!0},t}(),mh=function(){function t(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return t.prototype.moveTo=function(t){this.idx=t},t.prototype.next=function(){var t=this.bytes[this.idx++];return t===mr.Newline?(this.line+=1,this.column=0):this.column+=1,t},t.prototype.assertNext=function(t){if(this.peek()!==t)throw new ur(this.position(),t,this.peek());return this.next()},t.prototype.peek=function(){return this.bytes[this.idx]},t.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},t.prototype.peekAt=function(t){return this.bytes[t]},t.prototype.done=function(){return this.idx>=this.length},t.prototype.offset=function(){return this.idx},t.prototype.slice=function(t,e){return this.bytes.slice(t,e)},t.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},t.of=function(e){return new t(e)},t.fromPDFRawStream=function(e){return t.of(Al(e).decode())},t}(),bh=mr.Space,wh=mr.CarriageReturn,xh=mr.Newline,kh=[mr.s,mr.t,mr.r,mr.e,mr.a,mr.m],Fh=[mr.e,mr.n,mr.d,mr.s,mr.t,mr.r,mr.e,mr.a,mr.m],Sh={header:[mr.Percent,mr.P,mr.D,mr.F,mr.Dash],eof:[mr.Percent,mr.Percent,mr.E,mr.O,mr.F],obj:[mr.o,mr.b,mr.j],endobj:[mr.e,mr.n,mr.d,mr.o,mr.b,mr.j],xref:[mr.x,mr.r,mr.e,mr.f],trailer:[mr.t,mr.r,mr.a,mr.i,mr.l,mr.e,mr.r],startxref:[mr.s,mr.t,mr.a,mr.r,mr.t,mr.x,mr.r,mr.e,mr.f],true:[mr.t,mr.r,mr.u,mr.e],false:[mr.f,mr.a,mr.l,mr.s,mr.e],null:[mr.n,mr.u,mr.l,mr.l],stream:kh,streamEOF1:a(kh,[bh,wh,xh]),streamEOF2:a(kh,[wh,xh]),streamEOF3:a(kh,[wh]),streamEOF4:a(kh,[xh]),endstream:Fh,EOF1endstream:a([wh,xh],Fh),EOF2endstream:a([wh],Fh),EOF3endstream:a([xh],Fh)},Ch=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,r)||this;return i.context=n,i}return n(e,t),e.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sh.true))return go.True;if(this.matchKeyword(Sh.false))return go.False;if(this.matchKeyword(Sh.null))return So;var t=this.bytes.peek();if(t===mr.LessThan&&this.bytes.peekAhead(1)===mr.LessThan)return this.parseDictOrStream();if(t===mr.LessThan)return this.parseHexString();if(t===mr.LeftParen)return this.parseString();if(t===mr.ForwardSlash)return this.parseName();if(t===mr.LeftSquareBracket)return this.parseArray();if(dh[t])return this.parseNumberOrRef();throw new cr(this.bytes.position(),t)},e.prototype.parseNumberOrRef=function(){var t=this.parseRawNumber();this.skipWhitespaceAndComments();var e=this.bytes.offset();if(uh[this.bytes.peek()]){var n=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===mr.R)return this.bytes.assertNext(mr.R),Ro.of(t,n)}return this.bytes.moveTo(e),co.of(t)},e.prototype.parseHexString=function(){var t=\"\";for(this.bytes.assertNext(mr.LessThan);!this.bytes.done()&&this.bytes.peek()!==mr.GreaterThan;)t+=b(this.bytes.next());return this.bytes.assertNext(mr.GreaterThan),Yo.of(t)},e.prototype.parseString=function(){for(var t=0,e=!1,n=\"\";!this.bytes.done();){var r=this.bytes.next();if(n+=b(r),e||(r===mr.LeftParen&&(t+=1),r===mr.RightParen&&(t-=1)),r===mr.BackSlash?e=!e:e&&(e=!1),0===t)return na.of(n.substring(1,n.length-1))}throw new pr(this.bytes.position())},e.prototype.parseName=function(){this.bytes.assertNext(mr.ForwardSlash);for(var t=\"\";!this.bytes.done();){var e=this.bytes.peek();if(yo[e]||vo[e])break;t+=b(e),this.bytes.next()}return Fo.of(t)},e.prototype.parseArray=function(){this.bytes.assertNext(mr.LeftSquareBracket),this.skipWhitespaceAndComments();for(var t=fo.withContext(this.context);this.bytes.peek()!==mr.RightSquareBracket;){var e=this.parseObject();t.push(e),this.skipWhitespaceAndComments()}return this.bytes.assertNext(mr.RightSquareBracket),t},e.prototype.parseDict=function(){this.bytes.assertNext(mr.LessThan),this.bytes.assertNext(mr.LessThan),this.skipWhitespaceAndComments();for(var t=new Map;!this.bytes.done()&&this.bytes.peek()!==mr.GreaterThan&&this.bytes.peekAhead(1)!==mr.GreaterThan;){var e=this.parseName(),n=this.parseObject();t.set(e,n),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(mr.GreaterThan),this.bytes.assertNext(mr.GreaterThan);var r=t.get(Fo.of(\"Type\"));return r===Fo.of(\"Catalog\")?lh.fromMapWithContext(t,this.context):r===Fo.of(\"Pages\")?hh.fromMapWithContext(t,this.context):r===Fo.of(\"Page\")?Uo.fromMapWithContext(t,this.context):Co.fromMapWithContext(t,this.context)},e.prototype.parseDictOrStream=function(){var t=this.bytes.position(),e=this.parseDict();if(this.skipWhitespaceAndComments(),!(this.matchKeyword(Sh.streamEOF1)||this.matchKeyword(Sh.streamEOF2)||this.matchKeyword(Sh.streamEOF3)||this.matchKeyword(Sh.streamEOF4)||this.matchKeyword(Sh.stream)))return e;var n,r=this.bytes.offset(),i=e.get(Fo.of(\"Length\"));i instanceof co?(n=r+i.asNumber(),this.bytes.moveTo(n),this.skipWhitespaceAndComments(),this.matchKeyword(Sh.endstream)||(this.bytes.moveTo(r),n=this.findEndOfStreamFallback(t))):n=this.findEndOfStreamFallback(t);var o=this.bytes.slice(r,n);return To.of(e,o)},e.prototype.findEndOfStreamFallback=function(t){for(var e=1,n=this.bytes.offset();!this.bytes.done()&&(n=this.bytes.offset(),this.matchKeyword(Sh.stream)?e+=1:this.matchKeyword(Sh.EOF1endstream)||this.matchKeyword(Sh.EOF2endstream)||this.matchKeyword(Sh.EOF3endstream)||this.matchKeyword(Sh.endstream)?e-=1:this.bytes.next(),0!==e););if(0!==e)throw new fr(t);return n},e.forBytes=function(t,n,r){return new e(mh.of(t),n,r)},e.forByteStream=function(t,n,r){return void 0===r&&(r=!1),new e(t,n,r)},e}(yh),Ah=function(t){function e(e,n){var r=t.call(this,mh.fromPDFRawStream(e),e.dict.context)||this,i=e.dict;return r.alreadyParsed=!1,r.shouldWaitForTick=n||function(){return!1},r.firstOffset=i.lookup(Fo.of(\"First\"),co).asNumber(),r.objectCount=i.lookup(Fo.of(\"N\"),co).asNumber(),r}return n(e,t),e.prototype.parseIntoContext=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a,s,l;return o(this,(function(o){switch(o.label){case 0:if(this.alreadyParsed)throw new Xn(\"PDFObjectStreamParser\",\"parseIntoContext\");this.alreadyParsed=!0,t=this.parseOffsetsAndObjectNumbers(),e=0,n=t.length,o.label=1;case 1:return e<n?(r=t[e],i=r.objectNumber,a=r.offset,this.bytes.moveTo(this.firstOffset+a),s=this.parseObject(),l=Ro.of(i,0),this.context.assign(l,s),this.shouldWaitForTick()?[4,X()]:[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))},e.prototype.parseOffsetsAndObjectNumbers=function(){for(var t=[],e=0,n=this.objectCount;e<n;e++){this.skipWhitespaceAndComments();var r=this.parseRawInt();this.skipWhitespaceAndComments();var i=this.parseRawInt();t.push({objectNumber:r,offset:i})}return t},e.forStream=function(t,n){return new e(t,n)},e}(Ch),Th=function(){function t(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=mh.fromPDFRawStream(t),this.context=this.dict.context;var e=this.dict.lookup(Fo.of(\"Size\"),co),n=this.dict.lookup(Fo.of(\"Index\"));if(n instanceof fo){this.subsections=[];for(var r=0,i=n.size();r<i;r+=2){var o=n.lookup(r+0,co).asNumber(),a=n.lookup(r+1,co).asNumber();this.subsections.push({firstObjectNumber:o,length:a})}}else this.subsections=[{firstObjectNumber:0,length:e.asNumber()}];var s=this.dict.lookup(Fo.of(\"W\"),fo);this.byteWidths=[-1,-1,-1];for(r=0,i=s.size();r<i;r++)this.byteWidths[r]=s.lookup(r,co).asNumber()}return t.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new Xn(\"PDFXRefStreamParser\",\"parseIntoContext\");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(Fo.of(\"Root\")),Encrypt:this.dict.get(Fo.of(\"Encrypt\")),Info:this.dict.get(Fo.of(\"Info\")),ID:this.dict.get(Fo.of(\"ID\"))},this.parseEntries()},t.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,n=e[0],r=e[1],i=e[2],o=0,a=this.subsections.length;o<a;o++)for(var s=this.subsections[o],l=s.firstObjectNumber,h=s.length,u=0;u<h;u++){for(var c=0,d=0,f=n;d<f;d++)c=c<<8|this.bytes.next();var p=0;for(d=0,f=r;d<f;d++)p=p<<8|this.bytes.next();var g=0;for(d=0,f=i;d<f;d++)g=g<<8|this.bytes.next();0===n&&(c=1);var v=l+u,y={ref:Ro.of(v,g),offset:p,deleted:0===c,inObjectStream:2===c};t.push(y)}return t},t.forStream=function(e){return new t(e)},t}(),Ph=function(t){function e(e,n,r,i){void 0===n&&(n=1/0),void 0===r&&(r=!1),void 0===i&&(i=!1);var o=t.call(this,mh.of(e),Io.create(),i)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick==0},o.objectsPerTick=n,o.throwOnInvalidObject=r,o}return n(e,t),e.prototype.parseDocument=function(){return i(this,void 0,void 0,(function(){var t,e;return o(this,(function(n){switch(n.label){case 0:if(this.alreadyParsed)throw new Xn(\"PDFParser\",\"parseDocument\");this.alreadyParsed=!0,this.context.header=this.parseHeader(),n.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(n.sent(),(e=this.bytes.offset())===t)throw new gr(this.bytes.position());return t=e,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Ro.of(0))&&(console.warn(\"Removing parsed object: 0 0 R\"),this.context.delete(Ro.of(0))),[2,this.context]}}))}))},e.prototype.maybeRecoverRoot=function(){var t=function(t){return t instanceof Co&&t.lookup(Fo.of(\"Type\"))===Fo.of(\"Catalog\")};if(!t(this.context.lookup(this.context.trailerInfo.Root)))for(var e=this.context.enumerateIndirectObjects(),n=0,r=e.length;n<r;n++){var i=e[n],o=i[0];t(i[1])&&(this.context.trailerInfo.Root=o)}},e.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(Sh.header)){var t=this.parseRawInt();this.bytes.assertNext(mr.Period);var e=this.parseRawInt(),n=ho.forVersion(t,e);return this.skipBinaryHeaderComment(),n}this.bytes.next()}throw new vr(this.bytes.position())},e.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var t=this.parseRawInt();this.skipWhitespaceAndComments();var e=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(Sh.obj))throw new yr(this.bytes.position(),Sh.obj);return Ro.of(t,e)},e.prototype.matchIndirectObjectHeader=function(){var t=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch(e){return this.bytes.moveTo(t),!1}},e.prototype.parseIndirectObject=function(){return i(this,void 0,void 0,(function(){var t,e;return o(this,(function(n){switch(n.label){case 0:return t=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),e=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(Sh.endobj),e instanceof To&&e.dict.lookup(Fo.of(\"Type\"))===Fo.of(\"ObjStm\")?[4,Ah.forStream(e,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return n.sent(),[3,3];case 2:e instanceof To&&e.dict.lookup(Fo.of(\"Type\"))===Fo.of(\"XRef\")?Th.forStream(e).parseIntoContext():this.context.assign(t,e),n.label=3;case 3:return[2,t]}}))}))},e.prototype.tryToParseInvalidIndirectObject=function(){var t=this.bytes.position(),e=\"Trying to parse invalid object: \"+JSON.stringify(t)+\")\";if(this.throwOnInvalidObject)throw new Error(e);console.warn(e);var n=this.parseIndirectObjectHeader();console.warn(\"Invalid object ref: \"+n),this.skipWhitespaceAndComments();for(var r=this.bytes.offset(),i=!0;!this.bytes.done()&&(this.matchKeyword(Sh.endobj)&&(i=!1),i);)this.bytes.next();if(i)throw new dr(t);var o=this.bytes.offset()-Sh.endobj.length,a=Ho.of(this.bytes.slice(r,o));return this.context.assign(n,a),n},e.prototype.parseIndirectObjects=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:this.skipWhitespaceAndComments(),e.label=1;case 1:if(this.bytes.done()||!uh[this.bytes.peek()])return[3,8];t=this.bytes.offset(),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return e.sent(),[3,5];case 4:return e.sent(),this.bytes.moveTo(t),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,X()]:[3,7];case 6:e.sent(),e.label=7;case 7:return[3,1];case 8:return[2]}}))}))},e.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sh.xref)){this.skipWhitespaceAndComments();for(var t=-1,e=Wo.createEmpty();!this.bytes.done()&&uh[this.bytes.peek()];){var n=this.parseRawInt();this.skipWhitespaceAndComments();var r=this.parseRawInt();this.skipWhitespaceAndComments();var i=this.bytes.peek();if(i===mr.n||i===mr.f){var o=Ro.of(t,r);this.bytes.next()===mr.n?e.addEntry(o,n):e.addDeletedEntry(o,n),t+=1}else t=n;this.skipWhitespaceAndComments()}return e}},e.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sh.trailer)){this.skipWhitespaceAndComments();var t=this.parseDict(),e=this.context;e.trailerInfo={Root:t.get(Fo.of(\"Root\"))||e.trailerInfo.Root,Encrypt:t.get(Fo.of(\"Encrypt\"))||e.trailerInfo.Encrypt,Info:t.get(Fo.of(\"Info\"))||e.trailerInfo.Info,ID:t.get(Fo.of(\"ID\"))||e.trailerInfo.ID}}},e.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(Sh.startxref)){this.skipWhitespaceAndComments();var t=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(Sh.eof),this.skipWhitespaceAndComments(),this.matchKeyword(Sh.eof),this.skipWhitespaceAndComments(),qo.forLastCrossRefSectionOffset(t)}},e.prototype.parseDocumentSection=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.parseIndirectObjects()];case 1:return t.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}}))}))},e.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var t=this.bytes.offset(),e=this.bytes.peek();if(e>=mr.Space&&e<=mr.Tilde&&(this.matchKeyword(Sh.xref)||this.matchKeyword(Sh.trailer)||this.matchKeyword(Sh.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(t);break}this.bytes.next()}},e.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var t=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(t)}catch(t){this.bytes.next(),this.skipWhitespaceAndComments()}},e.forBytesWithOptions=function(t,n,r,i){return new e(t,n,r,i)},e}(Ch),zh=function(t){return 1<<t};(ph=t.AnnotationFlags||(t.AnnotationFlags={}))[ph.Invisible=zh(0)]=\"Invisible\",ph[ph.Hidden=zh(1)]=\"Hidden\",ph[ph.Print=zh(2)]=\"Print\",ph[ph.NoZoom=zh(3)]=\"NoZoom\",ph[ph.NoRotate=zh(4)]=\"NoRotate\",ph[ph.NoView=zh(5)]=\"NoView\",ph[ph.ReadOnly=zh(6)]=\"ReadOnly\",ph[ph.Locked=zh(7)]=\"Locked\",ph[ph.ToggleNoView=zh(8)]=\"ToggleNoView\",ph[ph.LockedContents=zh(9)]=\"LockedContents\";var Rh,Oh=function(t){return t instanceof Fo?t:Fo.of(t)},Dh=function(t){return t instanceof co?t:co.of(t)},Bh=function(t){return t instanceof co?t.asNumber():t};(Rh=t.RotationTypes||(t.RotationTypes={})).Degrees=\"degrees\",Rh.Radians=\"radians\";var Nh,Eh=function(e){return On(e,\"degreeAngle\",[\"number\"]),{type:t.RotationTypes.Degrees,angle:e}},jh=t.RotationTypes.Radians,Mh=t.RotationTypes.Degrees,Ih=function(t){return t*Math.PI/180},Uh=function(t){return 180*t/Math.PI},Vh=function(t){return t.type===jh?t.angle:t.type===Mh?Ih(t.angle):dt(\"Invalid rotation: \"+JSON.stringify(t))},Wh=function(t){return t.type===jh?Uh(t.angle):t.type===Mh?t.angle:dt(\"Invalid rotation: \"+JSON.stringify(t))},qh=function(t){void 0===t&&(t=0);var e=t/90%4;return 0===e?0:1===e?90:2===e?180:3===e?270:0},Lh=function(t,e){void 0===e&&(e=0);var n=qh(e);return 90===n||270===n?{width:t.height,height:t.width}:{width:t.width,height:t.height}},Kh=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var r=t.x,i=t.y,o=t.width,a=t.height,s=qh(n),l=e/2;return 0===s?{x:r-l,y:i-l,width:o,height:a}:90===s?{x:r-a+l,y:i-l,width:a,height:o}:180===s?{x:r-o+l,y:i-a+l,width:o,height:a}:270===s?{x:r-l,y:i-o+l,width:a,height:o}:{x:r-l,y:i-l,width:o,height:a}},Gh=function(){return Oo.of(Bo.ClipNonZero)},Hh=Math.cos,_h=Math.sin,Xh=Math.tan,Zh=function(t,e,n,r,i,o){return Oo.of(Bo.ConcatTransformationMatrix,[Dh(t),Dh(e),Dh(n),Dh(r),Dh(i),Dh(o)])},Yh=function(t,e){return Zh(1,0,0,1,t,e)},Jh=function(t,e){return Zh(t,0,0,e,0,0)},Qh=function(t){return Zh(Hh(Bh(t)),_h(Bh(t)),-_h(Bh(t)),Hh(Bh(t)),0,0)},$h=function(t){return Qh(Ih(Bh(t)))},tu=function(t,e){return Zh(1,Xh(Bh(t)),Xh(Bh(e)),1,0,0)},eu=function(t,e){return Oo.of(Bo.SetLineDashPattern,[\"[\"+t.map(Dh).join(\" \")+\"]\",Dh(e)])};(Nh=t.LineCapStyle||(t.LineCapStyle={}))[Nh.Butt=0]=\"Butt\",Nh[Nh.Round=1]=\"Round\",Nh[Nh.Projecting=2]=\"Projecting\";var nu,ru=function(t){return Oo.of(Bo.SetLineCapStyle,[Dh(t)])};(nu=t.LineJoinStyle||(t.LineJoinStyle={}))[nu.Miter=0]=\"Miter\",nu[nu.Round=1]=\"Round\",nu[nu.Bevel=2]=\"Bevel\";var iu,ou=function(t){return Oo.of(Bo.SetGraphicsStateParams,[Oh(t)])},au=function(){return Oo.of(Bo.PushGraphicsState)},su=function(){return Oo.of(Bo.PopGraphicsState)},lu=function(t){return Oo.of(Bo.SetLineWidth,[Dh(t)])},hu=function(t,e,n,r,i,o){return Oo.of(Bo.AppendBezierCurve,[Dh(t),Dh(e),Dh(n),Dh(r),Dh(i),Dh(o)])},uu=function(t,e,n,r){return Oo.of(Bo.CurveToReplicateInitialPoint,[Dh(t),Dh(e),Dh(n),Dh(r)])},cu=function(){return Oo.of(Bo.ClosePath)},du=function(t,e){return Oo.of(Bo.MoveTo,[Dh(t),Dh(e)])},fu=function(t,e){return Oo.of(Bo.LineTo,[Dh(t),Dh(e)])},pu=function(t,e,n,r){return Oo.of(Bo.AppendRectangle,[Dh(t),Dh(e),Dh(n),Dh(r)])},gu=function(){return Oo.of(Bo.StrokePath)},vu=function(){return Oo.of(Bo.FillNonZero)},yu=function(){return Oo.of(Bo.FillNonZeroAndStroke)},mu=function(){return Oo.of(Bo.EndPath)},bu=function(){return Oo.of(Bo.NextLine)},wu=function(t){return Oo.of(Bo.ShowText,[t])},xu=function(){return Oo.of(Bo.BeginText)},ku=function(){return Oo.of(Bo.EndText)},Fu=function(t,e){return Oo.of(Bo.SetFontAndSize,[Oh(t),Dh(e)])},Su=function(t){return Oo.of(Bo.SetTextLineHeight,[Dh(t)])};(iu=t.TextRenderingMode||(t.TextRenderingMode={}))[iu.Fill=0]=\"Fill\",iu[iu.Outline=1]=\"Outline\",iu[iu.FillAndOutline=2]=\"FillAndOutline\",iu[iu.Invisible=3]=\"Invisible\",iu[iu.FillAndClip=4]=\"FillAndClip\",iu[iu.OutlineAndClip=5]=\"OutlineAndClip\",iu[iu.FillAndOutlineAndClip=6]=\"FillAndOutlineAndClip\",iu[iu.Clip=7]=\"Clip\";var Cu,Au=function(t,e,n,r,i,o){return Oo.of(Bo.SetTextMatrix,[Dh(t),Dh(e),Dh(n),Dh(r),Dh(i),Dh(o)])},Tu=function(t,e,n,r,i){return Au(Hh(Bh(t)),_h(Bh(t))+Xh(Bh(e)),-_h(Bh(t))+Xh(Bh(n)),Hh(Bh(t)),r,i)},Pu=function(t){return Oo.of(Bo.DrawObject,[Oh(t)])},zu=function(t){return Oo.of(Bo.NonStrokingColorGray,[Dh(t)])},Ru=function(t){return Oo.of(Bo.StrokingColorGray,[Dh(t)])},Ou=function(t,e,n){return Oo.of(Bo.NonStrokingColorRgb,[Dh(t),Dh(e),Dh(n)])},Du=function(t,e,n){return Oo.of(Bo.StrokingColorRgb,[Dh(t),Dh(e),Dh(n)])},Bu=function(t,e,n,r){return Oo.of(Bo.NonStrokingColorCmyk,[Dh(t),Dh(e),Dh(n),Dh(r)])},Nu=function(t,e,n,r){return Oo.of(Bo.StrokingColorCmyk,[Dh(t),Dh(e),Dh(n),Dh(r)])},Eu=function(t){return Oo.of(Bo.BeginMarkedContent,[Oh(t)])},ju=function(){return Oo.of(Bo.EndMarkedContent)};(Cu=t.ColorTypes||(t.ColorTypes={})).Grayscale=\"Grayscale\",Cu.RGB=\"RGB\",Cu.CMYK=\"CMYK\";var Mu,Iu=function(e){return Nn(e,\"gray\",0,1),{type:t.ColorTypes.Grayscale,gray:e}},Uu=function(e,n,r){return Nn(e,\"red\",0,1),Nn(n,\"green\",0,1),Nn(r,\"blue\",0,1),{type:t.ColorTypes.RGB,red:e,green:n,blue:r}},Vu=function(e,n,r,i){return Nn(e,\"cyan\",0,1),Nn(n,\"magenta\",0,1),Nn(r,\"yellow\",0,1),Nn(i,\"key\",0,1),{type:t.ColorTypes.CMYK,cyan:e,magenta:n,yellow:r,key:i}},Wu=t.ColorTypes.Grayscale,qu=t.ColorTypes.RGB,Lu=t.ColorTypes.CMYK,Ku=function(t){return t.type===Wu?zu(t.gray):t.type===qu?Ou(t.red,t.green,t.blue):t.type===Lu?Bu(t.cyan,t.magenta,t.yellow,t.key):dt(\"Invalid color: \"+JSON.stringify(t))},Gu=function(t){return t.type===Wu?Ru(t.gray):t.type===qu?Du(t.red,t.green,t.blue):t.type===Lu?Nu(t.cyan,t.magenta,t.yellow,t.key):dt(\"Invalid color: \"+JSON.stringify(t))},Hu=function(t,e){return void 0===e&&(e=1),1===(null==t?void 0:t.length)?Iu(t[0]*e):3===(null==t?void 0:t.length)?Uu(t[0]*e,t[1]*e,t[2]*e):4===(null==t?void 0:t.length)?Vu(t[0]*e,t[1]*e,t[2]*e,t[3]*e):void 0},_u=function(t){return t.type===Wu?[t.gray]:t.type===qu?[t.red,t.green,t.blue]:t.type===Lu?[t.cyan,t.magenta,t.yellow,t.key]:dt(\"Invalid color: \"+JSON.stringify(t))},Xu=0,Zu=0,Yu=0,Ju=0,Qu=0,$u=0,tc=new Map([[\"A\",7],[\"a\",7],[\"C\",6],[\"c\",6],[\"H\",1],[\"h\",1],[\"L\",2],[\"l\",2],[\"M\",2],[\"m\",2],[\"Q\",4],[\"q\",4],[\"S\",4],[\"s\",4],[\"T\",2],[\"t\",2],[\"V\",1],[\"v\",1],[\"Z\",0],[\"z\",0]]),ec={M:function(t){return Xu=t[0],Zu=t[1],Yu=Ju=null,Qu=Xu,$u=Zu,du(Xu,Zu)},m:function(t){return Xu+=t[0],Zu+=t[1],Yu=Ju=null,Qu=Xu,$u=Zu,du(Xu,Zu)},C:function(t){return Xu=t[4],Zu=t[5],Yu=t[2],Ju=t[3],hu(t[0],t[1],t[2],t[3],t[4],t[5])},c:function(t){var e=hu(t[0]+Xu,t[1]+Zu,t[2]+Xu,t[3]+Zu,t[4]+Xu,t[5]+Zu);return Yu=Xu+t[2],Ju=Zu+t[3],Xu+=t[4],Zu+=t[5],e},S:function(t){null!==Yu&&null!==Ju||(Yu=Xu,Ju=Zu);var e=hu(Xu-(Yu-Xu),Zu-(Ju-Zu),t[0],t[1],t[2],t[3]);return Yu=t[0],Ju=t[1],Xu=t[2],Zu=t[3],e},s:function(t){null!==Yu&&null!==Ju||(Yu=Xu,Ju=Zu);var e=hu(Xu-(Yu-Xu),Zu-(Ju-Zu),Xu+t[0],Zu+t[1],Xu+t[2],Zu+t[3]);return Yu=Xu+t[0],Ju=Zu+t[1],Xu+=t[2],Zu+=t[3],e},Q:function(t){return Yu=t[0],Ju=t[1],Xu=t[2],Zu=t[3],uu(t[0],t[1],Xu,Zu)},q:function(t){var e=uu(t[0]+Xu,t[1]+Zu,t[2]+Xu,t[3]+Zu);return Yu=Xu+t[0],Ju=Zu+t[1],Xu+=t[2],Zu+=t[3],e},T:function(t){null===Yu||null===Ju?(Yu=Xu,Ju=Zu):(Yu=Xu-(Yu-Xu),Ju=Zu-(Ju-Zu));var e=uu(Yu,Ju,t[0],t[1]);return Yu=Xu-(Yu-Xu),Ju=Zu-(Ju-Zu),Xu=t[0],Zu=t[1],e},t:function(t){null===Yu||null===Ju?(Yu=Xu,Ju=Zu):(Yu=Xu-(Yu-Xu),Ju=Zu-(Ju-Zu));var e=uu(Yu,Ju,Xu+t[0],Zu+t[1]);return Xu+=t[0],Zu+=t[1],e},A:function(t){var e=nc(Xu,Zu,t);return Xu=t[5],Zu=t[6],e},a:function(t){t[5]+=Xu,t[6]+=Zu;var e=nc(Xu,Zu,t);return Xu=t[5],Zu=t[6],e},L:function(t){return Xu=t[0],Zu=t[1],Yu=Ju=null,fu(Xu,Zu)},l:function(t){return Xu+=t[0],Zu+=t[1],Yu=Ju=null,fu(Xu,Zu)},H:function(t){return Xu=t[0],Yu=Ju=null,fu(Xu,Zu)},h:function(t){return Xu+=t[0],Yu=Ju=null,fu(Xu,Zu)},V:function(t){return Zu=t[0],Yu=Ju=null,fu(Xu,Zu)},v:function(t){return Zu+=t[0],Yu=Ju=null,fu(Xu,Zu)},Z:function(){var t=cu();return Xu=Qu,Zu=$u,t},z:function(){var t=cu();return Xu=Qu,Zu=$u,t}},nc=function(t,e,n){for(var r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6],u=[],c=0,d=rc(l,h,r,i,a,s,o,t,e);c<d.length;c++){var f=d[c],p=ic.apply(void 0,f);u.push(hu.apply(void 0,p))}return u},rc=function(t,e,n,r,i,o,a,s,l){var h=a*(Math.PI/180),u=Math.sin(h),c=Math.cos(h);n=Math.abs(n),r=Math.abs(r);var d=(Yu=c*(s-t)*.5+u*(l-e)*.5)*Yu/(n*n)+(Ju=c*(l-e)*.5-u*(s-t)*.5)*Ju/(r*r);d>1&&(n*=d=Math.sqrt(d),r*=d);var f=c/n,p=u/n,g=-u/r,v=c/r,y=f*s+p*l,m=g*s+v*l,b=f*t+p*e,w=g*t+v*e,x=1/((b-y)*(b-y)+(w-m)*(w-m))-.25;x<0&&(x=0);var k=Math.sqrt(x);o===i&&(k=-k);var F=.5*(y+b)-k*(w-m),S=.5*(m+w)+k*(b-y),C=Math.atan2(m-S,y-F),A=Math.atan2(w-S,b-F)-C;A<0&&1===o?A+=2*Math.PI:A>0&&0===o&&(A-=2*Math.PI);for(var T=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),P=[],z=0;z<T;z++){var R=C+z*A/T,O=C+(z+1)*A/T;P[z]=[F,S,R,O,n,r,u,c]}return P},ic=function(t,e,n,r,i,o,a,s){var l=s*i,h=-a*o,u=a*i,c=s*o,d=.5*(r-n),f=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),p=t+Math.cos(n)-f*Math.sin(n),g=e+Math.sin(n)+f*Math.cos(n),v=t+Math.cos(r),y=e+Math.sin(r),m=v+f*Math.sin(r),b=y-f*Math.cos(r);return[l*p+h*g,u*p+c*g,l*m+h*b,u*m+c*b,l*v+h*y,u*v+c*y]},oc=function(t){return function(t){Xu=Zu=Yu=Ju=Qu=$u=0;for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r.cmd&&\"function\"==typeof ec[r.cmd]){var i=ec[r.cmd](r.args);Array.isArray(i)?e=e.concat(i):e.push(i)}}return e}(function(t){for(var e,n=[],r=[],i=\"\",o=!1,a=0,s=0,l=t;s<l.length;s++){var h=l[s];if(tc.has(h))a=tc.get(h),e&&(i.length>0&&(r[r.length]=+i),n[n.length]={cmd:e,args:r},r=[],i=\"\",o=!1),e=h;else if([\" \",\",\"].includes(h)||\"-\"===h&&i.length>0&&\"e\"!==i[i.length-1]||\".\"===h&&o){if(0===i.length)continue;r.length===a?(n[n.length]={cmd:e,args:r},r=[+i],\"M\"===e&&(e=\"L\"),\"m\"===e&&(e=\"l\")):r[r.length]=+i,o=\".\"===h,i=[\"-\",\".\"].includes(h)?h:\"\"}else i+=h,\".\"===h&&(o=!0)}return i.length>0&&(r.length===a?(n[n.length]={cmd:e,args:r},r=[+i],\"M\"===e&&(e=\"L\"),\"m\"===e&&(e=\"l\")):r[r.length]=+i),n[n.length]={cmd:e,args:r},n}(t))},ac=function(t,e){for(var n=[au(),e.graphicsState&&ou(e.graphicsState),xu(),Ku(e.color),Fu(e.font,e.size),Su(e.lineHeight),Tu(Vh(e.rotate),Vh(e.xSkew),Vh(e.ySkew),e.x,e.y)].filter(Boolean),r=0,i=t.length;r<i;r++)n.push(wu(t[r]),bu());return n.push(ku(),su()),n},sc=function(t,e){return[au(),e.graphicsState&&ou(e.graphicsState),Yh(e.x,e.y),Qh(Vh(e.rotate)),Jh(e.width,e.height),tu(Vh(e.xSkew),Vh(e.ySkew)),Pu(t),su()].filter(Boolean)},lc=function(t,e){return[au(),e.graphicsState&&ou(e.graphicsState),Yh(e.x,e.y),Qh(Vh(e.rotate)),Jh(e.xScale,e.yScale),tu(Vh(e.xSkew),Vh(e.ySkew)),Pu(t),su()].filter(Boolean)},hc=function(t){var e,n;return[au(),t.graphicsState&&ou(t.graphicsState),t.color&&Gu(t.color),lu(t.thickness),eu(null!==(e=t.dashArray)&&void 0!==e?e:[],null!==(n=t.dashPhase)&&void 0!==n?n:0),du(t.start.x,t.start.y),t.lineCap&&ru(t.lineCap),du(t.start.x,t.start.y),fu(t.end.x,t.end.y),gu(),su()].filter(Boolean)},uc=function(t){var e,n;return[au(),t.graphicsState&&ou(t.graphicsState),t.color&&Ku(t.color),t.borderColor&&Gu(t.borderColor),lu(t.borderWidth),t.borderLineCap&&ru(t.borderLineCap),eu(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(n=t.borderDashPhase)&&void 0!==n?n:0),Yh(t.x,t.y),Qh(Vh(t.rotate)),tu(Vh(t.xSkew),Vh(t.ySkew)),du(0,0),fu(0,t.height),fu(t.width,t.height),fu(t.width,0),cu(),t.color&&t.borderWidth?yu():t.color?vu():t.borderColor?gu():cu(),su()].filter(Boolean)},cc=(Math.sqrt(2)-1)/3*4,dc=function(t){var e=Bh(t.x),n=Bh(t.y),r=Bh(t.xScale),i=Bh(t.yScale),o=r*cc,a=i*cc,s=(e-=r)+2*r,l=(n-=i)+2*i,h=e+r,u=n+i;return[au(),du(e,u),hu(e,u-a,h-o,n,h,n),hu(h+o,n,s,u-a,s,u),hu(s,u+a,h+o,l,h,l),hu(h-o,l,e,u+a,e,u),su()]},fc=function(t){var e,n,r,i,o,s,l,h,u,c,d,f,p,g,v,y;return a([au(),t.graphicsState&&ou(t.graphicsState),t.color&&Ku(t.color),t.borderColor&&Gu(t.borderColor),lu(t.borderWidth),t.borderLineCap&&ru(t.borderLineCap),eu(null!==(e=t.borderDashArray)&&void 0!==e?e:[],null!==(n=t.borderDashPhase)&&void 0!==n?n:0)],void 0===t.rotate?dc({x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale}):(i={x:t.x,y:t.y,xScale:t.xScale,yScale:t.yScale,rotate:null!==(r=t.rotate)&&void 0!==r?r:Eh(0)},o=Bh(i.x),s=Bh(i.y),l=Bh(i.xScale),h=Bh(i.yScale),u=-l,c=-h,d=l*cc,f=h*cc,p=u+2*l,g=c+2*h,v=u+l,y=c+h,[Yh(o,s),Qh(Vh(i.rotate)),du(u,y),hu(u,y-f,v-d,c,v,c),hu(v+d,c,p,y-f,p,y),hu(p,y+f,v+d,g,v,g),hu(v-d,g,u,y+f,u,y)]),[t.color&&t.borderWidth?yu():t.color?vu():t.borderColor?gu():cu(),su()]).filter(Boolean)},pc=function(t,e){var n,r,i;return a([au(),e.graphicsState&&ou(e.graphicsState),Yh(e.x,e.y),Qh(Vh(null!==(n=e.rotate)&&void 0!==n?n:Eh(0))),e.scale?Jh(e.scale,-e.scale):Jh(1,-1),e.color&&Ku(e.color),e.borderColor&&Gu(e.borderColor),e.borderWidth&&lu(e.borderWidth),e.borderLineCap&&ru(e.borderLineCap),eu(null!==(r=e.borderDashArray)&&void 0!==r?r:[],null!==(i=e.borderDashPhase)&&void 0!==i?i:0)],oc(t),[e.color&&e.borderWidth?yu():e.color?vu():e.borderColor?gu():cu(),su()]).filter(Boolean)},gc=function(t){var e=Bh(t.size);return[au(),t.color&&Gu(t.color),lu(t.thickness),Yh(t.x,t.y),du(-.675*e,(.3995/.965-.49)*e),fu(-.25*e,-.49*e),fu(.69*e,.475*e),gu(),su()].filter(Boolean)},vc=function(t){return 0===t.rotation?[Yh(0,0),$h(0)]:90===t.rotation?[Yh(t.width,0),$h(90)]:180===t.rotation?[Yh(t.width,t.height),$h(180)]:270===t.rotation?[Yh(0,t.height),$h(270)]:[]},yc=function(t){var e=uc({x:t.x,y:t.y,width:t.width,height:t.height,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)});if(!t.filled)return e;var n=Bh(t.width),r=Bh(t.height),i=Math.min(n,r)/2,o=gc({x:n/2,y:r/2,size:i,thickness:t.thickness,color:t.markColor});return a([au()],e,o,[su()])},mc=function(t){var e=Bh(t.width),n=Bh(t.height),r=Math.min(e,n)/2,i=fc({x:t.x,y:t.y,xScale:r,yScale:r,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth});if(!t.filled)return i;var o=fc({x:t.x,y:t.y,xScale:.45*r,yScale:.45*r,color:t.dotColor,borderColor:void 0,borderWidth:0});return a([au()],i,o,[su()])},bc=function(t){var e=Bh(t.x),n=Bh(t.y),r=Bh(t.width),i=Bh(t.height),o=uc({x:e,y:n,width:r,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}),s=wc(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)});return a([au()],o,s,[su()])},wc=function(t,e){for(var n=[xu(),Ku(e.color),Fu(e.font,e.size)],r=0,i=t.length;r<i;r++){var o=t[r],a=o.encoded,s=o.x,l=o.y;n.push(Tu(Vh(e.rotate),Vh(e.xSkew),Vh(e.ySkew),s,l),wu(a))}return n.push(ku()),n},xc=function(t){var e=Bh(t.x),n=Bh(t.y),r=Bh(t.width),i=Bh(t.height),o=Bh(t.borderWidth),s=Bh(t.padding),l=e+o/2+s,h=n+o/2+s,u=r-2*(o/2+s),c=i-2*(o/2+s),d=[du(l,h),fu(l,h+c),fu(l+u,h+c),fu(l+u,h),cu(),Gh(),mu()],f=uc({x:e,y:n,width:r,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}),p=wc(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}),g=a([Eu(\"Tx\"),au()],p,[su(),ju()]);return a([au()],f,d,g,[su()])},kc=function(t){for(var e=Bh(t.x),n=Bh(t.y),r=Bh(t.width),i=Bh(t.height),o=Bh(t.lineHeight),s=Bh(t.borderWidth),l=Bh(t.padding),h=e+s/2+l,u=n+s/2+l,c=r-2*(s/2+l),d=i-2*(s/2+l),f=[du(h,u),fu(h,u+d),fu(h+c,u+d),fu(h+c,u),cu(),Gh(),mu()],p=uc({x:e,y:n,width:r,height:i,borderWidth:t.borderWidth,color:t.color,borderColor:t.borderColor,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}),g=[],v=0,y=t.selectedLines.length;v<y;v++){var m=t.textLines[t.selectedLines[v]];g.push.apply(g,uc({x:m.x-l,y:m.y-(o-m.height)/2,width:r-s,height:m.height+(o-m.height)/2,borderWidth:0,color:t.selectedColor,borderColor:void 0,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}))}var b=wc(t.textLines,{color:t.textColor,font:t.font,size:t.fontSize,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)}),w=a([Eu(\"Tx\"),au()],b,[su(),ju()]);return a([au()],p,g,f,w,[su()])},Fc=function(t){function e(){return t.call(this,\"Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.\")||this}return n(e,t),e}(Error),Sc=function(t){function e(){return t.call(this,\"Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.\")||this}return n(e,t),e}(Error),Cc=function(t){function e(){return t.call(this,\"A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.\")||this}return n(e,t),e}(Error),Ac=function(t){function e(){return t.call(this,\"PDFDocument has no pages so `PDFDocument.removePage` cannot be called\")||this}return n(e,t),e}(Error),Tc=function(t){function e(e){var n='PDFDocument has no form field with the name \"'+e+'\"';return t.call(this,n)||this}return n(e,t),e}(Error),Pc=function(t){function e(e,n,r){var i,o,a='Expected field \"'+e+'\" to be of type '+(null==n?void 0:n.name)+\", but it is actually of type \"+(null!==(o=null===(i=null==r?void 0:r.constructor)||void 0===i?void 0:i.name)&&void 0!==o?o:r);return t.call(this,a)||this}return n(e,t),e}(Error),zc=function(t){function e(e){var n='Failed to select check box due to missing onValue: \"'+e+'\"';return t.call(this,n)||this}return n(e,t),e}(Error),Rc=function(t){function e(e){var n='A field already exists with the specified name: \"'+e+'\"';return t.call(this,n)||this}return n(e,t),e}(Error),Oc=function(t){function e(e){var n='Field name contains invalid component: \"'+e+'\"';return t.call(this,n)||this}return n(e,t),e}(Error),Dc=function(t){function e(e){var n='A non-terminal field already exists with the specified name: \"'+e+'\"';return t.call(this,n)||this}return n(e,t),e}(Error),Bc=function(t){function e(e){var n=\"Reading rich text fields is not supported: Attempted to read rich text field: \"+e;return t.call(this,n)||this}return n(e,t),e}(Error),Nc=function(t){function e(e,n){var r=\"Failed to layout combed text as lineLength=\"+e+\" is greater than cellCount=\"+n;return t.call(this,r)||this}return n(e,t),e}(Error),Ec=function(t){function e(e,n,r){var i=\"Attempted to set text with length=\"+e+\" for TextField with maxLength=\"+n+\" and name=\"+r;return t.call(this,i)||this}return n(e,t),e}(Error),jc=function(t){function e(e,n,r){var i=\"Attempted to set maxLength=\"+n+\", which is less than \"+e+\", the length of this field's current value (name=\"+r+\")\";return t.call(this,i)||this}return n(e,t),e}(Error);(Mu=t.TextAlignment||(t.TextAlignment={}))[Mu.Left=0]=\"Left\",Mu[Mu.Center=1]=\"Center\",Mu[Mu.Right=2]=\"Right\";var Mc,Ic=function(t,e,n,r){void 0===r&&(r=!1);for(var i=4;i<500;){for(var o=0,a=0,s=t.length;a<s;a++){o+=1;for(var l=t[a].split(\" \"),h=n.width,u=0,c=l.length;u<c;u++){var d=u===c-1?l[u]:l[u]+\" \",f=e.widthOfTextAtSize(d,i);(h-=f)<=0&&(o+=1,h=n.width-f)}}if(!r&&o>t.length)return i-1;var p=e.heightAtSize(i);if((p+.2*p)*o>Math.abs(n.height))return i-1;i+=1}return i},Uc=function(t){for(var e=t.length;e>0;e--)if(/\\s/.test(t[e]))return e},Vc=function(t,e,n,r){for(var i,o=t.length;o>0;){var a=t.substring(0,o),s=n.encodeText(a),l=n.widthOfTextAtSize(a,r);if(l<e)return{line:a,encoded:s,width:l,remainder:t.substring(o)||void 0};o=null!==(i=Uc(a))&&void 0!==i?i:0}return{line:t,encoded:n.encodeText(t),width:n.widthOfTextAtSize(t,r),remainder:void 0}},Wc=function(e,n){var r=n.alignment,i=n.fontSize,o=n.font,a=n.bounds,s=T(S(e));void 0!==i&&0!==i||(i=Ic(s,o,a,!0));for(var l=o.heightAtSize(i),h=l+.2*l,u=[],c=a.x,d=a.y,f=a.x+a.width,p=a.y+a.height,g=a.y+a.height,v=0,y=s.length;v<y;v++)for(var m=s[v];void 0!==m;){var b=Vc(m,a.width,o,i),w=b.line,x=b.encoded,k=b.width,F=b.remainder,C=r===t.TextAlignment.Left?a.x:r===t.TextAlignment.Center?a.x+a.width/2-k/2:r===t.TextAlignment.Right?a.x+a.width-k:a.x;C<c&&(c=C),(g-=h)<d&&(d=g),C+k>f&&(f=C+k),g+l>p&&(p=g+l),u.push({text:w,encoded:x,width:k,height:l,x:C,y:g}),m=null==F?void 0:F.trim()}return{fontSize:i,lineHeight:h,lines:u,bounds:{x:c,y:d,width:f-c,height:p-d}}},qc=function(t,e){var n=e.fontSize,r=e.font,i=e.bounds,o=e.cellCount,a=P(S(t));if(a.length>o)throw new Nc(a.length,o);void 0!==n&&0!==n||(n=function(t,e,n,r){for(var i=n.width/r,o=n.height,a=4,s=R(t);a<500;){for(var l=0,h=s.length;l<h;l++){var u=s[l];if(e.widthOfTextAtSize(u,a)>.75*i)return a-1}if(e.heightAtSize(a,{descender:!1})>o)return a-1;a+=1}return a}(a,r,i,o));for(var s=i.width/o,l=r.heightAtSize(n,{descender:!1}),h=i.y+(i.height/2-l/2),u=[],c=i.x,d=i.y,f=i.x+i.width,p=i.y+i.height,g=0,v=0;g<o;){var y=z(a,v),m=y[0],b=y[1],w=r.encodeText(m),x=r.widthOfTextAtSize(m,n),k=i.x+(s*g+s/2)-x/2;k<c&&(c=k),h<d&&(d=h),k+x>f&&(f=k+x),h+l>p&&(p=h+l),u.push({text:a,encoded:w,width:x,height:l,x:k,y:h}),g+=1,v+=b}return{fontSize:n,cells:u,bounds:{x:c,y:d,width:f-c,height:p-d}}},Lc=function(e,n){var r=n.alignment,i=n.fontSize,o=n.font,a=n.bounds,s=P(S(e));void 0!==i&&0!==i||(i=Ic([s],o,a));var l=o.encodeText(s),h=o.widthOfTextAtSize(s,i),u=o.heightAtSize(i,{descender:!1}),c=r===t.TextAlignment.Left?a.x:r===t.TextAlignment.Center?a.x+a.width/2-h/2:r===t.TextAlignment.Right?a.x+a.width-h:a.x,d=a.y+(a.height/2-u/2);return{fontSize:i,line:{text:s,encoded:l,width:h,height:u,x:c,y:d},bounds:{x:c,y:d,width:h,height:u}}},Kc=function(t){return\"normal\"in t?t:{normal:t}},Gc=/\\/([^\\0\\t\\n\\f\\r\\ ]+)[\\0\\t\\n\\f\\r\\ ]+(\\d*\\.\\d+|\\d+)[\\0\\t\\n\\f\\r\\ ]+Tf/,Hc=function(t){var e,n,r=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:\"\",i=null!==(n=N(r,Gc).match)&&void 0!==n?n:[],o=Number(i[2]);return isFinite(o)?o:void 0},_c=/(\\d*\\.\\d+|\\d+)[\\0\\t\\n\\f\\r\\ ]*(\\d*\\.\\d+|\\d+)?[\\0\\t\\n\\f\\r\\ ]*(\\d*\\.\\d+|\\d+)?[\\0\\t\\n\\f\\r\\ ]*(\\d*\\.\\d+|\\d+)?[\\0\\t\\n\\f\\r\\ ]+(g|rg|k)/,Xc=function(t){var e,n=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:\"\",r=N(n,_c).match,i=null!=r?r:[],o=i[1],a=i[2],s=i[3],l=i[4],h=i[5];return\"g\"===h&&o?Iu(Number(o)):\"rg\"===h&&o&&a&&s?Uu(Number(o),Number(a),Number(s)):\"k\"===h&&o&&a&&s&&l?Vu(Number(o),Number(a),Number(s),Number(l)):void 0},Zc=function(t,e,n,r){var i;void 0===r&&(r=0);var o=[Ku(e).toString(),Fu(null!==(i=null==n?void 0:n.name)&&void 0!==i?i:\"dummy__noop\",r).toString()].join(\"\\n\");t.setDefaultAppearance(o)},Yc=function(t,e){var n,i,o,s=Xc(e),l=Xc(t.acroField),h=e.getRectangle(),u=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),d=null!==(n=null==c?void 0:c.getWidth())&&void 0!==n?n:0,f=qh(null==u?void 0:u.getRotation()),p=Lh(h,f),g=p.width,v=p.height,y=vc(r(r({},h),{rotation:f})),m=Uu(0,0,0),b=null!==(i=Hu(null==u?void 0:u.getBorderColor()))&&void 0!==i?i:m,w=Hu(null==u?void 0:u.getBackgroundColor()),x=Hu(null==u?void 0:u.getBackgroundColor(),.8),k=null!==(o=null!=s?s:l)&&void 0!==o?o:m;Zc(s?e:t.acroField,k);var F={x:0+d/2,y:0+d/2,width:g-d,height:v-d,thickness:1.5,borderWidth:d,borderColor:b,markColor:k};return{normal:{on:a(y,yc(r(r({},F),{color:w,filled:!0}))),off:a(y,yc(r(r({},F),{color:w,filled:!1})))},down:{on:a(y,yc(r(r({},F),{color:x,filled:!0}))),off:a(y,yc(r(r({},F),{color:x,filled:!1})))}}},Jc=function(t,e){var n,i,o,s=Xc(e),l=Xc(t.acroField),h=e.getRectangle(),u=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),d=null!==(n=null==c?void 0:c.getWidth())&&void 0!==n?n:0,f=qh(null==u?void 0:u.getRotation()),p=Lh(h,f),g=p.width,v=p.height,y=vc(r(r({},h),{rotation:f})),m=Uu(0,0,0),b=null!==(i=Hu(null==u?void 0:u.getBorderColor()))&&void 0!==i?i:m,w=Hu(null==u?void 0:u.getBackgroundColor()),x=Hu(null==u?void 0:u.getBackgroundColor(),.8),k=null!==(o=null!=s?s:l)&&void 0!==o?o:m;Zc(s?e:t.acroField,k);var F={x:g/2,y:v/2,width:g-d,height:v-d,borderWidth:d,borderColor:b,dotColor:k};return{normal:{on:a(y,mc(r(r({},F),{color:w,filled:!0}))),off:a(y,mc(r(r({},F),{color:w,filled:!1})))},down:{on:a(y,mc(r(r({},F),{color:x,filled:!0}))),off:a(y,mc(r(r({},F),{color:x,filled:!1})))}}},Qc=function(e,n,i){var o,s,l,h,u,c=Xc(n),d=Xc(e.acroField),f=Hc(n),p=Hc(e.acroField),g=n.getRectangle(),v=n.getAppearanceCharacteristics(),y=n.getBorderStyle(),m=null==v?void 0:v.getCaptions(),b=null!==(o=null==m?void 0:m.normal)&&void 0!==o?o:\"\",w=null!==(l=null!==(s=null==m?void 0:m.down)&&void 0!==s?s:b)&&void 0!==l?l:\"\",x=null!==(h=null==y?void 0:y.getWidth())&&void 0!==h?h:0,k=qh(null==v?void 0:v.getRotation()),F=Lh(g,k),S=F.width,C=F.height,A=vc(r(r({},g),{rotation:k})),T=Uu(0,0,0),P=Hu(null==v?void 0:v.getBorderColor()),z=Hu(null==v?void 0:v.getBackgroundColor()),R=Hu(null==v?void 0:v.getBackgroundColor(),.8),O={x:x,y:x,width:S-2*x,height:C-2*x},D=Lc(b,{alignment:t.TextAlignment.Center,fontSize:null!=f?f:p,font:i,bounds:O}),B=Lc(w,{alignment:t.TextAlignment.Center,fontSize:null!=f?f:p,font:i,bounds:O}),N=Math.min(D.fontSize,B.fontSize),E=null!==(u=null!=c?c:d)&&void 0!==u?u:T;Zc(c||void 0!==f?n:e.acroField,E,i,N);var j={x:0+x/2,y:0+x/2,width:S-x,height:C-x,borderWidth:x,borderColor:P,textColor:E,font:i.name,fontSize:N};return{normal:a(A,bc(r(r({},j),{color:z,textLines:[D.line]}))),down:a(A,bc(r(r({},j),{color:R,textLines:[B.line]})))}},$c=function(t,e,n){var i,o,s,l,h,u,c=Xc(e),d=Xc(t.acroField),f=Hc(e),p=Hc(t.acroField),g=e.getRectangle(),v=e.getAppearanceCharacteristics(),y=e.getBorderStyle(),m=null!==(i=t.getText())&&void 0!==i?i:\"\",b=null!==(o=null==y?void 0:y.getWidth())&&void 0!==o?o:0,w=qh(null==v?void 0:v.getRotation()),x=Lh(g,w),k=x.width,F=x.height,S=vc(r(r({},g),{rotation:w})),C=Uu(0,0,0),A=Hu(null==v?void 0:v.getBorderColor()),T=Hu(null==v?void 0:v.getBackgroundColor()),P=t.isCombed()?0:1,z={x:b+P,y:b+P,width:k-2*(b+P),height:F-2*(b+P)};if(t.isMultiline())h=(R=Wc(m,{alignment:t.getAlignment(),fontSize:null!=f?f:p,font:n,bounds:z})).lines,u=R.fontSize;else if(t.isCombed()){h=(R=qc(m,{fontSize:null!=f?f:p,font:n,bounds:z,cellCount:null!==(s=t.getMaxLength())&&void 0!==s?s:0})).cells,u=R.fontSize}else{var R;h=[(R=Lc(m,{alignment:t.getAlignment(),fontSize:null!=f?f:p,font:n,bounds:z})).line],u=R.fontSize}var O=null!==(l=null!=c?c:d)&&void 0!==l?l:C;Zc(c||void 0!==f?e:t.acroField,O,n,u);var D={x:0+b/2,y:0+b/2,width:k-b,height:F-b,borderWidth:null!=b?b:0,borderColor:A,textColor:O,font:n.name,fontSize:u,color:T,textLines:h,padding:P};return a(S,xc(D))},td=function(e,n,i){var o,s,l,h=Xc(n),u=Xc(e.acroField),c=Hc(n),d=Hc(e.acroField),f=n.getRectangle(),p=n.getAppearanceCharacteristics(),g=n.getBorderStyle(),v=null!==(o=e.getSelected()[0])&&void 0!==o?o:\"\",y=null!==(s=null==g?void 0:g.getWidth())&&void 0!==s?s:0,m=qh(null==p?void 0:p.getRotation()),b=Lh(f,m),w=b.width,x=b.height,k=vc(r(r({},f),{rotation:m})),F=Uu(0,0,0),S=Hu(null==p?void 0:p.getBorderColor()),C=Hu(null==p?void 0:p.getBackgroundColor()),A={x:y+1,y:y+1,width:w-2*(y+1),height:x-2*(y+1)},T=Lc(v,{alignment:t.TextAlignment.Left,fontSize:null!=c?c:d,font:i,bounds:A}),P=T.line,z=T.fontSize,R=null!==(l=null!=h?h:u)&&void 0!==l?l:F;Zc(h||void 0!==c?n:e.acroField,R,i,z);var O={x:0+y/2,y:0+y/2,width:w-y,height:x-y,borderWidth:null!=y?y:0,borderColor:S,textColor:R,font:i.name,fontSize:z,color:C,textLines:[P],padding:1};return a(k,xc(O))},ed=function(e,n,i){var o,s,l=Xc(n),h=Xc(e.acroField),u=Hc(n),c=Hc(e.acroField),d=n.getRectangle(),f=n.getAppearanceCharacteristics(),p=n.getBorderStyle(),g=null!==(o=null==p?void 0:p.getWidth())&&void 0!==o?o:0,v=qh(null==f?void 0:f.getRotation()),y=Lh(d,v),m=y.width,b=y.height,w=vc(r(r({},d),{rotation:v})),x=Uu(0,0,0),k=Hu(null==f?void 0:f.getBorderColor()),F=Hu(null==f?void 0:f.getBackgroundColor()),S=e.getOptions(),C=e.getSelected();e.isSorted()&&S.sort();for(var A=\"\",T=0,P=S.length;T<P;T++)A+=S[T],T<P-1&&(A+=\"\\n\");var z={x:g+1,y:g+1,width:m-2*(g+1),height:b-2*(g+1)},R=Wc(A,{alignment:t.TextAlignment.Left,fontSize:null!=u?u:c,font:i,bounds:z}),O=R.lines,D=R.fontSize,B=R.lineHeight,N=[];for(T=0,P=O.length;T<P;T++){var E=O[T];C.includes(E.text)&&N.push(T)}var j=Uu(.6,193/255,218/255),M=null!==(s=null!=l?l:h)&&void 0!==s?s:x;return Zc(l||void 0!==u?n:e.acroField,M,i,D),a(w,kc({x:0+g/2,y:0+g/2,width:m-g,height:b-g,borderWidth:null!=g?g:0,borderColor:k,textColor:M,font:i.name,fontSize:D,color:F,textLines:O,lineHeight:B,selectedColor:j,selectedLines:N,padding:1}))},nd=function(){function t(t,e,n){this.alreadyEmbedded=!1,On(t,\"ref\",[[Ro,\"PDFRef\"]]),On(e,\"doc\",[[Sd,\"PDFDocument\"]]),On(n,\"embedder\",[[Tl,\"PDFPageEmbedder\"]]),this.ref=t,this.doc=e,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(t){return On(t,\"factor\",[\"number\"]),{width:this.width*t,height:this.height*t}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}}))}))},t.of=function(e,n,r){return new t(e,n,r)},t}(),rd=function(){function t(t,e,n){this.modified=!0,On(t,\"ref\",[[Ro,\"PDFRef\"]]),On(e,\"doc\",[[Sd,\"PDFDocument\"]]),On(n,\"embedder\",[[ra,\"CustomFontEmbedder\"],[Jo,\"StandardFontEmbedder\"]]),this.ref=t,this.doc=e,this.name=n.fontName,this.embedder=n}return t.prototype.encodeText=function(t){return On(t,\"text\",[\"string\"]),this.modified=!0,this.embedder.encodeText(t)},t.prototype.widthOfTextAtSize=function(t,e){return On(t,\"text\",[\"string\"]),On(e,\"size\",[\"number\"]),this.embedder.widthOfTextAtSize(t,e)},t.prototype.heightAtSize=function(t,e){var n;return On(t,\"size\",[\"number\"]),Dn(null==e?void 0:e.descender,\"options.descender\",[\"boolean\"]),this.embedder.heightOfFontAtSize(t,{descender:null===(n=null==e?void 0:e.descender)||void 0===n||n})},t.prototype.sizeAtHeight=function(t){return On(t,\"height\",[\"number\"]),this.embedder.sizeOfFontAtHeight(t)},t.prototype.getCharacterSet=function(){return this.embedder instanceof Jo?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}}))}))},t.of=function(e,n,r){return new t(e,n,r)},t}(),id=function(){function t(t,e,n){On(t,\"ref\",[[Ro,\"PDFRef\"]]),On(e,\"doc\",[[Sd,\"PDFDocument\"]]),On(n,\"embedder\",[[ha,\"JpegEmbedder\"],[ul,\"PngEmbedder\"]]),this.ref=t,this.doc=e,this.width=n.width,this.height=n.height,this.embedder=n}return t.prototype.scale=function(t){return On(t,\"factor\",[\"number\"]),{width:this.width*t,height:this.height*t}},t.prototype.scaleToFit=function(t,e){On(t,\"width\",[\"number\"]),On(e,\"height\",[\"number\"]);var n=t/this.width,r=e/this.height,i=Math.min(n,r);return this.scale(i)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return i(this,void 0,void 0,(function(){var t,e,n;return o(this,(function(r){switch(r.label){case 0:return this.embedder?(this.embedTask||(e=(t=this).doc,n=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,n)),[4,this.embedTask]):[2];case 1:return r.sent(),this.embedder=void 0,[2]}}))}))},t.of=function(e,n,r){return new t(e,n,r)},t}();(Mc=t.ImageAlignment||(t.ImageAlignment={}))[Mc.Left=0]=\"Left\",Mc[Mc.Center=1]=\"Center\",Mc[Mc.Right=2]=\"Right\";var od,ad=function(t){Dn(null==t?void 0:t.x,\"options.x\",[\"number\"]),Dn(null==t?void 0:t.y,\"options.y\",[\"number\"]),Dn(null==t?void 0:t.width,\"options.width\",[\"number\"]),Dn(null==t?void 0:t.height,\"options.height\",[\"number\"]),Dn(null==t?void 0:t.textColor,\"options.textColor\",[[Object,\"Color\"]]),Dn(null==t?void 0:t.backgroundColor,\"options.backgroundColor\",[[Object,\"Color\"]]),Dn(null==t?void 0:t.borderColor,\"options.borderColor\",[[Object,\"Color\"]]),Dn(null==t?void 0:t.borderWidth,\"options.borderWidth\",[\"number\"]),Dn(null==t?void 0:t.rotate,\"options.rotate\",[[Object,\"Rotation\"]])},sd=function(){function e(t,e,n){On(t,\"acroField\",[[Vl,\"PDFAcroTerminal\"]]),On(e,\"ref\",[[Ro,\"PDFRef\"]]),On(n,\"doc\",[[Sd,\"PDFDocument\"]]),this.acroField=t,this.ref=e,this.doc=n}return e.prototype.getName=function(){var t;return null!==(t=this.acroField.getFullyQualifiedName())&&void 0!==t?t:\"\"},e.prototype.isReadOnly=function(){return this.acroField.hasFlag(t.AcroFieldFlags.ReadOnly)},e.prototype.enableReadOnly=function(){this.acroField.setFlagTo(t.AcroFieldFlags.ReadOnly,!0)},e.prototype.disableReadOnly=function(){this.acroField.setFlagTo(t.AcroFieldFlags.ReadOnly,!1)},e.prototype.isRequired=function(){return this.acroField.hasFlag(t.AcroFieldFlags.Required)},e.prototype.enableRequired=function(){this.acroField.setFlagTo(t.AcroFieldFlags.Required,!0)},e.prototype.disableRequired=function(){this.acroField.setFlagTo(t.AcroFieldFlags.Required,!1)},e.prototype.isExported=function(){return!this.acroField.hasFlag(t.AcroFieldFlags.NoExport)},e.prototype.enableExporting=function(){this.acroField.setFlagTo(t.AcroFieldFlags.NoExport,!1)},e.prototype.disableExporting=function(){this.acroField.setFlagTo(t.AcroFieldFlags.NoExport,!0)},e.prototype.needsAppearancesUpdate=function(){throw new Kn(this.constructor.name,\"needsAppearancesUpdate\")},e.prototype.defaultUpdateAppearances=function(t){throw new Kn(this.constructor.name,\"defaultUpdateAppearances\")},e.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},e.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},e.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},e.prototype.createWidget=function(e){var n,r=e.textColor,i=e.backgroundColor,o=e.borderColor,a=e.borderWidth,s=Wh(e.rotate),l=e.caption,h=e.x,u=e.y,c=e.width+a,d=e.height+a,f=Boolean(e.hidden),p=e.page;jn(s,\"degreesAngle\",90);var g=Ul.create(this.doc.context,this.ref),v=Kh({x:h,y:u,width:c,height:d},a,s);g.setRectangle(v),p&&g.setP(p);var y=g.getOrCreateAppearanceCharacteristics();i&&y.setBackgroundColor(_u(i)),y.setRotation(s),l&&y.setCaptions({normal:l}),o&&y.setBorderColor(_u(o));var m=g.getOrCreateBorderStyle();if(void 0!==a&&m.setWidth(a),g.setFlagTo(t.AnnotationFlags.Print,!0),g.setFlagTo(t.AnnotationFlags.Hidden,f),g.setFlagTo(t.AnnotationFlags.Invisible,!1),r){var b=(null!==(n=this.acroField.getDefaultAppearance())&&void 0!==n?n:\"\")+\"\\n\"+Ku(r).toString();this.acroField.setDefaultAppearance(b)}return g},e.prototype.updateWidgetAppearanceWithFont=function(t,e,n){var r=n.normal,i=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,r,e),rollover:i&&this.createAppearanceStream(t,i,e),down:o&&this.createAppearanceStream(t,o,e)})},e.prototype.updateOnOffWidgetAppearance=function(t,e,n){var r=n.normal,i=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,r,e),rollover:i&&this.createAppearanceDict(t,i,e),down:o&&this.createAppearanceDict(t,o,e)})},e.prototype.updateWidgetAppearances=function(t,e){var n=e.normal,r=e.rollover,i=e.down;t.setNormalAppearance(n),r?t.setRolloverAppearance(r):t.removeRolloverAppearance(),i?t.setDownAppearance(i):t.removeDownAppearance()},e.prototype.createAppearanceStream=function(t,e,n){var r,i=this.acroField.dict.context,o=t.getRectangle(),a=o.width,s=o.height,l=n&&{Font:(r={},r[n.name]=n.ref,r)},h=i.formXObject(e,{Resources:l,BBox:i.obj([0,0,a,s]),Matrix:i.obj([1,0,0,1,0,0])});return i.register(h)},e.prototype.createImageAppearanceStream=function(e,n,i){var o,s,l=this.acroField.dict.context,h=e.getRectangle(),u=e.getAppearanceCharacteristics(),c=e.getBorderStyle(),d=null!==(s=null==c?void 0:c.getWidth())&&void 0!==s?s:0,f=qh(null==u?void 0:u.getRotation()),p=vc(r(r({},h),{rotation:f})),g=Lh(h,f),v=n.scaleToFit(g.width-2*d,g.height-2*d),y={x:d,y:d,width:v.width,height:v.height,rotate:Eh(0),xSkew:Eh(0),ySkew:Eh(0)};i===t.ImageAlignment.Center?(y.x+=(g.width-2*d)/2-v.width/2,y.y+=(g.height-2*d)/2-v.height/2):i===t.ImageAlignment.Right&&(y.x=g.width-d-v.width,y.y=g.height-d-v.height);var m=this.doc.context.addRandomSuffix(\"Image\",10),b=a(p,sc(m,y)),w={XObject:(o={},o[m]=n.ref,o)},x=l.formXObject(b,{Resources:w,BBox:l.obj([0,0,h.width,h.height]),Matrix:l.obj([1,0,0,1,0,0])});return l.register(x)},e.prototype.createAppearanceDict=function(t,e,n){var r=this.acroField.dict.context,i=this.createAppearanceStream(t,e.on),o=this.createAppearanceStream(t,e.off),a=r.obj({});return a.set(n,i),a.set(Fo.of(\"Off\"),o),a},e}(),ld=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return On(e,\"acroCheckBox\",[[ql,\"PDFAcroCheckBox\"]]),i.acroField=e,i}return n(e,t),e.prototype.check=function(){var t,e=null!==(t=this.acroField.getOnValue())&&void 0!==t?t:Fo.of(\"Yes\");this.markAsDirty(),this.acroField.setValue(e)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(Fo.of(\"Off\"))},e.prototype.isChecked=function(){var t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()},e.prototype.addToPage=function(t,e){var n,r,i,o,a,s;On(t,\"page\",[[Ad,\"PDFPage\"]]),ad(e),e||(e={}),\"textColor\"in e||(e.textColor=Uu(0,0,0)),\"backgroundColor\"in e||(e.backgroundColor=Uu(1,1,1)),\"borderColor\"in e||(e.borderColor=Uu(0,0,0)),\"borderWidth\"in e||(e.borderWidth=1);var l=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:null!==(i=e.width)&&void 0!==i?i:50,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:Eh(0),hidden:e.hidden,page:t.ref}),h=this.doc.context.register(l.dict);this.acroField.addWidget(h),l.setAppearanceState(Fo.of(\"Off\")),this.updateWidgetAppearance(l,Fo.of(\"Yes\")),t.node.addAnnot(h)},e.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){var i=e[n],o=i.getAppearanceState(),a=null===(t=i.getAppearances())||void 0===t?void 0:t.normal;if(!(a instanceof Co))return!0;if(o&&!a.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){var e;Dn(t,\"provider\",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],a=null!==(e=o.getOnValue())&&void 0!==e?e:Fo.of(\"Yes\");a&&this.updateWidgetAppearance(o,a,t)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:Yc)(this,t));this.updateOnOffWidgetAppearance(t,e,r)},e.of=function(t,n,r){return new e(t,n,r)},e}(sd),hd=function(e){function r(t,n,r){var i=e.call(this,t,n,r)||this;return On(t,\"acroComboBox\",[[Gl,\"PDFAcroComboBox\"]]),i.acroField=t,i}return n(r,e),r.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),n=0,r=e.length;n<r;n++){var i=t[n],o=i.display,a=i.value;e[n]=(null!=o?o:a).decodeText()}return e},r.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t[n].decodeText();return e},r.prototype.setOptions=function(t){On(t,\"options\",[Array]);for(var e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]={value:Yo.fromText(t[n])};this.acroField.setOptions(e)},r.prototype.addOptions=function(t){On(t,\"options\",[\"string\",Array]);for(var e=Array.isArray(t)?t:[t],n=this.acroField.getOptions(),r=new Array(e.length),i=0,o=e.length;i<o;i++)r[i]={value:Yo.fromText(e[i])};this.acroField.setOptions(n.concat(r))},r.prototype.select=function(t,e){void 0===e&&(e=!1),On(t,\"options\",[\"string\",Array]),On(e,\"merge\",[\"boolean\"]);var n=Array.isArray(t)?t:[t],r=this.getOptions();n.find((function(t){return!r.includes(t)}))&&this.enableEditing(),this.markAsDirty(),(n.length>1||1===n.length&&e)&&this.enableMultiselect();for(var i=new Array(n.length),o=0,a=n.length;o<a;o++)i[o]=Yo.fromText(n[o]);if(e){var s=this.acroField.getValues();this.acroField.setValues(s.concat(i))}else this.acroField.setValues(i)},r.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},r.prototype.setFontSize=function(t){In(t,\"fontSize\"),this.acroField.setFontSize(t),this.markAsDirty()},r.prototype.isEditable=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.Edit)},r.prototype.enableEditing=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Edit,!0)},r.prototype.disableEditing=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Edit,!1)},r.prototype.isSorted=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.Sort)},r.prototype.enableSorting=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Sort,!0)},r.prototype.disableSorting=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Sort,!1)},r.prototype.isMultiselect=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.MultiSelect)},r.prototype.enableMultiselect=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.MultiSelect,!0)},r.prototype.disableMultiselect=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.MultiSelect,!1)},r.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(t.AcroChoiceFlags.DoNotSpellCheck)},r.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.DoNotSpellCheck,!1)},r.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.DoNotSpellCheck,!0)},r.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.CommitOnSelChange)},r.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.CommitOnSelChange,!0)},r.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.CommitOnSelChange,!1)},r.prototype.addToPage=function(t,e){var n,r,i,o,a,s,l;On(t,\"page\",[[Ad,\"PDFPage\"]]),ad(e),e||(e={}),\"textColor\"in e||(e.textColor=Uu(0,0,0)),\"backgroundColor\"in e||(e.backgroundColor=Uu(1,1,1)),\"borderColor\"in e||(e.borderColor=Uu(0,0,0)),\"borderWidth\"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:Eh(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(h.dict);this.acroField.addWidget(u);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(u)},r.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof Ao))return!0}return!1},r.prototype.defaultUpdateAppearances=function(t){On(t,\"font\",[[rd,\"PDFFont\"]]),this.updateAppearances(t)},r.prototype.updateAppearances=function(t,e){On(t,\"font\",[[rd,\"PDFFont\"]]),Dn(e,\"provider\",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},r.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:td)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,r)},r.of=function(t,e,n){return new r(t,e,n)},r}(sd),ud=function(e){function r(t,n,r){var i=e.call(this,t,n,r)||this;return On(t,\"acroListBox\",[[Jl,\"PDFAcroListBox\"]]),i.acroField=t,i}return n(r,e),r.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),n=0,r=e.length;n<r;n++){var i=t[n],o=i.display,a=i.value;e[n]=(null!=o?o:a).decodeText()}return e},r.prototype.getSelected=function(){for(var t=this.acroField.getValues(),e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t[n].decodeText();return e},r.prototype.setOptions=function(t){On(t,\"options\",[Array]),this.markAsDirty();for(var e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]={value:Yo.fromText(t[n])};this.acroField.setOptions(e)},r.prototype.addOptions=function(t){On(t,\"options\",[\"string\",Array]),this.markAsDirty();for(var e=Array.isArray(t)?t:[t],n=this.acroField.getOptions(),r=new Array(e.length),i=0,o=e.length;i<o;i++)r[i]={value:Yo.fromText(e[i])};this.acroField.setOptions(n.concat(r))},r.prototype.select=function(t,e){void 0===e&&(e=!1),On(t,\"options\",[\"string\",Array]),On(e,\"merge\",[\"boolean\"]);var n=Array.isArray(t)?t:[t],r=this.getOptions();Tn(n,\"option\",r),this.markAsDirty(),(n.length>1||1===n.length&&e)&&this.enableMultiselect();for(var i=new Array(n.length),o=0,a=n.length;o<a;o++)i[o]=Yo.fromText(n[o]);if(e){var s=this.acroField.getValues();this.acroField.setValues(s.concat(i))}else this.acroField.setValues(i)},r.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},r.prototype.setFontSize=function(t){In(t,\"fontSize\"),this.acroField.setFontSize(t),this.markAsDirty()},r.prototype.isSorted=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.Sort)},r.prototype.enableSorting=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Sort,!0)},r.prototype.disableSorting=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.Sort,!1)},r.prototype.isMultiselect=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.MultiSelect)},r.prototype.enableMultiselect=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.MultiSelect,!0)},r.prototype.disableMultiselect=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.MultiSelect,!1)},r.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(t.AcroChoiceFlags.CommitOnSelChange)},r.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.CommitOnSelChange,!0)},r.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(t.AcroChoiceFlags.CommitOnSelChange,!1)},r.prototype.addToPage=function(t,e){var n,r,i,o,a,s,l;On(t,\"page\",[[Ad,\"PDFPage\"]]),ad(e),e||(e={}),\"textColor\"in e||(e.textColor=Uu(0,0,0)),\"backgroundColor\"in e||(e.backgroundColor=Uu(1,1,1)),\"borderColor\"in e||(e.borderColor=Uu(0,0,0)),\"borderWidth\"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:100,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:Eh(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(h.dict);this.acroField.addWidget(u);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(u)},r.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof Ao))return!0}return!1},r.prototype.defaultUpdateAppearances=function(t){On(t,\"font\",[[rd,\"PDFFont\"]]),this.updateAppearances(t)},r.prototype.updateAppearances=function(t,e){On(t,\"font\",[[rd,\"PDFFont\"]]),Dn(e,\"provider\",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},r.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:ed)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,r)},r.of=function(t,e,n){return new r(t,e,n)},r}(sd),cd=function(e){function r(t,n,r){var i=e.call(this,t,n,r)||this;return On(t,\"acroRadioButton\",[[Yl,\"PDFAcroRadioButton\"]]),i.acroField=t,i}return n(r,e),r.prototype.getOptions=function(){var t=this.acroField.getExportValues();if(t){for(var e=new Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t[n].decodeText();return e}var i=this.acroField.getOnValues(),o=new Array(i.length);for(n=0,r=o.length;n<r;n++)o[n]=i[n].decodeText();return o},r.prototype.getSelected=function(){var t=this.acroField.getValue();if(t!==Fo.of(\"Off\")){var e=this.acroField.getExportValues();if(e)for(var n=this.acroField.getOnValues(),r=0,i=n.length;r<i;r++)if(n[r]===t)return e[r].decodeText();return t.decodeText()}},r.prototype.select=function(t){On(t,\"option\",[\"string\"]);var e=this.getOptions();Cn(t,\"option\",e),this.markAsDirty();var n=this.acroField.getOnValues(),r=this.acroField.getExportValues();if(r)for(var i=0,o=r.length;i<o;i++)r[i].decodeText()===t&&this.acroField.setValue(n[i]);else for(i=0,o=n.length;i<o;i++){var a=n[i];a.decodeText()===t&&this.acroField.setValue(a)}},r.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(Fo.of(\"Off\"))},r.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(t.AcroButtonFlags.NoToggleToOff)},r.prototype.enableOffToggling=function(){this.acroField.setFlagTo(t.AcroButtonFlags.NoToggleToOff,!1)},r.prototype.disableOffToggling=function(){this.acroField.setFlagTo(t.AcroButtonFlags.NoToggleToOff,!0)},r.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(t.AcroButtonFlags.RadiosInUnison)},r.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(t.AcroButtonFlags.RadiosInUnison,!1)},r.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(t.AcroButtonFlags.RadiosInUnison,!0)},r.prototype.addOptionToPage=function(t,e,n){var r,i,o,a,s,l,h,u,c;On(t,\"option\",[\"string\"]),On(e,\"page\",[[Ad,\"PDFPage\"]]),ad(n);var d=this.createWidget({x:null!==(r=null==n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null==n?void 0:n.y)&&void 0!==i?i:0,width:null!==(o=null==n?void 0:n.width)&&void 0!==o?o:50,height:null!==(a=null==n?void 0:n.height)&&void 0!==a?a:50,textColor:null!==(s=null==n?void 0:n.textColor)&&void 0!==s?s:Uu(0,0,0),backgroundColor:null!==(l=null==n?void 0:n.backgroundColor)&&void 0!==l?l:Uu(1,1,1),borderColor:null!==(h=null==n?void 0:n.borderColor)&&void 0!==h?h:Uu(0,0,0),borderWidth:null!==(u=null==n?void 0:n.borderWidth)&&void 0!==u?u:1,rotate:null!==(c=null==n?void 0:n.rotate)&&void 0!==c?c:Eh(0),hidden:null==n?void 0:n.hidden,page:e.ref}),f=this.doc.context.register(d.dict),p=this.acroField.addWidgetWithOpt(f,Yo.fromText(t),!this.isMutuallyExclusive());d.setAppearanceState(Fo.of(\"Off\")),this.updateWidgetAppearance(d,p),e.node.addAnnot(f)},r.prototype.needsAppearancesUpdate=function(){for(var t,e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){var i=e[n],o=i.getAppearanceState(),a=null===(t=i.getAppearances())||void 0===t?void 0:t.normal;if(!(a instanceof Co))return!0;if(o&&!a.has(o))return!0}return!1},r.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},r.prototype.updateAppearances=function(t){Dn(t,\"provider\",[Function]);for(var e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){var i=e[n],o=i.getOnValue();o&&this.updateWidgetAppearance(i,o,t)}},r.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:Jc)(this,t));this.updateOnOffWidgetAppearance(t,e,r)},r.of=function(t,e,n){return new r(t,e,n)},r}(sd),dd=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return On(e,\"acroSignature\",[[_l,\"PDFAcroSignature\"]]),i.acroField=e,i}return n(e,t),e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(t,n,r){return new e(t,n,r)},e}(sd),fd=function(e){function r(t,n,r){var i=e.call(this,t,n,r)||this;return On(t,\"acroText\",[[Xl,\"PDFAcroText\"]]),i.acroField=t,i}return n(r,e),r.prototype.getText=function(){var t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new Bc(this.getName());return null==t?void 0:t.decodeText()},r.prototype.setText=function(t){Dn(t,\"text\",[\"string\"]);var e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new Ec(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(Yo.fromText(t)):this.acroField.removeValue()},r.prototype.getAlignment=function(){var e=this.acroField.getQuadding();return 0===e?t.TextAlignment.Left:1===e?t.TextAlignment.Center:2===e?t.TextAlignment.Right:t.TextAlignment.Left},r.prototype.setAlignment=function(e){Cn(e,\"alignment\",t.TextAlignment),this.markAsDirty(),this.acroField.setQuadding(e)},r.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},r.prototype.setMaxLength=function(t){if(En(t,\"maxLength\",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{var e=this.getText();if(e&&e.length>t)throw new jc(e.length,t,this.getName());this.acroField.setMaxLength(t)}},r.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},r.prototype.setImage=function(e){for(var n=this.getAlignment(),r=n===t.TextAlignment.Center?t.ImageAlignment.Center:n===t.TextAlignment.Right?t.ImageAlignment.Right:t.ImageAlignment.Left,i=this.acroField.getWidgets(),o=0,a=i.length;o<a;o++){var s=i[o],l=this.createImageAppearanceStream(s,e,r);this.updateWidgetAppearances(s,{normal:l})}this.markAsClean()},r.prototype.setFontSize=function(t){In(t,\"fontSize\"),this.acroField.setFontSize(t),this.markAsDirty()},r.prototype.isMultiline=function(){return this.acroField.hasFlag(t.AcroTextFlags.Multiline)},r.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(t.AcroTextFlags.Multiline,!0)},r.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(t.AcroTextFlags.Multiline,!1)},r.prototype.isPassword=function(){return this.acroField.hasFlag(t.AcroTextFlags.Password)},r.prototype.enablePassword=function(){this.acroField.setFlagTo(t.AcroTextFlags.Password,!0)},r.prototype.disablePassword=function(){this.acroField.setFlagTo(t.AcroTextFlags.Password,!1)},r.prototype.isFileSelector=function(){return this.acroField.hasFlag(t.AcroTextFlags.FileSelect)},r.prototype.enableFileSelection=function(){this.acroField.setFlagTo(t.AcroTextFlags.FileSelect,!0)},r.prototype.disableFileSelection=function(){this.acroField.setFlagTo(t.AcroTextFlags.FileSelect,!1)},r.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(t.AcroTextFlags.DoNotSpellCheck)},r.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(t.AcroTextFlags.DoNotSpellCheck,!1)},r.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(t.AcroTextFlags.DoNotSpellCheck,!0)},r.prototype.isScrollable=function(){return!this.acroField.hasFlag(t.AcroTextFlags.DoNotScroll)},r.prototype.enableScrolling=function(){this.acroField.setFlagTo(t.AcroTextFlags.DoNotScroll,!1)},r.prototype.disableScrolling=function(){this.acroField.setFlagTo(t.AcroTextFlags.DoNotScroll,!0)},r.prototype.isCombed=function(){return this.acroField.hasFlag(t.AcroTextFlags.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0!==this.getMaxLength()},r.prototype.enableCombing=function(){if(void 0===this.getMaxLength()){console.warn(\"PDFTextFields must have a max length in order to be combed\")}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(t.AcroTextFlags.Comb,!0)},r.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(t.AcroTextFlags.Comb,!1)},r.prototype.isRichFormatted=function(){return this.acroField.hasFlag(t.AcroTextFlags.RichText)},r.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(t.AcroTextFlags.RichText,!0)},r.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(t.AcroTextFlags.RichText,!1)},r.prototype.addToPage=function(t,e){var n,r,i,o,a,s,l;On(t,\"page\",[[Ad,\"PDFPage\"]]),ad(e),e||(e={}),\"textColor\"in e||(e.textColor=Uu(0,0,0)),\"backgroundColor\"in e||(e.backgroundColor=Uu(1,1,1)),\"borderColor\"in e||(e.borderColor=Uu(0,0,0)),\"borderWidth\"in e||(e.borderWidth=1);var h=this.createWidget({x:null!==(n=e.x)&&void 0!==n?n:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:null!==(i=e.width)&&void 0!==i?i:200,height:null!==(o=e.height)&&void 0!==o?o:50,textColor:e.textColor,backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:null!==(a=e.borderWidth)&&void 0!==a?a:0,rotate:null!==(s=e.rotate)&&void 0!==s?s:Eh(0),hidden:e.hidden,page:t.ref}),u=this.doc.context.register(h.dict);this.acroField.addWidget(u);var c=null!==(l=e.font)&&void 0!==l?l:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(h,c),t.node.addAnnot(u)},r.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof Ao))return!0}return!1},r.prototype.defaultUpdateAppearances=function(t){On(t,\"font\",[[rd,\"PDFFont\"]]),this.updateAppearances(t)},r.prototype.updateAppearances=function(t,e){On(t,\"font\",[[rd,\"PDFFont\"]]),Dn(e,\"provider\",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r];this.updateWidgetAppearance(o,t,e)}this.markAsClean()},r.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:$c)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,r)},r.of=function(t,e,n){return new r(t,e,n)},r}(sd);(od=t.StandardFonts||(t.StandardFonts={})).Courier=\"Courier\",od.CourierBold=\"Courier-Bold\",od.CourierOblique=\"Courier-Oblique\",od.CourierBoldOblique=\"Courier-BoldOblique\",od.Helvetica=\"Helvetica\",od.HelveticaBold=\"Helvetica-Bold\",od.HelveticaOblique=\"Helvetica-Oblique\",od.HelveticaBoldOblique=\"Helvetica-BoldOblique\",od.TimesRoman=\"Times-Roman\",od.TimesRomanBold=\"Times-Bold\",od.TimesRomanItalic=\"Times-Italic\",od.TimesRomanBoldItalic=\"Times-BoldItalic\",od.Symbol=\"Symbol\",od.ZapfDingbats=\"ZapfDingbats\";var pd,gd=function(){function e(e,n){var r=this;this.embedDefaultFont=function(){return r.doc.embedStandardFont(t.StandardFonts.Helvetica)},On(e,\"acroForm\",[[sh,\"PDFAcroForm\"]]),On(n,\"doc\",[[Sd,\"PDFDocument\"]]),this.acroForm=e,this.doc=n,this.dirtyFields=new Set,this.defaultFontCache=Ln.populatedBy(this.embedDefaultFont)}return e.prototype.hasXFA=function(){return this.acroForm.dict.has(Fo.of(\"XFA\"))},e.prototype.deleteXFA=function(){this.acroForm.dict.delete(Fo.of(\"XFA\"))},e.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),e=[],n=0,r=t.length;n<r;n++){var i=t[n],o=i[0],a=i[1],s=vd(o,a,this.doc);s&&e.push(s)}return e},e.prototype.getFieldMaybe=function(t){On(t,\"name\",[\"string\"]);for(var e=this.getFields(),n=0,r=e.length;n<r;n++){var i=e[n];if(i.getName()===t)return i}},e.prototype.getField=function(t){On(t,\"name\",[\"string\"]);var e=this.getFieldMaybe(t);if(e)return e;throw new Tc(t)},e.prototype.getButton=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof Td)return e;throw new Pc(t,Td,e)},e.prototype.getCheckBox=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof ld)return e;throw new Pc(t,ld,e)},e.prototype.getDropdown=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof hd)return e;throw new Pc(t,hd,e)},e.prototype.getOptionList=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof ud)return e;throw new Pc(t,ud,e)},e.prototype.getRadioGroup=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof cd)return e;throw new Pc(t,cd,e)},e.prototype.getSignature=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof dd)return e;throw new Pc(t,dd,e)},e.prototype.getTextField=function(t){On(t,\"name\",[\"string\"]);var e=this.getField(t);if(e instanceof fd)return e;throw new Pc(t,fd,e)},e.prototype.createButton=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=Zl.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),Td.of(r,r.ref,this.doc)},e.prototype.createCheckBox=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=ql.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),ld.of(r,r.ref,this.doc)},e.prototype.createDropdown=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=Gl.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),hd.of(r,r.ref,this.doc)},e.prototype.createOptionList=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=Jl.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),ud.of(r,r.ref,this.doc)},e.prototype.createRadioGroup=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=Yl.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),cd.of(r,r.ref,this.doc)},e.prototype.createTextField=function(t){On(t,\"name\",[\"string\"]);var e=yd(t),n=this.findOrCreateNonTerminals(e.nonTerminal),r=Xl.create(this.doc.context);return r.setPartialName(e.terminal),md(n,[r,r.ref],e.terminal),fd.of(r,r.ref,this.doc)},e.prototype.flatten=function(t){void 0===t&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var e=this.getFields(),n=0,i=e.length;n<i;n++){for(var o=e[n],s=o.acroField.getWidgets(),l=0,h=s.length;l<h;l++){var u=s[l],c=this.findWidgetPage(u),d=this.findWidgetAppearanceRef(o,u),f=c.node.newXObject(\"FlatWidget\",d),p=u.getRectangle(),g=a([au(),Yh(p.x,p.y)],vc(r(r({},p),{rotation:0})),[Pu(f),su()]).filter(Boolean);c.pushOperators.apply(c,g)}this.removeField(o)}},e.prototype.removeField=function(t){for(var e=t.acroField.getWidgets(),n=new Set,r=0,i=e.length;r<i;r++){var o=e[r],a=this.findWidgetAppearanceRef(t,o),s=this.findWidgetPage(o);n.add(s),s.node.removeAnnot(a)}n.forEach((function(e){return e.node.removeAnnot(t.ref)})),this.acroForm.removeField(t.acroField);for(var l=t.acroField.normalizedEntries().Kids,h=l.size(),u=0;u<h;u++){var c=l.get(u);c instanceof Ro&&this.doc.context.delete(c)}this.doc.context.delete(t.ref)},e.prototype.updateFieldAppearances=function(t){Dn(t,\"font\",[[rd,\"PDFFont\"]]),t=null!=t?t:this.getDefaultFont();for(var e=this.getFields(),n=0,r=e.length;n<r;n++){var i=e[n];i.needsAppearancesUpdate()&&i.defaultUpdateAppearances(t)}},e.prototype.markFieldAsDirty=function(t){Dn(t,\"fieldRef\",[[Ro,\"PDFRef\"]]),this.dirtyFields.add(t)},e.prototype.markFieldAsClean=function(t){Dn(t,\"fieldRef\",[[Ro,\"PDFRef\"]]),this.dirtyFields.delete(t)},e.prototype.fieldIsDirty=function(t){return Dn(t,\"fieldRef\",[[Ro,\"PDFRef\"]]),this.dirtyFields.has(t)},e.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},e.prototype.findWidgetPage=function(t){var e=t.P(),n=this.doc.getPages().find((function(t){return t.ref===e}));if(void 0===n){var r=this.doc.context.getObjectRef(t.dict);if(void 0===r)throw new Error(\"Could not find PDFRef for PDFObject\");if(void 0===(n=this.doc.findPageForAnnotationRef(r)))throw new Error(\"Could not find page for PDFRef \"+r)}return n},e.prototype.findWidgetAppearanceRef=function(t,e){var n,r=e.getNormalAppearance();if(r instanceof Co&&(t instanceof ld||t instanceof cd)){var i=t.acroField.getValue(),o=null!==(n=r.get(i))&&void 0!==n?n:r.get(Fo.of(\"Off\"));o instanceof Ro&&(r=o)}if(!(r instanceof Ro)){var a=t.getName();throw new Error(\"Failed to extract appearance ref for: \"+a)}return r},e.prototype.findOrCreateNonTerminals=function(t){for(var e=[this.acroForm],n=0,r=t.length;n<r;n++){var i=t[n];if(!i)throw new Oc(i);var o=e[0],a=e[1],s=this.findNonTerminal(i,o);if(s)e=s;else{var l=Hl.create(this.doc.context);l.setPartialName(i),l.setParent(a);var h=this.doc.context.register(l.dict);o.addField(h),e=[l,h]}}return e},e.prototype.findNonTerminal=function(t,e){for(var n=e instanceof sh?this.acroForm.getFields():Ql(e.Kids()),r=0,i=n.length;r<i;r++){var o=n[r],a=o[0],s=o[1];if(a.getPartialName()===t){if(a instanceof Hl)return[a,s];throw new Rc(t)}}},e.of=function(t,n){return new e(t,n)},e}(),vd=function(t,e,n){return t instanceof Zl?Td.of(t,e,n):t instanceof ql?ld.of(t,e,n):t instanceof Gl?hd.of(t,e,n):t instanceof Jl?ud.of(t,e,n):t instanceof Xl?fd.of(t,e,n):t instanceof Yl?cd.of(t,e,n):t instanceof _l?dd.of(t,e,n):void 0},yd=function(t){if(0===t.length)throw new Error(\"PDF field names must not be empty strings\");for(var e=t.split(\".\"),n=0,r=e.length;n<r;n++)if(\"\"===e[n])throw new Error('Periods in PDF field names must be separated by at least one character: \"'+t+'\"');return 1===e.length?{nonTerminal:[],terminal:e[0]}:{nonTerminal:e.slice(0,e.length-1),terminal:e[e.length-1]}},md=function(t,e,n){for(var r=t[0],i=t[1],o=e[0],a=e[1],s=r.normalizedEntries(),l=(Ql(\"Kids\"in s?s.Kids:s.Fields)),h=0,u=l.length;h<u;h++)if(l[h][0].getPartialName()===n)throw new Rc(n);r.addField(a),o.setParent(i)},bd={\"4A0\":[4767.87,6740.79],\"2A0\":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]};(pd=t.ParseSpeeds||(t.ParseSpeeds={}))[pd.Fastest=1/0]=\"Fastest\",pd[pd.Fast=1500]=\"Fast\",pd[pd.Medium=500]=\"Medium\",pd[pd.Slow=100]=\"Slow\";var wd,xd=function(){function t(t,e,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=n}return t.prototype.embed=function(){return i(this,void 0,void 0,(function(){var t,e,n,r;return o(this,(function(i){switch(i.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=i.sent(),this.doc.catalog.has(Fo.of(\"Names\"))||this.doc.catalog.set(Fo.of(\"Names\"),this.doc.context.obj({})),(e=this.doc.catalog.lookup(Fo.of(\"Names\"),Co)).has(Fo.of(\"EmbeddedFiles\"))||e.set(Fo.of(\"EmbeddedFiles\"),this.doc.context.obj({})),(n=e.lookup(Fo.of(\"EmbeddedFiles\"),Co)).has(Fo.of(\"Names\"))||n.set(Fo.of(\"Names\"),this.doc.context.obj([])),(r=n.lookup(Fo.of(\"Names\"),fo)).push(Yo.fromText(this.embedder.fileName)),r.push(t),this.doc.catalog.has(Fo.of(\"AF\"))||this.doc.catalog.set(Fo.of(\"AF\"),this.doc.context.obj([])),this.doc.catalog.lookup(Fo.of(\"AF\"),fo).push(t),this.alreadyEmbedded=!0,i.label=2;case 2:return[2]}}))}))},t.of=function(e,n,r){return new t(e,n,r)},t}(),kd=function(){function t(t,e,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=n}return t.prototype.embed=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a,s;return o(this,(function(o){switch(o.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,e=t.catalog,n=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:r=o.sent(),e.has(Fo.of(\"Names\"))||e.set(Fo.of(\"Names\"),n.obj({})),(i=e.lookup(Fo.of(\"Names\"),Co)).has(Fo.of(\"JavaScript\"))||i.set(Fo.of(\"JavaScript\"),n.obj({})),(a=i.lookup(Fo.of(\"JavaScript\"),Co)).has(Fo.of(\"Names\"))||a.set(Fo.of(\"Names\"),n.obj([])),(s=a.lookup(Fo.of(\"Names\"),fo)).push(Yo.fromText(this.embedder.scriptName)),s.push(r),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}}))}))},t.of=function(e,n,r){return new t(e,n,r)},t}(),Fd=function(){function t(t,e){this.script=t,this.scriptName=e}return t.for=function(e,n){return new t(e,n)},t.prototype.embedIntoContext=function(t,e){return i(this,void 0,void 0,(function(){var n;return o(this,(function(r){return n=t.obj({Type:\"Action\",S:\"JavaScript\",JS:Yo.fromText(this.script)}),e?(t.assign(e,n),[2,e]):[2,t.register(n)]}))}))},t}(),Sd=function(){function e(t,e,n){var r=this;if(this.defaultWordBreaks=[\" \"],this.computePages=function(){var t=[];return r.catalog.Pages().traverse((function(e,n){if(e instanceof Uo){var i=r.pageMap.get(e);i||(i=Ad.of(e,n,r),r.pageMap.set(e,i)),t.push(i)}})),t},this.getOrCreateForm=function(){var t=r.catalog.getOrCreateAcroForm();return gd.of(t,r)},On(t,\"context\",[[Io,\"PDFContext\"]]),On(e,\"ignoreEncryption\",[\"boolean\"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=Ln.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=Ln.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new Fc;n&&this.updateInfoDict()}return e.load=function(n,r){return void 0===r&&(r={}),i(this,void 0,void 0,(function(){var i,a,s,l,h,u,c,d,f,p,g;return o(this,(function(o){switch(o.label){case 0:return i=r.ignoreEncryption,a=void 0!==i&&i,s=r.parseSpeed,l=void 0===s?t.ParseSpeeds.Slow:s,h=r.throwOnInvalidObject,u=void 0!==h&&h,c=r.updateMetadata,d=void 0===c||c,f=r.capNumbers,p=void 0!==f&&f,On(n,\"pdf\",[\"string\",Uint8Array,ArrayBuffer]),On(a,\"ignoreEncryption\",[\"boolean\"]),On(l,\"parseSpeed\",[\"number\"]),On(u,\"throwOnInvalidObject\",[\"boolean\"]),g=_(n),[4,Ph.forBytesWithOptions(g,l,u,p).parseDocument()];case 1:return[2,new e(o.sent(),a,d)]}}))}))},e.create=function(t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var n,r,i,a,s,l;return o(this,(function(o){return n=t.updateMetadata,r=void 0===n||n,i=Io.create(),a=hh.withContext(i),s=i.register(a),l=lh.withContextAndPages(i,s),i.trailerInfo.Root=i.register(l),[2,new e(i,!1,r)]}))}))},e.prototype.registerFontkit=function(t){this.fontkit=t},e.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn(\"Removing XFA form data as pdf-lib does not support reading or writing XFA\"),t.deleteXFA()),t},e.prototype.getTitle=function(){var t=this.getInfoDict().lookup(Fo.Title);if(t)return Cd(t),t.decodeText()},e.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(Fo.Author);if(t)return Cd(t),t.decodeText()},e.prototype.getSubject=function(){var t=this.getInfoDict().lookup(Fo.Subject);if(t)return Cd(t),t.decodeText()},e.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(Fo.Keywords);if(t)return Cd(t),t.decodeText()},e.prototype.getCreator=function(){var t=this.getInfoDict().lookup(Fo.Creator);if(t)return Cd(t),t.decodeText()},e.prototype.getProducer=function(){var t=this.getInfoDict().lookup(Fo.Producer);if(t)return Cd(t),t.decodeText()},e.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(Fo.CreationDate);if(t)return Cd(t),t.decodeDate()},e.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(Fo.ModDate);if(t)return Cd(t),t.decodeDate()},e.prototype.setTitle=function(t,e){On(t,\"title\",[\"string\"]);var n=Fo.of(\"Title\");(this.getInfoDict().set(n,Yo.fromText(t)),null==e?void 0:e.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},e.prototype.setAuthor=function(t){On(t,\"author\",[\"string\"]);var e=Fo.of(\"Author\");this.getInfoDict().set(e,Yo.fromText(t))},e.prototype.setSubject=function(t){On(t,\"author\",[\"string\"]);var e=Fo.of(\"Subject\");this.getInfoDict().set(e,Yo.fromText(t))},e.prototype.setKeywords=function(t){On(t,\"keywords\",[Array]);var e=Fo.of(\"Keywords\");this.getInfoDict().set(e,Yo.fromText(t.join(\" \")))},e.prototype.setCreator=function(t){On(t,\"creator\",[\"string\"]);var e=Fo.of(\"Creator\");this.getInfoDict().set(e,Yo.fromText(t))},e.prototype.setProducer=function(t){On(t,\"creator\",[\"string\"]);var e=Fo.of(\"Producer\");this.getInfoDict().set(e,Yo.fromText(t))},e.prototype.setLanguage=function(t){On(t,\"language\",[\"string\"]);var e=Fo.of(\"Lang\");this.catalog.set(e,na.of(t))},e.prototype.setCreationDate=function(t){On(t,\"creationDate\",[[Date,\"Date\"]]);var e=Fo.of(\"CreationDate\");this.getInfoDict().set(e,na.fromDate(t))},e.prototype.setModificationDate=function(t){On(t,\"modificationDate\",[[Date,\"Date\"]]);var e=Fo.of(\"ModDate\");this.getInfoDict().set(e,na.fromDate(t))},e.prototype.getPageCount=function(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount},e.prototype.getPages=function(){return this.pageCache.access()},e.prototype.getPage=function(t){var e=this.getPages();return Nn(t,\"index\",0,e.length-1),e[t]},e.prototype.getPageIndices=function(){return K(0,this.getPageCount())},e.prototype.removePage=function(t){var e=this.getPageCount();if(0===this.pageCount)throw new Ac;Nn(t,\"index\",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},e.prototype.addPage=function(t){return On(t,\"page\",[\"undefined\",[Ad,\"PDFPage\"],Array]),this.insertPage(this.getPageCount(),t)},e.prototype.insertPage=function(t,e){var n=this.getPageCount();if(Nn(t,\"index\",0,n),On(e,\"page\",[\"undefined\",[Ad,\"PDFPage\"],Array]),!e||Array.isArray(e)){var r=Array.isArray(e)?e:bd.A4;(e=Ad.create(this)).setSize.apply(e,r)}else if(e.doc!==this)throw new Cc;var i=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(i),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=n+1,e},e.prototype.copyPages=function(t,n){return i(this,void 0,void 0,(function(){var r,i,a,s,l,h,u,c;return o(this,(function(o){switch(o.label){case 0:return On(t,\"srcDoc\",[[e,\"PDFDocument\"]]),On(n,\"indices\",[Array]),[4,t.flush()];case 1:for(o.sent(),r=Vo.for(t.context,this.context),i=t.getPages(),a=new Array(n.length),s=0,l=n.length;s<l;s++)h=i[n[s]],u=r.copy(h.node),c=this.context.register(u),a[s]=Ad.of(u,c,this);return[2,a]}}))}))},e.prototype.copy=function(){return i(this,void 0,void 0,(function(){var t,n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,e.create()];case 1:return[4,(t=o.sent()).copyPages(this,this.getPageIndices())];case 2:for(n=o.sent(),r=0,i=n.length;r<i;r++)t.addPage(n[r]);return void 0!==this.getAuthor()&&t.setAuthor(this.getAuthor()),void 0!==this.getCreationDate()&&t.setCreationDate(this.getCreationDate()),void 0!==this.getCreator()&&t.setCreator(this.getCreator()),void 0!==this.getModificationDate()&&t.setModificationDate(this.getModificationDate()),void 0!==this.getProducer()&&t.setProducer(this.getProducer()),void 0!==this.getSubject()&&t.setSubject(this.getSubject()),void 0!==this.getTitle()&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,[2,t]}}))}))},e.prototype.addJavaScript=function(t,e){On(t,\"name\",[\"string\"]),On(e,\"script\",[\"string\"]);var n=Fd.for(e,t),r=this.context.nextRef(),i=kd.of(r,this,n);this.javaScripts.push(i)},e.prototype.attach=function(e,n,r){return void 0===r&&(r={}),i(this,void 0,void 0,(function(){var i,a,s,l;return o(this,(function(o){return On(e,\"attachment\",[\"string\",Uint8Array,ArrayBuffer]),On(n,\"name\",[\"string\"]),Dn(r.mimeType,\"mimeType\",[\"string\"]),Dn(r.description,\"description\",[\"string\"]),Dn(r.creationDate,\"options.creationDate\",[Date]),Dn(r.modificationDate,\"options.modificationDate\",[Date]),An(r.afRelationship,\"options.afRelationship\",t.AFRelationship),i=_(e),a=aa.for(i,n,r),s=this.context.nextRef(),l=xd.of(s,this,a),this.embeddedFiles.push(l),[2]}))}))},e.prototype.embedFont=function(t,e){return void 0===e&&(e={}),i(this,void 0,void 0,(function(){var n,r,i,a,s,l,h,u,c,d;return o(this,(function(o){switch(o.label){case 0:return n=e.subset,r=void 0!==n&&n,i=e.customName,a=e.features,On(t,\"font\",[\"string\",Uint8Array,ArrayBuffer]),On(r,\"subset\",[\"boolean\"]),bn(t)?(s=Jo.for(t,i),[3,7]):[3,1];case 1:return H(t)?(l=_(t),h=this.assertFontkit(),r?[4,ia.for(h,l,i,a)]:[3,3]):[3,6];case 2:return u=o.sent(),[3,5];case 3:return[4,ra.for(h,l,i,a)];case 4:u=o.sent(),o.label=5;case 5:return s=u,[3,7];case 6:throw new TypeError(\"`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`\");case 7:return c=this.context.nextRef(),d=rd.of(c,this,s),this.fonts.push(d),[2,d]}}))}))},e.prototype.embedStandardFont=function(t,e){if(On(t,\"font\",[\"string\"]),!bn(t))throw new TypeError(\"`font` must be one of type `StandardFonts`\");var n=Jo.for(t,e),r=this.context.nextRef(),i=rd.of(r,this,n);return this.fonts.push(i),i},e.prototype.embedJpg=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i;return o(this,(function(o){switch(o.label){case 0:return On(t,\"jpg\",[\"string\",Uint8Array,ArrayBuffer]),e=_(t),[4,ha.for(e)];case 1:return n=o.sent(),r=this.context.nextRef(),i=id.of(r,this,n),this.images.push(i),[2,i]}}))}))},e.prototype.embedPng=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i;return o(this,(function(o){switch(o.label){case 0:return On(t,\"png\",[\"string\",Uint8Array,ArrayBuffer]),e=_(t),[4,ul.for(e)];case 1:return n=o.sent(),r=this.context.nextRef(),i=id.of(r,this,n),this.images.push(i),[2,i]}}))}))},e.prototype.embedPdf=function(t,n){return void 0===n&&(n=[0]),i(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return On(t,\"pdf\",[\"string\",Uint8Array,ArrayBuffer,[e,\"PDFDocument\"]]),On(n,\"indices\",[Array]),t instanceof e?(r=t,[3,3]):[3,1];case 1:return[4,e.load(t)];case 2:r=o.sent(),o.label=3;case 3:return i=G(r.getPages(),n),[2,this.embedPages(i)]}}))}))},e.prototype.embedPage=function(t,e,n){return i(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return On(t,\"page\",[[Ad,\"PDFPage\"]]),[4,this.embedPages([t],[e],[n])];case 1:return[2,r.sent()[0]]}}))}))},e.prototype.embedPages=function(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=[]),i(this,void 0,void 0,(function(){var r,i,a,s,l,h,u,c,d,f,p,g,v;return o(this,(function(o){switch(o.label){case 0:if(0===t.length)return[2,[]];for(h=0,u=t.length-1;h<u;h++)if(r=t[h],i=t[h+1],r.node.context!==i.node.context)throw new Qn;a=t[0].node.context,s=a===this.context?function(t){return t}:Vo.for(a,this.context).copy,l=new Array(t.length),h=0,u=t.length,o.label=1;case 1:return h<u?(c=s(t[h].node),d=e[h],f=n[h],[4,Tl.for(c,d,f)]):[3,4];case 2:p=o.sent(),g=this.context.nextRef(),l[h]=nd.of(g,this,p),o.label=3;case 3:return h++,[3,1];case 4:return(v=this.embeddedPages).push.apply(v,l),[2,l]}}))}))},e.prototype.flush=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}}))}))},e.prototype.save=function(t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var e,n,r,i,a,s,l,h,u;return o(this,(function(o){switch(o.label){case 0:return e=t.useObjectStreams,n=void 0===e||e,r=t.addDefaultPage,i=void 0===r||r,a=t.objectsPerTick,s=void 0===a?50:a,l=t.updateFieldAppearances,h=void 0===l||l,On(n,\"useObjectStreams\",[\"boolean\"]),On(i,\"addDefaultPage\",[\"boolean\"]),On(s,\"objectsPerTick\",[\"number\"]),On(h,\"updateFieldAppearances\",[\"boolean\"]),i&&0===this.getPageCount()&&this.addPage(),h&&(u=this.formCache.getValue())&&u.updateFieldAppearances(),[4,this.flush()];case 1:return o.sent(),[2,(n?Zo:Go).forContext(this.context,s).serializeToBuffer()]}}))}))},e.prototype.saveAsBase64=function(t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var e,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return e=t.dataUri,n=void 0!==e&&e,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,[\"dataUri\"]),On(n,\"dataUri\",[\"boolean\"]),[4,this.save(r)];case 1:return i=o.sent(),a=c(i),[2,n?\"data:application/pdf;base64,\"+a:a]}}))}))},e.prototype.findPageForAnnotationRef=function(t){for(var e=this.getPages(),n=0,r=e.length;n<r;n++){var i=e[n],o=i.node.Annots();if(void 0!==(null==o?void 0:o.indexOf(t)))return i}},e.prototype.embedAll=function(t){return i(this,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:e=0,n=t.length,r.label=1;case 1:return e<n?[4,t[e].embed()]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))},e.prototype.updateInfoDict=function(){var t=\"pdf-lib (https://github.com/Hopding/pdf-lib)\",e=new Date,n=this.getInfoDict();this.setProducer(t),this.setModificationDate(e),n.get(Fo.of(\"Creator\"))||this.setCreator(t),n.get(Fo.of(\"CreationDate\"))||this.setCreationDate(e)},e.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof Co)return t;var e=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(e),e},e.prototype.assertFontkit=function(){if(!this.fontkit)throw new Sc;return this.fontkit},e}();function Cd(t){if(!(t instanceof Yo||t instanceof na))throw new Hn([Yo,na],t)}(wd=t.BlendMode||(t.BlendMode={})).Normal=\"Normal\",wd.Multiply=\"Multiply\",wd.Screen=\"Screen\",wd.Overlay=\"Overlay\",wd.Darken=\"Darken\",wd.Lighten=\"Lighten\",wd.ColorDodge=\"ColorDodge\",wd.ColorBurn=\"ColorBurn\",wd.HardLight=\"HardLight\",wd.SoftLight=\"SoftLight\",wd.Difference=\"Difference\",wd.Exclusion=\"Exclusion\";var Ad=function(){function e(t,e,n){this.fontSize=24,this.fontColor=Uu(0,0,0),this.lineHeight=24,this.x=0,this.y=0,On(t,\"leafNode\",[[Uo,\"PDFPageLeaf\"]]),On(e,\"ref\",[[Ro,\"PDFRef\"]]),On(n,\"doc\",[[Sd,\"PDFDocument\"]]),this.node=t,this.ref=e,this.doc=n}return e.prototype.setRotation=function(t){var e=Wh(t);jn(e,\"degreesAngle\",90),this.node.set(Fo.of(\"Rotate\"),this.doc.context.obj(e))},e.prototype.getRotation=function(){var t=this.node.Rotate();return Eh(t?t.asNumber():0)},e.prototype.setSize=function(t,e){On(t,\"width\",[\"number\"]),On(e,\"height\",[\"number\"]);var n=this.getMediaBox();this.setMediaBox(n.x,n.y,t,e);var r=this.getCropBox(),i=this.getBleedBox(),o=this.getTrimBox(),a=this.getArtBox(),s=this.node.CropBox(),l=this.node.BleedBox(),h=this.node.TrimBox(),u=this.node.ArtBox();s&&wn(r,n)&&this.setCropBox(n.x,n.y,t,e),l&&wn(i,n)&&this.setBleedBox(n.x,n.y,t,e),h&&wn(o,n)&&this.setTrimBox(n.x,n.y,t,e),u&&wn(a,n)&&this.setArtBox(n.x,n.y,t,e)},e.prototype.setWidth=function(t){On(t,\"width\",[\"number\"]),this.setSize(t,this.getSize().height)},e.prototype.setHeight=function(t){On(t,\"height\",[\"number\"]),this.setSize(this.getSize().width,t)},e.prototype.setMediaBox=function(t,e,n,r){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),On(n,\"width\",[\"number\"]),On(r,\"height\",[\"number\"]);var i=this.doc.context.obj([t,e,t+n,e+r]);this.node.set(Fo.MediaBox,i)},e.prototype.setCropBox=function(t,e,n,r){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),On(n,\"width\",[\"number\"]),On(r,\"height\",[\"number\"]);var i=this.doc.context.obj([t,e,t+n,e+r]);this.node.set(Fo.CropBox,i)},e.prototype.setBleedBox=function(t,e,n,r){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),On(n,\"width\",[\"number\"]),On(r,\"height\",[\"number\"]);var i=this.doc.context.obj([t,e,t+n,e+r]);this.node.set(Fo.BleedBox,i)},e.prototype.setTrimBox=function(t,e,n,r){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),On(n,\"width\",[\"number\"]),On(r,\"height\",[\"number\"]);var i=this.doc.context.obj([t,e,t+n,e+r]);this.node.set(Fo.TrimBox,i)},e.prototype.setArtBox=function(t,e,n,r){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),On(n,\"width\",[\"number\"]),On(r,\"height\",[\"number\"]);var i=this.doc.context.obj([t,e,t+n,e+r]);this.node.set(Fo.ArtBox,i)},e.prototype.getSize=function(){var t=this.getMediaBox();return{width:t.width,height:t.height}},e.prototype.getWidth=function(){return this.getSize().width},e.prototype.getHeight=function(){return this.getSize().height},e.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},e.prototype.getCropBox=function(){var t,e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()},e.prototype.getBleedBox=function(){var t,e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},e.prototype.getTrimBox=function(){var t,e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},e.prototype.getArtBox=function(){var t,e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},e.prototype.translateContent=function(t,e){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(au(),Yh(t,e)),r=this.doc.context.register(n),i=this.createContentStream(su()),o=this.doc.context.register(i);this.node.wrapContentStreams(r,o)},e.prototype.scale=function(t,e){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)},e.prototype.scaleContent=function(t,e){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(au(),Jh(t,e)),r=this.doc.context.register(n),i=this.createContentStream(su()),o=this.doc.context.register(i);this.node.wrapContentStreams(r,o)},e.prototype.scaleAnnotations=function(t,e){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]);var n=this.node.Annots();if(n)for(var r=0;r<n.size();r++){var i=n.lookup(r);i instanceof Co&&this.scaleAnnot(i,t,e)}},e.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},e.prototype.setFont=function(t){On(t,\"font\",[[rd,\"PDFFont\"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},e.prototype.setFontSize=function(t){On(t,\"fontSize\",[\"number\"]),this.fontSize=t},e.prototype.setFontColor=function(t){On(t,\"fontColor\",[[Object,\"Color\"]]),this.fontColor=t},e.prototype.setLineHeight=function(t){On(t,\"lineHeight\",[\"number\"]),this.lineHeight=t},e.prototype.getPosition=function(){return{x:this.x,y:this.y}},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.moveTo=function(t,e){On(t,\"x\",[\"number\"]),On(e,\"y\",[\"number\"]),this.x=t,this.y=e},e.prototype.moveDown=function(t){On(t,\"yDecrease\",[\"number\"]),this.y-=t},e.prototype.moveUp=function(t){On(t,\"yIncrease\",[\"number\"]),this.y+=t},e.prototype.moveLeft=function(t){On(t,\"xDecrease\",[\"number\"]),this.x-=t},e.prototype.moveRight=function(t){On(t,\"xIncrease\",[\"number\"]),this.x+=t},e.prototype.pushOperators=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Bn(t,\"operator\",[[Oo,\"PDFOperator\"]]);var n=this.getContentStream();n.push.apply(n,t)},e.prototype.drawText=function(e,n){var r,i,o,a,s,l,h;void 0===n&&(n={}),On(e,\"text\",[\"string\"]),Dn(n.color,\"options.color\",[[Object,\"Color\"]]),En(n.opacity,\"opacity.opacity\",0,1),Dn(n.font,\"options.font\",[[rd,\"PDFFont\"]]),Dn(n.size,\"options.size\",[\"number\"]),Dn(n.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(n.xSkew,\"options.xSkew\",[[Object,\"Rotation\"]]),Dn(n.ySkew,\"options.ySkew\",[[Object,\"Rotation\"]]),Dn(n.x,\"options.x\",[\"number\"]),Dn(n.y,\"options.y\",[\"number\"]),Dn(n.lineHeight,\"options.lineHeight\",[\"number\"]),Dn(n.maxWidth,\"options.maxWidth\",[\"number\"]),Dn(n.wordBreaks,\"options.wordBreaks\",[Array]),An(n.blendMode,\"options.blendMode\",t.BlendMode);for(var u=this.setOrEmbedFont(n.font),c=u.oldFont,d=u.newFont,f=u.newFontKey,p=n.size||this.fontSize,g=n.wordBreaks||this.doc.defaultWordBreaks,v=void 0===n.maxWidth?T(S(e)):O(e,g,n.maxWidth,(function(t){return d.widthOfTextAtSize(t,p)})),y=new Array(v.length),m=0,b=v.length;m<b;m++)y[m]=d.encodeText(v[m]);var w=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),x=this.getContentStream();x.push.apply(x,ac(y,{color:null!==(r=n.color)&&void 0!==r?r:this.fontColor,font:f,size:p,rotate:null!==(i=n.rotate)&&void 0!==i?i:Eh(0),xSkew:null!==(o=n.xSkew)&&void 0!==o?o:Eh(0),ySkew:null!==(a=n.ySkew)&&void 0!==a?a:Eh(0),x:null!==(s=n.x)&&void 0!==s?s:this.x,y:null!==(l=n.y)&&void 0!==l?l:this.y,lineHeight:null!==(h=n.lineHeight)&&void 0!==h?h:this.lineHeight,graphicsState:w})),n.font&&(c?this.setFont(c):this.resetFont())},e.prototype.drawImage=function(e,n){var r,i,o,a,s,l,h;void 0===n&&(n={}),On(e,\"image\",[[id,\"PDFImage\"]]),Dn(n.x,\"options.x\",[\"number\"]),Dn(n.y,\"options.y\",[\"number\"]),Dn(n.width,\"options.width\",[\"number\"]),Dn(n.height,\"options.height\",[\"number\"]),Dn(n.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(n.xSkew,\"options.xSkew\",[[Object,\"Rotation\"]]),Dn(n.ySkew,\"options.ySkew\",[[Object,\"Rotation\"]]),En(n.opacity,\"opacity.opacity\",0,1),An(n.blendMode,\"options.blendMode\",t.BlendMode);var u=this.node.newXObject(\"Image\",e.ref),c=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),d=this.getContentStream();d.push.apply(d,sc(u,{x:null!==(r=n.x)&&void 0!==r?r:this.x,y:null!==(i=n.y)&&void 0!==i?i:this.y,width:null!==(o=n.width)&&void 0!==o?o:e.size().width,height:null!==(a=n.height)&&void 0!==a?a:e.size().height,rotate:null!==(s=n.rotate)&&void 0!==s?s:Eh(0),xSkew:null!==(l=n.xSkew)&&void 0!==l?l:Eh(0),ySkew:null!==(h=n.ySkew)&&void 0!==h?h:Eh(0),graphicsState:c}))},e.prototype.drawPage=function(e,n){var r,i,o,a,s;void 0===n&&(n={}),On(e,\"embeddedPage\",[[nd,\"PDFEmbeddedPage\"]]),Dn(n.x,\"options.x\",[\"number\"]),Dn(n.y,\"options.y\",[\"number\"]),Dn(n.xScale,\"options.xScale\",[\"number\"]),Dn(n.yScale,\"options.yScale\",[\"number\"]),Dn(n.width,\"options.width\",[\"number\"]),Dn(n.height,\"options.height\",[\"number\"]),Dn(n.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(n.xSkew,\"options.xSkew\",[[Object,\"Rotation\"]]),Dn(n.ySkew,\"options.ySkew\",[[Object,\"Rotation\"]]),En(n.opacity,\"opacity.opacity\",0,1),An(n.blendMode,\"options.blendMode\",t.BlendMode);var l=this.node.newXObject(\"EmbeddedPdfPage\",e.ref),h=this.maybeEmbedGraphicsState({opacity:n.opacity,blendMode:n.blendMode}),u=void 0!==n.width?n.width/e.width:void 0!==n.xScale?n.xScale:1,c=void 0!==n.height?n.height/e.height:void 0!==n.yScale?n.yScale:1,d=this.getContentStream();d.push.apply(d,lc(l,{x:null!==(r=n.x)&&void 0!==r?r:this.x,y:null!==(i=n.y)&&void 0!==i?i:this.y,xScale:u,yScale:c,rotate:null!==(o=n.rotate)&&void 0!==o?o:Eh(0),xSkew:null!==(a=n.xSkew)&&void 0!==a?a:Eh(0),ySkew:null!==(s=n.ySkew)&&void 0!==s?s:Eh(0),graphicsState:h}))},e.prototype.drawSvgPath=function(e,n){var r,i,o,a,s,l,h,u,c;void 0===n&&(n={}),On(e,\"path\",[\"string\"]),Dn(n.x,\"options.x\",[\"number\"]),Dn(n.y,\"options.y\",[\"number\"]),Dn(n.scale,\"options.scale\",[\"number\"]),Dn(n.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(n.borderWidth,\"options.borderWidth\",[\"number\"]),Dn(n.color,\"options.color\",[[Object,\"Color\"]]),En(n.opacity,\"opacity.opacity\",0,1),Dn(n.borderColor,\"options.borderColor\",[[Object,\"Color\"]]),Dn(n.borderDashArray,\"options.borderDashArray\",[Array]),Dn(n.borderDashPhase,\"options.borderDashPhase\",[\"number\"]),An(n.borderLineCap,\"options.borderLineCap\",t.LineCapStyle),En(n.borderOpacity,\"options.borderOpacity\",0,1),An(n.blendMode,\"options.blendMode\",t.BlendMode);var d=this.maybeEmbedGraphicsState({opacity:n.opacity,borderOpacity:n.borderOpacity,blendMode:n.blendMode});\"color\"in n||\"borderColor\"in n||(n.borderColor=Uu(0,0,0));var f=this.getContentStream();f.push.apply(f,pc(e,{x:null!==(r=n.x)&&void 0!==r?r:this.x,y:null!==(i=n.y)&&void 0!==i?i:this.y,scale:n.scale,rotate:null!==(o=n.rotate)&&void 0!==o?o:Eh(0),color:null!==(a=n.color)&&void 0!==a?a:void 0,borderColor:null!==(s=n.borderColor)&&void 0!==s?s:void 0,borderWidth:null!==(l=n.borderWidth)&&void 0!==l?l:0,borderDashArray:null!==(h=n.borderDashArray)&&void 0!==h?h:void 0,borderDashPhase:null!==(u=n.borderDashPhase)&&void 0!==u?u:void 0,borderLineCap:null!==(c=n.borderLineCap)&&void 0!==c?c:void 0,graphicsState:d}))},e.prototype.drawLine=function(e){var n,r,i,o,a;On(e.start,\"options.start\",[[Object,\"{ x: number, y: number }\"]]),On(e.end,\"options.end\",[[Object,\"{ x: number, y: number }\"]]),On(e.start.x,\"options.start.x\",[\"number\"]),On(e.start.y,\"options.start.y\",[\"number\"]),On(e.end.x,\"options.end.x\",[\"number\"]),On(e.end.y,\"options.end.y\",[\"number\"]),Dn(e.thickness,\"options.thickness\",[\"number\"]),Dn(e.color,\"options.color\",[[Object,\"Color\"]]),Dn(e.dashArray,\"options.dashArray\",[Array]),Dn(e.dashPhase,\"options.dashPhase\",[\"number\"]),An(e.lineCap,\"options.lineCap\",t.LineCapStyle),En(e.opacity,\"opacity.opacity\",0,1),An(e.blendMode,\"options.blendMode\",t.BlendMode);var s=this.maybeEmbedGraphicsState({borderOpacity:e.opacity,blendMode:e.blendMode});\"color\"in e||(e.color=Uu(0,0,0));var l=this.getContentStream();l.push.apply(l,hc({start:e.start,end:e.end,thickness:null!==(n=e.thickness)&&void 0!==n?n:1,color:null!==(r=e.color)&&void 0!==r?r:void 0,dashArray:null!==(i=e.dashArray)&&void 0!==i?i:void 0,dashPhase:null!==(o=e.dashPhase)&&void 0!==o?o:void 0,lineCap:null!==(a=e.lineCap)&&void 0!==a?a:void 0,graphicsState:s}))},e.prototype.drawRectangle=function(e){var n,r,i,o,a,s,l,h,u,c,d,f,p;void 0===e&&(e={}),Dn(e.x,\"options.x\",[\"number\"]),Dn(e.y,\"options.y\",[\"number\"]),Dn(e.width,\"options.width\",[\"number\"]),Dn(e.height,\"options.height\",[\"number\"]),Dn(e.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(e.xSkew,\"options.xSkew\",[[Object,\"Rotation\"]]),Dn(e.ySkew,\"options.ySkew\",[[Object,\"Rotation\"]]),Dn(e.borderWidth,\"options.borderWidth\",[\"number\"]),Dn(e.color,\"options.color\",[[Object,\"Color\"]]),En(e.opacity,\"opacity.opacity\",0,1),Dn(e.borderColor,\"options.borderColor\",[[Object,\"Color\"]]),Dn(e.borderDashArray,\"options.borderDashArray\",[Array]),Dn(e.borderDashPhase,\"options.borderDashPhase\",[\"number\"]),An(e.borderLineCap,\"options.borderLineCap\",t.LineCapStyle),En(e.borderOpacity,\"options.borderOpacity\",0,1),An(e.blendMode,\"options.blendMode\",t.BlendMode);var g=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});\"color\"in e||\"borderColor\"in e||(e.color=Uu(0,0,0));var v=this.getContentStream();v.push.apply(v,uc({x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(r=e.y)&&void 0!==r?r:this.y,width:null!==(i=e.width)&&void 0!==i?i:150,height:null!==(o=e.height)&&void 0!==o?o:100,rotate:null!==(a=e.rotate)&&void 0!==a?a:Eh(0),xSkew:null!==(s=e.xSkew)&&void 0!==s?s:Eh(0),ySkew:null!==(l=e.ySkew)&&void 0!==l?l:Eh(0),borderWidth:null!==(h=e.borderWidth)&&void 0!==h?h:0,color:null!==(u=e.color)&&void 0!==u?u:void 0,borderColor:null!==(c=e.borderColor)&&void 0!==c?c:void 0,borderDashArray:null!==(d=e.borderDashArray)&&void 0!==d?d:void 0,borderDashPhase:null!==(f=e.borderDashPhase)&&void 0!==f?f:void 0,graphicsState:g,borderLineCap:null!==(p=e.borderLineCap)&&void 0!==p?p:void 0}))},e.prototype.drawSquare=function(t){void 0===t&&(t={});var e=t.size;Dn(e,\"size\",[\"number\"]),this.drawRectangle(r(r({},t),{width:e,height:e}))},e.prototype.drawEllipse=function(e){var n,r,i,o,a,s,l,h,u,c,d;void 0===e&&(e={}),Dn(e.x,\"options.x\",[\"number\"]),Dn(e.y,\"options.y\",[\"number\"]),Dn(e.xScale,\"options.xScale\",[\"number\"]),Dn(e.yScale,\"options.yScale\",[\"number\"]),Dn(e.rotate,\"options.rotate\",[[Object,\"Rotation\"]]),Dn(e.color,\"options.color\",[[Object,\"Color\"]]),En(e.opacity,\"opacity.opacity\",0,1),Dn(e.borderColor,\"options.borderColor\",[[Object,\"Color\"]]),En(e.borderOpacity,\"options.borderOpacity\",0,1),Dn(e.borderWidth,\"options.borderWidth\",[\"number\"]),Dn(e.borderDashArray,\"options.borderDashArray\",[Array]),Dn(e.borderDashPhase,\"options.borderDashPhase\",[\"number\"]),An(e.borderLineCap,\"options.borderLineCap\",t.LineCapStyle),An(e.blendMode,\"options.blendMode\",t.BlendMode);var f=this.maybeEmbedGraphicsState({opacity:e.opacity,borderOpacity:e.borderOpacity,blendMode:e.blendMode});\"color\"in e||\"borderColor\"in e||(e.color=Uu(0,0,0));var p=this.getContentStream();p.push.apply(p,fc({x:null!==(n=e.x)&&void 0!==n?n:this.x,y:null!==(r=e.y)&&void 0!==r?r:this.y,xScale:null!==(i=e.xScale)&&void 0!==i?i:100,yScale:null!==(o=e.yScale)&&void 0!==o?o:100,rotate:null!==(a=e.rotate)&&void 0!==a?a:void 0,color:null!==(s=e.color)&&void 0!==s?s:void 0,borderColor:null!==(l=e.borderColor)&&void 0!==l?l:void 0,borderWidth:null!==(h=e.borderWidth)&&void 0!==h?h:0,borderDashArray:null!==(u=e.borderDashArray)&&void 0!==u?u:void 0,borderDashPhase:null!==(c=e.borderDashPhase)&&void 0!==c?c:void 0,borderLineCap:null!==(d=e.borderLineCap)&&void 0!==d?d:void 0,graphicsState:f}))},e.prototype.drawCircle=function(t){void 0===t&&(t={});var e=t.size,n=void 0===e?100:e;Dn(n,\"size\",[\"number\"]),this.drawEllipse(r(r({},t),{xScale:n,yScale:n}))},e.prototype.setOrEmbedFont=function(t){var e=this.font,n=this.fontKey;return t?this.setFont(t):this.getFont(),{oldFont:e,oldFontKey:n,newFont:this.font,newFontKey:this.fontKey}},e.prototype.getFont=function(){if(!this.font||!this.fontKey){var e=this.doc.embedStandardFont(t.StandardFonts.Helvetica);this.setFont(e)}return[this.font,this.fontKey]},e.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},e.prototype.getContentStream=function(t){return void 0===t&&(t=!0),t&&this.contentStream||(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef)),this.contentStream},e.prototype.createContentStream=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.doc.context.obj({}),r=Eo.of(n,t);return r},e.prototype.maybeEmbedGraphicsState=function(t){var e=t.opacity,n=t.borderOpacity,r=t.blendMode;if(void 0!==e||void 0!==n||void 0!==r){var i=this.doc.context.obj({Type:\"ExtGState\",ca:e,CA:n,BM:r});return this.node.newExtGState(\"GS\",i)}},e.prototype.scaleAnnot=function(t,e,n){for(var r=[\"RD\",\"CL\",\"Vertices\",\"QuadPoints\",\"L\",\"Rect\"],i=0,o=r.length;i<o;i++){var a=t.lookup(Fo.of(r[i]));a instanceof fo&&a.scalePDFNumbers(e,n)}var s=t.lookup(Fo.of(\"InkList\"));if(s instanceof fo)for(i=0,o=s.size();i<o;i++){var l=s.lookup(i);l instanceof fo&&l.scalePDFNumbers(e,n)}},e.of=function(t,n,r){return new e(t,n,r)},e.create=function(t){On(t,\"doc\",[[Sd,\"PDFDocument\"]]);var n=Ro.of(-1),r=Uo.withContextAndParent(t.context,n);return new e(r,t.context.register(r),t)},e}(),Td=function(e){function r(t,n,r){var i=e.call(this,t,n,r)||this;return On(t,\"acroButton\",[[Zl,\"PDFAcroPushButton\"]]),i.acroField=t,i}return n(r,e),r.prototype.setImage=function(e,n){void 0===n&&(n=t.ImageAlignment.Center);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var a=r[i],s=this.createImageAppearanceStream(a,e,n);this.updateWidgetAppearances(a,{normal:s})}this.markAsClean()},r.prototype.setFontSize=function(t){In(t,\"fontSize\"),this.acroField.setFontSize(t),this.markAsDirty()},r.prototype.addToPage=function(t,e,n){var r,i,o,a,s,l,h,u,c,d,f;Dn(t,\"text\",[\"string\"]),Dn(e,\"page\",[[Ad,\"PDFPage\"]]),ad(n);var p=this.createWidget({x:(null!==(r=null==n?void 0:n.x)&&void 0!==r?r:0)-(null!==(i=null==n?void 0:n.borderWidth)&&void 0!==i?i:0)/2,y:(null!==(o=null==n?void 0:n.y)&&void 0!==o?o:0)-(null!==(a=null==n?void 0:n.borderWidth)&&void 0!==a?a:0)/2,width:null!==(s=null==n?void 0:n.width)&&void 0!==s?s:100,height:null!==(l=null==n?void 0:n.height)&&void 0!==l?l:50,textColor:null!==(h=null==n?void 0:n.textColor)&&void 0!==h?h:Uu(0,0,0),backgroundColor:null!==(u=null==n?void 0:n.backgroundColor)&&void 0!==u?u:Uu(.75,.75,.75),borderColor:null==n?void 0:n.borderColor,borderWidth:null!==(c=null==n?void 0:n.borderWidth)&&void 0!==c?c:0,rotate:null!==(d=null==n?void 0:n.rotate)&&void 0!==d?d:Eh(0),caption:t,hidden:null==n?void 0:n.hidden,page:e.ref}),g=this.doc.context.register(p.dict);this.acroField.addWidget(g);var v=null!==(f=null==n?void 0:n.font)&&void 0!==f?f:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(p,v),e.node.addAnnot(g)},r.prototype.needsAppearancesUpdate=function(){var t;if(this.isDirty())return!0;for(var e=this.acroField.getWidgets(),n=0,r=e.length;n<r;n++){if(!((null===(t=e[n].getAppearances())||void 0===t?void 0:t.normal)instanceof Ao))return!0}return!1},r.prototype.defaultUpdateAppearances=function(t){On(t,\"font\",[[rd,\"PDFFont\"]]),this.updateAppearances(t)},r.prototype.updateAppearances=function(t,e){On(t,\"font\",[[rd,\"PDFFont\"]]),Dn(e,\"provider\",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r];this.updateWidgetAppearance(o,t,e)}},r.prototype.updateWidgetAppearance=function(t,e,n){var r=Kc((null!=n?n:Qc)(this,t,e));this.updateWidgetAppearanceWithFont(t,e,r)},r.of=function(t,e,n){return new r(t,e,n)},r}(sd);t.AppearanceCharacteristics=Il,t.Cache=Ln,t.CharCodes=mr,t.CombedTextLayoutError=Nc,t.CorruptPageTreeError=nr,t.CustomFontEmbedder=ra,t.CustomFontSubsetEmbedder=ia,t.EncryptedPDFError=Fc,t.ExceededMaxLengthError=Ec,t.FieldAlreadyExistsError=Rc,t.FieldExistsAsNonTerminalError=Dc,t.FileEmbedder=aa,t.FontkitNotRegisteredError=Sc,t.ForeignPageError=Cc,t.IndexOutOfBoundsError=rr,t.InvalidAcroFieldValueError=ir,t.InvalidFieldNamePartError=Oc,t.InvalidMaxLengthError=jc,t.InvalidPDFDateStringError=tr,t.InvalidTargetIndexError=er,t.JpegEmbedder=ha,t.MethodNotImplementedError=Kn,t.MissingCatalogError=Zn,t.MissingDAEntryError=ar,t.MissingKeywordError=yr,t.MissingOnValueCheckError=zc,t.MissingPDFHeaderError=vr,t.MissingPageContentsEmbeddingError=Yn,t.MissingTfOperatorError=sr,t.MultiSelectValueError=or,t.NextByteAssertionError=ur,t.NoSuchFieldError=Tc,t.NumberParsingError=lr,t.PDFAcroButton=Wl,t.PDFAcroCheckBox=ql,t.PDFAcroChoice=Kl,t.PDFAcroComboBox=Gl,t.PDFAcroField=El,t.PDFAcroForm=sh,t.PDFAcroListBox=Jl,t.PDFAcroNonTerminal=Hl,t.PDFAcroPushButton=Zl,t.PDFAcroRadioButton=Yl,t.PDFAcroSignature=_l,t.PDFAcroTerminal=Vl,t.PDFAcroText=Xl,t.PDFAnnotation=Ml,t.PDFArray=fo,t.PDFArrayIsNotRectangleError=$n,t.PDFBool=go,t.PDFButton=Td,t.PDFCatalog=lh,t.PDFCheckBox=ld,t.PDFContentStream=Eo,t.PDFContext=Io,t.PDFCrossRefSection=Wo,t.PDFCrossRefStream=Xo,t.PDFDict=Co,t.PDFDocument=Sd,t.PDFDropdown=hd,t.PDFEmbeddedPage=nd,t.PDFField=sd,t.PDFFlateStream=No,t.PDFFont=rd,t.PDFForm=gd,t.PDFHeader=ho,t.PDFHexString=Yo,t.PDFImage=id,t.PDFInvalidObject=Ho,t.PDFInvalidObjectParsingError=dr,t.PDFJavaScript=kd,t.PDFName=Fo,t.PDFNull=So,t.PDFNumber=co,t.PDFObject=uo,t.PDFObjectCopier=Vo,t.PDFObjectParser=Ch,t.PDFObjectParsingError=cr,t.PDFObjectStream=Ko,t.PDFObjectStreamParser=Ah,t.PDFOperator=Oo,t.PDFOperatorNames=Bo,t.PDFOptionList=ud,t.PDFPage=Ad,t.PDFPageEmbedder=Tl,t.PDFPageLeaf=Uo,t.PDFPageTree=hh,t.PDFParser=Ph,t.PDFParsingError=hr,t.PDFRadioGroup=cd,t.PDFRawStream=To,t.PDFRef=Ro,t.PDFSignature=dd,t.PDFStream=Ao,t.PDFStreamParsingError=fr,t.PDFStreamWriter=Zo,t.PDFString=na,t.PDFTextField=fd,t.PDFTrailer=qo,t.PDFTrailerDict=Lo,t.PDFWidgetAnnotation=Ul,t.PDFWriter=Go,t.PDFXRefStreamParser=Th,t.PageEmbeddingMismatchedContextError=Qn,t.PageSizes=bd,t.PngEmbedder=ul,t.PrivateConstructorError=Gn,t.RemovePageFromEmptyDocumentError=Ac,t.ReparseError=Xn,t.RichTextFieldReadError=Bc,t.StalledParserError=gr,t.StandardFontEmbedder=Jo,t.StandardFontValues=mn,t.UnbalancedParenthesisError=pr,t.UnexpectedFieldTypeError=Pc,t.UnexpectedObjectTypeError=Hn,t.UnrecognizedStreamTypeError=Jn,t.UnsupportedEncodingError=_n,t.ViewerPreferences=Bl,t.addRandomSuffix=function(t,e){return void 0===e&&(e=4),t+\"-\"+Math.floor(Math.random()*Math.pow(10,e))},t.adjustDimsForRotation=Lh,t.appendBezierCurve=hu,t.appendQuadraticCurve=uu,t.arrayAsString=U,t.asNumber=Bh,t.asPDFName=Oh,t.asPDFNumber=Dh,t.assertEachIs=Bn,t.assertInteger=Mn,t.assertIs=On,t.assertIsOneOf=Cn,t.assertIsOneOfOrUndefined=An,t.assertIsSubset=Tn,t.assertMultiple=jn,t.assertOrUndefined=Dn,t.assertPositive=In,t.assertRange=Nn,t.assertRangeOrUndefined=En,t.backtick=xn,t.beginMarkedContent=Eu,t.beginText=xu,t.breakTextIntoLines=O,t.byAscendingId=V,t.bytesFor=ct,t.canBeConvertedToUint8Array=H,t.charAtIndex=z,t.charFromCode=b,t.charFromHexCode=w,t.charSplit=R,t.cleanText=S,t.clip=Gh,t.clipEvenOdd=function(){return Oo.of(Bo.ClipEvenOdd)},t.closePath=cu,t.cmyk=Vu,t.colorToComponents=_u,t.componentsToColor=Hu,t.concatTransformationMatrix=Zh,t.copyStringIntoBuffer=k,t.createPDFAcroField=$l,t.createPDFAcroFields=Ql,t.createTypeErrorMsg=Rn,t.createValueErrorMsg=Sn,t.decodeFromBase64=d,t.decodeFromBase64DataUri=p,t.decodePDFRawStream=Al,t.defaultButtonAppearanceProvider=Qc,t.defaultCheckBoxAppearanceProvider=Yc,t.defaultDropdownAppearanceProvider=td,t.defaultOptionListAppearanceProvider=ed,t.defaultRadioGroupAppearanceProvider=Jc,t.defaultTextFieldAppearanceProvider=$c,t.degrees=Eh,t.degreesToRadians=Ih,t.drawButton=bc,t.drawCheckBox=yc,t.drawCheckMark=gc,t.drawEllipse=fc,t.drawEllipsePath=dc,t.drawImage=sc,t.drawLine=hc,t.drawLinesOfText=ac,t.drawObject=Pu,t.drawOptionList=kc,t.drawPage=lc,t.drawRadioButton=mc,t.drawRectangle=uc,t.drawSvgPath=pc,t.drawText=function(t,e){return[au(),e.graphicsState&&ou(e.graphicsState),xu(),Ku(e.color),Fu(e.font,e.size),Tu(Vh(e.rotate),Vh(e.xSkew),Vh(e.ySkew),e.x,e.y),wu(t),ku(),su()].filter(Boolean)},t.drawTextField=xc,t.drawTextLines=wc,t.encodeToBase64=c,t.endMarkedContent=ju,t.endPath=mu,t.endText=ku,t.error=dt,t.escapeRegExp=F,t.escapedNewlineChars=C,t.fill=vu,t.fillAndStroke=yu,t.findLastMatch=N,t.getType=Pn,t.grayscale=Iu,t.hasSurrogates=J,t.hasUtf16BOM=lt,t.highSurrogate=Q,t.isNewlineChar=A,t.isStandardFont=bn,t.isType=zn,t.isWithinBMP=Y,t.last=E,t.layoutCombedText=qc,t.layoutMultilineText=Wc,t.layoutSinglelineText=Lc,t.lineSplit=T,t.lineTo=fu,t.lowSurrogate=$,t.mergeIntoTypedArray=M,t.mergeLines=P,t.mergeUint8Arrays=I,t.moveText=function(t,e){return Oo.of(Bo.MoveText,[Dh(t),Dh(e)])},t.moveTo=du,t.newlineChars=[\"\\n\",\"\\f\",\"\\r\",\"\\v\"],t.nextLine=bu,t.normalizeAppearance=Kc,t.numberToString=ht,t.padStart=x,t.parseDate=B,t.pdfDocEncodingDecode=qn,t.pluckIndices=G,t.popGraphicsState=su,t.pushGraphicsState=au,t.radians=function(e){return On(e,\"radianAngle\",[\"number\"]),{type:t.RotationTypes.Radians,angle:e}},t.radiansToDegrees=Uh,t.range=K,t.rectangle=pu,t.rectanglesAreEqual=wn,t.reduceRotation=qh,t.restoreDashPattern=function(){return eu([],0)},t.reverseArray=q,t.rgb=Uu,t.rotateAndSkewTextDegreesAndTranslate=function(t,e,n,r,i){return Tu(Ih(Bh(t)),Ih(Bh(e)),Ih(Bh(n)),r,i)},t.rotateAndSkewTextRadiansAndTranslate=Tu,t.rotateDegrees=$h,t.rotateInPlace=vc,t.rotateRadians=Qh,t.rotateRectangle=Kh,t.scale=Jh,t.setCharacterSpacing=function(t){return Oo.of(Bo.SetCharacterSpacing,[Dh(t)])},t.setCharacterSqueeze=function(t){return Oo.of(Bo.SetTextHorizontalScaling,[Dh(t)])},t.setDashPattern=eu,t.setFillingCmykColor=Bu,t.setFillingColor=Ku,t.setFillingGrayscaleColor=zu,t.setFillingRgbColor=Ou,t.setFontAndSize=Fu,t.setGraphicsState=ou,t.setLineCap=ru,t.setLineHeight=Su,t.setLineJoin=function(t){return Oo.of(Bo.SetLineJoinStyle,[Dh(t)])},t.setLineWidth=lu,t.setStrokingCmykColor=Nu,t.setStrokingColor=Gu,t.setStrokingGrayscaleColor=Ru,t.setStrokingRgbColor=Du,t.setTextMatrix=Au,t.setTextRenderingMode=function(t){return Oo.of(Bo.SetTextRenderingMode,[Dh(t)])},t.setTextRise=function(t){return Oo.of(Bo.SetTextRise,[Dh(t)])},t.setWordSpacing=function(t){return Oo.of(Bo.SetWordSpacing,[Dh(t)])},t.showText=wu,t.singleQuote=kn,t.sizeInBytes=ut,t.skewDegrees=function(t,e){return tu(Ih(Bh(t)),Ih(Bh(e)))},t.skewRadians=tu,t.sortedUniq=W,t.square=function(t,e,n){return pu(t,e,n,n)},t.stroke=gu,t.sum=L,t.toCharCode=g,t.toCodePoint=v,t.toDegrees=Wh,t.toHexString=m,t.toHexStringOfMinLength=y,t.toRadians=Vh,t.toUint8Array=_,t.translate=Yh,t.typedArrayFor=j,t.utf16Decode=et,t.utf16Encode=Z,t.utf8Encode=function(t,e){void 0===e&&(e=!0);var n=[];e&&n.push(239,187,191);for(var r=0,i=t.length;r<i;){var o=t.codePointAt(r);if(o<128){var a=127&o;n.push(a),r+=1}else if(o<2048){a=o>>6&31|192;var s=63&o|128;n.push(a,s),r+=1}else if(o<65536){a=o>>12&15|224,s=o>>6&63|128;var l=63&o|128;n.push(a,s,l),r+=1}else{if(!(o<1114112))throw new Error(\"Invalid code point: 0x\"+m(o));a=o>>18&7|240,s=o>>12&63|128,l=o>>6&63|128;var h=o>>0&63|128;n.push(a,s,l,h),r+=2}}return new Uint8Array(n)},t.values=yn,t.waitForTick=X,Object.defineProperty(t,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=pdf-lib.min.js.map\n","jsqr":"/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/jsqr@1.4.0/dist/jsQR.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n!function(o,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.jsQR=e():o.jsQR=e()}(\"undefined\"!=typeof self?self:this,(function(){return function(o){var e={};function r(t){if(e[t])return e[t].exports;var c=e[t]={i:t,l:!1,exports:{}};return o[t].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=o,r.c=e,r.d=function(o,e,t){r.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},r.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(e,\"a\",e),e},r.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},r.p=\"\",r(r.s=3)}([function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=function(){function o(o,e){this.width=e,this.height=o.length/e,this.data=o}return o.createEmpty=function(e,r){return new o(new Uint8ClampedArray(e*r),e)},o.prototype.get=function(o,e){return!(o<0||o>=this.width||e<0||e>=this.height)&&!!this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r?1:0},o.prototype.setRegion=function(o,e,r,t,c){for(var s=e;s<e+t;s++)for(var a=o;a<o+r;a++)this.set(a,s,!!c)},o}();e.BitMatrix=t},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(2);e.addOrSubtractGF=function(o,e){return o^e};var c=function(){function o(o,e,r){this.primitive=o,this.size=e,this.generatorBase=r,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var c=1,s=0;s<this.size;s++)this.expTable[s]=c,(c*=2)>=this.size&&(c=(c^this.primitive)&this.size-1);for(s=0;s<this.size-1;s++)this.logTable[this.expTable[s]]=s;this.zero=new t.default(this,Uint8ClampedArray.from([0])),this.one=new t.default(this,Uint8ClampedArray.from([1]))}return o.prototype.multiply=function(o,e){return 0===o||0===e?0:this.expTable[(this.logTable[o]+this.logTable[e])%(this.size-1)]},o.prototype.inverse=function(o){if(0===o)throw new Error(\"Can't invert 0\");return this.expTable[this.size-this.logTable[o]-1]},o.prototype.buildMonomial=function(o,e){if(o<0)throw new Error(\"Invalid monomial degree less than 0\");if(0===e)return this.zero;var r=new Uint8ClampedArray(o+1);return r[0]=e,new t.default(this,r)},o.prototype.log=function(o){if(0===o)throw new Error(\"Can't take log(0)\");return this.logTable[o]},o.prototype.exp=function(o){return this.expTable[o]},o}();e.default=c},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(1),c=function(){function o(o,e){if(0===e.length)throw new Error(\"No coefficients.\");this.field=o;var r=e.length;if(r>1&&0===e[0]){for(var t=1;t<r&&0===e[t];)t++;if(t===r)this.coefficients=o.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(r-t);for(var c=0;c<this.coefficients.length;c++)this.coefficients[c]=e[t+c]}}else this.coefficients=e}return o.prototype.degree=function(){return this.coefficients.length-1},o.prototype.isZero=function(){return 0===this.coefficients[0]},o.prototype.getCoefficient=function(o){return this.coefficients[this.coefficients.length-1-o]},o.prototype.addOrSubtract=function(e){var r;if(this.isZero())return e;if(e.isZero())return this;var c=this.coefficients,s=e.coefficients;c.length>s.length&&(c=(r=[s,c])[0],s=r[1]);for(var a=new Uint8ClampedArray(s.length),n=s.length-c.length,d=0;d<n;d++)a[d]=s[d];for(d=n;d<s.length;d++)a[d]=t.addOrSubtractGF(c[d-n],s[d]);return new o(this.field,a)},o.prototype.multiply=function(e){if(0===e)return this.field.zero;if(1===e)return this;for(var r=this.coefficients.length,t=new Uint8ClampedArray(r),c=0;c<r;c++)t[c]=this.field.multiply(this.coefficients[c],e);return new o(this.field,t)},o.prototype.multiplyPoly=function(e){if(this.isZero()||e.isZero())return this.field.zero;for(var r=this.coefficients,c=r.length,s=e.coefficients,a=s.length,n=new Uint8ClampedArray(c+a-1),d=0;d<c;d++)for(var l=r[d],i=0;i<a;i++)n[d+i]=t.addOrSubtractGF(n[d+i],this.field.multiply(l,s[i]));return new o(this.field,n)},o.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new Error(\"Invalid degree less than 0\");if(0===r)return this.field.zero;for(var t=this.coefficients.length,c=new Uint8ClampedArray(t+e),s=0;s<t;s++)c[s]=this.field.multiply(this.coefficients[s],r);return new o(this.field,c)},o.prototype.evaluateAt=function(o){var e=0;if(0===o)return this.getCoefficient(0);var r=this.coefficients.length;if(1===o)return this.coefficients.forEach((function(o){e=t.addOrSubtractGF(e,o)})),e;e=this.coefficients[0];for(var c=1;c<r;c++)e=t.addOrSubtractGF(this.field.multiply(o,e),this.coefficients[c]);return e},o}();e.default=c},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(4),c=r(5),s=r(11),a=r(12);function n(o){var e=a.locate(o);if(!e)return null;for(var r=0,t=e;r<t.length;r++){var n=t[r],d=s.extract(o,n),l=c.decode(d.matrix);if(l)return{binaryData:l.bytes,data:l.text,chunks:l.chunks,version:l.version,location:{topRightCorner:d.mappingFunction(n.dimension,0),topLeftCorner:d.mappingFunction(0,0),bottomRightCorner:d.mappingFunction(n.dimension,n.dimension),bottomLeftCorner:d.mappingFunction(0,n.dimension),topRightFinderPattern:n.topRight,topLeftFinderPattern:n.topLeft,bottomLeftFinderPattern:n.bottomLeft,bottomRightAlignmentPattern:n.alignmentPattern}}}return null}var d={inversionAttempts:\"attemptBoth\"};function l(o,e,r,c){void 0===c&&(c={});var s=d;Object.keys(s||{}).forEach((function(o){s[o]=c[o]||s[o]}));var a=\"attemptBoth\"===s.inversionAttempts||\"invertFirst\"===s.inversionAttempts,l=\"onlyInvert\"===s.inversionAttempts||\"invertFirst\"===s.inversionAttempts,i=t.binarize(o,e,r,a),B=i.binarized,k=i.inverted,u=n(l?k:B);return u||\"attemptBoth\"!==s.inversionAttempts&&\"invertFirst\"!==s.inversionAttempts||(u=n(l?B:k)),u}l.default=l,e.default=l},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(0);function c(o,e,r){return o<e?e:o>r?r:o}var s=function(){function o(o,e){this.width=o,this.data=new Uint8ClampedArray(o*e)}return o.prototype.get=function(o,e){return this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r},o}();e.binarize=function(o,e,r,a){if(o.length!==e*r*4)throw new Error(\"Malformed data passed to binarizer.\");for(var n=new s(e,r),d=0;d<e;d++)for(var l=0;l<r;l++){var i=o[4*(l*e+d)+0],B=o[4*(l*e+d)+1],k=o[4*(l*e+d)+2];n.set(d,l,.2126*i+.7152*B+.0722*k)}for(var u=Math.ceil(e/8),C=Math.ceil(r/8),m=new s(u,C),f=0;f<C;f++)for(var w=0;w<u;w++){var P=0,v=1/0,h=0;for(l=0;l<8;l++)for(d=0;d<8;d++){var y=n.get(8*w+d,8*f+l);P+=y,v=Math.min(v,y),h=Math.max(h,y)}var p=P/Math.pow(8,2);if(h-v<=24&&(p=v/2,f>0&&w>0)){var b=(m.get(w,f-1)+2*m.get(w-1,f)+m.get(w-1,f-1))/4;v<b&&(p=b)}m.set(w,f,p)}var g=t.BitMatrix.createEmpty(e,r),x=null;for(a&&(x=t.BitMatrix.createEmpty(e,r)),f=0;f<C;f++)for(w=0;w<u;w++){for(var M=c(w,2,u-3),L=c(f,2,C-3),N=(P=0,-2);N<=2;N++)for(var I=-2;I<=2;I++)P+=m.get(M+N,L+I);var O=P/25;for(N=0;N<8;N++)for(I=0;I<8;I++){d=8*w+N,l=8*f+I;var z=n.get(d,l);g.set(d,l,z<=O),a&&x.set(d,l,!(z<=O))}}return a?{binarized:g,inverted:x}:{binarized:g}}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(0),c=r(6),s=r(9),a=r(10);function n(o,e){for(var r=o^e,t=0;r;)t++,r&=r-1;return t}function d(o,e){return e<<1|o}var l=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],i=[function(o){return(o.y+o.x)%2==0},function(o){return o.y%2==0},function(o){return o.x%3==0},function(o){return(o.y+o.x)%3==0},function(o){return(Math.floor(o.y/2)+Math.floor(o.x/3))%2==0},function(o){return o.x*o.y%2+o.x*o.y%3==0},function(o){return(o.y*o.x%2+o.y*o.x%3)%2==0},function(o){return((o.y+o.x)%2+o.y*o.x%3)%2==0}];function B(o,e,r){for(var c=i[r.dataMask],s=o.height,a=function(o){var e=17+4*o.versionNumber,r=t.BitMatrix.createEmpty(e,e);r.setRegion(0,0,9,9,!0),r.setRegion(e-8,0,8,9,!0),r.setRegion(0,e-8,9,8,!0);for(var c=0,s=o.alignmentPatternCenters;c<s.length;c++)for(var a=s[c],n=0,d=o.alignmentPatternCenters;n<d.length;n++){var l=d[n];6===a&&6===l||6===a&&l===e-7||a===e-7&&6===l||r.setRegion(a-2,l-2,5,5,!0)}return r.setRegion(6,9,1,e-17,!0),r.setRegion(9,6,e-17,1,!0),o.versionNumber>6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}(e),n=[],l=0,B=0,k=!0,u=s-1;u>0;u-=2){6===u&&u--;for(var C=0;C<s;C++)for(var m=k?s-1-C:C,f=0;f<2;f++){var w=u-f;if(!a.get(w,m)){B++;var P=o.get(w,m);c({y:m,x:w})&&(P=!P),l=d(P,l),8===B&&(n.push(l),B=0,l=0)}}k=!k}return n}function k(o){var e=function(o){var e=o.height,r=Math.floor((e-17)/4);if(r<=6)return a.VERSIONS[r-1];for(var t=0,c=5;c>=0;c--)for(var s=e-9;s>=e-11;s--)t=d(o.get(s,c),t);var l=0;for(s=5;s>=0;s--)for(c=e-9;c>=e-11;c--)l=d(o.get(s,c),l);for(var i,B=1/0,k=0,u=a.VERSIONS;k<u.length;k++){var C=u[k];if(C.infoBits===t||C.infoBits===l)return C;var m=n(t,C.infoBits);m<B&&(i=C,B=m),(m=n(l,C.infoBits))<B&&(i=C,B=m)}return B<=3?i:void 0}(o);if(!e)return null;var r=function(o){for(var e=0,r=0;r<=8;r++)6!==r&&(e=d(o.get(r,8),e));for(var t=7;t>=0;t--)6!==t&&(e=d(o.get(8,t),e));var c=o.height,s=0;for(t=c-1;t>=c-7;t--)s=d(o.get(8,t),s);for(r=c-8;r<c;r++)s=d(o.get(r,8),s);for(var a=1/0,i=null,B=0,k=l;B<k.length;B++){var u=k[B],C=u.bits,m=u.formatInfo;if(C===e||C===s)return m;var f=n(e,C);f<a&&(i=m,a=f),e!==s&&(f=n(s,C))<a&&(i=m,a=f)}return a<=3?i:null}(o);if(!r)return null;var t=function(o,e,r){var t=e.errorCorrectionLevels[r],c=[],s=0;if(t.ecBlocks.forEach((function(o){for(var e=0;e<o.numBlocks;e++)c.push({numDataCodewords:o.dataCodewordsPerBlock,codewords:[]}),s+=o.dataCodewordsPerBlock+t.ecCodewordsPerBlock})),o.length<s)return null;o=o.slice(0,s);for(var a=t.ecBlocks[0].dataCodewordsPerBlock,n=0;n<a;n++)for(var d=0,l=c;d<l.length;d++)l[d].codewords.push(o.shift());if(t.ecBlocks.length>1){var i=t.ecBlocks[0].numBlocks,B=t.ecBlocks[1].numBlocks;for(n=0;n<B;n++)c[i+n].codewords.push(o.shift())}for(;o.length>0;)for(var k=0,u=c;k<u.length;k++)u[k].codewords.push(o.shift());return c}(B(o,e,r),e,r.errorCorrectionLevel);if(!t)return null;for(var i=t.reduce((function(o,e){return o+e.numDataCodewords}),0),k=new Uint8ClampedArray(i),u=0,C=0,m=t;C<m.length;C++){var f=m[C],w=s.decode(f.codewords,f.codewords.length-f.numDataCodewords);if(!w)return null;for(var P=0;P<f.numDataCodewords;P++)k[u++]=w[P]}try{return c.decode(k,e.versionNumber)}catch(o){return null}}e.decode=function(o){if(null==o)return null;var e=k(o);if(e)return e;for(var r=0;r<o.width;r++)for(var t=r+1;t<o.height;t++)o.get(r,t)!==o.get(t,r)&&(o.set(r,t,!o.get(r,t)),o.set(t,r,!o.get(t,r)));return k(o)}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t,c,s=r(7),a=r(8);function n(o,e){for(var r=[],t=\"\",c=[10,12,14][e],s=o.readBits(c);s>=3;){if((l=o.readBits(10))>=1e3)throw new Error(\"Invalid numeric value above 999\");var a=Math.floor(l/100),n=Math.floor(l/10)%10,d=l%10;r.push(48+a,48+n,48+d),t+=a.toString()+n.toString()+d.toString(),s-=3}if(2===s){if((l=o.readBits(7))>=100)throw new Error(\"Invalid numeric value above 99\");a=Math.floor(l/10),n=l%10;r.push(48+a,48+n),t+=a.toString()+n.toString()}else if(1===s){var l;if((l=o.readBits(4))>=10)throw new Error(\"Invalid numeric value above 9\");r.push(48+l),t+=l.toString()}return{bytes:r,text:t}}!function(o){o.Numeric=\"numeric\",o.Alphanumeric=\"alphanumeric\",o.Byte=\"byte\",o.Kanji=\"kanji\",o.ECI=\"eci\"}(t=e.Mode||(e.Mode={})),function(o){o[o.Terminator=0]=\"Terminator\",o[o.Numeric=1]=\"Numeric\",o[o.Alphanumeric=2]=\"Alphanumeric\",o[o.Byte=4]=\"Byte\",o[o.Kanji=8]=\"Kanji\",o[o.ECI=7]=\"ECI\"}(c||(c={}));var d=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\" \",\"$\",\"%\",\"*\",\"+\",\"-\",\".\",\"/\",\":\"];function l(o,e){for(var r=[],t=\"\",c=[9,11,13][e],s=o.readBits(c);s>=2;){var a=o.readBits(11),n=Math.floor(a/45),l=a%45;r.push(d[n].charCodeAt(0),d[l].charCodeAt(0)),t+=d[n]+d[l],s-=2}if(1===s){n=o.readBits(6);r.push(d[n].charCodeAt(0)),t+=d[n]}return{bytes:r,text:t}}function i(o,e){for(var r=[],t=\"\",c=[8,16,16][e],s=o.readBits(c),a=0;a<s;a++){var n=o.readBits(8);r.push(n)}try{t+=decodeURIComponent(r.map((function(o){return\"%\"+(\"0\"+o.toString(16)).substr(-2)})).join(\"\"))}catch(o){}return{bytes:r,text:t}}function B(o,e){for(var r=[],t=\"\",c=[8,10,12][e],s=o.readBits(c),n=0;n<s;n++){var d=o.readBits(13),l=Math.floor(d/192)<<8|d%192;l+=l<7936?33088:49472,r.push(l>>8,255&l),t+=String.fromCharCode(a.shiftJISTable[l])}return{bytes:r,text:t}}e.decode=function(o,e){for(var r,a,d,k,u=new s.BitStream(o),C=e<=9?0:e<=26?1:2,m={text:\"\",bytes:[],chunks:[],version:e};u.available()>=4;){var f=u.readBits(4);if(f===c.Terminator)return m;if(f===c.ECI)0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(7)}):0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(14)}):0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(21)}):m.chunks.push({type:t.ECI,assignmentNumber:-1});else if(f===c.Numeric){var w=n(u,C);m.text+=w.text,(r=m.bytes).push.apply(r,w.bytes),m.chunks.push({type:t.Numeric,text:w.text})}else if(f===c.Alphanumeric){var P=l(u,C);m.text+=P.text,(a=m.bytes).push.apply(a,P.bytes),m.chunks.push({type:t.Alphanumeric,text:P.text})}else if(f===c.Byte){var v=i(u,C);m.text+=v.text,(d=m.bytes).push.apply(d,v.bytes),m.chunks.push({type:t.Byte,bytes:v.bytes,text:v.text})}else if(f===c.Kanji){var h=B(u,C);m.text+=h.text,(k=m.bytes).push.apply(k,h.bytes),m.chunks.push({type:t.Kanji,bytes:h.bytes,text:h.text})}}if(0===u.available()||0===u.readBits(u.available()))return m}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=function(){function o(o){this.byteOffset=0,this.bitOffset=0,this.bytes=o}return o.prototype.readBits=function(o){if(o<1||o>32||o>this.available())throw new Error(\"Cannot read \"+o.toString()+\" bits\");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,t=o<r?o:r,c=255>>8-t<<(s=r-t);e=(this.bytes[this.byteOffset]&c)>>s,o-=t,this.bitOffset+=t,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(o>0){for(;o>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,o-=8;if(o>0){var s;c=255>>(s=8-o)<<s;e=e<<o|(this.bytes[this.byteOffset]&c)>>s,this.bitOffset+=o}}return e},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();e.BitStream=t},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(1),c=r(2);e.decode=function(o,e){var r=new Uint8ClampedArray(o.length);r.set(o);for(var s=new t.default(285,256,0),a=new c.default(s,r),n=new Uint8ClampedArray(e),d=!1,l=0;l<e;l++){var i=a.evaluateAt(s.exp(l+s.generatorBase));n[n.length-1-l]=i,0!==i&&(d=!0)}if(!d)return r;var B=new c.default(s,n),k=function(o,e,r,t){var c;e.degree()<r.degree()&&(e=(c=[r,e])[0],r=c[1]);for(var s=e,a=r,n=o.zero,d=o.one;a.degree()>=t/2;){var l=s,i=n;if(n=d,(s=a).isZero())return null;a=l;for(var B=o.zero,k=s.getCoefficient(s.degree()),u=o.inverse(k);a.degree()>=s.degree()&&!a.isZero();){var C=a.degree()-s.degree(),m=o.multiply(a.getCoefficient(a.degree()),u);B=B.addOrSubtract(o.buildMonomial(C,m)),a=a.addOrSubtract(s.multiplyByMonomial(C,m))}if(d=B.multiplyPoly(n).addOrSubtract(i),a.degree()>=s.degree())return null}var f=d.getCoefficient(0);if(0===f)return null;var w=o.inverse(f);return[d.multiply(w),a.multiply(w)]}(s,s.buildMonomial(e,1),B,e);if(null===k)return null;var u=function(o,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var t=new Array(r),c=0,s=1;s<o.size&&c<r;s++)0===e.evaluateAt(s)&&(t[c]=o.inverse(s),c++);return c!==r?null:t}(s,k[0]);if(null==u)return null;for(var C=function(o,e,r){for(var c=r.length,s=new Array(c),a=0;a<c;a++){for(var n=o.inverse(r[a]),d=1,l=0;l<c;l++)a!==l&&(d=o.multiply(d,t.addOrSubtractGF(1,o.multiply(r[l],n))));s[a]=o.multiply(e.evaluateAt(n),o.inverse(d)),0!==o.generatorBase&&(s[a]=o.multiply(s[a],n))}return s}(s,k[1],u),m=0;m<u.length;m++){var f=r.length-1-s.log(u[m]);if(f<0)return null;r[f]=t.addOrSubtractGF(r[f],C[m])}return r}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=r(0);function c(o,e,r,t){var c=o.x-e.x+r.x-t.x,s=o.y-e.y+r.y-t.y;if(0===c&&0===s)return{a11:e.x-o.x,a12:e.y-o.y,a13:0,a21:r.x-e.x,a22:r.y-e.y,a23:0,a31:o.x,a32:o.y,a33:1};var a=e.x-r.x,n=t.x-r.x,d=e.y-r.y,l=t.y-r.y,i=a*l-n*d,B=(c*l-n*s)/i,k=(a*s-c*d)/i;return{a11:e.x-o.x+B*e.x,a12:e.y-o.y+B*e.y,a13:B,a21:t.x-o.x+k*t.x,a22:t.y-o.y+k*t.y,a23:k,a31:o.x,a32:o.y,a33:1}}e.extract=function(o,e){for(var r,s,a=function(o,e,r,t){var s=c(o,e,r,t);return{a11:s.a22*s.a33-s.a23*s.a32,a12:s.a13*s.a32-s.a12*s.a33,a13:s.a12*s.a23-s.a13*s.a22,a21:s.a23*s.a31-s.a21*s.a33,a22:s.a11*s.a33-s.a13*s.a31,a23:s.a13*s.a21-s.a11*s.a23,a31:s.a21*s.a32-s.a22*s.a31,a32:s.a12*s.a31-s.a11*s.a32,a33:s.a11*s.a22-s.a12*s.a21}}({x:3.5,y:3.5},{x:e.dimension-3.5,y:3.5},{x:e.dimension-6.5,y:e.dimension-6.5},{x:3.5,y:e.dimension-3.5}),n=c(e.topLeft,e.topRight,e.alignmentPattern,e.bottomLeft),d=(s=a,{a11:(r=n).a11*s.a11+r.a21*s.a12+r.a31*s.a13,a12:r.a12*s.a11+r.a22*s.a12+r.a32*s.a13,a13:r.a13*s.a11+r.a23*s.a12+r.a33*s.a13,a21:r.a11*s.a21+r.a21*s.a22+r.a31*s.a23,a22:r.a12*s.a21+r.a22*s.a22+r.a32*s.a23,a23:r.a13*s.a21+r.a23*s.a22+r.a33*s.a23,a31:r.a11*s.a31+r.a21*s.a32+r.a31*s.a33,a32:r.a12*s.a31+r.a22*s.a32+r.a32*s.a33,a33:r.a13*s.a31+r.a23*s.a32+r.a33*s.a33}),l=t.BitMatrix.createEmpty(e.dimension,e.dimension),i=function(o,e){var r=d.a13*o+d.a23*e+d.a33;return{x:(d.a11*o+d.a21*e+d.a31)/r,y:(d.a12*o+d.a22*e+d.a32)/r}},B=0;B<e.dimension;B++)for(var k=0;k<e.dimension;k++){var u=i(k+.5,B+.5);l.set(k,B,o.get(Math.floor(u.x),Math.floor(u.y)))}return{matrix:l,mappingFunction:i}}},function(o,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var t=function(o,e){return Math.sqrt(Math.pow(e.x-o.x,2)+Math.pow(e.y-o.y,2))};function c(o){return o.reduce((function(o,e){return o+e}))}function s(o,e,r,c){var s,a,n,d,l=[{x:Math.floor(o.x),y:Math.floor(o.y)}],i=Math.abs(e.y-o.y)>Math.abs(e.x-o.x);i?(s=Math.floor(o.y),a=Math.floor(o.x),n=Math.floor(e.y),d=Math.floor(e.x)):(s=Math.floor(o.x),a=Math.floor(o.y),n=Math.floor(e.x),d=Math.floor(e.y));for(var B=Math.abs(n-s),k=Math.abs(d-a),u=Math.floor(-B/2),C=s<n?1:-1,m=a<d?1:-1,f=!0,w=s,P=a;w!==n+C;w+=C){var v=i?P:w,h=i?w:P;if(r.get(v,h)!==f&&(f=!f,l.push({x:v,y:h}),l.length===c+1))break;if((u+=k)>0){if(P===d)break;P+=m,u-=B}}for(var y=[],p=0;p<c;p++)l[p]&&l[p+1]?y.push(t(l[p],l[p+1])):y.push(0);return y}function a(o,e,r,t){var c,a=e.y-o.y,n=e.x-o.x,d=s(o,e,r,Math.ceil(t/2)),l=s(o,{x:o.x-n,y:o.y-a},r,Math.ceil(t/2)),i=d.shift()+l.shift()-1;return(c=l.concat(i)).concat.apply(c,d)}function n(o,e){var r=c(o)/c(e),t=0;return e.forEach((function(e,c){t+=Math.pow(o[c]-e*r,2)})),{averageSize:r,error:t}}function d(o,e,r){try{var t=a(o,{x:-1,y:o.y},r,e.length),c=a(o,{x:o.x,y:-1},r,e.length),s=a(o,{x:Math.max(0,o.x-o.y)-1,y:Math.max(0,o.y-o.x)-1},r,e.length),d=a(o,{x:Math.min(r.width,o.x+o.y)+1,y:Math.min(r.height,o.y+o.x)+1},r,e.length),l=n(t,e),i=n(c,e),B=n(s,e),k=n(d,e),u=Math.sqrt(l.error*l.error+i.error*i.error+B.error*B.error+k.error*k.error),C=(l.averageSize+i.averageSize+B.averageSize+k.averageSize)/4;return u+(Math.pow(l.averageSize-C,2)+Math.pow(i.averageSize-C,2)+Math.pow(B.averageSize-C,2)+Math.pow(k.averageSize-C,2))/C}catch(o){return 1/0}}function l(o,e){for(var r=Math.round(e.x);o.get(r,Math.round(e.y));)r--;for(var t=Math.round(e.x);o.get(t,Math.round(e.y));)t++;for(var c=(r+t)/2,s=Math.round(e.y);o.get(Math.round(c),s);)s--;for(var a=Math.round(e.y);o.get(Math.round(c),a);)a++;return{x:c,y:(s+a)/2}}function i(o,e,r,s,n){var l,i,B;try{l=function(o,e,r,s){var n=(c(a(o,r,s,5))/7+c(a(o,e,s,5))/7+c(a(r,o,s,5))/7+c(a(e,o,s,5))/7)/4;if(n<1)throw new Error(\"Invalid module size\");var d=Math.round(t(o,e)/n),l=Math.round(t(o,r)/n),i=Math.floor((d+l)/2)+7;switch(i%4){case 0:i++;break;case 2:i--}return{dimension:i,moduleSize:n}}(s,r,n,o),i=l.dimension,B=l.moduleSize}catch(o){return null}var k=r.x-s.x+n.x,u=r.y-s.y+n.y,C=(t(s,n)+t(s,r))/2/B,m=1-3/C,f={x:s.x+m*(k-s.x),y:s.y+m*(u-s.y)},w=e.map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,s=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.floor(r),Math.floor(s))){var a=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1];c(a);return{x:r,y:s,score:d({x:Math.floor(r),y:Math.floor(s)},[1,1,1],o)+t({x:r,y:s},f)}}})).filter((function(o){return!!o})).sort((function(o,e){return o.score-e.score}));return{alignmentPattern:C>=15&&w.length?w[0]:f,dimension:i}}e.locate=function(o){for(var e=[],r=[],s=[],a=[],n=function(t){for(var n=0,d=!1,l=[0,0,0,0,0],i=function(e){var s=o.get(e,t);if(s===d)n++;else{l=[l[1],l[2],l[3],l[4],n],n=1,d=s;var i=c(l)/7,B=Math.abs(l[0]-i)<i&&Math.abs(l[1]-i)<i&&Math.abs(l[2]-3*i)<3*i&&Math.abs(l[3]-i)<i&&Math.abs(l[4]-i)<i&&!s,k=c(l.slice(-3))/3,u=Math.abs(l[2]-k)<k&&Math.abs(l[3]-k)<k&&Math.abs(l[4]-k)<k&&s;if(B){var C=e-l[3]-l[4],m=C-l[2],f={startX:m,endX:C,y:t};(w=r.filter((function(o){return m>=o.bottom.startX&&m<=o.bottom.endX||C>=o.bottom.startX&&m<=o.bottom.endX||m<=o.bottom.startX&&C>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<1.5&&l[2]/(o.bottom.endX-o.bottom.startX)>.5}))).length>0?w[0].bottom=f:r.push({top:f,bottom:f})}if(u){var w,P=e-l[4],v=P-l[3];f={startX:v,y:t,endX:P};(w=a.filter((function(o){return v>=o.bottom.startX&&v<=o.bottom.endX||P>=o.bottom.startX&&v<=o.bottom.endX||v<=o.bottom.startX&&P>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<1.5&&l[2]/(o.bottom.endX-o.bottom.startX)>.5}))).length>0?w[0].bottom=f:a.push({top:f,bottom:f})}}},B=-1;B<=o.width;B++)i(B);e.push.apply(e,r.filter((function(o){return o.bottom.y!==t&&o.bottom.y-o.top.y>=2}))),r=r.filter((function(o){return o.bottom.y===t})),s.push.apply(s,a.filter((function(o){return o.bottom.y!==t}))),a=a.filter((function(o){return o.bottom.y===t}))},B=0;B<=o.height;B++)n(B);e.push.apply(e,r.filter((function(o){return o.bottom.y-o.top.y>=2}))),s.push.apply(s,a);var k=e.filter((function(o){return o.bottom.y-o.top.y>=2})).map((function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,t=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.round(r),Math.round(t))){var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],a=c(s)/s.length;return{score:d({x:Math.round(r),y:Math.round(t)},[1,1,3,1,1],o),x:r,y:t,size:a}}})).filter((function(o){return!!o})).sort((function(o,e){return o.score-e.score})).map((function(o,e,r){if(e>4)return null;var t=r.filter((function(o,r){return e!==r})).map((function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-o.size,2)/o.size,size:e.size}})).sort((function(o,e){return o.score-e.score}));if(t.length<2)return null;var c=o.score+t[0].score+t[1].score;return{points:[o].concat(t.slice(0,2)),score:c}})).filter((function(o){return!!o})).sort((function(o,e){return o.score-e.score}));if(0===k.length)return null;var u=function(o,e,r){var c,s,a,n,d,l,i,B=t(o,e),k=t(e,r),u=t(o,r);return k>=B&&k>=u?(d=(c=[e,o,r])[0],l=c[1],i=c[2]):u>=k&&u>=B?(d=(s=[o,e,r])[0],l=s[1],i=s[2]):(d=(a=[o,r,e])[0],l=a[1],i=a[2]),(i.x-l.x)*(d.y-l.y)-(i.y-l.y)*(d.x-l.x)<0&&(d=(n=[i,d])[0],i=n[1]),{bottomLeft:d,topLeft:l,topRight:i}}(k[0].points[0],k[0].points[1],k[0].points[2]),C=u.topRight,m=u.topLeft,f=u.bottomLeft,w=i(o,s,C,m,f),P=[];w&&P.push({alignmentPattern:{x:w.alignmentPattern.x,y:w.alignmentPattern.y},bottomLeft:{x:f.x,y:f.y},dimension:w.dimension,topLeft:{x:m.x,y:m.y},topRight:{x:C.x,y:C.y}});var v=l(o,C),h=l(o,m),y=l(o,f),p=i(o,s,v,h,y);return p&&P.push({alignmentPattern:{x:p.alignmentPattern.x,y:p.alignmentPattern.y},bottomLeft:{x:y.x,y:y.y},topLeft:{x:h.x,y:h.y},topRight:{x:v.x,y:v.y},dimension:p.dimension}),0===P.length?null:P}}]).default}));\n//# sourceMappingURL=/sm/261261d91f249d4079ae119cfa50f739467d90fc365078a671172e0f499e862a.map"},"plugins":[{"format":"rockvault-plugin-v1","id":"sql-in-builder","name":"SQL IN 条件生成器","category":"数据与 SQL","cat_id":"data","icon":"🗄️","version":"1.0.0","desc":"Excel 整列复制/日志多行数据转 SQL IN 子句，支持 Distinct 去重、千条切片与前置模板","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runSqlInConvert() {\n      const inputEl = document.getElementById('pSqlInput');\n      if (!inputEl) return;\n      const input = inputEl.value;\n      const quoteType = document.getElementById('pSqlQuoteType') ? document.getElementById('pSqlQuoteType').value : 'single';\n      const clauseType = document.getElementById('pSqlClauseType') ? document.getElementById('pSqlClauseType').value : 'in';\n      const colName = (document.getElementById('pSqlColName') ? document.getElementById('pSqlColName').value.trim() : '') || 'id';\n      const optTrim = document.getElementById('pSqlOptTrim') ? document.getElementById('pSqlOptTrim').checked : true;\n      const optFilterEmpty = document.getElementById('pSqlOptFilterEmpty') ? document.getElementById('pSqlOptFilterEmpty').checked : true;\n      const optDistinct = document.getElementById('pSqlOptDistinct') ? document.getElementById('pSqlOptDistinct').checked : true;\n      const optSlice = document.getElementById('pSqlOptSlice') ? document.getElementById('pSqlOptSlice').checked : false;\n      const prefixQuery = (document.getElementById('pSqlPrefixQuery') ? document.getElementById('pSqlPrefixQuery').value.trim() : '');\n\n      let rawItems = input.split(/[\\r\\n,\\t]+/);\n      let items = [];\n      for (let i = 0; i < rawItems.length; i++) {\n        let val = rawItems[i];\n        if (optTrim) val = val.trim();\n        if (optFilterEmpty && !val) continue;\n        items.push(val);\n      }\n\n      const totalCount = items.length;\n      if (optDistinct) {\n        items = Array.from(new Set(items));\n      }\n      const distinctCount = items.length;\n\n      const inStats = document.getElementById('pSqlInputStats');\n      if (inStats) inStats.innerText = totalCount + ' 项 (原始)';\n\n      const outEl = document.getElementById('pSqlOutput');\n      const outStats = document.getElementById('pSqlOutputStats');\n\n      if (items.length === 0) {\n        if (outEl) outEl.value = '';\n        if (outStats) outStats.innerText = '去重后: 0 项';\n        return;\n      }\n\n      function formatItem(val) {\n        if (quoteType === 'single') return \"'\" + val.replace(/'/g, \"''\") + \"'\";\n        if (quoteType === 'double') return '\"' + val.replace(/\"/g, '\"\"') + '\"';\n        return val;\n      }\n\n      let outputSql = '';\n      let chunkCount = 1;\n      const batchSize = 1000;\n\n      if (optSlice && items.length > batchSize) {\n        let chunks = [];\n        for (let i = 0; i < items.length; i += batchSize) {\n          chunks.push(items.slice(i, i + batchSize));\n        }\n        chunkCount = chunks.length;\n        let subClauses = chunks.map(chunk => {\n          let joined = chunk.map(formatItem).join(', ');\n          return colName + ' IN (' + joined + ')';\n        });\n\n        if (prefixQuery) {\n          let upperPrefix = prefixQuery.toUpperCase();\n          if (upperPrefix.endsWith('WHERE') || upperPrefix.endsWith('AND')) {\n            outputSql = prefixQuery + ' (' + subClauses.join('\\n   OR ') + ')';\n          } else if (prefixQuery.endsWith(colName)) {\n            let base = prefixQuery.substring(0, prefixQuery.length - colName.length).trim();\n            outputSql = base + ' (' + subClauses.join('\\n   OR ') + ')';\n          } else if (!/\\bWHERE\\b/i.test(prefixQuery)) {\n            outputSql = prefixQuery + ' WHERE (' + subClauses.join('\\n   OR ') + ')';\n          } else {\n            outputSql = prefixQuery + ' AND (' + subClauses.join('\\n   OR ') + ')';\n          }\n        } else {\n          if (clauseType === 'where') outputSql = 'WHERE (' + subClauses.join('\\n   OR ') + ')';\n          else if (clauseType === 'and') outputSql = 'AND (' + subClauses.join('\\n   OR ') + ')';\n          else outputSql = subClauses.join('\\nOR ');\n        }\n      } else {\n        let joined = items.map(formatItem).join(', ');\n        let inClause = 'IN (' + joined + ')';\n\n        if (prefixQuery) {\n          let upperPrefix = prefixQuery.toUpperCase();\n          if (upperPrefix.endsWith(' IN') || upperPrefix.endsWith(' IN(')) {\n            outputSql = prefixQuery.replace(/\\s+IN\\s*\\(?$/i, '') + ' IN (' + joined + ')';\n          } else if (upperPrefix.endsWith(' WHERE') || upperPrefix.endsWith(' AND')) {\n            outputSql = prefixQuery + ' ' + colName + ' ' + inClause;\n          } else if (prefixQuery.endsWith(colName)) {\n            outputSql = prefixQuery + ' ' + inClause;\n          } else if (!/\\bWHERE\\b/i.test(prefixQuery)) {\n            outputSql = prefixQuery + ' WHERE ' + colName + ' ' + inClause;\n          } else {\n            outputSql = prefixQuery + ' AND ' + colName + ' ' + inClause;\n          }\n        } else {\n          if (clauseType === 'where') outputSql = 'WHERE ' + colName + ' ' + inClause;\n          else if (clauseType === 'and') outputSql = 'AND ' + colName + ' ' + inClause;\n          else outputSql = inClause;\n        }\n      }\n\n      if (!outputSql.trim().endsWith(';')) outputSql = outputSql.trim() + ';';\n\n      if (outEl) outEl.value = outputSql;\n      if (outStats) outStats.innerText = '去重后: ' + distinctCount + ' 项 · 分片: ' + chunkCount + ' 组';\n    }\n\nfunction setSqlPrefixVal(prefix) {\n      const el = document.getElementById('pSqlPrefixQuery');\n      if (el) {\n        el.value = prefix;\n        runSqlInConvert();\n      }\n    }\n\nfunction loadSampleSqlIn() {\n      const sample = `U10001\\nU10002\\nU10003\\nU10001\\nU10004, U10005\\tU10006\\nU10007\\nU10008\\nU10009\\nU10010`;\n      const inEl = document.getElementById('pSqlInput');\n      if (inEl) {\n        inEl.value = sample;\n        if (!document.getElementById('pSqlPrefixQuery').value) {\n          document.getElementById('pSqlPrefixQuery').value = 'SELECT * FROM t_user WHERE id';\n        }\n        runSqlInConvert();\n      }\n    }\n\nfunction copySqlInResult() {\n      const out = document.getElementById('pSqlOutput');\n      if (out && out.value) {\n        navigator.clipboard.writeText(out.value).then(() => showToast('📋 SQL 结果已复制！'));\n      }\n    }\n\nfunction saveSqlInToVault() {\n      const out = document.getElementById('pSqlOutput');\n      if (out && out.value) savePluginOutputToVault('SQL IN 查询', 'server', out.value);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runSqlInConvert\"] = runSqlInConvert;\n    window[\"setSqlPrefixVal\"] = setSqlPrefixVal;\n    window[\"loadSampleSqlIn\"] = loadSampleSqlIn;\n    window[\"copySqlInResult\"] = copySqlInResult;\n    window[\"saveSqlInToVault\"] = saveSqlInToVault;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"sql-in-builder\",\n    name: \"SQL IN 条件生成器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"🗄️\",\n    version: \"1.0.0\",\n    desc: \"Excel 整列复制/日志多行数据转 SQL IN 子句，支持 Distinct 去重、千条切片与前置模板\",\n    render(container, prefillVal = '') {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 8px 12px; border-radius: 8px; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 600;\">引号格式:</label>\n                <select class=\"form-select\" id=\"pSqlQuoteType\" onchange=\"runSqlInConvert()\" style=\"min-width: 150px; width: auto; height: 32px; padding: 4px 28px 4px 10px; font-size: 12px;\">\n                  <option value=\"single\" selected>字符型 ('A', 'B')</option>\n                  <option value=\"none\">数值型 (1, 2)</option>\n                  <option value=\"double\">双引号 (\"A\", \"B\")</option>\n                </select>\n\n                <label style=\"font-size: 12px; font-weight: 600; margin-left: 6px;\">子句模式:</label>\n                <select class=\"form-select\" id=\"pSqlClauseType\" onchange=\"runSqlInConvert()\" style=\"min-width: 185px; width: auto; height: 32px; padding: 4px 28px 4px 10px; font-size: 12px;\">\n                  <option value=\"in\" selected>仅 IN (...) 子句</option>\n                  <option value=\"where\">WHERE {col} IN (...)</option>\n                  <option value=\"and\">AND {col} IN (...)</option>\n                </select>\n\n                <input type=\"text\" id=\"pSqlColName\" class=\"form-input\" style=\"width: 100px; height: 32px; padding: 4px 8px; font-size: 12px;\" value=\"id\" placeholder=\"字段名\" oninput=\"runSqlInConvert()\" title=\"字段名\">\n\n                <div style=\"display: flex; gap: 8px; align-items: center; margin-left: 8px; flex-wrap: wrap;\">\n                  <label style=\"font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                    <input type=\"checkbox\" id=\"pSqlOptTrim\" checked onchange=\"runSqlInConvert()\"> 去首尾空格\n                  </label>\n                  <label style=\"font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                    <input type=\"checkbox\" id=\"pSqlOptFilterEmpty\" checked onchange=\"runSqlInConvert()\"> 过滤空行\n                  </label>\n                  <label style=\"font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                    <input type=\"checkbox\" id=\"pSqlOptDistinct\" checked onchange=\"runSqlInConvert()\"> 自动去重\n                  </label>\n                  <label style=\"font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                    <input type=\"checkbox\" id=\"pSqlOptSlice\" onchange=\"runSqlInConvert()\"> 切片拆分 (OR)\n                  </label>\n                </div>\n              </div>\n\n              <!-- 前置 SQL 模板条 -->\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 10px; flex-shrink: 0;\">\n                <span style=\"font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap;\">前置 SQL 模板:</span>\n                <input type=\"text\" id=\"pSqlPrefixQuery\" class=\"form-input\" style=\"flex: 1; height: 26px; font-size: 12px; font-family: var(--font-mono);\" placeholder=\"如 SELECT * FROM users WHERE status=1 AND id\" oninput=\"runSqlInConvert()\">\n                <button class=\"btn-action\" onclick=\"setSqlPrefixVal('SELECT * FROM sys_user WHERE id')\" style=\"font-size: 11px; padding: 2px 6px;\">SELECT 模板</button>\n                <button class=\"btn-action\" onclick=\"setSqlPrefixVal('UPDATE orders SET status = 1 WHERE order_id')\" style=\"font-size: 11px; padding: 2px 6px;\">UPDATE 模板</button>\n                <button class=\"btn-action\" onclick=\"setSqlPrefixVal('')\" style=\"font-size: 11px; padding: 2px 6px;\">清空前置</button>\n              </div>\n\n              <!-- 输入与输出 自适应撑满屏幕高度 -->\n              <div style=\"flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;\">\n                <div style=\"display: flex; flex-direction: column; min-height: 0; height: 100%;\">\n                  <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-shrink: 0;\">\n                    <label class=\"form-label\" style=\"margin: 0;\">输入源数据 (Excel 列 / 日志 ID / 换行逗号分隔):</label>\n                    <span id=\"pSqlInputStats\" style=\"font-size: 11px; color: var(--text-muted);\">0 项</span>\n                  </div>\n                  <textarea class=\"form-input\" id=\"pSqlInput\" placeholder=\"粘贴 Excel 整列、日志列表或以逗号/空格分隔的 ID...\" oninput=\"runSqlInConvert()\" style=\"flex: 1; min-height: 220px; font-family: var(--font-mono); font-size: 12.5px; resize: none;\"></textarea>\n                  <div style=\"display: flex; gap: 6px; margin-top: 6px; flex-shrink: 0;\">\n                    <button class=\"btn-action\" onclick=\"loadSampleSqlIn()\" style=\"font-size: 11px; padding: 3px 8px;\">载入示例</button>\n                    <button class=\"btn-action\" onclick=\"document.getElementById('pSqlInput').value=''; runSqlInConvert();\" style=\"font-size: 11px; padding: 3px 8px;\">清空</button>\n                  </div>\n                </div>\n                <div style=\"display: flex; flex-direction: column; min-height: 0; height: 100%;\">\n                  <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-shrink: 0;\">\n                    <label class=\"form-label\" style=\"margin: 0;\">生成 SQL 结果:</label>\n                    <span id=\"pSqlOutputStats\" style=\"font-size: 11px; color: var(--success); font-weight: 600;\">去重后: 0 项</span>\n                  </div>\n                  <textarea class=\"form-input\" id=\"pSqlOutput\" readonly placeholder=\"生成的 SQL IN 查询将实时呈现...\" style=\"flex: 1; min-height: 220px; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle); resize: none;\"></textarea>\n                  <div style=\"display: flex; gap: 6px; margin-top: 6px; flex-shrink: 0;\">\n                    <button class=\"btn-action primary\" onclick=\"copySqlInResult()\" style=\"font-size: 11px; padding: 3px 10px;\">📋 复制 SQL</button>\n                    <button class=\"btn-action\" onclick=\"saveSqlInToVault()\" style=\"font-size: 11px; padding: 3px 10px;\">💾 保存至保险箱</button>\n                  </div>\n                </div>\n              </div>\n            </div>\n          `;\n          if (prefillVal) {\n            document.getElementById('pSqlInput').value = prefillVal;\n            runSqlInConvert();\n          } else {\n            loadSampleSqlIn();\n          }\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"json-formatter","name":"JSON 语法解析高亮","category":"数据与 SQL","cat_id":"data","icon":"📋","version":"1.0.0","desc":"JSON 语法校验、色彩高亮、交互树形视图、二维表格解析、一键容错修复与全屏工作台","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet currentJsonCanvasMode = 'code';\n\nlet currentJsonParsedData = null;\n\nlet jsonTypeGenLang = 'ts';\n\nlet isJsonFullscreen = false;\n\nlet currentJsonTableHeaders = [];\n\nlet currentJsonTableRows = [];\n\nlet jsonTableSortCol = '';\n\nlet jsonTableSortAsc = true;\n\nfunction switchJsonCanvasMode(mode) {\n      currentJsonCanvasMode = mode || 'code';\n      const modes = ['code', 'edit', 'tree', 'table', 'types'];\n      modes.forEach(m => {\n        const pill = document.getElementById('pillJson' + m.charAt(0).toUpperCase() + m.slice(1));\n        const view = document.getElementById('pJsonView' + m.charAt(0).toUpperCase() + m.slice(1));\n        if (pill) pill.classList.toggle('active', m === currentJsonCanvasMode);\n        if (view) view.style.display = (m === currentJsonCanvasMode) ? 'flex' : 'none';\n      });\n\n      const qBtn = document.getElementById('btnCanvasModeQuickToggle');\n      if (qBtn) {\n        if (currentJsonCanvasMode === 'edit') {\n          qBtn.innerHTML = '<span>💻 高亮浏览</span>';\n          qBtn.title = '快捷键 Ctrl+E 切换为全屏代码高亮';\n          qBtn.style.color = 'var(--primary)';\n          qBtn.style.borderColor = 'var(--primary)';\n        } else {\n          qBtn.innerHTML = '<span>✏️ 源码编辑</span>';\n          qBtn.title = '快捷键 Ctrl+E 切换为全屏源码编辑';\n          qBtn.style.color = 'var(--purple)';\n          qBtn.style.borderColor = 'var(--purple)';\n        }\n      }\n\n      const stText = document.getElementById('pJsonStatusText');\n      if (stText) {\n        let modeLabel = '高亮浏览模式';\n        let modeTips = '鼠标悬停代码行可一键复制 JSONPath';\n        if (currentJsonCanvasMode === 'edit') {\n          modeLabel = '源码编辑模式';\n          modeTips = '输入/粘贴 JSON 后按 Ctrl+Enter 立即美化';\n        } else if (currentJsonCanvasMode === 'tree') {\n          modeLabel = '交互树形视图';\n          modeTips = '支持点击折叠/展开与节点 [📋 Path] 复制';\n        } else if (currentJsonCanvasMode === 'table') {\n          modeLabel = '数据表格视图';\n          modeTips = '自动解析对象数组为二维大表格并支持表头排序';\n        } else if (currentJsonCanvasMode === 'types') {\n          modeLabel = '类型定义生成';\n          modeTips = '一键导出 TypeScript Interface 与 Java POJO';\n        }\n        stText.innerHTML = `<span>✅ ${modeLabel}</span><span>·</span><span>${modeTips}</span>`;\n      }\n\n      if (currentJsonCanvasMode === 'edit') {\n        const input = document.getElementById('pJsonInput');\n        if (input) input.focus();\n      } else if (currentJsonParsedData) {\n        if (currentJsonCanvasMode === 'tree') renderJsonTreeView(currentJsonParsedData);\n        else if (currentJsonCanvasMode === 'table') renderJsonTableView();\n        else if (currentJsonCanvasMode === 'types') generateJsonTypes(jsonTypeGenLang);\n      }\n    }\n\nfunction toggleEditOrCodeMode() {\n      if (currentJsonCanvasMode === 'edit') {\n        switchJsonCanvasMode('code');\n        autoValidateJson();\n      } else {\n        switchJsonCanvasMode('edit');\n      }\n    }\n\nfunction pCopySpecificJsonPath(path) {\n      if (!path) return;\n      if (navigator.clipboard) {\n        navigator.clipboard.writeText(path).then(() => {\n          showToast(`📋 已复制 JSONPath: ${path}`);\n        });\n      }\n    }\n\nfunction pCopyTreePath(e, path) {\n      if (e) e.stopPropagation();\n      if (!path) return;\n      if (navigator.clipboard) {\n        navigator.clipboard.writeText(path).then(() => {\n          if (e && e.target) {\n            const btn = e.target.closest('.pjson-tree-path-chip');\n            if (btn) {\n              const old = btn.innerText;\n              btn.innerText = '✓ 已复制';\n              btn.classList.add('copied');\n              setTimeout(() => {\n                btn.innerText = old;\n                btn.classList.remove('copied');\n              }, 1200);\n            }\n          }\n          showToast(`📋 已复制 JSONPath: ${path}`);\n        });\n      }\n    }\n\nfunction evaluateJsonPath(obj, path) {\n      if (!path || path === '$') return obj;\n      if (path.startsWith('$..')) {\n        const key = path.substring(3);\n        const results = [];\n        function walk(o) {\n          if (o && typeof o === 'object') {\n            for (let k in o) {\n              if (k === key) results.push(o[k]);\n              walk(o[k]);\n            }\n          }\n        }\n        walk(obj);\n        return results.length > 0 ? results : undefined;\n      }\n      const normalized = path.replace(/^\\$\\.?/, '').replace(/\\[(\\d+)\\]/g, '.$1');\n      const segments = normalized.split('.').filter(s => s !== '');\n      let curr = obj;\n      for (let seg of segments) {\n        if (curr === null || curr === undefined) return undefined;\n        if (seg === '*') {\n          if (Array.isArray(curr)) return curr;\n          return Object.values(curr);\n        }\n        curr = curr[seg];\n      }\n      return curr;\n    }\n\nfunction executeJsonPathQuery() {\n      const input = document.getElementById('pJsonPathQueryInput');\n      const countEl = document.getElementById('pJsonPathMatchCount');\n      if (!input || !currentJsonParsedData) {\n        showToast('⚠️ 请先输入有效 JSON 数据');\n        return;\n      }\n      let query = (input.value || '').trim();\n      if (!query) {\n        query = '$';\n        input.value = '$';\n      }\n      try {\n        const result = evaluateJsonPath(currentJsonParsedData, query);\n        if (result === undefined) {\n          if (countEl) countEl.innerText = '未匹配到节点';\n          showToast(`未找到路径 [${query}] 对应的节点`);\n        } else {\n          const resultStr = typeof result === 'object' ? JSON.stringify(result, null, 2) : String(result);\n          if (countEl) {\n            const count = Array.isArray(result) ? result.length : 1;\n            countEl.innerText = `匹配成功 (${count} 项)`;\n          }\n          navigator.clipboard.writeText(resultStr).then(() => {\n            showToast(`✅ 已提取并复制路径 [${query}] 的内容！`);\n          });\n        }\n      } catch(err) {\n        showToast('⚠️ JSONPath 查询出错: ' + err.message);\n      }\n    }\n\nfunction copyCurrentJsonPathQuery() {\n      executeJsonPathQuery();\n    }\n\nfunction computePJsonLinePaths(formatted) {\n      const lines = formatted.split('\\n');\n      const result = new Array(lines.length).fill('');\n      const stack = [];\n\n      for (let i = 0; i < lines.length; i++) {\n        const line = lines[i];\n        const trimmed = line.trim();\n\n        if (stack.length > 0 && stack[stack.length - 1].type === 'array') {\n          const top = stack[stack.length - 1];\n          if (!trimmed.startsWith(']') && (trimmed.startsWith('{') || trimmed.startsWith('[') || !trimmed.endsWith(']'))) {\n            top.index++;\n          }\n        }\n\n        let basePath = '$';\n        for (let s of stack) {\n          if (s.type === 'array') {\n            if (s.index >= 0) basePath += `[${s.index}]`;\n          } else if (s.type === 'object' && s.key) {\n            basePath += `.${s.key}`;\n          }\n        }\n\n        const keyMatch = trimmed.match(/^\"((?:\\\\.|[^\"\\\\])*)\"\\s*:/);\n        let curKey = null;\n        if (keyMatch) {\n          curKey = keyMatch[1];\n        }\n\n        if (curKey !== null) {\n          result[i] = basePath + (basePath === '$' ? `.${curKey}` : `.${curKey}`);\n        } else if (stack.length > 0 && stack[stack.length - 1].type === 'array' && stack[stack.length - 1].index >= 0) {\n          result[i] = basePath;\n        } else if (i === 0) {\n          result[i] = '$';\n        }\n\n        if (trimmed.includes('{')) {\n          stack.push({ type: 'object', key: curKey });\n        }\n        if (trimmed.includes('[')) {\n          stack.push({ type: 'array', key: curKey, index: -1 });\n        }\n        if (trimmed.includes(']')) {\n          if (stack.length > 0 && stack[stack.length - 1].type === 'array') {\n            stack.pop();\n          }\n        }\n        if (trimmed.includes('}')) {\n          if (stack.length > 0 && stack[stack.length - 1].type === 'object') {\n            stack.pop();\n          }\n        }\n      }\n      return result;\n    }\n\nfunction escapeHtmlAttr(str) {\n      if (!str) return '';\n      return String(str).replace(/\"/g, '&quot;').replace(/'/g, '&#39;');\n    }\n\nfunction highlightJson(jsonStr) {\n      if (!jsonStr) return '';\n      const linePaths = computePJsonLinePaths(jsonStr);\n      const lines = jsonStr.split('\\n');\n      return lines.map((line, idx) => {\n        const lineNum = idx + 1;\n        const path = linePaths[idx] || '';\n        let escapedLine = line.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n        let highlighted = escapedLine.replace(/(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g, function (match) {\n          let cls = 'json-number';\n          if (/^\"/.test(match)) {\n            cls = /:$/.test(match) ? 'json-key' : 'json-string';\n          } else if (/true|false/.test(match)) cls = 'json-boolean';\n          else if (/null/.test(match)) cls = 'json-null';\n          return '<span class=\"' + cls + '\">' + match + '</span>';\n        });\n\n        const badgeHtml = path ? `<button type=\"button\" class=\"pjson-line-path-badge\" onclick=\"pCopySpecificJsonPath('${escapeHtmlAttr(path)}')\" title=\"点击复制 JSONPath: ${escapeHtmlAttr(path)}\">📋 ${escapeHtml(path)}</button>` : '';\n\n        return `<div class=\"pjson-code-line\" data-line=\"${lineNum}\" data-path=\"${escapeHtmlAttr(path)}\">` +\n               `<span class=\"pjson-line-num\" onclick=\"pCopySpecificJsonPath('${escapeHtmlAttr(path)}')\" title=\"第 ${lineNum} 行 · 点击复制 JSONPath: ${escapeHtmlAttr(path)}\">${lineNum}</span>` +\n               `<span class=\"pjson-line-content\">${highlighted}</span>` +\n               badgeHtml +\n               `</div>`;\n      }).join('');\n    }\n\nfunction getJsonIndent() {\n      const sel = document.getElementById('pJsonIndentSelect');\n      if (!sel) return 2;\n      const val = sel.value;\n      if (val === 'tab') return '\\t';\n      return parseInt(val, 10) || 2;\n    }\n\nfunction autoValidateJson() {\n      const inputEl = document.getElementById('pJsonInput');\n      const raw = (inputEl ? inputEl.value : '') || '';\n      const banner = document.getElementById('pJsonErrorBanner');\n      const codeOut = document.getElementById('pJsonOutputCode');\n      const stats = document.getElementById('pJsonOutputStats');\n\n      if (!raw.trim()) {\n        if (banner) banner.style.display = 'none';\n        if (codeOut) codeOut.innerHTML = '// 画板内容为空，请点击“✏️ 源码编辑”或“📥 示例”开始使用...';\n        if (stats) stats.innerText = '等待输入...';\n        currentJsonParsedData = null;\n        return;\n      }\n\n      try {\n        const parsed = JSON.parse(raw);\n        currentJsonParsedData = parsed;\n        if (banner) banner.style.display = 'none';\n\n        const indent = getJsonIndent();\n        const formatted = JSON.stringify(parsed, null, indent);\n        const bytes = new Blob([formatted]).size;\n        const lines = formatted.split('\\n').length;\n        const isArr = Array.isArray(parsed);\n        const nodeCount = isArr ? parsed.length : Object.keys(parsed).length;\n        const nodeDesc = isArr ? `数组 (${nodeCount} 项)` : `对象 (${nodeCount} 属性)`;\n\n        if (stats) stats.innerText = `${nodeDesc} · ${lines} 行 · ${bytes} B`;\n\n        if (codeOut) {\n          codeOut.innerHTML = highlightJson(formatted);\n        }\n\n        if (currentJsonCanvasMode === 'tree') renderJsonTreeView(parsed);\n        else if (currentJsonCanvasMode === 'table') renderJsonTableView();\n        else if (currentJsonCanvasMode === 'types') generateJsonTypes(jsonTypeGenLang);\n      } catch (e) {\n        currentJsonParsedData = null;\n        let errLine = null;\n        const msg = e.message;\n        const posMatch = msg.match(/position\\s+(\\d+)/i);\n        const lineMatch = msg.match(/line\\s+(\\d+)/i);\n        if (lineMatch) {\n          errLine = parseInt(lineMatch[1]);\n        } else if (posMatch) {\n          const pos = parseInt(posMatch[1]);\n          errLine = raw.substring(0, pos).split('\\n').length;\n        }\n        const displayError = errLine ? `第 ${errLine} 行语法错误: ${msg}` : `JSON 语法错误: ${msg}`;\n        if (banner) {\n          banner.style.display = 'flex';\n          const errMsgEl = document.getElementById('pJsonErrorMsg');\n          if (errMsgEl) errMsgEl.innerText = displayError;\n        }\n        if (codeOut) codeOut.innerText = raw;\n      }\n    }\n\nfunction formatJsonAction() {\n      autoValidateJson();\n      if (currentJsonParsedData) {\n        switchJsonCanvasMode('code');\n        showToast('✨ JSON 已按规范美化并就地全屏高亮呈现！');\n      }\n    }\n\nfunction smartFixJsonAction() {\n      let raw = (document.getElementById('pJsonInput').value || '');\n      if (!raw) return;\n      try {\n        // 1. 移除单行与多行注释\n        raw = raw.replace(/\\/\\/.*$/gm, '');\n        raw = raw.replace(/\\/\\*[\\s\\S]*?\\*\\//g, '');\n        // 2. 替换中文全角标点符号\n        raw = raw.replace(/：/g, ':').replace(/，/g, ',').replace(/[“”]/g, '\"').replace(/[‘’]/g, \"'\");\n        // 3. 修复缺少双引号的对象键名\n        raw = raw.replace(/([{,\\s])([a-zA-Z0-9_\\$]+)\\s*:/g, '$1\"$2\":');\n        // 4. 将单引号字符串转为双引号\n        raw = raw.replace(/'([^'\\\\]*(?:\\\\.[^'\\\\]*)*)'/g, '\"$1\"');\n        // 5. 移除数组和对象末尾冗余逗号\n        raw = raw.replace(/,\\s*([}\\]])/g, '$1');\n\n        const parsed = JSON.parse(raw);\n        const indent = getJsonIndent();\n        document.getElementById('pJsonInput').value = JSON.stringify(parsed, null, indent);\n        autoValidateJson();\n        showToast('⚡ 一键智能修复成功！已自动修复单引号、尾随逗号、中文标点与注释！');\n      } catch (err) {\n        showToast('⚠️ 智能修复失败: 无法推断该非法结构: ' + err.message);\n      }\n    }\n\nfunction renderJsonTreeView(data) {\n      const area = document.getElementById('pJsonTreeArea');\n      if (!area) return;\n      area.innerHTML = '';\n      area.appendChild(createJsonTreeNode('$', data, '$', 0));\n    }\n\nfunction createJsonTreeNode(key, value, path, depth) {\n      const wrap = document.createElement('div');\n      wrap.className = 'tree-node';\n      wrap.dataset.depth = depth;\n\n      const row = document.createElement('div');\n      row.className = 'tree-row';\n      row.dataset.path = path;\n      row.title = `点击复制节点路径: ${path}`;\n      row.onclick = function(e) {\n        e.stopPropagation();\n        if (navigator.clipboard) {\n          navigator.clipboard.writeText(path).then(() => showToast('已复制节点路径: ' + path));\n        }\n      };\n\n      if (value !== null && typeof value === 'object') {\n        const isArr = Array.isArray(value);\n        const count = isArr ? value.length : Object.keys(value).length;\n        const toggle = document.createElement('span');\n        toggle.className = 'tree-toggle';\n        toggle.innerText = '▼';\n\n        const label = document.createElement('span');\n        label.innerHTML = `<span class=\"tree-key\">${key === '$' ? '$ (根节点)' : `\"${escapeHtml(key)}\"`}</span>: <span style=\"color:var(--text-muted);\">${isArr ? '[' : '{'}</span><span class=\"type-badge\">${isArr ? `Array[${count}]` : `Object{${count}}`}</span>`;\n\n        row.appendChild(toggle);\n        row.appendChild(label);\n\n        const chip = document.createElement('button');\n        chip.type = 'button';\n        chip.className = 'pjson-tree-path-chip';\n        chip.title = `点击复制 JSONPath: ${path}`;\n        chip.innerText = '📋 ' + path;\n        chip.onclick = function(e) { pCopyTreePath(e, path); };\n        row.appendChild(chip);\n\n        wrap.appendChild(row);\n\n        const children = document.createElement('div');\n        children.className = 'tree-children';\n        children.style.marginLeft = '14px';\n\n        for (let k in value) {\n          const nextPath = isArr ? `${path}[${k}]` : `${path}.${k}`;\n          children.appendChild(createJsonTreeNode(k, value[k], nextPath, depth + 1));\n        }\n        wrap.appendChild(children);\n\n        const footer = document.createElement('div');\n        footer.style.color = 'var(--text-muted)';\n        footer.style.marginLeft = '18px';\n        footer.innerText = isArr ? ']' : '}';\n        wrap.appendChild(footer);\n\n        toggle.onclick = function(e) {\n          e.stopPropagation();\n          const isCollapsed = children.style.display === 'none';\n          children.style.display = isCollapsed ? 'block' : 'none';\n          footer.style.display = isCollapsed ? 'block' : 'none';\n          toggle.innerText = isCollapsed ? '▼' : '▶';\n        };\n      } else {\n        const leafToggle = document.createElement('span');\n        leafToggle.className = 'tree-toggle';\n        leafToggle.style.visibility = 'hidden';\n        leafToggle.innerText = '•';\n        row.appendChild(leafToggle);\n\n        const label = document.createElement('span');\n        let valSpan = document.createElement('span');\n\n        if (typeof value === 'string') {\n          valSpan.className = 'tree-string';\n          valSpan.innerText = `\"${value}\"`;\n        } else if (typeof value === 'number') {\n          valSpan.className = 'tree-number';\n          valSpan.innerText = String(value);\n        } else if (typeof value === 'boolean') {\n          valSpan.className = 'tree-boolean';\n          valSpan.innerText = String(value);\n        } else if (value === null) {\n          valSpan.className = 'tree-null';\n          valSpan.innerText = 'null';\n        }\n\n        label.innerHTML = `<span class=\"tree-key\">\"${escapeHtml(key)}\"</span>: `;\n        label.appendChild(valSpan);\n        row.appendChild(label);\n\n        const leafChip = document.createElement('button');\n        leafChip.type = 'button';\n        leafChip.className = 'pjson-tree-path-chip';\n        leafChip.title = `点击复制 JSONPath: ${path}`;\n        leafChip.innerText = '📋 ' + path;\n        leafChip.onclick = function(e) { pCopyTreePath(e, path); };\n        row.appendChild(leafChip);\n\n        valSpan.title = '双击可就地编辑此数值并同步反写回源码';\n        valSpan.ondblclick = function(e) {\n          e.stopPropagation();\n          const input = document.createElement('input');\n          input.className = 'inline-edit-input';\n          input.value = typeof value === 'string' ? value : String(value);\n          valSpan.replaceWith(input);\n          input.focus();\n          input.select();\n\n          function saveInline() {\n            let newVal = input.value;\n            if (typeof value === 'number') {\n              const num = Number(newVal);\n              if (!isNaN(num)) newVal = num;\n            } else if (typeof value === 'boolean') {\n              newVal = (newVal === 'true');\n            } else if (value === null && newVal === 'null') {\n              newVal = null;\n            }\n            updateJsonDataByPath(path, newVal);\n            const indent = getJsonIndent();\n            document.getElementById('pJsonInput').value = JSON.stringify(currentJsonParsedData, null, indent);\n            autoValidateJson();\n            showToast('已修改数值并同步反写左侧源码！');\n          }\n\n          input.onblur = saveInline;\n          input.onkeydown = function(ev) {\n            if (ev.key === 'Enter') saveInline();\n            else if (ev.key === 'Escape') autoValidateJson();\n          };\n        };\n\n        wrap.appendChild(row);\n      }\n      return wrap;\n    }\n\nfunction updateJsonDataByPath(path, newVal) {\n      if (!currentJsonParsedData || path === '$') return;\n      const parts = [];\n      path.replace(/^\\$\\.?/, '').replace(/\\[(\\d+)\\]/g, '.$1').split('.').forEach(p => {\n        if (p !== '') parts.push(p);\n      });\n      let curr = currentJsonParsedData;\n      for (let i = 0; i < parts.length - 1; i++) {\n        if (curr[parts[i]] !== undefined) curr = curr[parts[i]];\n        else return;\n      }\n      curr[parts[parts.length - 1]] = newVal;\n    }\n\nfunction expandAllJsonTree(expand) {\n      document.querySelectorAll('#pJsonTreeArea .tree-children').forEach(c => {\n        c.style.display = expand ? 'block' : 'none';\n      });\n      document.querySelectorAll('#pJsonTreeArea .tree-toggle').forEach(t => {\n        if (t.style.visibility !== 'hidden') t.innerText = expand ? '▼' : '▶';\n      });\n    }\n\nfunction expandJsonTreeToDepth(maxDepth) {\n      document.querySelectorAll('#pJsonTreeArea .tree-node').forEach(node => {\n        const d = parseInt(node.dataset.depth || '0', 10);\n        const children = node.querySelector(':scope > .tree-children');\n        const toggle = node.querySelector(':scope > .tree-row > .tree-toggle');\n        if (children) {\n          const expand = d < maxDepth;\n          children.style.display = expand ? 'block' : 'none';\n          if (toggle && toggle.style.visibility !== 'hidden') toggle.innerText = expand ? '▼' : '▶';\n        }\n      });\n    }\n\nfunction onJsonTreeSearch(kw) {\n      kw = (kw || '').trim().toLowerCase();\n      document.querySelectorAll('#pJsonTreeArea .tree-row').forEach(row => {\n        const text = row.innerText.toLowerCase();\n        if (kw && text.includes(kw)) {\n          row.classList.add('highlighted');\n          let parent = row.closest('.tree-children');\n          while (parent) {\n            parent.style.display = 'block';\n            parent = parent.parentElement ? parent.parentElement.closest('.tree-children') : null;\n          }\n        } else {\n          row.classList.remove('highlighted');\n        }\n      });\n    }\n\nfunction renderJsonTableView() {\n      const area = document.getElementById('pJsonTableArea');\n      const info = document.getElementById('pJsonTableInfo');\n      if (!area) return;\n      area.innerHTML = '';\n\n      if (!currentJsonParsedData) {\n        area.innerHTML = '<div style=\"color:var(--text-muted); padding: 20px;\">暂无可呈现的表格数据</div>';\n        return;\n      }\n\n      let arr = [];\n      if (Array.isArray(currentJsonParsedData)) {\n        arr = currentJsonParsedData;\n        if (info) info.innerText = `展示数组 (${arr.length} 条记录)`;\n      } else if (typeof currentJsonParsedData === 'object') {\n        for (let k in currentJsonParsedData) {\n          if (Array.isArray(currentJsonParsedData[k]) && currentJsonParsedData[k].length > 0 && typeof currentJsonParsedData[k][0] === 'object') {\n            arr = currentJsonParsedData[k];\n            if (info) info.innerText = `展示属性 [${k}] 数组 (${arr.length} 条记录)`;\n            break;\n          }\n        }\n      }\n\n      if (!arr || arr.length === 0 || typeof arr[0] !== 'object') {\n        area.innerHTML = '<div style=\"color:var(--text-muted); padding: 20px;\">当前 JSON 不包含对象数组，无法生成二维表格。</div>';\n        return;\n      }\n\n      const headerSet = new Set();\n      arr.forEach(row => {\n        if (typeof row === 'object' && row !== null) {\n          Object.keys(row).forEach(k => headerSet.add(k));\n        }\n      });\n      currentJsonTableHeaders = Array.from(headerSet);\n      currentJsonTableRows = [...arr];\n\n      renderJsonTableDOM();\n    }\n\nfunction renderJsonTableDOM() {\n      const area = document.getElementById('pJsonTableArea');\n      let html = '<table class=\"data-table\"><thead><tr>';\n      currentJsonTableHeaders.forEach(h => {\n        const arrow = (jsonTableSortCol === h) ? (jsonTableSortAsc ? ' ▲' : ' ▼') : '';\n        html += `<th onclick=\"sortJsonTableBy('${h}')\">${h}${arrow}</th>`;\n      });\n      html += '</tr></thead><tbody>';\n\n      currentJsonTableRows.forEach(row => {\n        html += '<tr>';\n        currentJsonTableHeaders.forEach(h => {\n          let val = row[h];\n          if (typeof val === 'object' && val !== null) val = JSON.stringify(val);\n          else if (val === undefined || val === null) val = '';\n          html += `<td>${escapeHtml(String(val))}</td>`;\n        });\n        html += '</tr>';\n      });\n      html += '</tbody></table>';\n      area.innerHTML = html;\n    }\n\nfunction sortJsonTableBy(col) {\n      if (jsonTableSortCol === col) {\n        jsonTableSortAsc = !jsonTableSortAsc;\n      } else {\n        jsonTableSortCol = col;\n        jsonTableSortAsc = true;\n      }\n      currentJsonTableRows.sort((a, b) => {\n        let v1 = a[col], v2 = b[col];\n        if (v1 === v2) return 0;\n        if (v1 === undefined) return 1;\n        if (v2 === undefined) return -1;\n        return jsonTableSortAsc ? (v1 > v2 ? 1 : -1) : (v1 < v2 ? 1 : -1);\n      });\n      renderJsonTableDOM();\n    }\n\nfunction exportJsonTableToCsv() {\n      if (!currentJsonTableRows || currentJsonTableRows.length === 0) {\n        showToast('暂无表格数据可导出');\n        return;\n      }\n      let csv = '\\uFEFF';\n      csv += currentJsonTableHeaders.map(h => `\"${h.replace(/\"/g, '\"\"')}\"`).join(',') + '\\r\\n';\n      currentJsonTableRows.forEach(row => {\n        csv += currentJsonTableHeaders.map(h => {\n          let val = row[h];\n          if (typeof val === 'object' && val !== null) val = JSON.stringify(val);\n          else if (val === undefined || val === null) val = '';\n          return `\"${String(val).replace(/\"/g, '\"\"')}\"`;\n        }).join(',') + '\\r\\n';\n      });\n      const blob = new Blob([csv], { type: 'text/csv;charset=utf-8' });\n      const url = URL.createObjectURL(blob);\n      const a = document.createElement('a');\n      a.href = url;\n      a.download = `rockvault_table_${Date.now()}.csv`;\n      a.click();\n      URL.revokeObjectURL(url);\n      showToast('📥 表格数据已导出为 CSV 文件！');\n    }\n\nfunction generateJsonTypes(lang) {\n      jsonTypeGenLang = lang;\n      const btnTs = document.getElementById('btnJsonTypeTs');\n      const btnJava = document.getElementById('btnJsonTypeJava');\n      if (btnTs) btnTs.className = (lang === 'ts') ? 'btn-action primary' : 'btn-action';\n      if (btnJava) btnJava.className = (lang === 'java') ? 'btn-action primary' : 'btn-action';\n      const out = document.getElementById('pJsonTypesCode');\n      if (!out) return;\n      if (!currentJsonParsedData) {\n        out.innerText = '// 请先输入有效的 JSON 数据';\n        return;\n      }\n      if (lang === 'ts') {\n        let interfaces = [];\n        function inferType(val, keyName = 'Item') {\n          if (val === null) return 'any';\n          if (Array.isArray(val)) {\n            if (val.length === 0) return 'any[]';\n            return `${inferType(val[0], keyName)}[]`;\n          }\n          if (typeof val === 'object') {\n            const typeName = keyName.charAt(0).toUpperCase() + keyName.slice(1);\n            generateInterface(val, typeName);\n            return typeName;\n          }\n          return typeof val;\n        }\n        function generateInterface(o, name) {\n          let lines = [`export interface ${name} {`];\n          for (let k in o) {\n            lines.push(`  ${k}: ${inferType(o[k], k)};`);\n          }\n          lines.push('}');\n          interfaces.push(lines.join('\\n'));\n        }\n        generateInterface(Array.isArray(currentJsonParsedData) ? (currentJsonParsedData[0] || {}) : currentJsonParsedData, 'RootModel');\n        out.innerText = interfaces.reverse().join('\\n\\n');\n      } else {\n        let classes = [];\n        function inferJavaType(val, keyName = 'Item') {\n          if (val === null) return 'Object';\n          if (typeof val === 'string') return 'String';\n          if (typeof val === 'number') return Number.isInteger(val) ? 'Integer' : 'Double';\n          if (typeof val === 'boolean') return 'Boolean';\n          if (Array.isArray(val)) {\n            if (val.length === 0) return 'List<Object>';\n            return `List<${inferJavaType(val[0], keyName)}>`;\n          }\n          if (typeof val === 'object') {\n            const clsName = keyName.charAt(0).toUpperCase() + keyName.slice(1);\n            generateClass(val, clsName);\n            return clsName;\n          }\n          return 'Object';\n        }\n        function generateClass(o, name) {\n          let lines = ['@Data', '@NoArgsConstructor', '@AllArgsConstructor', `public class ${name} {`];\n          for (let k in o) {\n            lines.push(`    private ${inferJavaType(o[k], k)} ${k};`);\n          }\n          lines.push('}');\n          classes.push(lines.join('\\n'));\n        }\n        generateClass(Array.isArray(currentJsonParsedData) ? (currentJsonParsedData[0] || {}) : currentJsonParsedData, 'RootModel');\n        out.innerText = classes.reverse().join('\\n\\n');\n      }\n    }\n\nfunction copyJsonTypesResult() {\n      const code = document.getElementById('pJsonTypesCode').innerText;\n      if (code) {\n        navigator.clipboard.writeText(code).then(() => showToast('📋 类型定义代码已复制！'));\n      }\n    }\n\nfunction toggleUnicodeChineseAction() {\n      const raw = document.getElementById('pJsonInput').value;\n      if (!raw) return;\n      if (/\\\\u[0-9a-fA-F]{4}/.test(raw)) {\n        const unescaped = raw.replace(/\\\\u([0-9a-fA-F]{4})/g, (match, hex) => String.fromCharCode(parseInt(hex, 16)));\n        document.getElementById('pJsonInput').value = unescaped;\n        autoValidateJson();\n        showToast('🇨🇳 已将 Unicode 转为可读中文字符！');\n      } else {\n        const escaped = raw.replace(/[\\u4e00-\\u9fa5]/g, (char) => '\\\\u' + char.charCodeAt(0).toString(16).padStart(4, '0'));\n        document.getElementById('pJsonInput').value = escaped;\n        autoValidateJson();\n        showToast('🔣 已将中文字符转为 \\\\uXXXX 编码！');\n      }\n    }\n\nfunction compressJsonAction() {\n      const raw = (document.getElementById('pJsonInput').value || '').trim();\n      if (!raw) return;\n      try {\n        const obj = JSON.parse(raw);\n        const minified = JSON.stringify(obj);\n        document.getElementById('pJsonInput').value = minified;\n        autoValidateJson();\n        showToast('⚡ JSON 单行紧凑压缩完成！');\n      } catch (e) {\n        showToast('❌ JSON 语法错误: ' + e.message);\n      }\n    }\n\nfunction sortJsonKeysAction() {\n      const raw = (document.getElementById('pJsonInput').value || '').trim();\n      if (!raw) return;\n      try {\n        const sortObj = (o) => {\n          if (Array.isArray(o)) return o.map(sortObj);\n          if (o !== null && typeof o === 'object') {\n            return Object.keys(o).sort().reduce((acc, k) => {\n              acc[k] = sortObj(o[k]);\n              return acc;\n            }, {});\n          }\n          return o;\n        };\n        const obj = JSON.parse(raw);\n        const sorted = JSON.stringify(sortObj(obj), null, getJsonIndent());\n        document.getElementById('pJsonInput').value = sorted;\n        autoValidateJson();\n        showToast('🔤 字典键递归排序完成！');\n      } catch (e) {\n        showToast('❌ 排序错误: ' + e.message);\n      }\n    }\n\nfunction clearJsonInput() {\n      document.getElementById('pJsonInput').value = '';\n      autoValidateJson();\n      showToast('🗑️ 已清空输入内容');\n    }\n\nfunction copyJsonResult() {\n      if (!currentJsonParsedData) {\n        const raw = document.getElementById('pJsonInput').value;\n        if (raw) {\n          navigator.clipboard.writeText(raw).then(() => showToast('📋 内容已复制！'));\n        } else {\n          showToast('⚠️ 暂无可复制内容');\n        }\n        return;\n      }\n      const text = JSON.stringify(currentJsonParsedData, null, getJsonIndent());\n      navigator.clipboard.writeText(text).then(() => showToast('📋 格式化结果已复制！'));\n    }\n\nfunction saveJsonToVault() {\n      const text = document.getElementById('pJsonInput').value;\n      if (!text) return showToast('⚠️ 暂无可存内容');\n      savePluginOutputToVault('JSON 配置资产', 'note', text);\n    }\n\nfunction downloadJsonFile() {\n      const text = currentJsonParsedData ? JSON.stringify(currentJsonParsedData, null, getJsonIndent()) : document.getElementById('pJsonInput').value;\n      if (!text) return showToast('⚠️ 暂无内容可导出');\n      const blob = new Blob([text], { type: 'application/json;charset=utf-8' });\n      const url = URL.createObjectURL(blob);\n      const a = document.createElement('a');\n      a.href = url;\n      a.download = `rockvault_data_${Date.now()}.json`;\n      a.click();\n      URL.revokeObjectURL(url);\n      showToast('💾 JSON 文件导出成功！');\n    }\n\nfunction pasteToInputJson() {\n      if (navigator.clipboard) {\n        navigator.clipboard.readText().then(text => {\n          const input = document.getElementById('pJsonInput');\n          if (input) input.value = text;\n          autoValidateJson();\n          switchJsonCanvasMode('code');\n          showToast('📥 已从剪贴板粘贴并自动格式化高亮呈现！');\n        }).catch(() => {\n          switchJsonCanvasMode('edit');\n          showToast('请直接使用 Ctrl+V 快捷键粘贴');\n        });\n      } else {\n        switchJsonCanvasMode('edit');\n      }\n    }\n\nfunction loadSampleJson() {\n      const demo = {\n        platform: \"RockVault Enterprise Security\",\n        version: \"1.0.19\",\n        description: \"银行军规级密码保险箱 · 零知识本地加密体系 · 单画板全屏工作台\",\n        timestamp: new Date().toISOString(),\n        verified: true,\n        security_specs: {\n          encryption: \"AES-256-GCM (Hardware Accelerated)\",\n          kdf_algorithm: \"PBKDF2-HMAC-SHA256 (600,000 Iterations)\",\n          totp_support: \"RFC 6238 Authenticator Standard\"\n        },\n        cluster_nodes: [\n          { name: \"Node 1 (Tencent Cloud)\", ip: \"node-bj-01.demo.local\", status: \"ONLINE\", latency_ms: 18 },\n          { name: \"Node 2 (Alibaba Cloud)\", ip: \"node-sh-02.demo.local\", status: \"ONLINE\", latency_ms: 22 }\n        ],\n        commercial_plugins: [\n          \"crypto-hasher\", \"base64-codec\", \"json-formatter\",\n          \"timestamp-converter\", \"jwt-inspector\", \"text-diff\", \"password-batch-generator\"\n        ]\n      };\n      const formatted = JSON.stringify(demo, null, getJsonIndent());\n      const input = document.getElementById('pJsonInput');\n      if (input) input.value = formatted;\n      autoValidateJson();\n      switchJsonCanvasMode('code');\n      showToast('🚀 已载入真实生产级 JSON 并完成全屏色彩高亮与结构解析！');\n    }\n\nfunction toggleJsonFullscreen() {\n      const container = document.getElementById('jsonWorkbenchContainer');\n      const btn = document.getElementById('btnJsonFullscreen');\n      if (!container) return;\n\n      isJsonFullscreen = !isJsonFullscreen;\n      container.classList.toggle('json-fullscreen-workbench', isJsonFullscreen);\n\n      if (btn) {\n        btn.innerHTML = isJsonFullscreen ? '<span>⛶ 退出全屏 (ESC)</span>' : '<span>⛶ 全屏</span>';\n        btn.style.background = isJsonFullscreen ? 'var(--danger)' : '';\n      }\n\n      // 联动 Windows 客户端原生桌面全屏 API\n      if (window.pywebview && window.pywebview.api && window.pywebview.api.toggle_fullscreen) {\n        try { window.pywebview.api.toggle_fullscreen(); } catch(e) {}\n      }\n\n      if (isJsonFullscreen) {\n        if (document.documentElement.requestFullscreen && !document.fullscreenElement) {\n          document.documentElement.requestFullscreen().catch(() => {});\n        }\n        showToast('⛶ 已进入全屏沉浸工作台模式 (按 ESC 退出)');\n      } else {\n        if (document.exitFullscreen && document.fullscreenElement) {\n          document.exitFullscreen().catch(() => {});\n        }\n        showToast('已退出全屏工作台模式');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof document !== 'undefined' && typeof window !== 'undefined' && !window.__rvJsonKeydownBound) {\n    window.__rvJsonKeydownBound = true;\n    document.addEventListener('keydown', function(e) {\n      if (e.key === 'Escape' && typeof isJsonFullscreen !== 'undefined' && isJsonFullscreen) {\n        toggleJsonFullscreen();\n      }\n      const bench = document.getElementById('jsonWorkbenchContainer');\n      if (bench && bench.offsetParent !== null) {\n        if ((e.ctrlKey || e.metaKey) && e.key === 'Enter') {\n          e.preventDefault();\n          formatJsonAction();\n        } else if ((e.ctrlKey || e.metaKey) && (e.key === 'e' || e.key === 'E')) {\n          e.preventDefault();\n          toggleEditOrCodeMode();\n        }\n      }\n    });\n  }\n  if (typeof window !== 'undefined') {\n    window[\"switchJsonCanvasMode\"] = switchJsonCanvasMode;\n    window[\"toggleEditOrCodeMode\"] = toggleEditOrCodeMode;\n    window[\"pCopySpecificJsonPath\"] = pCopySpecificJsonPath;\n    window[\"pCopyTreePath\"] = pCopyTreePath;\n    window[\"evaluateJsonPath\"] = evaluateJsonPath;\n    window[\"executeJsonPathQuery\"] = executeJsonPathQuery;\n    window[\"copyCurrentJsonPathQuery\"] = copyCurrentJsonPathQuery;\n    window[\"computePJsonLinePaths\"] = computePJsonLinePaths;\n    window[\"escapeHtmlAttr\"] = escapeHtmlAttr;\n    window[\"highlightJson\"] = highlightJson;\n    window[\"getJsonIndent\"] = getJsonIndent;\n    window[\"autoValidateJson\"] = autoValidateJson;\n    window[\"formatJsonAction\"] = formatJsonAction;\n    window[\"smartFixJsonAction\"] = smartFixJsonAction;\n    window[\"renderJsonTreeView\"] = renderJsonTreeView;\n    window[\"createJsonTreeNode\"] = createJsonTreeNode;\n    window[\"updateJsonDataByPath\"] = updateJsonDataByPath;\n    window[\"expandAllJsonTree\"] = expandAllJsonTree;\n    window[\"expandJsonTreeToDepth\"] = expandJsonTreeToDepth;\n    window[\"onJsonTreeSearch\"] = onJsonTreeSearch;\n    window[\"renderJsonTableView\"] = renderJsonTableView;\n    window[\"renderJsonTableDOM\"] = renderJsonTableDOM;\n    window[\"sortJsonTableBy\"] = sortJsonTableBy;\n    window[\"exportJsonTableToCsv\"] = exportJsonTableToCsv;\n    window[\"generateJsonTypes\"] = generateJsonTypes;\n    window[\"copyJsonTypesResult\"] = copyJsonTypesResult;\n    window[\"toggleUnicodeChineseAction\"] = toggleUnicodeChineseAction;\n    window[\"compressJsonAction\"] = compressJsonAction;\n    window[\"sortJsonKeysAction\"] = sortJsonKeysAction;\n    window[\"clearJsonInput\"] = clearJsonInput;\n    window[\"copyJsonResult\"] = copyJsonResult;\n    window[\"saveJsonToVault\"] = saveJsonToVault;\n    window[\"downloadJsonFile\"] = downloadJsonFile;\n    window[\"pasteToInputJson\"] = pasteToInputJson;\n    window[\"loadSampleJson\"] = loadSampleJson;\n    window[\"toggleJsonFullscreen\"] = toggleJsonFullscreen;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"json-formatter\",\n    name: \"JSON 语法解析高亮\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"📋\",\n    version: \"1.0.0\",\n    desc: \"JSON 语法校验、色彩高亮、交互树形视图、二维表格解析、一键容错修复与全屏工作台\",\n    render(container, prefillVal = '') {\n          container.innerHTML = `\n            <div id=\"jsonWorkbenchContainer\">\n              <!-- 顶部现代双层主控栏 -->\n              <div class=\"json-workbench-toolbar\">\n                <div class=\"json-toolbar-row\">\n                  <div class=\"json-toolbar-left\">\n                    <div class=\"json-mode-pill-group\">\n                      <button type=\"button\" class=\"json-mode-pill active\" id=\"pillJsonCode\" onclick=\"switchJsonCanvasMode('code')\" title=\"全屏查看语法高亮与 JSONPath 悬浮复制\">\n                        <span>💻 高亮浏览</span>\n                      </button>\n                      <button type=\"button\" class=\"json-mode-pill\" id=\"pillJsonEdit\" onclick=\"switchJsonCanvasMode('edit')\" title=\"全屏编辑或直接粘贴 JSON 源码 (Ctrl+E)\">\n                        <span>✏️ 源码编辑</span>\n                      </button>\n                      <button type=\"button\" class=\"json-mode-pill\" id=\"pillJsonTree\" onclick=\"switchJsonCanvasMode('tree')\" title=\"交互式全屏折叠展开树形结构\">\n                        <span>🌳 树形结构</span>\n                      </button>\n                      <button type=\"button\" class=\"json-mode-pill\" id=\"pillJsonTable\" onclick=\"switchJsonCanvasMode('table')\" title=\"自动解析对象数组为二维大表格\">\n                        <span>📊 数据表格</span>\n                      </button>\n                      <button type=\"button\" class=\"json-mode-pill\" id=\"pillJsonTypes\" onclick=\"switchJsonCanvasMode('types')\" title=\"一键生成 TypeScript 或 Java 接口定义\">\n                        <span>⚙️ 类型定义</span>\n                      </button>\n                    </div>\n                  </div>\n\n                  <div class=\"json-toolbar-right\">\n                    <button class=\"btn-action primary\" id=\"btnJsonFmt\" onclick=\"formatJsonAction()\" style=\"font-weight: 700; padding: 4px 12px; height: 26px;\" title=\"格式化并就地高亮呈现 (Ctrl+Enter)\">\n                      <span>格式化</span>\n                    </button>\n                    <button class=\"btn-action btn-compact\" onclick=\"compressJsonAction()\" title=\"单行紧凑压缩\">\n                      <span>压缩</span>\n                    </button>\n                    <button class=\"btn-action btn-compact\" onclick=\"copyJsonResult()\" title=\"复制当前格式化结果\">\n                      <span>复制</span>\n                    </button>\n                    <button class=\"btn-action btn-compact\" onclick=\"clearJsonInput()\" title=\"清空画板内容\">\n                      <span>清空</span>\n                    </button>\n                    <select class=\"form-select\" id=\"pJsonIndentSelect\" onchange=\"formatJsonAction()\" style=\"min-width: 95px; width: auto; padding: 2px 24px 2px 8px; font-size: 12px; height: 30px;\">\n                      <option value=\"2\" selected>2 空格</option>\n                      <option value=\"4\">4 空格</option>\n                      <option value=\"tab\">Tab 缩进</option>\n                    </select>\n                    <details style=\"position: relative; display: inline-block;\">\n                      <summary class=\"btn-action btn-compact\" style=\"list-style: none; cursor: pointer;\">更多 ▾</summary>\n                      <div style=\"position: absolute; right: 0; top: calc(100% + 4px); min-width: 150px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 100; display: flex; flex-direction: column; gap: 4px;\">\n                        <button class=\"btn-action btn-compact\" onclick=\"pasteToInputJson()\">粘贴内容</button>\n                        <button class=\"btn-action btn-compact\" onclick=\"sortJsonKeysAction()\">Key 升序排序</button>\n                        <button class=\"btn-action btn-compact\" onclick=\"toggleUnicodeChineseAction()\">Unicode 中文互转</button>\n                        <button class=\"btn-action btn-compact\" onclick=\"loadSampleJson()\">载入示例</button>\n                        <button class=\"btn-action btn-compact\" onclick=\"saveJsonToVault()\">存入保险箱</button>\n                        <button class=\"btn-action btn-compact\" onclick=\"downloadJsonFile()\">导出 JSON</button>\n                        <button class=\"btn-action btn-compact\" id=\"btnJsonFullscreen\" onclick=\"toggleJsonFullscreen()\">全屏模式</button>\n                      </div>\n                    </details>\n                  </div>\n                </div>\n              </div>\n\n              <!-- 智能容错修复横幅 -->\n              <div id=\"pJsonErrorBanner\" class=\"error-banner\" style=\"display: none;\">\n                <div style=\"display: flex; align-items: center; gap: 8px; overflow: hidden;\">\n                  <span style=\"font-size: 15px;\">⚠️</span>\n                  <span id=\"pJsonErrorMsg\" style=\"overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;\">语法错误</span>\n                </div>\n                <div style=\"display: flex; align-items: center; gap: 6px; flex-shrink: 0;\">\n                  <button class=\"btn-action\" onclick=\"switchJsonCanvasMode('edit')\" style=\"padding: 2px 8px; font-size: 11.5px;\">✏️ 定位编辑</button>\n                  <button class=\"btn-smart-fix\" id=\"btnJsonSmartFix\" onclick=\"smartFixJsonAction()\">\n                    <span>⚡ 一键智能修复单引号/注释/尾随逗号</span>\n                  </button>\n                </div>\n              </div>\n\n              <!-- 单页面统一画板 -->\n              <div class=\"json-unified-canvas\">\n                <div class=\"json-canvas-header\">\n                  <div class=\"pjsonpath-toolbar\">\n                    <span class=\"pjsonpath-label\">🔍 JSONPath:</span>\n                    <div class=\"pjsonpath-input-group\">\n                      <input type=\"text\" class=\"pjsonpath-input\" id=\"pJsonPathQueryInput\" placeholder=\"输入路径，如 $.cluster_nodes[0].ip...\" onkeydown=\"if(event.key==='Enter') executeJsonPathQuery()\">\n                    </div>\n                    <button class=\"btn-action primary btn-compact\" onclick=\"executeJsonPathQuery()\" title=\"提取并匹配节点 (Enter)\">提取</button>\n                    <button class=\"btn-action btn-compact\" onclick=\"copyCurrentJsonPathQuery()\" title=\"复制匹配节点结果\">📋 复制</button>\n                    <span id=\"pJsonPathMatchCount\" class=\"pjsonpath-count\"></span>\n                  </div>\n\n                  <div class=\"json-canvas-header-right\">\n                    <span id=\"pJsonOutputStats\" class=\"pjson-stats-badge\">就绪</span>\n                    <button class=\"btn-action btn-compact\" id=\"btnCanvasModeQuickToggle\" onclick=\"toggleEditOrCodeMode()\" style=\"font-weight: 600; color: var(--purple); border-color: var(--purple);\" title=\"快捷键 Ctrl+E 切换为全屏源码编辑\">\n                      <span>✏️ 源码编辑</span>\n                    </button>\n                  </div>\n                </div>\n\n                <div class=\"json-canvas-body\">\n                  <div id=\"pJsonViewCode\" style=\"display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; overflow: hidden;\">\n                    <pre class=\"pjson-code-output\" id=\"pJsonOutputCode\" style=\"border: none; border-radius: 0; background: transparent; padding: 12px 16px;\">// 格式化结果将全屏呈现在此，鼠标悬停任意行可一键复制对应 JSONPath...</pre>\n                  </div>\n\n                  <div id=\"pJsonViewEdit\" style=\"display: none; flex-direction: column; flex: 1; min-height: 0; height: 100%; overflow: hidden;\">\n                    <textarea class=\"pjson-unified-textarea\" id=\"pJsonInput\" placeholder=\"在此粘贴或输入 JSON 文本，系统将实时自动化验证、按 Ctrl+Enter 立即格式化并高亮呈现...\" oninput=\"autoValidateJson()\"></textarea>\n                  </div>\n\n                  <div id=\"pJsonViewTree\" style=\"display: none; height: 100%; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; padding: 10px 14px;\">\n                    <div class=\"tree-toolbar\">\n                      <div style=\"display: flex; gap: 4px;\">\n                        <button class=\"btn-action\" onclick=\"expandAllJsonTree(true)\" style=\"padding: 2px 7px; font-size: 11px;\">全部展开</button>\n                        <button class=\"btn-action\" onclick=\"expandAllJsonTree(false)\" style=\"padding: 2px 7px; font-size: 11px;\">全部折叠</button>\n                        <button class=\"btn-action\" onclick=\"expandJsonTreeToDepth(1)\" style=\"padding: 2px 7px; font-size: 11px;\">1级</button>\n                        <button class=\"btn-action\" onclick=\"expandJsonTreeToDepth(2)\" style=\"padding: 2px 7px; font-size: 11px;\">2级</button>\n                        <button class=\"btn-action\" onclick=\"expandJsonTreeToDepth(3)\" style=\"padding: 2px 7px; font-size: 11px;\">3级</button>\n                      </div>\n                      <div style=\"display: flex; align-items: center; gap: 6px;\">\n                        <input type=\"text\" class=\"form-input\" placeholder=\"🔍 过滤树节点...\" oninput=\"onJsonTreeSearch(this.value)\" style=\"width: 140px; padding: 2px 6px; font-size: 11px; height: 24px;\">\n                      </div>\n                    </div>\n                    <div class=\"tree-view-container\" id=\"pJsonTreeArea\" style=\"border: none; background: transparent; padding: 4px;\"></div>\n                  </div>\n\n                  <div id=\"pJsonViewTable\" style=\"display: none; height: 100%; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; padding: 10px 14px;\">\n                    <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-shrink: 0;\">\n                      <span id=\"pJsonTableInfo\" style=\"font-size: 11.5px; color: var(--text-muted);\">针对对象数组自动生成二维表格</span>\n                      <button class=\"btn-action\" onclick=\"exportJsonTableToCsv()\" style=\"padding: 2px 8px; font-size: 11.5px;\">📥 导出 CSV 表格</button>\n                    </div>\n                    <div class=\"table-view-container\" id=\"pJsonTableArea\" style=\"border: none; background: transparent; padding: 0;\"></div>\n                  </div>\n\n                  <div id=\"pJsonViewTypes\" style=\"display: none; height: 100%; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; padding: 10px 14px;\">\n                    <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-shrink: 0;\">\n                      <div style=\"display: flex; gap: 4px;\">\n                        <button class=\"btn-action primary\" id=\"btnJsonTypeTs\" onclick=\"generateJsonTypes('ts')\">TypeScript Interface</button>\n                        <button class=\"btn-action\" id=\"btnJsonTypeJava\" onclick=\"generateJsonTypes('java')\">Java Lombok POJO</button>\n                      </div>\n                      <button class=\"btn-action primary\" onclick=\"copyJsonTypesResult()\" style=\"padding: 2px 8px; font-size: 11.5px;\">📋 复制定义</button>\n                    </div>\n                    <pre class=\"pjson-code-output\" id=\"pJsonTypesCode\" style=\"border: none; background: transparent; padding: 8px;\">// 类型定义将在此生成...</pre>\n                  </div>\n                </div>\n\n                <div style=\"padding: 6px 14px; border-top: 1px solid var(--border-color); background: var(--bg-surface); display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); flex-shrink: 0;\">\n                  <div id=\"pJsonStatusText\" style=\"display: flex; align-items: center; gap: 8px;\">\n                    <span>✅ 就绪</span>\n                    <span>·</span>\n                    <span>单页面无分屏模式</span>\n                  </div>\n                  <div style=\"display: flex; align-items: center; gap: 12px;\">\n                    <span>快捷键: <kbd style=\"background:var(--bg-card); padding:1px 4px; border-radius:3px; border:1px solid var(--border-color);\">Ctrl+Enter</kbd> 美化 · <kbd style=\"background:var(--bg-card); padding:1px 4px; border-radius:3px; border:1px solid var(--border-color);\">Ctrl+E</kbd> 切换编辑</span>\n                  </div>\n                </div>\n              </div>\n            </div>\n          `;\n          if (prefillVal) {\n            document.getElementById('pJsonInput').value = prefillVal;\n            formatJsonAction();\n          }\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"timestamp-converter","name":"Unix 时间戳互转","category":"数据与 SQL","cat_id":"data","icon":"⏱️","version":"1.0.0","desc":"10位/13位时间戳与北京时间/UTC 双向秒级互转及快捷相对时间","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet timestampInterval = null;\n\nfunction startTimestampTicker() {\n      const tick = () => {\n        const now = Date.now();\n        const sec = Math.floor(now / 1000);\n        const secEl = document.getElementById('pTsNowSec');\n        const msEl = document.getElementById('pTsNowMs');\n        if (secEl) secEl.innerText = sec;\n        if (msEl) msEl.innerText = now;\n      };\n      tick();\n      timestampInterval = setInterval(tick, 1000);\n    }\n\nfunction copyCurrentNowTs() {\n      const now = Math.floor(Date.now() / 1000).toString();\n      navigator.clipboard.writeText(now).then(() => showToast(`📋 当前时间戳已复制: ${now}`));\n    }\n\nfunction convertTimestampToDate() {\n      let val = (document.getElementById('pTsInputVal').value || '').trim();\n      if (!val) return;\n      let ts = parseInt(val, 10);\n      if (isNaN(ts)) return;\n      if (val.length === 10) ts = ts * 1000;\n\n      const d = new Date(ts);\n      if (isNaN(d.getTime())) return;\n\n      const pad = (n) => String(n).padStart(2, '0');\n      const bStr = `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;\n      document.getElementById('pTsResBeijing').innerText = bStr;\n      document.getElementById('pTsResUtc').innerText = d.toUTCString();\n\n      const diffSec = Math.floor((Date.now() - ts) / 1000);\n      let rel = \"\";\n      if (Math.abs(diffSec) < 60) rel = \"刚刚\";\n      else if (diffSec > 0 && diffSec < 3600) rel = `${Math.floor(diffSec / 60)} 分钟前`;\n      else if (diffSec > 0 && diffSec < 86400) rel = `${Math.floor(diffSec / 3600)} 小时前`;\n      else if (diffSec > 0) rel = `${Math.floor(diffSec / 86400)} 天前`;\n      else if (diffSec < 0 && Math.abs(diffSec) < 3600) rel = `${Math.floor(Math.abs(diffSec) / 60)} 分钟后`;\n      else if (diffSec < 0 && Math.abs(diffSec) < 86400) rel = `${Math.floor(Math.abs(diffSec) / 3600)} 小时后`;\n      else rel = `${Math.floor(Math.abs(diffSec) / 86400)} 天后`;\n      document.getElementById('pTsResRelative').innerText = rel;\n    }\n\nfunction convertDateToTimestamp() {\n      const val = document.getElementById('pDateInputVal').value;\n      if (!val) return;\n      const d = new Date(val);\n      const ms = d.getTime();\n      const sec = Math.floor(ms / 1000);\n      document.getElementById('pDateResSec').innerText = sec;\n      document.getElementById('pDateResMs').innerText = ms;\n    }\n\nfunction setTsInputToNow() {\n      document.getElementById('pTsInputVal').value = Math.floor(Date.now() / 1000);\n      convertTimestampToDate();\n    }\n\nfunction setDateInputToNow() {\n      const d = new Date();\n      const pad = (n) => String(n).padStart(2, '0');\n      const localIso = `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}T${pad(d.getHours())}:${pad(d.getMinutes())}`;\n      document.getElementById('pDateInputVal').value = localIso;\n      convertDateToTimestamp();\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"startTimestampTicker\"] = startTimestampTicker;\n    window[\"copyCurrentNowTs\"] = copyCurrentNowTs;\n    window[\"convertTimestampToDate\"] = convertTimestampToDate;\n    window[\"convertDateToTimestamp\"] = convertDateToTimestamp;\n    window[\"setTsInputToNow\"] = setTsInputToNow;\n    window[\"setDateInputToNow\"] = setDateInputToNow;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"timestamp-converter\",\n    name: \"Unix 时间戳互转\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"⏱️\",\n    version: \"1.0.0\",\n    desc: \"10位/13位时间戳与北京时间/UTC 双向秒级互转及快捷相对时间\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"max-width: 100%; display: flex; flex-direction: column; gap: 18px;\">\n              <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center;\">\n                <div>\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">当前系统时间戳 (实时递增):</div>\n                  <div style=\"display: flex; align-items: baseline; gap: 14px; margin-top: 4px;\">\n                    <span id=\"pTsNowSec\" style=\"font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--primary);\">加载中</span>\n                    <span style=\"font-size: 12px; color: var(--text-muted);\">秒 (10位)</span>\n                    <span id=\"pTsNowMs\" style=\"font-family: var(--font-mono); font-size: 16px; color: var(--text-sub);\">加载中</span>\n                    <span style=\"font-size: 12px; color: var(--text-muted);\">毫秒 (13位)</span>\n                  </div>\n                </div>\n                <button class=\"btn-action\" onclick=\"copyCurrentNowTs()\" style=\"font-size: 12px;\">📋 复制当前秒戳</button>\n              </div>\n\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px;\">\n                <div style=\"font-weight: 700; font-size: 13.5px; color: var(--text-main);\">1. 时间戳 ➔ 标准北京时间 / UTC</div>\n                <div style=\"display: flex; gap: 8px;\">\n                  <input type=\"text\" class=\"form-input\" id=\"pTsInputVal\" placeholder=\"输入 10位或 13位时间戳...\" oninput=\"convertTimestampToDate()\" style=\"font-family: var(--font-mono); font-size: 13px;\">\n                  <button class=\"btn-action primary\" onclick=\"setTsInputToNow()\" style=\"white-space: nowrap;\">填入当前</button>\n                </div>\n                <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;\">\n                  <div style=\"background: var(--bg-subtle); padding: 10px; border-radius: 6px;\">\n                    <div style=\"font-size: 11px; color: var(--text-muted);\">北京时间 (UTC+8):</div>\n                    <div id=\"pTsResBeijing\" style=\"font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text-main); margin-top: 2px;\">加载中</div>\n                  </div>\n                  <div style=\"background: var(--bg-subtle); padding: 10px; border-radius: 6px;\">\n                    <div style=\"font-size: 11px; color: var(--text-muted);\">UTC 协调世界时:</div>\n                    <div id=\"pTsResUtc\" style=\"font-family: var(--font-mono); font-size: 13.5px; color: var(--text-main); margin-top: 2px;\">加载中</div>\n                  </div>\n                  <div style=\"background: var(--bg-subtle); padding: 10px; border-radius: 6px;\">\n                    <div style=\"font-size: 11px; color: var(--text-muted);\">相对时间:</div>\n                    <div id=\"pTsResRelative\" style=\"font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 2px;\">加载中</div>\n                  </div>\n                </div>\n              </div>\n\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px;\">\n                <div style=\"font-weight: 700; font-size: 13.5px; color: var(--text-main);\">2. 标准日期 ➔ 时间戳</div>\n                <div style=\"display: flex; gap: 8px;\">\n                  <input type=\"datetime-local\" class=\"form-input\" id=\"pDateInputVal\" onchange=\"convertDateToTimestamp()\" style=\"font-family: var(--font-mono); font-size: 13px;\">\n                  <button class=\"btn-action\" onclick=\"setDateInputToNow()\" style=\"white-space: nowrap;\">当前时刻</button>\n                </div>\n                <div style=\"display: flex; gap: 14px; background: var(--bg-subtle); padding: 10px; border-radius: 6px;\">\n                  <div style=\"flex: 1;\">\n                    <span style=\"font-size: 11px; color: var(--text-muted);\">10位秒戳:</span>\n                    <span id=\"pDateResSec\" style=\"font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--primary); margin-left: 6px;\">加载中</span>\n                  </div>\n                  <div style=\"flex: 1;\">\n                    <span style=\"font-size: 11px; color: var(--text-muted);\">13位毫秒戳:</span>\n                    <span id=\"pDateResMs\" style=\"font-family: var(--font-mono); font-size: 13.5px; color: var(--text-main); margin-left: 6px;\">加载中</span>\n                  </div>\n                </div>\n              </div>\n            </div>\n          `;\n          if (typeof startTimestampTicker === 'function') startTimestampTicker();\n          if (typeof setTsInputToNow === 'function') setTsInputToNow();\n          if (typeof setDateInputToNow === 'function') setDateInputToNow();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"base64-codec","name":"Base64 & URL 编解码","category":"编码与安全","cat_id":"codec","icon":"🔄","version":"1.0.0","desc":"文本 Base64 编码解码、URL Encode/Decode、Unicode 快速互转","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet currentCodecMode = 'b64-encode';\n\nfunction setCodecMode(mode) {\n      currentCodecMode = mode;\n      ['btnB64Encode','btnB64Decode','btnUrlEncode','btnUrlDecode','btnUnicodeDecode'].forEach(id => {\n        const el = document.getElementById(id);\n        if (el) el.className = 'btn-action';\n      });\n      const activeMap = {\n        'b64-encode': 'btnB64Encode',\n        'b64-decode': 'btnB64Decode',\n        'url-encode': 'btnUrlEncode',\n        'url-decode': 'btnUrlDecode',\n        'uni-decode': 'btnUnicodeDecode'\n      };\n      if (activeMap[mode]) {\n        document.getElementById(activeMap[mode]).className = 'btn-action primary';\n      }\n      runCodec();\n    }\n\nfunction runCodec() {\n      const input = document.getElementById('pCodecInput').value;\n      const outEl = document.getElementById('pCodecOutput');\n      if (!input) {\n        outEl.value = '';\n        return;\n      }\n      try {\n        if (currentCodecMode === 'b64-encode') {\n          outEl.value = btoa(unescape(encodeURIComponent(input)));\n        } else if (currentCodecMode === 'b64-decode') {\n          outEl.value = decodeURIComponent(escape(atob(input)));\n        } else if (currentCodecMode === 'url-encode') {\n          outEl.value = encodeURIComponent(input);\n        } else if (currentCodecMode === 'url-decode') {\n          outEl.value = decodeURIComponent(input);\n        } else if (currentCodecMode === 'uni-decode') {\n          outEl.value = input.replace(/\\u([0-9a-fA-F]{4})/g, (match, hex) => String.fromCharCode(parseInt(hex, 16)));\n        }\n      } catch(e) {\n        outEl.value = '转换失败: ' + e.message;\n      }\n    }\n\nfunction swapCodecInputOutput() {\n      const out = document.getElementById('pCodecOutput').value;\n      document.getElementById('pCodecInput').value = out;\n      runCodec();\n    }\n\nfunction copyCodecResult() {\n      const out = document.getElementById('pCodecOutput').value;\n      if (out) navigator.clipboard.writeText(out).then(() => showToast('📋 结果已复制！'));\n    }\n\nfunction saveCodecToVault() {\n      const out = document.getElementById('pCodecOutput').value;\n      if (!out) return showToast('⚠️ 暂无有效结果');\n      savePluginOutputToVault('编解码转换密文', 'note', out);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"setCodecMode\"] = setCodecMode;\n    window[\"runCodec\"] = runCodec;\n    window[\"swapCodecInputOutput\"] = swapCodecInputOutput;\n    window[\"copyCodecResult\"] = copyCodecResult;\n    window[\"saveCodecToVault\"] = saveCodecToVault;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"base64-codec\",\n    name: \"Base64 & URL 编解码\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🔄\",\n    version: \"1.0.0\",\n    desc: \"文本 Base64 编码解码、URL Encode/Decode、Unicode 快速互转\",\n    render(container, prefillVal = '') {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px; flex-shrink: 0;\">\n            <button type=\"button\" id=\"btnB64Encode\" class=\"btn-action primary\" onclick=\"setCodecMode('b64-encode')\">Base64 编码</button>\n            <button type=\"button\" id=\"btnB64Decode\" class=\"btn-action\" onclick=\"setCodecMode('b64-decode')\">Base64 解码</button>\n            <button type=\"button\" id=\"btnUrlEncode\" class=\"btn-action\" onclick=\"setCodecMode('url-encode')\">URL 编码</button>\n            <button type=\"button\" id=\"btnUrlDecode\" class=\"btn-action\" onclick=\"setCodecMode('url-decode')\">URL 解码</button>\n            <button type=\"button\" id=\"btnUnicodeDecode\" class=\"btn-action\" onclick=\"setCodecMode('uni-decode')\">Unicode 解码</button>\n            <div style=\"margin-left: auto; display: flex; gap: 6px;\">\n              <button type=\"button\" class=\"btn-action\" onclick=\"swapCodecInputOutput()\">⇄ 交换</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"copyCodecResult()\">📋 复制结果</button>\n              <button type=\"button\" class=\"btn-action primary\" onclick=\"saveCodecToVault()\">💾 存入保险库</button>\n            </div>\n          </div>\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 260px;\">\n            <div style=\"display: flex; flex-direction: column; gap: 6px; min-height: 0;\">\n              <span class=\"form-label\">输入文本 / 编码串</span>\n              <textarea id=\"pCodecInput\" class=\"form-textarea\" oninput=\"runCodec()\" placeholder=\"在此输入需要编解码的字符串...\" style=\"flex: 1; min-height: 220px; font-family: var(--font-mono); resize: none;\"></textarea>\n            </div>\n            <div style=\"display: flex; flex-direction: column; gap: 6px; min-height: 0;\">\n              <span class=\"form-label\">实时转换输出</span>\n              <textarea id=\"pCodecOutput\" class=\"form-textarea\" readonly placeholder=\"转换结果将在此实时呈现...\" style=\"flex: 1; min-height: 220px; font-family: var(--font-mono); background: var(--bg-card); resize: none;\"></textarea>\n            </div>\n          </div>\n        </div>\n      `;\n      const inEl = document.getElementById('pCodecInput');\n      if (inEl) {\n        inEl.value = prefillVal || '磐石密码本 RockVault 零知识加密引擎 2026';\n      }\n      if (typeof setCodecMode === 'function') setCodecMode('b64-encode');\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"jwt-inspector","name":"JWT 令牌解析器","category":"编码与安全","cat_id":"codec","icon":"🎫","version":"1.0.0","desc":"解码 JWT Header 与 Payload 载荷，核验 Exp 过期倒计时与签名字段","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction parseJwtToken() {\n      const token = (document.getElementById('pJwtInput').value || '').trim();\n      const badge = document.getElementById('pJwtStatusBadge');\n      const hOut = document.getElementById('pJwtHeaderOutput');\n      const pOut = document.getElementById('pJwtPayloadOutput');\n\n      if (!token) {\n        badge.style.display = 'none';\n        hOut.value = '';\n        pOut.value = '';\n        return;\n      }\n\n      const parts = token.split('.');\n      if (parts.length < 2) {\n        badge.style.display = 'block';\n        badge.style.background = 'rgba(210,15,57,0.15)';\n        badge.style.color = 'var(--danger)';\n        badge.innerText = '❌ 非标准 JWT 结构 (需包含至少 Header 与 Payload 2个点号分隔段)';\n        return;\n      }\n\n      try {\n        const b64Decode = (str) => {\n          let output = str.replace(/-/g, '+').replace(/_/g, '/');\n          switch (output.length % 4) {\n            case 0: break;\n            case 2: output += '=='; break;\n            case 3: output += '='; break;\n            default: throw new Error('Illegal base64url string!');\n          }\n          return decodeURIComponent(escape(atob(output)));\n        };\n\n        const header = JSON.parse(b64Decode(parts[0]));\n        const payload = JSON.parse(b64Decode(parts[1]));\n\n        hOut.value = JSON.stringify(header, null, 2);\n        pOut.value = JSON.stringify(payload, null, 2);\n\n        badge.style.display = 'block';\n        if (payload.exp) {\n          const expMs = payload.exp * 1000;\n          const leftSec = Math.floor((expMs - Date.now()) / 1000);\n          if (leftSec <= 0) {\n            badge.style.background = 'rgba(210,15,57,0.15)';\n            badge.style.color = 'var(--danger)';\n            badge.innerText = `⚠️ 令牌已过期 (${new Date(expMs).toLocaleString()}，超期 ${Math.abs(leftSec)} 秒)`;\n          } else {\n            badge.style.background = 'rgba(64,160,43,0.15)';\n            badge.style.color = 'var(--success)';\n            badge.innerText = `✅ 令牌有效 (剩余有效期: ${Math.floor(leftSec / 60)} 分钟 / 到期时间: ${new Date(expMs).toLocaleTimeString()})`;\n          }\n        } else {\n          badge.style.background = 'rgba(30,102,245,0.1)';\n          badge.style.color = 'var(--primary)';\n          badge.innerText = 'ℹ️ 结构有效 · 未设置 exp 过期时间';\n        }\n      } catch(e) {\n        badge.style.display = 'block';\n        badge.style.background = 'rgba(210,15,57,0.15)';\n        badge.style.color = 'var(--danger)';\n        badge.innerText = '❌ JWT 解码失败: ' + e.message;\n      }\n    }\n\nfunction loadSampleJwt() {\n      const demoJwt = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.\" +\n        \"eyJ1c2VySWQiOiJ1c3JfODg4IiwidXNlcm5hbWUiOiJyb2NrdmF1bHRfcHJvIiwicm9sZSI6IkFETUlOIiwiZXhwIjoxNzkxMTIyMzc5fQ.\" +\n        \"SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\";\n      document.getElementById('pJwtInput').value = demoJwt;\n      parseJwtToken();\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"parseJwtToken\"] = parseJwtToken;\n    window[\"loadSampleJwt\"] = loadSampleJwt;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"jwt-inspector\",\n    name: \"JWT 令牌解析器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🎫\",\n    version: \"1.0.0\",\n    desc: \"解码 JWT Header 与 Payload 载荷，核验 Exp 过期倒计时与签名字段\",\n    render(container, prefillVal = '') {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px;\">\n            <span class=\"form-label\" style=\"margin: 0;\">Encoded JWT Token:</span>\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"parseJwtToken()\">🔍 解析令牌</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"loadSampleJwt()\">✨ 载入示例 JWT</button>\n            <div style=\"margin-left: auto;\">\n              <span id=\"pJwtStatusBadge\" style=\"display: none; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 700;\"></span>\n            </div>\n          </div>\n          <textarea id=\"pJwtInput\" class=\"form-textarea\" oninput=\"parseJwtToken()\" placeholder=\"粘贴三段式 JWT Token (xxxxx.yyyyy.zzzzz)...\" style=\"height: 88px; font-family: var(--font-mono); font-size: 12px; resize: vertical;\"></textarea>\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; min-height: 220px;\">\n            <div style=\"display: flex; flex-direction: column; gap: 6px; min-height: 0;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\">\n                <span class=\"form-label\">Header (算法与类型)</span>\n                <button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyTextToClipboard(document.getElementById('pJwtHeaderOutput')?.value || '', '📋 Header 已复制')\">复制</button>\n              </div>\n              <textarea id=\"pJwtHeaderOutput\" class=\"form-textarea\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-card); resize: none;\"></textarea>\n            </div>\n            <div style=\"display: flex; flex-direction: column; gap: 6px; min-height: 0;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\">\n                <span class=\"form-label\">Payload (声明载荷与有效期)</span>\n                <button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyTextToClipboard(document.getElementById('pJwtPayloadOutput')?.value || '', '📋 Payload 已复制')\">复制</button>\n              </div>\n              <textarea id=\"pJwtPayloadOutput\" class=\"form-textarea\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-card); resize: none;\"></textarea>\n            </div>\n          </div>\n        </div>\n      `;\n      if (prefillVal && prefillVal.includes('.')) {\n        const inp = document.getElementById('pJwtInput');\n        if (inp) inp.value = prefillVal;\n        if (typeof parseJwtToken === 'function') parseJwtToken();\n      } else if (typeof loadSampleJwt === 'function') {\n        loadSampleJwt();\n      }\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"crypto-hasher","name":"哈希散列计算","category":"编码与安全","cat_id":"codec","icon":"🔑","version":"1.0.0","desc":"纯本地计算 MD5、SHA-1、SHA-256、SHA-384、SHA-512 与哈希匹配校验","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction computeMd5(string) {\n      function md5_RotateLeft(lValue, iShiftBits) {\n        return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));\n      }\n      function md5_AddUnsigned(lX, lY) {\n        var lX4 = (lX & 0x40000000), lY4 = (lY & 0x40000000);\n        var lX8 = (lX & 0x80000000), lY8 = (lY & 0x80000000);\n        var lResult = (lX & 0x3fffffff) + (lY & 0x3fffffff);\n        if (lX4 & lY4) return (lResult ^ 0x80000000 ^ lX8 ^ lY8);\n        if (lX4 | lY4) {\n          if (lResult & 0x40000000) return (lResult ^ 0xc0000000 ^ lX8 ^ lY8);\n          else return (lResult ^ 0x40000000 ^ lX8 ^ lY8);\n        } else return (lResult ^ lX8 ^ lY8);\n      }\n      function md5_F(x, y, z) { return (x & y) | ((~x) & z); }\n      function md5_G(x, y, z) { return (x & z) | (y & (~z)); }\n      function md5_H(x, y, z) { return (x ^ y ^ z); }\n      function md5_I(x, y, z) { return (y ^ (x | (~z))); }\n      function md5_FF(a, b, c, d, x, s, ac) {\n        a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_F(b, c, d), x), ac));\n        return md5_AddUnsigned(md5_RotateLeft(a, s), b);\n      }\n      function md5_GG(a, b, c, d, x, s, ac) {\n        a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_G(b, c, d), x), ac));\n        return md5_AddUnsigned(md5_RotateLeft(a, s), b);\n      }\n      function md5_HH(a, b, c, d, x, s, ac) {\n        a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_H(b, c, d), x), ac));\n        return md5_AddUnsigned(md5_RotateLeft(a, s), b);\n      }\n      function md5_II(a, b, c, d, x, s, ac) {\n        a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_I(b, c, d), x), ac));\n        return md5_AddUnsigned(md5_RotateLeft(a, s), b);\n      }\n      function md5_ConvertToWordArray(string) {\n        var lWordCount;\n        var lMessageLength = string.length;\n        var lNumberOfWords_temp1 = lMessageLength + 8;\n        var lNumberOfWords_temp2 = (lNumberOfWords_temp1 - (lNumberOfWords_temp1 % 64)) / 64;\n        var lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16;\n        var lWordArray = Array(lNumberOfWords - 1);\n        var lBytePosition = 0;\n        var lByteCount = 0;\n        while (lByteCount < lMessageLength) {\n          lWordCount = (lByteCount - (lByteCount % 4)) / 4;\n          lBytePosition = (lByteCount % 4) * 8;\n          lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition));\n          lByteCount++;\n        }\n        lWordCount = (lByteCount - (lByteCount % 4)) / 4;\n        lBytePosition = (lByteCount % 4) * 8;\n        lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);\n        lWordArray[lNumberOfWords - 2] = lMessageLength << 3;\n        lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;\n        return lWordArray;\n      }\n      function md5_WordToHex(lValue) {\n        var WordToHexValue = \"\", WordToHexValue_temp = \"\", lByte, lCount;\n        for (lCount = 0; lCount <= 3; lCount++) {\n          lByte = (lValue >>> (lCount * 8)) & 255;\n          WordToHexValue_temp = \"0\" + lByte.toString(16);\n          WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length - 2, 2);\n        }\n        return WordToHexValue;\n      }\n      var x = Array();\n      var k, AA, BB, CC, DD, a, b, c, d;\n      var S11 = 7, S12 = 12, S13 = 17, S14 = 22;\n      var S21 = 5, S22 = 9, S23 = 14, S24 = 20;\n      var S31 = 4, S32 = 11, S33 = 16, S34 = 23;\n      var S41 = 6, S42 = 10, S43 = 15, S44 = 21;\n      string = unescape(encodeURIComponent(string));\n      x = md5_ConvertToWordArray(string);\n      a = 0x67452301; b = 0xefcdab89; c = 0x98badcfe; d = 0x10325476;\n      for (k = 0; k < x.length; k += 16) {\n        AA = a; BB = b; CC = c; DD = d;\n        a = md5_FF(a, b, c, d, x[k + 0], S11, 0xd76aa478);\n        d = md5_FF(d, a, b, c, x[k + 1], S12, 0xe8c7b756);\n        c = md5_FF(c, d, a, b, x[k + 2], S13, 0x242070db);\n        b = md5_FF(b, c, d, a, x[k + 3], S14, 0xc1bdceee);\n        a = md5_FF(a, b, c, d, x[k + 4], S11, 0xf57c0faf);\n        d = md5_FF(d, a, b, c, x[k + 5], S12, 0x4787c62a);\n        c = md5_FF(c, d, a, b, x[k + 6], S13, 0xa8304613);\n        b = md5_FF(b, c, d, a, x[k + 7], S14, 0xfd469501);\n        a = md5_FF(a, b, c, d, x[k + 8], S11, 0x698098d8);\n        d = md5_FF(d, a, b, c, x[k + 9], S12, 0x8b44f7af);\n        c = md5_FF(c, d, a, b, x[k + 10], S13, 0xffff5bb1);\n        b = md5_FF(b, c, d, a, x[k + 11], S14, 0x895cd7be);\n        a = md5_FF(a, b, c, d, x[k + 12], S11, 0x6b901122);\n        d = md5_FF(d, a, b, c, x[k + 13], S12, 0xfd987193);\n        c = md5_FF(c, d, a, b, x[k + 14], S13, 0xa679438e);\n        b = md5_FF(b, c, d, a, x[k + 15], S14, 0x49b40821);\n        a = md5_GG(a, b, c, d, x[k + 1], S21, 0xf61e2562);\n        d = md5_GG(d, a, b, c, x[k + 6], S22, 0xc040b340);\n        c = md5_GG(c, d, a, b, x[k + 11], S23, 0x265e5a51);\n        b = md5_GG(b, c, d, a, x[k + 0], S24, 0xe9b6c7aa);\n        a = md5_GG(a, b, c, d, x[k + 5], S21, 0xd62f105d);\n        d = md5_GG(d, a, b, c, x[k + 10], S22, 0x2441453);\n        c = md5_GG(c, d, a, b, x[k + 15], S23, 0xd8a1e681);\n        b = md5_GG(b, c, d, a, x[k + 4], S24, 0xe7d3fbc8);\n        a = md5_GG(a, b, c, d, x[k + 9], S21, 0x21e1cde6);\n        d = md5_GG(d, a, b, c, x[k + 14], S22, 0xc33707d6);\n        c = md5_GG(c, d, a, b, x[k + 3], S23, 0xf4d50d87);\n        b = md5_GG(b, c, d, a, x[k + 8], S24, 0x455a14ed);\n        a = md5_GG(a, b, c, d, x[k + 13], S21, 0xa9e3e905);\n        d = md5_GG(d, a, b, c, x[k + 2], S22, 0xfcefa3f8);\n        c = md5_GG(c, d, a, b, x[k + 7], S23, 0x676f02d9);\n        b = md5_GG(b, c, d, a, x[k + 12], S24, 0x8d2a4c8a);\n        a = md5_HH(a, b, c, d, x[k + 5], S31, 0xfffa3942);\n        d = md5_HH(d, a, b, c, x[k + 8], S32, 0x8771f681);\n        c = md5_HH(c, d, a, b, x[k + 11], S33, 0x6d9d6122);\n        b = md5_HH(b, c, d, a, x[k + 14], S34, 0xfde5380c);\n        a = md5_HH(a, b, c, d, x[k + 1], S31, 0xa4beea44);\n        d = md5_HH(d, a, b, c, x[k + 4], S32, 0x4bdecfa9);\n        c = md5_HH(c, d, a, b, x[k + 7], S33, 0xf6bb4b60);\n        b = md5_HH(b, c, d, a, x[k + 10], S34, 0xbebfbc70);\n        a = md5_HH(a, b, c, d, x[k + 13], S31, 0x289b7ec6);\n        d = md5_HH(d, a, b, c, x[k + 0], S32, 0xeaa127fa);\n        c = md5_HH(c, d, a, b, x[k + 3], S33, 0xd4ef3085);\n        b = md5_HH(b, c, d, a, x[k + 6], S34, 0x4881d05);\n        a = md5_HH(a, b, c, d, x[k + 9], S31, 0xd9d4d039);\n        d = md5_HH(d, a, b, c, x[k + 12], S32, 0xe6db99e5);\n        c = md5_HH(c, d, a, b, x[k + 15], S33, 0x1fa27cf8);\n        b = md5_HH(b, c, d, a, x[k + 2], S34, 0xc4ac5665);\n        a = md5_II(a, b, c, d, x[k + 0], S41, 0xf4292244);\n        d = md5_II(d, a, b, c, x[k + 7], S42, 0x432aff97);\n        c = md5_II(c, d, a, b, x[k + 14], S43, 0xab9423a7);\n        b = md5_II(b, c, d, a, x[k + 5], S44, 0xfc93a039);\n        a = md5_II(a, b, c, d, x[k + 12], S41, 0x655b59c3);\n        d = md5_II(d, a, b, c, x[k + 3], S42, 0x8f0ccc92);\n        c = md5_II(c, d, a, b, x[k + 10], S43, 0xffeff47d);\n        b = md5_II(b, c, d, a, x[k + 1], S44, 0x85845dd1);\n        a = md5_II(a, b, c, d, x[k + 8], S41, 0x6fa87e4f);\n        d = md5_II(d, a, b, c, x[k + 15], S42, 0xfe2ce6e0);\n        c = md5_II(c, d, a, b, x[k + 6], S43, 0xa3014314);\n        b = md5_II(b, c, d, a, x[k + 13], S44, 0x4e0811a1);\n        a = md5_II(a, b, c, d, x[k + 4], S41, 0xf7537e82);\n        d = md5_II(d, a, b, c, x[k + 11], S42, 0xbd3af235);\n        c = md5_II(c, d, a, b, x[k + 2], S43, 0x2ad7d2bb);\n        b = md5_II(b, c, d, a, x[k + 9], S44, 0xeb86d391);\n        a = md5_AddUnsigned(a, AA);\n        b = md5_AddUnsigned(b, BB);\n        c = md5_AddUnsigned(c, CC);\n        d = md5_AddUnsigned(d, DD);\n      }\n      return (md5_WordToHex(a) + md5_WordToHex(b) + md5_WordToHex(c) + md5_WordToHex(d)).toLowerCase();\n    }\n\nasync function runCryptoHasher() {\n      const text = document.getElementById('pHasherInput').value;\n      const algo = document.getElementById('pHasherAlgo').value;\n      const outEl = document.getElementById('pHasherOutput');\n\n      if (!text) {\n        outEl.innerText = '--';\n        compareCryptoHasher();\n        return;\n      }\n\n      if (algo === 'MD5') {\n        outEl.innerText = computeMd5(text);\n        compareCryptoHasher();\n      } else {\n        try {\n          const enc = new TextEncoder();\n          const data = enc.encode(text);\n          const hashBuf = await window.crypto.subtle.digest(algo, data);\n          const hashArr = Array.from(new Uint8Array(hashBuf));\n          const hex = hashArr.map(b => b.toString(16).padStart(2, '0')).join('');\n          outEl.innerText = hex;\n          compareCryptoHasher();\n        } catch(e) {\n          outEl.innerText = '计算错误: ' + e.message;\n        }\n      }\n    }\n\nfunction copyPluginHasherResult() {\n      const hash = document.getElementById('pHasherOutput').innerText.trim();\n      if (hash && hash !== '--') {\n        navigator.clipboard.writeText(hash).then(() => showToast('📋 散列摘要已复制到剪贴板！'));\n      }\n    }\n\nfunction saveHasherToVault() {\n      const hash = document.getElementById('pHasherOutput').innerText.trim();\n      if (!hash || hash === '--') return showToast('⚠️ 暂无有效计算结果');\n      savePluginOutputToVault('哈希散列凭据', 'api', hash);\n    }\n\nfunction compareCryptoHasher() {\n      const current = (document.getElementById('pHasherOutput').innerText || '').trim().toLowerCase();\n      const target = (document.getElementById('pHasherCompare').value || '').trim().toLowerCase();\n      const resEl = document.getElementById('pHasherCompareResult');\n      if (!target || !current || current === '--') {\n        resEl.innerText = '';\n        return;\n      }\n      if (current === target) {\n        resEl.style.color = 'var(--success)';\n        resEl.innerText = '✅ 校验完全匹配！哈希摘要一致';\n      } else {\n        resEl.style.color = 'var(--danger)';\n        resEl.innerText = '❌ 哈希不匹配！数据可能存在改动或算法不一致';\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"computeMd5\"] = computeMd5;\n    window[\"runCryptoHasher\"] = runCryptoHasher;\n    window[\"copyPluginHasherResult\"] = copyPluginHasherResult;\n    window[\"saveHasherToVault\"] = saveHasherToVault;\n    window[\"compareCryptoHasher\"] = compareCryptoHasher;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"crypto-hasher\",\n    name: \"哈希散列计算\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🔑\",\n    version: \"1.0.0\",\n    desc: \"纯本地计算 MD5、SHA-1、SHA-256、SHA-384、SHA-512 与哈希匹配校验\",\n    render(container, prefillVal = '') {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px;\">\n            <span class=\"form-label\" style=\"margin: 0;\">散列算法:</span>\n            <select id=\"pHasherAlgo\" class=\"form-select\" onchange=\"runCryptoHasher()\" style=\"width: 150px; height: 32px;\">\n              <option value=\"SHA-256\" selected>SHA-256</option>\n              <option value=\"MD5\">MD5 (128-bit)</option>\n              <option value=\"SHA-1\">SHA-1</option>\n              <option value=\"SHA-384\">SHA-384</option>\n              <option value=\"SHA-512\">SHA-512</option>\n            </select>\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"runCryptoHasher()\">⚡ 计算摘要</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyPluginHasherResult()\">📋 复制散列值</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"saveHasherToVault()\">💾 存入保险库</button>\n          </div>\n          <div class=\"form-group\">\n            <label class=\"form-label\">待计算原文 (纯本地算力，绝不上传网络):</label>\n            <textarea id=\"pHasherInput\" class=\"form-textarea\" oninput=\"runCryptoHasher()\" placeholder=\"输入任意字符串实时计算散列...\" style=\"height: 110px; font-family: var(--font-mono);\"></textarea>\n          </div>\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px;\">\n            <div class=\"form-label\" style=\"margin-bottom: 6px;\">计算摘要结果 (Hex):</div>\n            <div id=\"pHasherOutput\" style=\"font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--primary); word-break: break-all; user-select: text;\">--</div>\n          </div>\n          <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;\">\n            <label class=\"form-label\">哈希一致性核对 (可选，粘贴已知哈希比对是否篡改):</label>\n            <input id=\"pHasherCompare\" type=\"text\" class=\"form-input\" oninput=\"compareCryptoHasher()\" placeholder=\"粘贴期望的目标 Hex 摘要 (不区分大小写)...\" style=\"font-family: var(--font-mono); font-size: 12.5px;\">\n            <div id=\"pHasherCompareResult\" style=\"font-size: 12px; font-weight: 700; min-height: 18px;\"></div>\n          </div>\n        </div>\n      `;\n      const inEl = document.getElementById('pHasherInput');\n      if (inEl) inEl.value = prefillVal || 'RockVault-Zero-Knowledge-Security-2026';\n      if (typeof runCryptoHasher === 'function') runCryptoHasher();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"password-batch-generator","name":"密码与 UUID 批量生成","category":"编码与安全","cat_id":"codec","icon":"🎲","version":"1.0.0","desc":"批量生成 5~20 条高熵防混淆随机密码或 UUID v4，支持一键存入保险箱","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction generatePasswordWithParams(len, upper, lower, num, sym, avoid) {\n      let chars = \"\";\n      if (upper) chars += \"ABCDEFGHJKLMNPQRSTUVWXYZ\" + (avoid ? \"\" : \"IO\");\n      if (lower) chars += \"abcdefghjkmnpqrstuvwxyz\" + (avoid ? \"\" : \"io1l\");\n      if (num) chars += \"23456789\" + (avoid ? \"\" : \"01\");\n      if (sym) chars += \"!@#$%^&*()_+-=[]{}|;:,.<>?\";\n      if (!chars) chars = \"abcdefghijklmnopqrstuvwxyz\";\n\n      const arr = new Uint32Array(len);\n      window.crypto.getRandomValues(arr);\n      let pwd = \"\";\n      for (let i = 0; i < len; i++) {\n        pwd += chars.charAt(arr[i] % chars.length);\n      }\n      return pwd;\n    }\n\nfunction generateBatchCredentials(type = 'password') {\n      const container = document.getElementById('pBatchResultsList');\n      if (!container) return;\n\n      const count = parseInt(document.getElementById('pBatchCount').value, 10) || 10;\n      const len = parseInt(document.getElementById('pBatchLength').value, 10) || 16;\n      const sym = document.getElementById('pBatchSymbols').checked;\n      const avoid = document.getElementById('pBatchAvoid').checked;\n\n      const items = [];\n      for (let i = 0; i < count; i++) {\n        if (type === 'uuid') {\n          // UUID v4\n          const u = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>\n            (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)\n          );\n          items.push(u);\n        } else {\n          items.push(generatePasswordWithParams(len, true, true, true, sym, avoid));\n        }\n      }\n\n      container.innerHTML = items.map((val, idx) => `\n        <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px;\">\n          <div style=\"display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-main);\">\n            <span style=\"font-size: 11px; color: var(--text-muted); width: 22px;\">#${idx + 1}</span>\n            <span style=\"font-weight: 600; letter-spacing: 0.5px;\">${escapeHtml(val)}</span>\n          </div>\n          <div style=\"display: flex; gap: 6px;\">\n            <button class=\"btn-action\" onclick=\"copyBatchItem('${escapeHtml(val)}')\" style=\"font-size: 11px; padding: 3px 8px;\">📋 复制</button>\n            <button class=\"btn-action primary\" onclick=\"saveBatchItemToVault('${escapeHtml(val)}')\" style=\"font-size: 11px; padding: 3px 8px;\">💾 存入保险箱</button>\n          </div>\n        </div>\n      `).join('');\n    }\n\nfunction copyBatchItem(text) {\n      navigator.clipboard.writeText(text).then(() => showToast('📋 凭据已复制到剪贴板！'));\n    }\n\nfunction saveBatchItemToVault(text) {\n      savePluginOutputToVault('批量生成安全凭据', 'web', text);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"generatePasswordWithParams\"] = generatePasswordWithParams;\n    window[\"generateBatchCredentials\"] = generateBatchCredentials;\n    window[\"copyBatchItem\"] = copyBatchItem;\n    window[\"saveBatchItemToVault\"] = saveBatchItemToVault;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"password-batch-generator\",\n    name: \"密码与 UUID 批量生成\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🎲\",\n    version: \"1.0.0\",\n    desc: \"批量生成 5~20 条高熵防混淆随机密码或 UUID v4，支持一键存入保险箱\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px; flex-shrink: 0;\">\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 4px;\">数量:\n              <select id=\"pBatchCount\" class=\"form-select\" style=\"width: 78px; height: 30px;\">\n                <option value=\"5\">5 条</option>\n                <option value=\"10\" selected>10 条</option>\n                <option value=\"20\">20 条</option>\n              </select>\n            </label>\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 4px;\">长度:\n              <select id=\"pBatchLength\" class=\"form-select\" style=\"width: 82px; height: 30px;\">\n                <option value=\"12\">12 位</option>\n                <option value=\"16\" selected>16 位</option>\n                <option value=\"24\">24 位</option>\n                <option value=\"32\">32 位</option>\n              </select>\n            </label>\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 4px; cursor: pointer;\">\n              <input type=\"checkbox\" id=\"pBatchSymbols\" checked> 包含特殊符号\n            </label>\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 4px; cursor: pointer;\">\n              <input type=\"checkbox\" id=\"pBatchAvoid\" checked> 排除易混淆 (0O1lI)\n            </label>\n            <div style=\"margin-left: auto; display: flex; gap: 6px;\">\n              <button type=\"button\" class=\"btn-action primary\" onclick=\"generateBatchCredentials('password')\">🔑 批量生成强密码</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"generateBatchCredentials('uuid')\">🆔 批量生成 UUID v4</button>\n            </div>\n          </div>\n          <div id=\"pBatchResultsList\" style=\"flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 220px;\"></div>\n        </div>\n      `;\n      if (typeof generateBatchCredentials === 'function') generateBatchCredentials('password');\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"text-diff","name":"文本代码差异对比 (Diff)","category":"文本与正则","cat_id":"text","icon":"⚖️","version":"1.0.0","desc":"快速对比两个配置、证书或代码片段的细微改动，红绿高亮差异","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runTextDiffAction() {\n      const aLines = (document.getElementById('pDiffTextA').value || '').split('\\n');\n      const bLines = (document.getElementById('pDiffTextB').value || '').split('\\n');\n      const box = document.getElementById('pDiffResultBox');\n\n      const maxLen = Math.max(aLines.length, bLines.length);\n      let html = \"\";\n      for (let i = 0; i < maxLen; i++) {\n        const lineA = aLines[i];\n        const lineB = bLines[i];\n        if (lineA === lineB) {\n          html += `<div class=\"diff-line diff-same\">  ${escapeHtml(lineA || '')}</div>`;\n        } else {\n          if (lineA !== undefined) {\n            html += `<div class=\"diff-line diff-del\">- ${escapeHtml(lineA)}</div>`;\n          }\n          if (lineB !== undefined) {\n            html += `<div class=\"diff-line diff-add\">+ ${escapeHtml(lineB)}</div>`;\n          }\n        }\n      }\n      box.innerHTML = html || '<span style=\"color:var(--text-muted);\">两侧文本完全一致，无任何差异！</span>';\n      showToast('⚖️ 差异对比计算完成！');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runTextDiffAction\"] = runTextDiffAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"text-diff\",\n    name: \"文本代码差异对比 (Diff)\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"⚖️\",\n    version: \"1.0.0\",\n    desc: \"快速对比两个配置、证书或代码片段的细微改动，红绿高亮差异\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 8px 12px; border-radius: 8px; flex-shrink: 0;\">\n            <span style=\"font-size: 12px; color: var(--text-sub); font-weight: 600;\">左右对照逐行 Diff 比对</span>\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"runTextDiffAction()\" style=\"margin-left: auto;\">⚖️ 开始差异比对</button>\n          </div>\n          <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 190px; flex-shrink: 0;\">\n            <textarea id=\"pDiffTextA\" class=\"form-textarea\" oninput=\"runTextDiffAction()\" placeholder=\"基准文本 A (旧版本)...\" style=\"height: 100%; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n            <textarea id=\"pDiffTextB\" class=\"form-textarea\" oninput=\"runTextDiffAction()\" placeholder=\"对比文本 B (新版本)...\" style=\"height: 100%; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n          </div>\n          <div class=\"form-label\">逐行差异高亮结果:</div>\n          <div id=\"pDiffResultBox\" style=\"flex: 1; min-height: 140px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6;\"></div>\n        </div>\n      `;\n      const a = document.getElementById('pDiffTextA');\n      const b = document.getElementById('pDiffTextB');\n      if (a && b) {\n        a.value = 'server_port=8080\\nlog_level=info\\ncache_ttl=300\\nsync_mode=local';\n        b.value = 'server_port=8443\\nlog_level=info\\ncache_ttl=600\\nsync_mode=cloud\\ntls_enabled=true';\n      }\n      if (typeof runTextDiffAction === 'function') runTextDiffAction();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"text-cleaner","name":"文本清洗与批处理","category":"文本与正则","cat_id":"text","icon":"🧹","version":"1.0.0","desc":"多行去重、A-Z/长度排序、去除空行/空格、驼峰/下划线命名互转与行号前后缀追加","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction updateTextCleanStats() {\n      const inEl = document.getElementById('pTextCleanInput');\n      const outEl = document.getElementById('pTextCleanOutput');\n      const inVal = inEl ? inEl.value : '';\n      const outVal = outEl ? outEl.value : '';\n\n      const inLines = inVal ? inVal.split('\\n').length : 0;\n      const outLines = outVal ? outVal.split('\\n').length : 0;\n\n      const inSt = document.getElementById('pTextCleanInputStats');\n      const outSt = document.getElementById('pTextCleanOutputStats');\n\n      if (inSt) inSt.innerText = `${inLines} 行 · ${inVal.length} 字`;\n      if (outSt) outSt.innerText = `${outLines} 行 · ${outVal.length} 字`;\n    }\n\nfunction setTextCleanResult(res) {\n      const outEl = document.getElementById('pTextCleanOutput');\n      if (outEl) outEl.value = res;\n      updateTextCleanStats();\n    }\n\nfunction runTextCleanAction(action) {\n      const input = document.getElementById('pTextCleanInput')?.value || '';\n      if (!input) return showToast('请先输入文本');\n      let lines = input.split('\\n');\n\n      if (action === 'dedup') {\n        const unique = Array.from(new Set(lines));\n        setTextCleanResult(unique.join('\\n'));\n        showToast(`已去重：移除了 ${lines.length - unique.length} 行重复项`);\n      } else if (action === 'sort-asc') {\n        lines.sort((a, b) => a.localeCompare(b, 'zh-Hans-CN', { numeric: true }));\n        setTextCleanResult(lines.join('\\n'));\n        showToast('已按 A-Z 升序排序');\n      } else if (action === 'sort-desc') {\n        lines.sort((a, b) => b.localeCompare(a, 'zh-Hans-CN', { numeric: true }));\n        setTextCleanResult(lines.join('\\n'));\n        showToast('已按 Z-A 降序排序');\n      } else if (action === 'sort-len') {\n        lines.sort((a, b) => a.length - b.length);\n        setTextCleanResult(lines.join('\\n'));\n        showToast('已按字符长度升序排序');\n      } else if (action === 'reverse') {\n        lines.reverse();\n        setTextCleanResult(lines.join('\\n'));\n        showToast('已翻转行顺序');\n      } else if (action === 'rm-empty') {\n        const filtered = lines.filter(l => l.trim().length > 0);\n        setTextCleanResult(filtered.join('\\n'));\n        showToast('已删除所有空行');\n      } else if (action === 'trim') {\n        const trimmed = lines.map(l => l.trim());\n        setTextCleanResult(trimmed.join('\\n'));\n        showToast('已去除所有行首尾空格');\n      } else if (action === 'rm-all-space') {\n        setTextCleanResult(input.replace(/[ \\t]/g, ''));\n        showToast('已删除所有空格与制表符');\n      }\n    }\n\nfunction runTextNamingAction(style) {\n      if (!style) return;\n      const input = document.getElementById('pTextCleanInput')?.value || '';\n      if (!input) return;\n      let lines = input.split('\\n');\n      let out = lines.map(line => {\n        if (!line.trim()) return line;\n        let words = line.trim().match(/[a-zA-Z0-9]+|[\\u4e00-\\u9fa5]+/g);\n        if (!words) return line;\n        if (style === 'camel') {\n          return words[0].toLowerCase() + words.slice(1).map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join('');\n        } else if (style === 'snake') {\n          return words.map(w => w.toLowerCase()).join('_');\n        } else if (style === 'kebab') {\n          return words.map(w => w.toLowerCase()).join('-');\n        } else if (style === 'pascal') {\n          return words.map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join('');\n        } else if (style === 'constant') {\n          return words.map(w => w.toUpperCase()).join('_');\n        } else if (style === 'upper') {\n          return line.toUpperCase();\n        } else if (style === 'lower') {\n          return line.toLowerCase();\n        }\n        return line;\n      });\n      setTextCleanResult(out.join('\\n'));\n      showToast('已完成命名风格转换');\n    }\n\nfunction applyTextCleanPrefix() {\n      const prefix = document.getElementById('pTextPrefixVal')?.value || '';\n      const input = document.getElementById('pTextCleanInput')?.value || '';\n      if (!input) return;\n      const lines = input.split('\\n').map(l => prefix + l);\n      setTextCleanResult(lines.join('\\n'));\n      showToast('已追加前缀');\n    }\n\nfunction applyTextCleanSuffix() {\n      const suffix = document.getElementById('pTextSuffixVal')?.value || '';\n      const input = document.getElementById('pTextCleanInput')?.value || '';\n      if (!input) return;\n      const lines = input.split('\\n').map(l => l + suffix);\n      setTextCleanResult(lines.join('\\n'));\n      showToast('已追加后缀');\n    }\n\nfunction applyTextCleanNumbers() {\n      const input = document.getElementById('pTextCleanInput')?.value || '';\n      if (!input) return;\n      const lines = input.split('\\n').map((l, i) => (i + 1) + '. ' + l);\n      setTextCleanResult(lines.join('\\n'));\n      showToast('已添加序号');\n    }\n\nfunction loadSampleTextClean() {\n      const sample = `  user_info_list  \\norder_payment_record\\nuser_info_list\\n  API_SECRET_KEY  \\nDATABASE_URL\\njwt_token_auth\\nuser_info_list\\norder_detail_view`;\n      const inEl = document.getElementById('pTextCleanInput');\n      if (inEl) {\n        inEl.value = sample;\n        setTextCleanResult(sample);\n      }\n    }\n\nfunction copyTextCleanResult() {\n      const out = document.getElementById('pTextCleanOutput');\n      if (out && out.value) {\n        navigator.clipboard.writeText(out.value).then(() => showToast('📋 清洗结果已复制！'));\n      }\n    }\n\nfunction saveTextCleanToVault() {\n      const out = document.getElementById('pTextCleanOutput');\n      if (out && out.value) savePluginOutputToVault('文本清洗结果', 'notes', out.value);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"updateTextCleanStats\"] = updateTextCleanStats;\n    window[\"setTextCleanResult\"] = setTextCleanResult;\n    window[\"runTextCleanAction\"] = runTextCleanAction;\n    window[\"runTextNamingAction\"] = runTextNamingAction;\n    window[\"applyTextCleanPrefix\"] = applyTextCleanPrefix;\n    window[\"applyTextCleanSuffix\"] = applyTextCleanSuffix;\n    window[\"applyTextCleanNumbers\"] = applyTextCleanNumbers;\n    window[\"loadSampleTextClean\"] = loadSampleTextClean;\n    window[\"copyTextCleanResult\"] = copyTextCleanResult;\n    window[\"saveTextCleanToVault\"] = saveTextCleanToVault;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"text-cleaner\",\n    name: \"文本清洗与批处理\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🧹\",\n    version: \"1.0.0\",\n    desc: \"多行去重、A-Z/长度排序、去除空行/空格、驼峰/下划线命名互转与行号前后缀追加\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-subtle); padding: 8px 10px; border-radius: 8px; flex-shrink: 0;\">\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"runTextCleanAction('dedup')\">✨ 按行去重</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('rm-empty')\">删空行</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('trim')\">去首尾空格</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('sort-asc')\">A-Z 升序</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('sort-desc')\">Z-A 降序</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('sort-len')\">长度排序</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runTextCleanAction('reverse')\">行倒序</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"applyTextCleanNumbers()\">加序号</button>\n            <select class=\"form-select\" onchange=\"runTextNamingAction(this.value); this.selectedIndex=0;\" style=\"width: 135px; height: 30px;\">\n              <option value=\"\">命名风格转换...</option>\n              <option value=\"camel\">camelCase</option>\n              <option value=\"pascal\">PascalCase</option>\n              <option value=\"snake\">snake_case</option>\n              <option value=\"kebab\">kebab-case</option>\n              <option value=\"constant\">CONSTANT_CASE</option>\n              <option value=\"upper\">全大写 UPPER</option>\n              <option value=\"lower\">全小写 lower</option>\n            </select>\n            <button type=\"button\" class=\"btn-action\" onclick=\"loadSampleTextClean()\">示例</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyTextCleanResult()\">📋 复制结果</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"saveTextCleanToVault()\">💾 保存</button>\n          </div>\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center;\">\n            <input id=\"pTextPrefixVal\" type=\"text\" class=\"form-input\" placeholder=\"前缀 (如 '- ')\" style=\"width: 150px; height: 30px; font-size: 12px;\">\n            <button type=\"button\" class=\"btn-action\" onclick=\"applyTextCleanPrefix()\">+ 追加前缀</button>\n            <input id=\"pTextSuffixVal\" type=\"text\" class=\"form-input\" placeholder=\"后缀 (如 ',')\" style=\"width: 150px; height: 30px; font-size: 12px;\">\n            <button type=\"button\" class=\"btn-action\" onclick=\"applyTextCleanSuffix()\">+ 追加后缀</button>\n          </div>\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 220px;\">\n            <div style=\"display: flex; flex-direction: column; gap: 4px; min-height: 0;\">\n              <div style=\"display: flex; justify-content: space-between;\"><span class=\"form-label\">输入多行文本</span><span id=\"pTextCleanInputStats\" style=\"font-size: 11px; color: var(--text-muted);\"></span></div>\n              <textarea id=\"pTextCleanInput\" class=\"form-textarea\" oninput=\"updateTextCleanStats()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; resize: none;\"></textarea>\n            </div>\n            <div style=\"display: flex; flex-direction: column; gap: 4px; min-height: 0;\">\n              <div style=\"display: flex; justify-content: space-between;\"><span class=\"form-label\">清洗输出</span><span id=\"pTextCleanOutputStats\" style=\"font-size: 11px; color: var(--text-muted);\"></span></div>\n              <textarea id=\"pTextCleanOutput\" class=\"form-textarea\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-card); resize: none;\"></textarea>\n            </div>\n          </div>\n        </div>\n      `;\n      if (typeof loadSampleTextClean === 'function') loadSampleTextClean();\n      if (typeof updateTextCleanStats === 'function') updateTextCleanStats();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"regex-tester","name":"正则表达式测试工作室","category":"文本与正则","cat_id":"text","icon":"🎯","version":"1.0.0","desc":"正则表达式实时匹配、分色高亮、多标记修饰符、预置常用模板与捕获组结构化提取","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction copyBatchItem(text) {\n      navigator.clipboard.writeText(text).then(() => showToast('📋 凭据已复制到剪贴板！'));\n    }\n\nfunction runRegexTestWorkspace() {\n      const patternStr = document.getElementById('pRegPattern')?.value || '';\n      const target = document.getElementById('pRegTarget')?.value || '';\n      const flagG = document.getElementById('pRegFlagG')?.checked ? 'g' : '';\n      const flagI = document.getElementById('pRegFlagI')?.checked ? 'i' : '';\n      const flagM = document.getElementById('pRegFlagM')?.checked ? 'm' : '';\n      const flagS = document.getElementById('pRegFlagS')?.checked ? 's' : '';\n      const flags = flagG + flagI + flagM + flagS;\n\n      const errorTip = document.getElementById('pRegErrorNotice');\n      const highlightArea = document.getElementById('pRegHighlightArea');\n      const stats = document.getElementById('pRegMatchStats');\n      const tbody = document.getElementById('pRegTableBody');\n\n      if (!patternStr || !target) {\n        if (highlightArea) highlightArea.innerHTML = target ? escapeHtml(target) : '// 匹配高亮结果预览';\n        if (stats) stats.innerText = '匹配 0 处';\n        if (tbody) tbody.innerHTML = '<tr><td colspan=\"5\" style=\"text-align: center; color: var(--text-muted); padding: 14px;\">暂无匹配数据</td></tr>';\n        if (errorTip) errorTip.style.display = 'none';\n        return;\n      }\n\n      let regex;\n      try {\n        regex = new RegExp(patternStr, flags);\n        if (errorTip) errorTip.style.display = 'none';\n      } catch (e) {\n        if (errorTip) {\n          errorTip.style.display = 'inline';\n          errorTip.innerText = '语法错误: ' + e.message;\n        }\n        if (stats) stats.innerText = '语法错误';\n        return;\n      }\n\n      let matches = [];\n      let match;\n      if (flagG) {\n        while ((match = regex.exec(target)) !== null) {\n          matches.push(match);\n          if (match.index === regex.lastIndex) regex.lastIndex++;\n        }\n      } else {\n        match = regex.exec(target);\n        if (match) matches.push(match);\n      }\n\n      if (stats) stats.innerText = '匹配 ' + matches.length + ' 处';\n\n      // 渲染高亮 HTML\n      let html = '';\n      let lastIndex = 0;\n      for (let i = 0; i < matches.length; i++) {\n        let m = matches[i];\n        let start = m.index;\n        let end = start + m[0].length;\n        html += escapeHtml(target.substring(lastIndex, start));\n        let bg = (i % 2 === 0) ? 'rgba(30,102,245,0.2)' : 'rgba(136,57,239,0.2)';\n        html += `<span style=\"background: ${bg}; border-radius: 3px; padding: 1px 2px; font-weight: 700; color: var(--primary);\" title=\"匹配 #${i+1}\">${escapeHtml(m[0])}</span>`;\n        lastIndex = end;\n      }\n      html += escapeHtml(target.substring(lastIndex));\n      if (highlightArea) highlightArea.innerHTML = html;\n\n      // 渲染捕获组表格\n      if (tbody) {\n        if (matches.length === 0) {\n          tbody.innerHTML = '<tr><td colspan=\"5\" style=\"text-align: center; color: var(--text-muted); padding: 14px;\">未找到匹配内容</td></tr>';\n        } else {\n          tbody.innerHTML = matches.map((m, idx) => {\n            let groupsStr = '';\n            if (m.length > 1) {\n              for (let g = 1; g < m.length; g++) {\n                groupsStr += `<span style=\"display: inline-block; background: var(--bg-subtle); padding: 1px 6px; border-radius: 4px; margin-right: 4px; font-size: 11px;\">$${g}: ${escapeHtml(m[g] || '')}</span>`;\n              }\n            } else {\n              groupsStr = '<span style=\"color: var(--text-muted); font-size: 11px;\">无捕获组</span>';\n            }\n            return `\n              <tr>\n                <td style=\"font-weight: 700;\">#${idx + 1}</td>\n                <td style=\"font-family: var(--font-mono); font-size: 11.5px;\">[${m.index}, ${m.index + m[0].length}]</td>\n                <td style=\"font-family: var(--font-mono); font-weight: 600; color: var(--text-main);\">${escapeHtml(m[0])}</td>\n                <td>${groupsStr}</td>\n                <td style=\"text-align: center;\">\n                  <button class=\"btn-action\" style=\"padding: 1px 6px; font-size: 11px;\" onclick=\"copyBatchItem('${escapeHtml(m[0])}')\">复制</button>\n                </td>\n              </tr>\n            `;\n          }).join('');\n        }\n      }\n    }\n\nfunction loadRegexPresetOption(val) {\n      if (!val) return;\n      const presets = {\n        email: { pattern: '([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,})', sample: '服务邮箱: admin@fwpt.cn, 开发者联系: admin@fwpt.cn' },\n        phone: { pattern: '1[3-9]\\\\d{9}', sample: '客服A: 13800138000, 经理: 18612345678, 办公 010-12345678' },\n        idcard: { pattern: '[1-9]\\\\d{5}(18|19|20)\\\\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\\\\d|3[01])\\\\d{3}[0-9Xx]', sample: '档案编号: 110101199003072345, 样本: 44030119951212888X' },\n        ipv4: { pattern: '((25[0-5]|2[0-4]\\\\d|[01]?\\\\d\\\\d?)\\\\.){3}(25[0-5]|2[0-4]\\\\d|[01]?\\\\d\\\\d?)', sample: '广州节点: 121.36.195.10, 杭州节点: 47.98.12.8, 内网 192.168.1.1' },\n        url: { pattern: 'https?:\\\\/\\\\/[a-zA-Z0-9.-]+(:\\\\d+)?(\\\\/[\\\\w./?%&=-]*)?', sample: '官方平台 https://fwpt.cn/ 开发者工具 https://fwpt.cn/tools.html' },\n        chinese: { pattern: '[\\\\u4e00-\\\\u9fa5]+', sample: '磐石工作台 RockVault 商业版 2026' },\n        date: { pattern: '\\\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\\\d|3[01])', sample: '发布日期: 2026-10-10, 有效期至: 2026-12-31' }\n      };\n      if (presets[val]) {\n        document.getElementById('pRegPattern').value = presets[val].pattern;\n        document.getElementById('pRegTarget').value = presets[val].sample;\n        runRegexTestWorkspace();\n        showToast('已载入常用正则模板');\n      }\n    }\n\nfunction loadSampleRegexWorkspace() {\n      loadRegexPresetOption('email');\n    }\n\nfunction copyRegexGroupsJsonWorkspace() {\n      const patternStr = document.getElementById('pRegPattern')?.value || '';\n      const target = document.getElementById('pRegTarget')?.value || '';\n      try {\n        const regex = new RegExp(patternStr, 'g');\n        const list = [];\n        let m;\n        while ((m = regex.exec(target)) !== null) {\n          list.push({ match: m[0], index: m.index, groups: m.slice(1) });\n        }\n        navigator.clipboard.writeText(JSON.stringify(list, null, 2)).then(() => showToast('📋 匹配 JSON 已复制！'));\n      } catch (e) {\n        showToast('复制失败: ' + e.message);\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"copyBatchItem\"] = copyBatchItem;\n    window[\"runRegexTestWorkspace\"] = runRegexTestWorkspace;\n    window[\"loadRegexPresetOption\"] = loadRegexPresetOption;\n    window[\"loadSampleRegexWorkspace\"] = loadSampleRegexWorkspace;\n    window[\"copyRegexGroupsJsonWorkspace\"] = copyRegexGroupsJsonWorkspace;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"regex-tester\",\n    name: \"正则表达式测试工作室\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🎯\",\n    version: \"1.0.0\",\n    desc: \"正则表达式实时匹配、分色高亮、多标记修饰符、预置常用模板与捕获组结构化提取\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 8px 12px; border-radius: 8px;\">\n            <span style=\"font-family: var(--font-mono); font-weight: 700; color: var(--primary);\">/</span>\n            <input id=\"pRegPattern\" type=\"text\" class=\"form-input\" oninput=\"runRegexTestWorkspace()\" placeholder=\"输入正则表达式...\" style=\"flex: 1; min-width: 200px; height: 32px; font-family: var(--font-mono); font-size: 12.5px;\">\n            <span style=\"font-family: var(--font-mono); font-weight: 700; color: var(--primary);\">/</span>\n            <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"checkbox\" id=\"pRegFlagG\" checked onchange=\"runRegexTestWorkspace()\"> g</label>\n            <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"checkbox\" id=\"pRegFlagI\" onchange=\"runRegexTestWorkspace()\"> i</label>\n            <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"checkbox\" id=\"pRegFlagM\" onchange=\"runRegexTestWorkspace()\"> m</label>\n            <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"checkbox\" id=\"pRegFlagS\" onchange=\"runRegexTestWorkspace()\"> s</label>\n            <select class=\"form-select\" onchange=\"loadRegexPresetOption(this.value)\" style=\"width: 145px; height: 32px;\">\n              <option value=\"\">常用正则模板...</option>\n              <option value=\"email\">电子邮箱</option>\n              <option value=\"phone\">中国手机号</option>\n              <option value=\"idcard\">18位身份证</option>\n              <option value=\"ipv4\">IPv4 地址</option>\n              <option value=\"url\">HTTP(S) 链接</option>\n              <option value=\"chinese\">连续汉字</option>\n              <option value=\"date\">YYYY-MM-DD 日期</option>\n            </select>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyRegexGroupsJsonWorkspace()\">📋 导出 JSON</button>\n          </div>\n          <div style=\"display: flex; justify-content: space-between; font-size: 11.5px;\">\n            <span id=\"pRegErrorNotice\" style=\"display: none; color: var(--danger); font-weight: 600;\"></span>\n            <span id=\"pRegMatchStats\" style=\"color: var(--primary); font-weight: 700; margin-left: auto;\">匹配 0 处</span>\n          </div>\n          <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 150px;\">\n            <textarea id=\"pRegTarget\" class=\"form-textarea\" oninput=\"runRegexTestWorkspace()\" placeholder=\"粘贴待测试文本...\" style=\"min-height: 140px; font-family: var(--font-mono); font-size: 12px; resize: vertical;\"></textarea>\n            <div id=\"pRegHighlightArea\" style=\"min-height: 140px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; user-select: text;\"></div>\n          </div>\n          <div style=\"flex: 1; min-height: 120px; overflow: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px;\">\n            <table class=\"data-table\">\n              <thead><tr><th>序号</th><th>位置</th><th>完整匹配</th><th>捕获组</th><th>操作</th></tr></thead>\n              <tbody id=\"pRegTableBody\"></tbody>\n            </table>\n          </div>\n        </div>\n      `;\n      if (typeof loadSampleRegexWorkspace === 'function') loadSampleRegexWorkspace();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"ip-net-probe","name":"全球 IP 与网络探针","category":"网络探针","cat_id":"net","icon":"🌐","version":"1.0.0","desc":"全球 IP 高精归属查询、公网出口探测、CIDR 子网掩码计算器、IP 进制互转与节点延迟测试","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction switchIpSubTab(tab) {\n      const tabs = ['cidr', 'base', 'probe'];\n      tabs.forEach(t => {\n        const v = document.getElementById('pIpSubView' + t.charAt(0).toUpperCase() + t.slice(1));\n        const b = document.getElementById('btnIpTab' + t.charAt(0).toUpperCase() + t.slice(1));\n        if (v) v.style.display = (t === tab) ? 'flex' : 'none';\n        if (b) b.classList.toggle('primary', t === tab);\n      });\n    }\n\nfunction initIpCidrPrefixSelect() {\n      const sel = document.getElementById('pIpCidrPrefix');\n      if (!sel || sel.children.length > 0) return;\n      for (let i = 32; i >= 1; i--) {\n        const opt = document.createElement('option');\n        opt.value = i;\n        opt.innerText = '/' + i;\n        if (i === 24) opt.selected = true;\n        sel.appendChild(opt);\n      }\n    }\n\nfunction runIpCidrCalc() {\n      const rawIp = (document.getElementById('pIpCidrInput')?.value || '').trim();\n      const prefix = parseInt(document.getElementById('pIpCidrPrefix')?.value || '24', 10);\n      if (!rawIp || !/^(\\d{1,3}\\.){3}\\d{1,3}$/.test(rawIp)) return;\n\n      const ipParts = rawIp.split('.').map(Number);\n      const ipInt = (ipParts[0] << 24) | (ipParts[1] << 16) | (ipParts[2] << 8) | ipParts[3];\n\n      const maskInt = prefix === 0 ? 0 : (~0 << (32 - prefix)) >>> 0;\n      const netInt = (ipInt & maskInt) >>> 0;\n      const wildInt = (~maskInt) >>> 0;\n      const bcastInt = (netInt | wildInt) >>> 0;\n\n      const intToIp = (val) => [(val >>> 24) & 255, (val >>> 16) & 255, (val >>> 8) & 255, val & 255].join('.');\n\n      const hostCount = prefix >= 31 ? (prefix === 32 ? 1 : 2) : Math.max(0, Math.pow(2, 32 - prefix) - 2);\n\n      const maskEl = document.getElementById('pIpResMask');\n      const netEl = document.getElementById('pIpResNetwork');\n      const bcastEl = document.getElementById('pIpResBroadcast');\n      const rangeEl = document.getElementById('pIpResHostRange');\n      const countEl = document.getElementById('pIpResHostCount');\n      const wildEl = document.getElementById('pIpResWildcard');\n\n      if (maskEl) maskEl.innerText = intToIp(maskInt);\n      if (netEl) netEl.innerText = intToIp(netInt);\n      if (bcastEl) bcastEl.innerText = intToIp(bcastInt);\n      if (rangeEl) {\n        if (prefix === 32) rangeEl.innerText = intToIp(netInt);\n        else rangeEl.innerText = intToIp(netInt + 1) + ' ~ ' + intToIp(bcastInt - 1);\n      }\n      if (countEl) countEl.innerText = hostCount.toLocaleString() + ' 台';\n      if (wildEl) wildEl.innerText = intToIp(wildInt);\n    }\n\nfunction quickFillLocalIpCidr() {\n      const inEl = document.getElementById('pIpCidrInput');\n      const prefEl = document.getElementById('pIpCidrPrefix');\n      if (inEl) inEl.value = '192.168.1.100';\n      if (prefEl) prefEl.value = '24';\n      runIpCidrCalc();\n    }\n\nfunction runIpBaseConvert(mode) {\n      const dottedEl = document.getElementById('pIpBaseInputDotted');\n      const intEl = document.getElementById('pIpBaseInputInteger');\n      const binEl = document.getElementById('pIpResBinary');\n      const hexEl = document.getElementById('pIpResHex');\n\n      let ipInt = 0;\n      if (mode === 'dotted') {\n        const val = (dottedEl?.value || '').trim();\n        if (!/^(\\d{1,3}\\.){3}\\d{1,3}$/.test(val)) return;\n        const p = val.split('.').map(Number);\n        ipInt = ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]) >>> 0;\n        if (intEl) intEl.value = ipInt;\n      } else {\n        const val = parseInt((intEl?.value || '').trim(), 10);\n        if (isNaN(val)) return;\n        ipInt = val >>> 0;\n        const dotted = [(ipInt >>> 24) & 255, (ipInt >>> 16) & 255, (ipInt >>> 8) & 255, ipInt & 255].join('.');\n        if (dottedEl) dottedEl.value = dotted;\n      }\n\n      if (binEl) {\n        const b = [(ipInt >>> 24) & 255, (ipInt >>> 16) & 255, (ipInt >>> 8) & 255, ipInt & 255]\n          .map(n => n.toString(2).padStart(8, '0')).join('.');\n        binEl.innerText = b;\n      }\n      if (hexEl) {\n        hexEl.innerText = '0x' + ipInt.toString(16).toUpperCase().padStart(8, '0');\n      }\n    }\n\nfunction setProbeTargets(t1, t2) {\n      const el1 = document.getElementById('pProbeTarget1');\n      const el2 = document.getElementById('pProbeTarget2');\n      if (el1) el1.value = t1;\n      if (el2) el2.value = t2;\n      runIpClusterProbe();\n    }\n\nasync function runIpClusterProbe() {\n      const badge1 = document.getElementById('pNode1LatencyBadge');\n      const badge2 = document.getElementById('pNode2LatencyBadge');\n      const input1 = document.getElementById('pProbeTarget1');\n      const input2 = document.getElementById('pProbeTarget2');\n\n      const target1 = (input1 ? input1.value : '').trim() || 'qq.com';\n      const target2 = (input2 ? input2.value : '').trim() || 'https://fwpt.cn';\n\n      if (badge1) { badge1.innerText = '探测中...'; badge1.style.color = 'var(--text-main)'; }\n      if (badge2) { badge2.innerText = '探测中...'; badge2.style.color = 'var(--text-main)'; }\n\n      if (window.pywebview && window.pywebview.api && window.pywebview.api.ping_node) {\n        try {\n          const r1 = await window.pywebview.api.ping_node(target1);\n          if (badge1) {\n            badge1.innerText = r1.success ? `${r1.latency} ms (在线)` : '超时/离线';\n            badge1.style.color = r1.success ? 'var(--success)' : 'var(--danger)';\n          }\n        } catch (e) {\n          if (badge1) { badge1.innerText = '探测失败'; badge1.style.color = 'var(--danger)'; }\n        }\n\n        try {\n          const r2 = await window.pywebview.api.ping_node(target2);\n          if (badge2) {\n            badge2.innerText = r2.success ? `${r2.latency} ms (在线)` : '超时/离线';\n            badge2.style.color = r2.success ? 'var(--success)' : 'var(--danger)';\n          }\n        } catch (e) {\n          if (badge2) { badge2.innerText = '探测失败'; badge2.style.color = 'var(--danger)'; }\n        }\n      } else {\n        // 浏览器端采用 fetch 测量相对 HTTP 延迟\n        const testHttp = async (target, badge) => {\n          let url = target;\n          if (!url.startsWith('http://') && !url.startsWith('https://')) url = 'https://' + url;\n          const t0 = performance.now();\n          try {\n            await fetch(url, { method: 'HEAD', mode: 'no-cors', cache: 'no-cache' });\n            const lat = Math.round(performance.now() - t0);\n            if (badge) { badge.innerText = `${lat} ms (在线)`; badge.style.color = 'var(--success)'; }\n          } catch(e) {\n            const lat = Math.round(performance.now() - t0);\n            if (badge) { badge.innerText = `${lat} ms (响应)`; badge.style.color = 'var(--success)'; }\n          }\n        };\n        await testHttp(target1, badge1);\n        await testHttp(target2, badge2);\n        showToast('节点延迟探测完成');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"switchIpSubTab\"] = switchIpSubTab;\n    window[\"initIpCidrPrefixSelect\"] = initIpCidrPrefixSelect;\n    window[\"runIpCidrCalc\"] = runIpCidrCalc;\n    window[\"quickFillLocalIpCidr\"] = quickFillLocalIpCidr;\n    window[\"runIpBaseConvert\"] = runIpBaseConvert;\n    window[\"setProbeTargets\"] = setProbeTargets;\n    window[\"runIpClusterProbe\"] = runIpClusterProbe;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"ip-net-probe\",\n    name: \"全球 IP 与网络探针\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"🌐\",\n    version: \"1.0.0\",\n    desc: \"全球 IP 高精归属查询、公网出口探测、CIDR 子网掩码计算器、IP 进制互转与节点延迟测试\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 8px 12px; border-radius: 8px;\">\n            <button type=\"button\" id=\"btnIpTabCidr\" class=\"btn-action primary\" onclick=\"switchIpSubTab('cidr')\">📐 CIDR 子网计算</button>\n            <button type=\"button\" id=\"btnIpTabBase\" class=\"btn-action\" onclick=\"switchIpSubTab('base')\">🔢 IP 进制互转</button>\n            <button type=\"button\" id=\"btnIpTabProbe\" class=\"btn-action\" onclick=\"switchIpSubTab('probe')\">📡 节点 HTTP 延迟探针</button>\n          </div>\n          <div id=\"pIpSubViewCidr\" style=\"display: flex; flex-direction: column; gap: 12px;\">\n            <div style=\"display: flex; gap: 8px; flex-wrap: wrap; align-items: center;\">\n              <input id=\"pIpCidrInput\" type=\"text\" class=\"form-input\" value=\"192.168.1.100\" oninput=\"runIpCidrCalc()\" placeholder=\"输入 IPv4 地址 (如 192.168.1.100)\" style=\"width: 220px; font-family: var(--font-mono);\">\n              <select id=\"pIpCidrPrefix\" class=\"form-select\" onchange=\"runIpCidrCalc()\" style=\"width: 100px;\"></select>\n              <button type=\"button\" class=\"btn-action primary\" onclick=\"runIpCidrCalc()\">⚡ 计算网段</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"quickFillLocalIpCidr()\">填入 C 类示例</button>\n            </div>\n            <div style=\"display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">子网掩码</div><div id=\"pIpResMask\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px;\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">网络地址</div><div id=\"pIpResNetwork\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px; color: var(--primary);\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">广播地址</div><div id=\"pIpResBroadcast\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px;\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; grid-column: span 2;\"><div class=\"form-label\">可用主机范围</div><div id=\"pIpResHostRange\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px;\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">可用主机数</div><div id=\"pIpResHostCount\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px; color: var(--success);\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; grid-column: span 3;\"><div class=\"form-label\">通配符掩码 (Wildcard)</div><div id=\"pIpResWildcard\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px;\">-</div></div>\n            </div>\n          </div>\n          <div id=\"pIpSubViewBase\" style=\"display: none; flex-direction: column; gap: 12px;\">\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n              <div class=\"form-group\"><label class=\"form-label\">点分十进制 IPv4</label><input id=\"pIpBaseInputDotted\" type=\"text\" class=\"form-input\" value=\"101.35.100.169\" oninput=\"runIpBaseConvert('dotted')\" style=\"font-family: var(--font-mono);\"></div>\n              <div class=\"form-group\"><label class=\"form-label\">32位无符号整数 (Integer)</label><input id=\"pIpBaseInputInteger\" type=\"text\" class=\"form-input\" oninput=\"runIpBaseConvert('int')\" style=\"font-family: var(--font-mono);\"></div>\n            </div>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">二进制表示</div><div id=\"pIpResBinary\" style=\"font-family: var(--font-mono); font-size: 12px; font-weight: 700; margin-top: 4px;\">-</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">十六进制 (Hex)</div><div id=\"pIpResHex\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 4px; color: var(--primary);\">-</div></div>\n            </div>\n          </div>\n          <div id=\"pIpSubViewProbe\" style=\"display: none; flex-direction: column; gap: 10px;\">\n            <div style=\"display: flex; flex-wrap: wrap; gap: 8px;\">\n              <input id=\"pProbeTarget1\" type=\"text\" class=\"form-input\" value=\"https://fwpt.cn\" style=\"flex: 1; min-width: 180px; font-family: var(--font-mono);\">\n              <input id=\"pProbeTarget2\" type=\"text\" class=\"form-input\" value=\"https://github.com\" style=\"flex: 1; min-width: 180px; font-family: var(--font-mono);\">\n              <button type=\"button\" class=\"btn-action primary\" onclick=\"runIpClusterProbe()\">🚀 开始测速</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"setProbeTargets('https://fwpt.cn','https://baidu.com')\">国内基准</button>\n            </div>\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\"><div class=\"form-label\">节点 1 延迟</div><div id=\"pNode1LatencyBadge\" style=\"font-family: var(--font-mono); font-size: 15px; font-weight: 700; margin-top: 4px;\">待测试</div></div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\"><div class=\"form-label\">节点 2 延迟</div><div id=\"pNode2LatencyBadge\" style=\"font-family: var(--font-mono); font-size: 15px; font-weight: 700; margin-top: 4px;\">待测试</div></div>\n            </div>\n          </div>\n        </div>\n      `;\n      if (typeof initIpCidrPrefixSelect === 'function') initIpCidrPrefixSelect();\n      if (typeof quickFillLocalIpCidr === 'function') quickFillLocalIpCidr();\n      if (typeof runIpBaseConvert === 'function') runIpBaseConvert('dotted');\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"vps-ip-quality","name":"VPS IP 质量体检","category":"网络探针","cat_id":"net","icon":"⚡","version":"1.0.0","desc":"FWPT 智能云探针与多维网络体检引擎","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction runVpsIpQualityPreset(ip) {\n  const inp = document.getElementById('pVpsIpInput');\n  if (inp) inp.value = ip;\n  runVpsIpQualityPluginDiag(ip, false);\n}\n\nasync function runVpsIpQualityPluginDiag(presetIp, offlineFast) {\n  const inp = document.getElementById('pVpsIpInput');\n  const grid = document.getElementById('pVpsDiagResultBox');\n  const rep = document.getElementById('pVpsReportText');\n  const btn = document.getElementById('btnRunVpsDiag');\n  if (!grid || !rep) return;\n\n  const target = (typeof presetIp === 'string' && presetIp) ? presetIp.trim() : ((inp ? inp.value : '').trim());\n  if (btn && !offlineFast) { btn.disabled = true; btn.innerText = '体检中...'; }\n\n  let info = null;\n  if (!offlineFast) {\n    try {\n      const q = target ? ('https://ipwho.is/' + encodeURIComponent(target)) : 'https://ipwho.is/';\n      const resp = await fetch(q, { cache: 'no-cache' });\n      const data = await resp.json();\n      if (data && data.success !== false && data.ip) info = data;\n    } catch (e) {}\n  }\n\n  if (!info) {\n    const safeIp = target || '101.35.100.169';\n    const isCf = safeIp === '1.1.1.1' || safeIp.startsWith('104.');\n    const isGg = safeIp === '8.8.8.8' || safeIp === '8.8.4.4';\n    const isAli = safeIp.startsWith('39.') || safeIp.startsWith('47.');\n    info = {\n      ip: safeIp,\n      country: (isCf || isGg) ? 'United States' : 'China',\n      country_code: (isCf || isGg) ? 'US' : 'CN',\n      region: (isCf || isGg) ? 'California' : (isAli ? 'Beijing' : 'Shanghai'),\n      city: (isCf || isGg) ? 'San Francisco' : (isAli ? 'Beijing' : 'Shanghai'),\n      connection: {\n        asn: isCf ? 13335 : (isGg ? 15169 : (isAli ? 37963 : 45090)),\n        org: isCf ? 'Cloudflare, Inc.' : (isGg ? 'Google LLC' : (isAli ? 'Alibaba Cloud' : 'Tencent Cloud Computing'))\n      },\n      timezone: { id: (isCf || isGg) ? 'America/Los_Angeles' : 'Asia/Shanghai', utc: (isCf || isGg) ? '-07:00' : '+08:00' }\n    };\n  }\n\n  if (inp && !inp.value) inp.value = info.ip;\n  const conn = info.connection || {};\n  const org = (conn.org || '').toLowerCase();\n  const isDc = /cloud|hosting|tencent|alibaba|google|cloudflare|amazon|digitalocean|linode|vultr/.test(org);\n  const fraudScore = isDc ? 28 : 8;\n  const cc = (info.country_code || 'CN').toUpperCase();\n  const aiUnlock = !['CN', 'HK', 'RU', 'IR', 'KP'].includes(cc);\n\n  const cards = [\n    { k: '目标检测 IP', v: info.ip },\n    { k: '归属地 / 时区', v: `${info.country || ''} ${info.region || ''} ${info.city || ''} (${info.timezone?.utc || 'UTC'})` },\n    { k: 'ASN / 运营商', v: `AS${conn.asn || '-'} · ${conn.org || conn.isp || 'Local'}` },\n    { k: '类型与欺诈评分', v: `${isDc ? '数据中心 Hosting' : '原生住宅 ISP'} · 风险 ${fraudScore}/100` },\n    { k: 'AI / 国际服务兼容', v: aiUnlock ? '✅ 支持主流海外 AI 节点' : 'ℹ️ 受限区域 / 国内骨干优化' }\n  ];\n\n  grid.innerHTML = cards.map(c => `\n    <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\">\n      <div class=\"form-label\">${c.k}</div>\n      <div style=\"font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; margin-top: 4px; color: var(--text-main);\">${escapeHtml(c.v)}</div>\n    </div>\n  `).join('');\n\n  let latencyNote = offlineFast ? '点击「⚡ 立即体检」触发实时在线探测与延迟采样' : '完成实时检测';\n  if (!offlineFast) {\n    const t0 = performance.now();\n    try { await fetch('https://fwpt.cn/robots.txt', { mode: 'no-cors', cache: 'no-cache' }); } catch (e) {}\n    latencyNote = `HTTPS 主站握手延迟约 ${Math.round(performance.now() - t0)} ms`;\n  }\n\n  rep.innerText = [\n    `【磐石 VPS IP 质量体检报告】`,\n    `• 目标 IP: ${info.ip}`,\n    `• 地理位置: ${info.country || '-'} / ${info.region || '-'} / ${info.city || '-'}`,\n    `• 所属 ASN: AS${conn.asn || '-'} (${conn.org || '-'})`,\n    `• 机房判定: ${isDc ? '云数据中心 (Hosting)' : '住宅宽带 (Residential)'} | 风控参考分: ${fraudScore}/100`,\n    `• 网络状态: ${latencyNote}`\n  ].join('\\n');\n\n  if (btn && !offlineFast) { btn.disabled = false; btn.innerText = '⚡ 立即体检'; }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"runVpsIpQualityPreset\"] = runVpsIpQualityPreset;\n    window[\"runVpsIpQualityPluginDiag\"] = runVpsIpQualityPluginDiag;\n    const __rvPluginDef = {\n    id: \"vps-ip-quality\",\n    name: \"VPS IP 质量体检\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"⚡\",\n    version: \"1.0.0\",\n    desc: \"FWPT 智能云探针与多维网络体检引擎\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px;\">\n            <input id=\"pVpsIpInput\" type=\"text\" class=\"form-input\" placeholder=\"输入目标 IPv4/IPv6 (留空检测当前公网出口)\" style=\"flex: 1; min-width: 220px; height: 34px; font-family: var(--font-mono);\">\n            <button type=\"button\" id=\"btnRunVpsDiag\" class=\"btn-action primary\" onclick=\"runVpsIpQualityPluginDiag()\">⚡ 立即体检</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runVpsIpQualityPreset('101.35.100.169')\">腾讯云节点</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runVpsIpQualityPreset('1.1.1.1')\">1.1.1.1</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"runVpsIpQualityPreset('8.8.8.8')\">8.8.8.8</button>\n          </div>\n          <div id=\"pVpsDiagResultBox\" style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;\"></div>\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\">\n            <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;\">\n              <span class=\"form-label\" style=\"margin: 0;\">多线连通性与风控评估摘要</span>\n              <button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyTextToClipboard(document.getElementById('pVpsReportText')?.innerText || '', '📋 体检报告已复制')\">📋 复制报告</button>\n            </div>\n            <pre id=\"pVpsReportText\" style=\"margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; color: var(--text-sub); user-select: text;\"></pre>\n          </div>\n        </div>\n      `;\n      if (typeof runVpsIpQualityPluginDiag === 'function') runVpsIpQualityPluginDiag('101.35.100.169', true);\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"url-params-inspector","name":"URL 链接与参数解析","category":"文本与正则","cat_id":"text","icon":"🔗","version":"1.0.0","desc":"解析 URL 协议、域名、路径与 Query 参数键值对，支持参数增删改并实时反向重构 URL","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction parseUrlParamsAction() {\n      const input = (document.getElementById('pUrlInspectorInput')?.value || '').trim();\n      const tbody = document.getElementById('pUrlParamsTableBody');\n      const countEl = document.getElementById('pUrlParamsCount');\n      if (!tbody) return;\n\n      if (!input) {\n        document.getElementById('pUrlResProtocol').innerText = '-';\n        document.getElementById('pUrlResHost').innerText = '-';\n        document.getElementById('pUrlResPath').innerText = '-';\n        document.getElementById('pUrlResHash').innerText = '-';\n        tbody.innerHTML = '<tr><td colspan=\"3\" style=\"text-align: center; color: var(--text-muted); padding: 12px;\">请输入有效 URL 链接</td></tr>';\n        if (countEl) countEl.innerText = '0';\n        return;\n      }\n\n      try {\n        let testUrl = input;\n        if (!testUrl.startsWith('http://') && !testUrl.startsWith('https://')) {\n          testUrl = 'http://' + testUrl;\n        }\n        const parsed = new URL(testUrl);\n        document.getElementById('pUrlResProtocol').innerText = parsed.protocol;\n        document.getElementById('pUrlResHost').innerText = parsed.host;\n        document.getElementById('pUrlResPath').innerText = parsed.pathname;\n        document.getElementById('pUrlResHash').innerText = parsed.hash || '(无)';\n\n        const params = Array.from(parsed.searchParams.entries());\n        if (countEl) countEl.innerText = params.length;\n\n        if (params.length === 0) {\n          tbody.innerHTML = '<tr><td colspan=\"3\" style=\"text-align: center; color: var(--text-muted); padding: 12px;\">该链接不含 Query 查询参数</td></tr>';\n          return;\n        }\n\n        tbody.innerHTML = params.map(([k, v], idx) => `\n          <tr style=\"border-bottom: 1px solid var(--border-color);\">\n            <td style=\"padding: 6px 8px;\">\n              <input type=\"text\" class=\"form-input p-url-key\" value=\"${escapeHtml(k)}\" oninput=\"rebuildUrlFromParams()\" style=\"height: 26px; font-size: 11.5px; font-family: var(--font-mono);\">\n            </td>\n            <td style=\"padding: 6px 8px;\">\n              <input type=\"text\" class=\"form-input p-url-val\" value=\"${escapeHtml(v)}\" oninput=\"rebuildUrlFromParams()\" style=\"height: 26px; font-size: 11.5px; font-family: var(--font-mono);\">\n            </td>\n            <td style=\"text-align: center; padding: 6px 8px;\">\n              <button class=\"btn-action danger\" onclick=\"removeUrlParamRow(this)\" style=\"padding: 1px 6px; font-size: 11px;\">✕</button>\n            </td>\n          </tr>\n        `).join('');\n      } catch(e) {\n        tbody.innerHTML = `<tr><td colspan=\"3\" style=\"text-align: center; color: var(--danger); padding: 12px;\">URL 格式解析错误: ${escapeHtml(e.message)}</td></tr>`;\n      }\n    }\n\nfunction addUrlParamRow() {\n      const tbody = document.getElementById('pUrlParamsTableBody');\n      if (!tbody) return;\n      if (tbody.innerText.includes('请输入有效') || tbody.innerText.includes('不含 Query')) {\n        tbody.innerHTML = '';\n      }\n      const tr = document.createElement('tr');\n      tr.style.borderBottom = '1px solid var(--border-color)';\n      tr.innerHTML = `\n        <td style=\"padding: 6px 8px;\">\n          <input type=\"text\" class=\"form-input p-url-key\" value=\"newParam\" oninput=\"rebuildUrlFromParams()\" style=\"height: 26px; font-size: 11.5px; font-family: var(--font-mono);\">\n        </td>\n        <td style=\"padding: 6px 8px;\">\n          <input type=\"text\" class=\"form-input p-url-val\" value=\"value\" oninput=\"rebuildUrlFromParams()\" style=\"height: 26px; font-size: 11.5px; font-family: var(--font-mono);\">\n        </td>\n        <td style=\"text-align: center; padding: 6px 8px;\">\n          <button class=\"btn-action danger\" onclick=\"removeUrlParamRow(this)\" style=\"padding: 1px 6px; font-size: 11px;\">✕</button>\n        </td>\n      `;\n      tbody.appendChild(tr);\n      rebuildUrlFromParams();\n    }\n\nfunction removeUrlParamRow(btn) {\n      const tr = btn.closest('tr');\n      if (tr) tr.remove();\n      rebuildUrlFromParams();\n    }\n\nfunction rebuildUrlFromParams() {\n      const input = document.getElementById('pUrlInspectorInput');\n      if (!input || !input.value.trim()) return;\n      try {\n        let testUrl = input.value.trim();\n        if (!testUrl.startsWith('http://') && !testUrl.startsWith('https://')) {\n          testUrl = 'http://' + testUrl;\n        }\n        const parsed = new URL(testUrl);\n        const searchParams = new URLSearchParams();\n\n        const keys = document.querySelectorAll('.p-url-key');\n        const vals = document.querySelectorAll('.p-url-val');\n        keys.forEach((kEl, idx) => {\n          const k = kEl.value.trim();\n          if (k) searchParams.append(k, vals[idx]?.value || '');\n        });\n\n        parsed.search = searchParams.toString() ? ('?' + searchParams.toString()) : '';\n        input.value = parsed.toString();\n        const countEl = document.getElementById('pUrlParamsCount');\n        if (countEl) countEl.innerText = keys.length;\n      } catch(e) {}\n    }\n\nfunction copyRebuiltUrl() {\n      const url = document.getElementById('pUrlInspectorInput')?.value;\n      if (url) {\n        navigator.clipboard.writeText(url);\n        showToast('📋 已复制组装后的 URL 到剪贴板');\n      }\n    }\n\nfunction loadSampleUrlInspector() {\n      const input = document.getElementById('pUrlInspectorInput');\n      if (input) {\n        input.value = 'https://api.github.com/repos/antigravity/project/issues?state=open&sort=created&direction=desc&page=1&per_page=30#overview';\n        parseUrlParamsAction();\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"parseUrlParamsAction\"] = parseUrlParamsAction;\n    window[\"addUrlParamRow\"] = addUrlParamRow;\n    window[\"removeUrlParamRow\"] = removeUrlParamRow;\n    window[\"rebuildUrlFromParams\"] = rebuildUrlFromParams;\n    window[\"copyRebuiltUrl\"] = copyRebuiltUrl;\n    window[\"loadSampleUrlInspector\"] = loadSampleUrlInspector;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"url-params-inspector\",\n    name: \"URL 链接与参数解析\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔗\",\n    version: \"1.0.0\",\n    desc: \"解析 URL 协议、域名、路径与 Query 参数键值对，支持参数增删改并实时反向重构 URL\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px;\">\n            <input id=\"pUrlInspectorInput\" type=\"text\" class=\"form-input\" oninput=\"parseUrlParamsAction()\" placeholder=\"输入完整 URL 链接...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px;\">\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"addUrlParamRow()\">+ 添加参数</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyRebuiltUrl()\">📋 复制重构 URL</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"loadSampleUrlInspector()\">示例</button>\n          </div>\n          <div style=\"display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;\">\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px;\"><div class=\"form-label\">Protocol</div><div id=\"pUrlResProtocol\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 2px;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px;\"><div class=\"form-label\">Host</div><div id=\"pUrlResHost\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 2px; word-break: break-all;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px;\"><div class=\"form-label\">Path</div><div id=\"pUrlResPath\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 2px; word-break: break-all;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 10px;\"><div class=\"form-label\">Hash (共 <span id=\"pUrlParamsCount\">0</span> 参)</div><div id=\"pUrlResHash\" style=\"font-family: var(--font-mono); font-weight: 700; margin-top: 2px;\">-</div></div>\n          </div>\n          <div style=\"flex: 1; min-height: 180px; overflow: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px;\">\n            <table class=\"data-table\">\n              <thead><tr><th style=\"width: 35%;\">参数名 (Key)</th><th>参数值 (Value)</th><th style=\"width: 72px; text-align: center;\">操作</th></tr></thead>\n              <tbody id=\"pUrlParamsTableBody\"></tbody>\n            </table>\n          </div>\n        </div>\n      `;\n      if (typeof loadSampleUrlInspector === 'function') loadSampleUrlInspector();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"color-converter-calc","name":"现代颜色格式转换器","category":"数据与 SQL","cat_id":"data","icon":"🎨","version":"1.0.0","desc":"HEX、RGB、RGBA、HSL 色值快速互转，支持取色板、透明度调节与 CSS 代码一键复制","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction hexToRgb(hex) {\n      let c = hex.replace(/^#/, '');\n      if (c.length === 3) c = c.split('').map(x => x + x).join('');\n      const num = parseInt(c, 16);\n      return { r: (num >> 16) & 255, g: (num >> 8) & 255, b: num & 255 };\n    }\n\nfunction rgbToHsl(r, g, b) {\n      r /= 255; g /= 255; b /= 255;\n      const max = Math.max(r, g, b), min = Math.min(r, g, b);\n      let h, s, l = (max + min) / 2;\n      if (max === min) {\n        h = s = 0;\n      } else {\n        const d = max - min;\n        s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n        switch (max) {\n          case r: h = (g - b) / d + (g < b ? 6 : 0); break;\n          case g: h = (b - r) / d + 2; break;\n          case b: h = (r - g) / d + 4; break;\n        }\n        h /= 6;\n      }\n      return { h: Math.round(h * 360), s: Math.round(s * 100), l: Math.round(l * 100) };\n    }\n\nfunction updateColorDisplaysFromHex(hex, alpha = 1) {\n      const rgb = hexToRgb(hex);\n      const hsl = rgbToHsl(rgb.r, rgb.g, rgb.b);\n      const hexEl = document.getElementById('pColorHexDisplay');\n      const inHex = document.getElementById('pColorInHex');\n      const inRgba = document.getElementById('pColorInRgba');\n      const inHsl = document.getElementById('pColorInHsl');\n      const picker = document.getElementById('pColorNativePicker');\n\n      const alphaClean = Math.round(alpha * 100) / 100;\n      if (hexEl) hexEl.innerText = hex.toUpperCase();\n      if (inHex) inHex.value = hex.toUpperCase();\n      if (inRgba) inRgba.value = `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${alphaClean})`;\n      if (inHsl) inHsl.value = `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;\n      if (picker && picker.value.toLowerCase() !== hex.toLowerCase()) picker.value = hex;\n    }\n\nfunction onColorNativePick(val) {\n      const alphaRange = document.getElementById('pColorAlphaRange');\n      const alpha = alphaRange ? parseInt(alphaRange.value, 10) / 100 : 1;\n      updateColorDisplaysFromHex(val, alpha);\n    }\n\nfunction onColorAlphaChange(val) {\n      const label = document.getElementById('pColorAlphaVal');\n      if (label) label.innerText = `${val}%`;\n      const hex = document.getElementById('pColorInHex')?.value || '#1E66F5';\n      updateColorDisplaysFromHex(hex, parseInt(val, 10) / 100);\n    }\n\nfunction onColorInputHex(val) {\n      if (/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(val)) {\n        const cleanHex = val.startsWith('#') ? val : ('#' + val);\n        updateColorDisplaysFromHex(cleanHex, 1);\n      }\n    }\n\nfunction onColorInputRgba(val) {\n      const m = val.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*([\\d.]+))?\\)/);\n      if (m) {\n        const r = parseInt(m[1]), g = parseInt(m[2]), b = parseInt(m[3]);\n        const a = m[4] ? parseFloat(m[4]) : 1;\n        const hex = '#' + [r, g, b].map(x => x.toString(16).padStart(2, '0')).join('');\n        updateColorDisplaysFromHex(hex, a);\n      }\n    }\n\nfunction onColorInputHsl(val) {\n      const m = val.match(/hsl\\(\\s*(\\d+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%\\s*\\)/);\n      if (m) {\n        const h = parseInt(m[1]), s = parseFloat(m[2]) / 100, l = parseFloat(m[3]) / 100;\n        // HSL to RGB conversion\n        let r, g, b;\n        if (s === 0) {\n          r = g = b = l;\n        } else {\n          const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n          const p = 2 * l - q;\n          const hk = h / 360;\n          [r, g, b] = [hk + 1/3, hk, hk - 1/3].map(t => {\n            if (t < 0) t += 1;\n            if (t > 1) t -= 1;\n            if (t < 1/6) return p + (q - p) * 6 * t;\n            if (t < 1/2) return q;\n            if (t < 2/3) return p + (q - p) * (2/3 - t) * 6;\n            return p;\n          });\n        }\n        const hex = '#' + [r, g, b].map(x => Math.round(x * 255).toString(16).padStart(2, '0')).join('');\n        updateColorDisplaysFromHex(hex, 1);\n      }\n    }\n\nfunction setPredefinedColor(hex) {\n      updateColorDisplaysFromHex(hex, 1);\n    }\n\nfunction copyColorField(id) {\n      const el = document.getElementById(id);\n      if (el && el.value) {\n        navigator.clipboard.writeText(el.value);\n        showToast(`📋 已复制: ${el.value}`);\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"hexToRgb\"] = hexToRgb;\n    window[\"rgbToHsl\"] = rgbToHsl;\n    window[\"updateColorDisplaysFromHex\"] = updateColorDisplaysFromHex;\n    window[\"onColorNativePick\"] = onColorNativePick;\n    window[\"onColorAlphaChange\"] = onColorAlphaChange;\n    window[\"onColorInputHex\"] = onColorInputHex;\n    window[\"onColorInputRgba\"] = onColorInputRgba;\n    window[\"onColorInputHsl\"] = onColorInputHsl;\n    window[\"setPredefinedColor\"] = setPredefinedColor;\n    window[\"copyColorField\"] = copyColorField;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"color-converter-calc\",\n    name: \"现代颜色格式转换器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"🎨\",\n    version: \"1.0.0\",\n    desc: \"HEX、RGB、RGBA、HSL 色值快速互转，支持取色板、透明度调节与 CSS 代码一键复制\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px;\">\n            <input id=\"pColorNativePicker\" type=\"color\" value=\"#1E66F5\" oninput=\"onColorNativePick(this.value)\" style=\"width: 64px; height: 64px; border: none; border-radius: 10px; cursor: pointer; background: transparent;\">\n            <div style=\"display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px;\">\n              <div style=\"font-size: 20px; font-weight: 800; font-family: var(--font-mono); color: var(--text-main);\" id=\"pColorHexDisplay\">#1E66F5</div>\n              <div style=\"display: flex; align-items: center; gap: 8px; font-size: 12px;\">\n                <span>透明度 Alpha:</span>\n                <input id=\"pColorAlphaRange\" type=\"range\" min=\"0\" max=\"100\" value=\"100\" oninput=\"onColorAlphaChange(this.value)\" style=\"flex: 1; max-width: 200px;\">\n                <b id=\"pColorAlphaVal\" style=\"font-family: var(--font-mono);\">100%</b>\n              </div>\n            </div>\n            <div style=\"display: flex; gap: 6px; flex-wrap: wrap;\">\n              <button type=\"button\" class=\"btn-action\" onclick=\"setPredefinedColor('#1E66F5')\">极光蓝</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"setPredefinedColor('#10B981')\">翡翠绿</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"setPredefinedColor('#F59E0B')\">琥珀橙</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"setPredefinedColor('#EF4444')\">朱砂红</button>\n              <button type=\"button\" class=\"btn-action\" onclick=\"setPredefinedColor('#8B5CF6')\">魅影紫</button>\n            </div>\n          </div>\n          <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px;\">\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\"><span class=\"form-label\">HEX 色值</span><button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyColorField('pColorInHex')\">复制</button></div>\n              <input id=\"pColorInHex\" type=\"text\" class=\"form-input\" oninput=\"onColorInputHex(this.value)\" style=\"font-family: var(--font-mono); font-weight: 700;\">\n            </div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\"><span class=\"form-label\">RGB / RGBA</span><button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyColorField('pColorInRgba')\">复制</button></div>\n              <input id=\"pColorInRgba\" type=\"text\" class=\"form-input\" oninput=\"onColorInputRgba(this.value)\" style=\"font-family: var(--font-mono); font-weight: 700;\">\n            </div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\"><span class=\"form-label\">HSL CSS 值</span><button type=\"button\" class=\"btn-action\" style=\"padding: 2px 8px; font-size: 11px;\" onclick=\"copyColorField('pColorInHsl')\">复制</button></div>\n              <input id=\"pColorInHsl\" type=\"text\" class=\"form-input\" oninput=\"onColorInputHsl(this.value)\" style=\"font-family: var(--font-mono); font-weight: 700;\">\n            </div>\n          </div>\n        </div>\n      `;\n      if (typeof updateColorDisplaysFromHex === 'function') updateColorDisplaysFromHex('#1E66F5', 1);\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"mock-data-generator","name":"测试数据与 Mock 生成器","category":"编码与安全","cat_id":"codec","icon":"🧪","version":"1.0.0","desc":"一键快速批量生成中国手机号、二代身份证号、虚拟姓名、银行卡号与测试邮箱","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runGenerateMockDataAction() {\n      const type = document.getElementById('pMockType')?.value || 'phone';\n      const count = parseInt(document.getElementById('pMockCount')?.value || '10', 10);\n      const output = document.getElementById('pMockOutput');\n      if (!output) return;\n\n      const results = [];\n      const prefixes = ['138', '139', '150', '151', '158', '178', '188', '130', '131', '155', '186', '133', '153', '180', '189'];\n      const lastNames = ['赵', '钱', '孙', '李', '周', '吴', '郑', '王', '冯', '陈', '楚', '卫', '蒋', '沈', '韩', '杨', '朱', '秦', '尤', '许', '何', '吕', '施', '张', '孔', '曹', '严', '华', '金', '魏', '陶', '姜'];\n      const firstNames = ['伟', '芳', '娜', '秀英', '敏', '静', '丽', '强', '磊', '军', '洋', '勇', '艳', '杰', '娟', '涛', '明', '超', '秀兰', '霞', '平', '刚', '桂英', '玉', '萍', '玲', '忠', '华', '建国', '安', '宇', '欣', '晨', '子轩', '梓涵'];\n      const domains = ['qq.com', '163.com', 'gmail.com', 'foxmail.com', 'outlook.com', 'fwpt.cn', 'aliyun.com'];\n\n      for (let i = 0; i < count; i++) {\n        if (type === 'phone') {\n          const pre = prefixes[Math.floor(Math.random() * prefixes.length)];\n          const post = String(Math.floor(Math.random() * 90000000) + 10000000);\n          results.push(pre + post);\n        } else if (type === 'name') {\n          const l = lastNames[Math.floor(Math.random() * lastNames.length)];\n          const f = firstNames[Math.floor(Math.random() * firstNames.length)];\n          results.push(l + f);\n        } else if (type === 'email') {\n          const user = Math.random().toString(36).substring(2, 9);\n          const domain = domains[Math.floor(Math.random() * domains.length)];\n          results.push(`${user}@${domain}`);\n        } else if (type === 'idcard') {\n          // 随机生成合规结构 18 位身份证\n          const area = ['110101', '310101', '440106', '330106', '510104'][Math.floor(Math.random() * 5)];\n          const year = Math.floor(Math.random() * 40) + 1970;\n          const month = String(Math.floor(Math.random() * 12) + 1).padStart(2, '0');\n          const day = String(Math.floor(Math.random() * 28) + 1).padStart(2, '0');\n          const seq = String(Math.floor(Math.random() * 900) + 100);\n          const base17 = `${area}${year}${month}${day}${seq}`;\n          const weights = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];\n          const checkCodes = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];\n          let sum = 0;\n          for (let j = 0; j < 17; j++) sum += parseInt(base17[j], 10) * weights[j];\n          const check = checkCodes[sum % 11];\n          results.push(base17 + check);\n        } else if (type === 'bankcard') {\n          // 62 开头 16 位测试银联卡号 (Luhn 校验算法)\n          let base = '622202' + String(Math.floor(Math.random() * 900000000) + 100000000);\n          let sum = 0;\n          for (let j = base.length - 1; j >= 0; j--) {\n            let n = parseInt(base[j], 10);\n            if ((base.length - j) % 2 === 1) {\n              n *= 2;\n              if (n > 9) n -= 9;\n            }\n            sum += n;\n          }\n          let check = (10 - (sum % 10)) % 10;\n          results.push(base + check);\n        }\n      }\n\n      output.value = results.join('\\n');\n    }\n\nfunction copyMockDataResult() {\n      const out = document.getElementById('pMockOutput');\n      if (out && out.value) {\n        navigator.clipboard.writeText(out.value);\n        showToast(`📋 已成功复制 ${out.value.split('\\n').length} 条测试数据`);\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runGenerateMockDataAction\"] = runGenerateMockDataAction;\n    window[\"copyMockDataResult\"] = copyMockDataResult;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"mock-data-generator\",\n    name: \"测试数据与 Mock 生成器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🧪\",\n    version: \"1.0.0\",\n    desc: \"一键快速批量生成中国手机号、二代身份证号、虚拟姓名、银行卡号与测试邮箱\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg-subtle); padding: 10px 12px; border-radius: 8px;\">\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 6px;\">数据类型:\n              <select id=\"pMockType\" class=\"form-select\" onchange=\"runGenerateMockDataAction()\" style=\"width: 190px; height: 32px;\">\n                <option value=\"phone\" selected>中国大陆手机号 (11位)</option>\n                <option value=\"idcard\">GB11643 校验二代身份证</option>\n                <option value=\"name\">随机中文测试姓名</option>\n                <option value=\"bankcard\">Luhn 测试银联卡号 (62开头)</option>\n                <option value=\"email\">随机测试电子邮箱</option>\n              </select>\n            </label>\n            <label style=\"font-size: 12px; display: flex; align-items: center; gap: 6px;\">条数:\n              <select id=\"pMockCount\" class=\"form-select\" onchange=\"runGenerateMockDataAction()\" style=\"width: 90px; height: 32px;\">\n                <option value=\"5\">5 条</option>\n                <option value=\"10\" selected>10 条</option>\n                <option value=\"20\">20 条</option>\n                <option value=\"50\">50 条</option>\n              </select>\n            </label>\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"runGenerateMockDataAction()\">🎲 立即生成测试数据</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyMockDataResult()\" style=\"margin-left: auto;\">📋 全部复制</button>\n          </div>\n          <textarea id=\"pMockOutput\" class=\"form-textarea\" readonly style=\"flex: 1; min-height: 260px; font-family: var(--font-mono); font-size: 13px; background: var(--bg-card); resize: none;\"></textarea>\n        </div>\n      `;\n      if (typeof runGenerateMockDataAction === 'function') runGenerateMockDataAction();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"mortgage-calc","name":"商业与公积金房贷计算器","category":"商业与金融","cat_id":"finance","icon":"🏠","version":"1.0.0","desc":"支持商业贷款/公积金/组合贷，等额本息与等额本金双向对比、首月还款明细与还款总利息测算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet currentMortgageScheduleBx = [];\n\nlet currentMortgageScheduleBj = [];\n\nfunction onMortgageLoanTypeChange() {\n      const type = document.getElementById('pMortLoanType')?.value || 'commercial';\n      const commAmtWrap = document.getElementById('pMortCommAmountWrap');\n      const commRateWrap = document.getElementById('pMortCommRateWrap');\n      const fundAmtWrap = document.getElementById('pMortFundAmountWrap');\n      const fundRateWrap = document.getElementById('pMortFundRateWrap');\n      const commAmtLbl = document.getElementById('pMortCommAmountLabel');\n      const commRateLbl = document.getElementById('pMortCommRateLabel');\n\n      if (type === 'commercial') {\n        if (commAmtWrap) commAmtWrap.style.display = 'flex';\n        if (commRateWrap) commRateWrap.style.display = 'flex';\n        if (fundAmtWrap) fundAmtWrap.style.display = 'none';\n        if (fundRateWrap) fundRateWrap.style.display = 'none';\n        if (commAmtLbl) commAmtLbl.innerText = '商业贷款金额 (万元):';\n        if (commRateLbl) commRateLbl.innerText = '商贷年利率 LPR (%):';\n      } else if (type === 'fund') {\n        if (commAmtWrap) commAmtWrap.style.display = 'none';\n        if (commRateWrap) commRateWrap.style.display = 'none';\n        if (fundAmtWrap) fundAmtWrap.style.display = 'flex';\n        if (fundRateWrap) fundRateWrap.style.display = 'flex';\n      } else if (type === 'combo') {\n        if (commAmtWrap) commAmtWrap.style.display = 'flex';\n        if (commRateWrap) commRateWrap.style.display = 'flex';\n        if (fundAmtWrap) fundAmtWrap.style.display = 'flex';\n        if (fundRateWrap) fundRateWrap.style.display = 'flex';\n        if (commAmtLbl) commAmtLbl.innerText = '商贷部分金额 (万元):';\n        if (commRateLbl) commRateLbl.innerText = '商贷年利率 LPR (%):';\n      }\n      runMortgageCalcAction();\n    }\n\nfunction setMortgagePreset(commW, rate, years) {\n      const t = document.getElementById('pMortLoanType');\n      if (t) t.value = 'commercial';\n      onMortgageLoanTypeChange();\n      const a = document.getElementById('pMortCommAmount');\n      const r = document.getElementById('pMortCommRate');\n      const y = document.getElementById('pMortYears');\n      if (a) a.value = commW;\n      if (r) r.value = rate;\n      if (y) y.value = years;\n      runMortgageCalcAction();\n    }\n\nfunction runMortgageCalcAction() {\n      const loanType = document.getElementById('pMortLoanType')?.value || 'commercial';\n      const years = parseInt(document.getElementById('pMortYears')?.value || '30', 10);\n      const totalMonths = years * 12;\n\n      let commAmt = 0;\n      let commRateYear = 0;\n      let fundAmt = 0;\n      let fundRateYear = 0;\n\n      if (loanType === 'commercial') {\n        commAmt = parseFloat(document.getElementById('pMortCommAmount')?.value || '0') * 10000;\n        commRateYear = parseFloat(document.getElementById('pMortCommRate')?.value || '0') / 100;\n      } else if (loanType === 'fund') {\n        fundAmt = parseFloat(document.getElementById('pMortFundAmount')?.value || '0') * 10000;\n        fundRateYear = parseFloat(document.getElementById('pMortFundRate')?.value || '0') / 100;\n      } else if (loanType === 'combo') {\n        commAmt = parseFloat(document.getElementById('pMortCommAmount')?.value || '0') * 10000;\n        commRateYear = parseFloat(document.getElementById('pMortCommRate')?.value || '0') / 100;\n        fundAmt = parseFloat(document.getElementById('pMortFundAmount')?.value || '0') * 10000;\n        fundRateYear = parseFloat(document.getElementById('pMortFundRate')?.value || '0') / 100;\n      }\n\n      const totalPrincipal = commAmt + fundAmt;\n      if (totalPrincipal <= 0 || totalMonths <= 0) return;\n\n      // 1. 等额本息计算 (商贷 + 公积金)\n      function calcBenXiSchedule(principal, rateYear, n) {\n        if (principal <= 0) return Array.from({length: n}, () => ({ monthPay: 0, repayP: 0, repayI: 0, remainP: 0 }));\n        const r = rateYear / 12;\n        const monthPay = (principal * r * Math.pow(1 + r, n)) / (Math.pow(1 + r, n) - 1);\n        let remain = principal;\n        const res = [];\n        for (let i = 1; i <= n; i++) {\n          const repayI = remain * r;\n          const repayP = monthPay - repayI;\n          remain = Math.max(0, remain - repayP);\n          res.push({ monthPay, repayP, repayI, remainP: remain });\n        }\n        return res;\n      }\n\n      // 2. 等额本金计算 (商贷 + 公积金)\n      function calcBenJinSchedule(principal, rateYear, n) {\n        if (principal <= 0) return Array.from({length: n}, () => ({ monthPay: 0, repayP: 0, repayI: 0, remainP: 0 }));\n        const r = rateYear / 12;\n        const repayP = principal / n;\n        let remain = principal;\n        const res = [];\n        for (let i = 1; i <= n; i++) {\n          const repayI = remain * r;\n          const monthPay = repayP + repayI;\n          remain = Math.max(0, remain - repayP);\n          res.push({ monthPay, repayP, repayI, remainP: remain });\n        }\n        return res;\n      }\n\n      const bxComm = calcBenXiSchedule(commAmt, commRateYear, totalMonths);\n      const bxFund = calcBenXiSchedule(fundAmt, fundRateYear, totalMonths);\n      const bjComm = calcBenJinSchedule(commAmt, commRateYear, totalMonths);\n      const bjFund = calcBenJinSchedule(fundAmt, fundRateYear, totalMonths);\n\n      // 合并双渠道\n      currentMortgageScheduleBx = [];\n      let totalInterestBx = 0;\n      for (let i = 0; i < totalMonths; i++) {\n        const mPay = bxComm[i].monthPay + bxFund[i].monthPay;\n        const rP = bxComm[i].repayP + bxFund[i].repayP;\n        const rI = bxComm[i].repayI + bxFund[i].repayI;\n        const rem = bxComm[i].remainP + bxFund[i].remainP;\n        totalInterestBx += rI;\n        currentMortgageScheduleBx.push({ period: i + 1, monthPay: mPay, repayP: rP, repayI: rI, remainP: rem });\n      }\n\n      currentMortgageScheduleBj = [];\n      let totalInterestBj = 0;\n      for (let i = 0; i < totalMonths; i++) {\n        const mPay = bjComm[i].monthPay + bjFund[i].monthPay;\n        const rP = bjComm[i].repayP + bjFund[i].repayP;\n        const rI = bjComm[i].repayI + bjFund[i].repayI;\n        const rem = bjComm[i].remainP + bjFund[i].remainP;\n        totalInterestBj += rI;\n        currentMortgageScheduleBj.push({ period: i + 1, monthPay: mPay, repayP: rP, repayI: rI, remainP: rem });\n      }\n\n      // 呈现汇总数据\n      const fmtY = n => '¥ ' + Math.round(n).toLocaleString('en-US');\n      const bxMonth1 = currentMortgageScheduleBx[0]?.monthPay || 0;\n      const bjMonth1 = currentMortgageScheduleBj[0]?.monthPay || 0;\n      const bjMonth2 = currentMortgageScheduleBj[1]?.monthPay || 0;\n      const bjDiff = Math.max(0, bjMonth1 - bjMonth2);\n\n      const elBxM = document.getElementById('pMortBxMonthly');\n      const elBxI = document.getElementById('pMortBxTotalInterest');\n      const elBxT = document.getElementById('pMortBxTotalRepay');\n      const elBxP = document.getElementById('pMortBxPrincipal');\n\n      if (elBxM) elBxM.innerText = fmtY(bxMonth1);\n      if (elBxI) elBxI.innerText = fmtY(totalInterestBx);\n      if (elBxT) elBxT.innerText = fmtY(totalPrincipal + totalInterestBx);\n      if (elBxP) elBxP.innerText = fmtY(totalPrincipal);\n\n      const elBjF = document.getElementById('pMortBjFirstMonth');\n      const elBjD = document.getElementById('pMortBjMonthDecrease');\n      const elBjI = document.getElementById('pMortBjTotalInterest');\n      const elBjT = document.getElementById('pMortBjTotalRepay');\n      const elBjS = document.getElementById('pMortBjSavedInterest');\n\n      if (elBjF) elBjF.innerText = fmtY(bjMonth1);\n      if (elBjD) elBjD.innerText = `每月递减 ${fmtY(bjDiff)}`;\n      if (elBjI) elBjI.innerText = fmtY(totalInterestBj);\n      if (elBjT) elBjT.innerText = fmtY(totalPrincipal + totalInterestBj);\n      const savedI = Math.max(0, totalInterestBx - totalInterestBj);\n      if (elBjS) elBjS.innerText = `相比方案A少还: ${fmtY(savedI)}`;\n\n      renderMortgageScheduleTable();\n    }\n\nfunction renderMortgageScheduleTable() {\n      const plan = document.querySelector('input[name=\"pMortSchedulePlan\"]:checked')?.value || 'bx';\n      const schedule = (plan === 'bx') ? currentMortgageScheduleBx : currentMortgageScheduleBj;\n      const tbody = document.getElementById('pMortScheduleTableBody');\n      if (!tbody) return;\n\n      if (!schedule || schedule.length === 0) {\n        tbody.innerHTML = '<tr><td colspan=\"5\" style=\"text-align:center; padding: 20px; color: var(--text-muted);\">暂无明细</td></tr>';\n        return;\n      }\n\n      const rowsToShow = [];\n      const showCount = Math.min(12, schedule.length);\n      for (let i = 0; i < showCount; i++) rowsToShow.push(schedule[i]);\n      if (schedule.length > 12) {\n        rowsToShow.push({ isEllipsis: true });\n        rowsToShow.push(schedule[schedule.length - 1]);\n      }\n\n      const fmtY = n => '¥' + Math.round(n).toLocaleString('en-US');\n      tbody.innerHTML = rowsToShow.map(item => {\n        if (item.isEllipsis) {\n          return `<tr><td colspan=\"5\" style=\"text-align:center; padding: 6px; color: var(--text-muted); font-size: 11px;\">…… 中间第 13 ~ ${schedule.length - 1} 期按规律逐步递减/偿还 ……</td></tr>`;\n        }\n        return `\n          <tr>\n            <td style=\"text-align: center; padding: 6px 8px; font-weight: 600;\">第 ${item.period} 期</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); font-weight: 700; color: var(--text-main);\">${fmtY(item.monthPay)}</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--success);\">${fmtY(item.repayP)}</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--danger);\">${fmtY(item.repayI)}</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--text-muted);\">${fmtY(item.remainP)}</td>\n          </tr>\n        `;\n      }).join('');\n    }\n\nfunction copyMortgageSummaryReport() {\n      const type = document.getElementById('pMortLoanType')?.value;\n      const years = document.getElementById('pMortYears')?.value;\n      const bxM = document.getElementById('pMortBxMonthly')?.innerText;\n      const bxI = document.getElementById('pMortBxTotalInterest')?.innerText;\n      const bjF = document.getElementById('pMortBjFirstMonth')?.innerText;\n      const bjI = document.getElementById('pMortBjTotalInterest')?.innerText;\n      const bjS = document.getElementById('pMortBjSavedInterest')?.innerText;\n\n      const report = `【磐石房贷智能测算简报】\\n` +\n        `● 贷款类型: ${type === 'commercial' ? '纯商业贷款' : type === 'fund' ? '纯公积金贷款' : '商贷+公积金组合贷款'}\\n` +\n        `● 贷款期限: ${years} 年 (${years * 12} 期)\\n` +\n        `----------------------------------------\\n` +\n        `【方案 A: 等额本息】\\n` +\n        `● 固定月供: ${bxM} / 月\\n` +\n        `● 累计利息: ${bxI}\\n` +\n        `----------------------------------------\\n` +\n        `【方案 B: 等额本金】\\n` +\n        `● 首月月供: ${bjF} (逐月递减)\\n` +\n        `● 累计利息: ${bjI}\\n` +\n        `● ${bjS}\\n` +\n        `----------------------------------------\\n` +\n        `测算生成工具: 磐石密码本 · 商业与金融工具箱`;\n\n      navigator.clipboard.writeText(report);\n      showToast('📋 已复制房贷测算简报到剪贴板！');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"onMortgageLoanTypeChange\"] = onMortgageLoanTypeChange;\n    window[\"setMortgagePreset\"] = setMortgagePreset;\n    window[\"runMortgageCalcAction\"] = runMortgageCalcAction;\n    window[\"renderMortgageScheduleTable\"] = renderMortgageScheduleTable;\n    window[\"copyMortgageSummaryReport\"] = copyMortgageSummaryReport;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"mortgage-calc\",\n    name: \"商业与公积金房贷计算器\",\n    category: \"商业与金融\",\n    cat_id: \"finance\",\n    icon: \"🏠\",\n    version: \"1.0.0\",\n    desc: \"支持商业贷款/公积金/组合贷，等额本息与等额本金双向对比、首月还款明细与还款总利息测算\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n            <div class=\"form-group\" style=\"width: 140px;\"><label class=\"form-label\">贷款方式</label>\n              <select id=\"pMortLoanType\" class=\"form-select\" onchange=\"onMortgageLoanTypeChange()\">\n                <option value=\"commercial\" selected>商业贷款</option>\n                <option value=\"fund\">公积金贷款</option>\n                <option value=\"combo\">组合贷款</option>\n              </select>\n            </div>\n            <div id=\"pMortCommAmountWrap\" class=\"form-group\" style=\"width: 145px;\"><label id=\"pMortCommAmountLabel\" class=\"form-label\">商业贷款金额 (万元):</label><input id=\"pMortCommAmount\" type=\"number\" class=\"form-input\" value=\"100\" oninput=\"runMortgageCalcAction()\"></div>\n            <div id=\"pMortCommRateWrap\" class=\"form-group\" style=\"width: 145px;\"><label id=\"pMortCommRateLabel\" class=\"form-label\">商贷年利率 LPR (%):</label><input id=\"pMortCommRate\" type=\"number\" step=\"0.05\" class=\"form-input\" value=\"3.35\" oninput=\"runMortgageCalcAction()\"></div>\n            <div id=\"pMortFundAmountWrap\" class=\"form-group\" style=\"width: 145px; display: none;\"><label class=\"form-label\">公积金金额 (万元):</label><input id=\"pMortFundAmount\" type=\"number\" class=\"form-input\" value=\"60\" oninput=\"runMortgageCalcAction()\"></div>\n            <div id=\"pMortFundRateWrap\" class=\"form-group\" style=\"width: 145px; display: none;\"><label class=\"form-label\">公积金利率 (%):</label><input id=\"pMortFundRate\" type=\"number\" step=\"0.05\" class=\"form-input\" value=\"2.85\" oninput=\"runMortgageCalcAction()\"></div>\n            <div class=\"form-group\" style=\"width: 105px;\"><label class=\"form-label\">期限 (年)</label><input id=\"pMortYears\" type=\"number\" class=\"form-input\" value=\"30\" min=\"1\" max=\"30\" oninput=\"runMortgageCalcAction()\"></div>\n            <button type=\"button\" class=\"btn-action\" onclick=\"setMortgagePreset(100, 3.35, 30)\">100万30年</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"copyMortgageSummaryReport()\">📋 复制简报</button>\n          </div>\n          <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n              <div style=\"font-weight: 700; color: var(--primary); margin-bottom: 6px;\">方案 A · 等额本息 (每月固定)</div>\n              <div style=\"font-size: 20px; font-weight: 800; font-family: var(--font-mono);\" id=\"pMortBxMonthly\">-</div>\n              <div style=\"font-size: 12px; color: var(--text-sub); margin-top: 6px;\">累计利息: <b id=\"pMortBxTotalInterest\">-</b> · 还款总额: <b id=\"pMortBxTotalRepay\">-</b> · 本金: <b id=\"pMortBxPrincipal\">-</b></div>\n            </div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n              <div style=\"font-weight: 700; color: var(--success); margin-bottom: 6px;\">方案 B · 等额本金 (逐月递减)</div>\n              <div style=\"font-size: 20px; font-weight: 800; font-family: var(--font-mono);\" id=\"pMortBjFirstMonth\">-</div>\n              <div style=\"font-size: 12px; color: var(--text-sub); margin-top: 6px;\"><span id=\"pMortBjMonthDecrease\">-</span> · 累计利息: <b id=\"pMortBjTotalInterest\">-</b> · 总额: <b id=\"pMortBjTotalRepay\">-</b> · <b style=\"color: var(--success);\" id=\"pMortBjSavedInterest\">-</b></div>\n            </div>\n          </div>\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\">\n            <div style=\"display: flex; gap: 12px; align-items: center; margin-bottom: 8px;\">\n              <span class=\"form-label\" style=\"margin: 0;\">分期明细展示:</span>\n              <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"radio\" name=\"pMortSchedulePlan\" value=\"bx\" checked onchange=\"renderMortgageScheduleTable()\"> 等额本息</label>\n              <label style=\"font-size: 12px; cursor: pointer;\"><input type=\"radio\" name=\"pMortSchedulePlan\" value=\"bj\" onchange=\"renderMortgageScheduleTable()\"> 等额本金</label>\n            </div>\n            <div style=\"max-height: 210px; overflow: auto;\">\n              <table class=\"data-table\"><thead><tr><th>期数</th><th>月供</th><th>偿还本金</th><th>偿还利息</th><th>剩余本金</th></tr></thead><tbody id=\"pMortScheduleTableBody\"></tbody></table>\n            </div>\n          </div>\n        </div>\n      `;\n      if (typeof onMortgageLoanTypeChange === 'function') onMortgageLoanTypeChange();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"salary-tax-calc","name":"个人所得税与五险一金精算器","category":"商业与金融","cat_id":"finance","icon":"💰","version":"1.0.0","desc":"支持全国最新个税起征点 (5000元)、七级累进预扣预缴税率、五险一金专项扣除与到手薪资计算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction setSalaryPreset(salary, specDeduction) {\n      const s = document.getElementById('pTaxSalaryInput');\n      const d = document.getElementById('pTaxSpecialDeduction');\n      if (s) s.value = salary;\n      if (d) d.value = specDeduction;\n      runSalaryTaxCalcAction();\n    }\n\nfunction runSalaryTaxCalcAction() {\n      const salary = parseFloat(document.getElementById('pTaxSalaryInput')?.value || '0');\n      const specDeduct = parseFloat(document.getElementById('pTaxSpecialDeduction')?.value || '0');\n      const fundRate = parseFloat(document.getElementById('pTaxFundRate')?.value || '12') / 100;\n      const threshold = 5000;\n\n      if (salary <= 0) return;\n\n      // 社保缴费基数设置 (按主流一二线城市上下限容错：上限 35283，下限 4000)\n      const base = Math.min(Math.max(salary, 4000), 35283);\n\n      // 五险一金扣缴比例 (个人 VS 企业)\n      // 养老: 个人 8%, 企业 16%\n      // 医疗: 个人 2% + 3元大病, 企业 9.5%\n      // 失业: 个人 0.5%, 企业 0.5%\n      // 工伤: 个人 0%, 企业 0.4%\n      // 生育: 个人 0%, 企业 1.0% (合并医疗或单列)\n      // 公积金: 个人 fundRate, 企业 fundRate\n      const items = [\n        { name: '基本养老保险', pRate: 0.08, cRate: 0.16 },\n        { name: '基本医疗保险', pRate: 0.02, cRate: 0.095, pExtra: 3 },\n        { name: '失业保险', pRate: 0.005, cRate: 0.005 },\n        { name: '工伤保险', pRate: 0, cRate: 0.004 },\n        { name: '住房公积金', pRate: fundRate, cRate: fundRate }\n      ];\n\n      let personalInsuranceTotal = 0;\n      let companyInsuranceTotal = 0;\n      const breakdown = items.map(item => {\n        const pPay = Math.round(base * item.pRate + (item.pExtra || 0));\n        const cPay = Math.round(base * item.cRate);\n        personalInsuranceTotal += pPay;\n        companyInsuranceTotal += cPay;\n        return {\n          name: item.name,\n          pRateText: (item.pRate * 100).toFixed(1) + '%' + (item.pExtra ? ` + ¥${item.pExtra}` : ''),\n          pPay,\n          cRateText: (item.cRate * 100).toFixed(1) + '%',\n          cPay\n        };\n      });\n\n      // 应纳税所得额 = 税前工资 - 起征点(5000) - 个人五险一金 - 专项附加扣除\n      const taxableIncome = Math.max(0, salary - threshold - personalInsuranceTotal - specDeduct);\n\n      // 综合所得个人所得税税率表 (月度换算参考)\n      // 级数 1: <= 3000, 3%, 速算 0\n      // 级数 2: 3000 ~ 12000, 10%, 速算 210\n      // 级数 3: 12000 ~ 25000, 20%, 速算 1410\n      // 级数 4: 25000 ~ 35000, 25%, 速算 2660\n      // 级数 5: 35000 ~ 55000, 30%, 速算 4410\n      // 级数 6: 55000 ~ 80000, 35%, 速算 7160\n      // 级数 7: > 80000, 45%, 速算 15160\n      let taxRate = 0;\n      let quickDeduction = 0;\n\n      if (taxableIncome <= 0) {\n        taxRate = 0; quickDeduction = 0;\n      } else if (taxableIncome <= 3000) {\n        taxRate = 0.03; quickDeduction = 0;\n      } else if (taxableIncome <= 12000) {\n        taxRate = 0.10; quickDeduction = 210;\n      } else if (taxableIncome <= 25000) {\n        taxRate = 0.20; quickDeduction = 1410;\n      } else if (taxableIncome <= 35000) {\n        taxRate = 0.25; quickDeduction = 2660;\n      } else if (taxableIncome <= 55000) {\n        taxRate = 0.30; quickDeduction = 4410;\n      } else if (taxableIncome <= 80000) {\n        taxRate = 0.35; quickDeduction = 7160;\n      } else {\n        taxRate = 0.45; quickDeduction = 15160;\n      }\n\n      const personalTax = Math.max(0, Math.round(taxableIncome * taxRate - quickDeduction));\n      const takeHomePay = Math.max(0, Math.round(salary - personalInsuranceTotal - personalTax));\n      const companyTotalCost = Math.round(salary + companyInsuranceTotal);\n\n      const fmtY = n => '¥ ' + n.toLocaleString('en-US');\n\n      const elTakeHome = document.getElementById('pTaxTakeHomePay');\n      const elTaxVal = document.getElementById('pTaxAmountVal');\n      const elInsVal = document.getElementById('pTaxInsuranceVal');\n      const elCostVal = document.getElementById('pTaxCompanyCost');\n\n      if (elTakeHome) elTakeHome.innerText = fmtY(takeHomePay);\n      if (elTaxVal) elTaxVal.innerText = fmtY(personalTax);\n      if (elInsVal) elInsVal.innerText = fmtY(personalInsuranceTotal);\n      if (elCostVal) elCostVal.innerText = fmtY(companyTotalCost);\n\n      const tbody = document.getElementById('pTaxBreakdownTableBody');\n      if (tbody) {\n        tbody.innerHTML = breakdown.map(item => `\n          <tr>\n            <td style=\"text-align: left; padding: 6px 8px; font-weight: 600;\">${item.name}</td>\n            <td style=\"text-align: center; padding: 6px 8px; color: var(--text-muted); font-size: 11.5px;\">${item.pRateText}</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--danger); font-weight: 600;\">${fmtY(item.pPay)}</td>\n            <td style=\"text-align: center; padding: 6px 8px; color: var(--text-muted); font-size: 11.5px;\">${item.cRateText}</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--text-main);\">${fmtY(item.cPay)}</td>\n          </tr>\n        `).join('') + `\n          <tr style=\"background: var(--bg-subtle); font-weight: 700;\">\n            <td style=\"text-align: left; padding: 6px 8px;\">合计缴费 / 用工总成本</td>\n            <td style=\"text-align: center; padding: 6px 8px;\">-</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--danger);\">${fmtY(personalInsuranceTotal)}</td>\n            <td style=\"text-align: center; padding: 6px 8px;\">-</td>\n            <td style=\"text-align: right; padding: 6px 8px; font-family: var(--font-mono); color: var(--text-main);\">${fmtY(companyInsuranceTotal)}</td>\n          </tr>\n        `;\n      }\n    }\n\nfunction copySalaryTaxReport() {\n      const salary = document.getElementById('pTaxSalaryInput')?.value;\n      const takeHome = document.getElementById('pTaxTakeHomePay')?.innerText;\n      const tax = document.getElementById('pTaxAmountVal')?.innerText;\n      const insurance = document.getElementById('pTaxInsuranceVal')?.innerText;\n      const companyCost = document.getElementById('pTaxCompanyCost')?.innerText;\n\n      const report = `【磐石个税与到手薪资测算简报】\\n` +\n        `● 税前薪资: ¥ ${salary} / 月\\n` +\n        `● 到手工资: ${takeHome}\\n` +\n        `● 个人所得税: ${tax}\\n` +\n        `● 五险一金 (个人扣缴): ${insurance}\\n` +\n        `● 企业实际用工成本: ${companyCost}\\n` +\n        `----------------------------------------\\n` +\n        `测算生成工具: 磐石密码本 · 商业与金融工具箱`;\n\n      navigator.clipboard.writeText(report);\n      showToast('📋 已复制薪资税费明细报告到剪贴板！');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"setSalaryPreset\"] = setSalaryPreset;\n    window[\"runSalaryTaxCalcAction\"] = runSalaryTaxCalcAction;\n    window[\"copySalaryTaxReport\"] = copySalaryTaxReport;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"salary-tax-calc\",\n    name: \"个人所得税与五险一金精算器\",\n    category: \"商业与金融\",\n    cat_id: \"finance\",\n    icon: \"💰\",\n    version: \"1.0.0\",\n    desc: \"支持全国最新个税起征点 (5000元)、七级累进预扣预缴税率、五险一金专项扣除与到手薪资计算\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px;\">\n          <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n            <div class=\"form-group\" style=\"width: 150px;\"><label class=\"form-label\">税前月薪 (元)</label><input id=\"pTaxSalaryInput\" type=\"number\" class=\"form-input\" value=\"20000\" oninput=\"runSalaryTaxCalcAction()\"></div>\n            <div class=\"form-group\" style=\"width: 150px;\"><label class=\"form-label\">专项附加扣除 (元)</label><input id=\"pTaxSpecialDeduction\" type=\"number\" class=\"form-input\" value=\"1500\" oninput=\"runSalaryTaxCalcAction()\"></div>\n            <div class=\"form-group\" style=\"width: 130px;\"><label class=\"form-label\">公积金比例 (%)</label><input id=\"pTaxFundRate\" type=\"number\" class=\"form-input\" value=\"12\" min=\"5\" max=\"12\" oninput=\"runSalaryTaxCalcAction()\"></div>\n            <button type=\"button\" class=\"btn-action\" onclick=\"setSalaryPreset(15000, 1000)\">15K</button>\n            <button type=\"button\" class=\"btn-action\" onclick=\"setSalaryPreset(30000, 2000)\">30K</button>\n            <button type=\"button\" class=\"btn-action primary\" onclick=\"copySalaryTaxReport()\" style=\"margin-left: auto;\">📋 复制简报</button>\n          </div>\n          <div style=\"display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;\">\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">税后实发到手</div><div id=\"pTaxTakeHomePay\" style=\"font-size: 18px; font-weight: 800; color: var(--success); font-family: var(--font-mono); margin-top: 4px;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">预扣个税</div><div id=\"pTaxAmountVal\" style=\"font-size: 18px; font-weight: 800; color: var(--danger); font-family: var(--font-mono); margin-top: 4px;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">个人五险一金</div><div id=\"pTaxInsuranceVal\" style=\"font-size: 18px; font-weight: 800; color: var(--primary); font-family: var(--font-mono); margin-top: 4px;\">-</div></div>\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px;\"><div class=\"form-label\">企业用工总成本</div><div id=\"pTaxCompanyCost\" style=\"font-size: 18px; font-weight: 800; color: var(--text-main); font-family: var(--font-mono); margin-top: 4px;\">-</div></div>\n          </div>\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: auto;\">\n            <table class=\"data-table\"><thead><tr><th>缴纳项目</th><th>个人比例</th><th>个人扣缴</th><th>企业比例</th><th>企业承担</th></tr></thead><tbody id=\"pTaxBreakdownTableBody\"></tbody></table>\n          </div>\n        </div>\n      `;\n      if (typeof runSalaryTaxCalcAction === 'function') runSalaryTaxCalcAction();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"date-calc","name":"日期推算与倒数日日历","category":"生活与实用","cat_id":"life","icon":"📅","version":"1.0.0","desc":"计算两个日期间隔天数/工作日，指定日期加减天数/月/年，农历信息与节假日倒数纪念日","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet currentCdFilter = 'all';\n\nlet selectedCustomIcon = '🎯';\n\nfunction getChineseLunarString(d) {\n      try {\n        const full = new Intl.DateTimeFormat('zh-Hans-u-ca-chinese', { dateStyle: 'full' }).format(d);\n        // e.g. \"2026丙午年九月初九星期日\"\n        return full.replace(/^\\d+/, '');\n      } catch(e) {\n        return '';\n      }\n    }\n\nfunction formatDateToYMD(d) {\n      const pad = n => String(n).padStart(2, '0');\n      return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;\n    }\n\nfunction initDateCalcModule() {\n      const today = new Date();\n      const pad = n => String(n).padStart(2, '0');\n      const todayStr = formatDateToYMD(today);\n\n      // 1. 初始化顶部时光胶囊 Banner\n      const heroMonth = document.getElementById('heroBadgeMonth');\n      const heroDay = document.getElementById('heroBadgeDay');\n      const heroGreg = document.getElementById('heroGregorianText');\n      const heroWeek = document.getElementById('heroWeekdayPill');\n      const heroLunar = document.getElementById('heroLunarText');\n      const heroWeekOfYear = document.getElementById('heroWeekOfYear');\n      const heroQuarter = document.getElementById('heroQuarterText');\n\n      const weekNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];\n      if (heroMonth) heroMonth.innerText = `${today.getMonth() + 1}月`;\n      if (heroDay) heroDay.innerText = `${today.getDate()}`;\n      if (heroGreg) heroGreg.innerText = `公历 ${today.getFullYear()}年${today.getMonth() + 1}月${today.getDate()}日`;\n      if (heroWeek) heroWeek.innerText = weekNames[today.getDay()];\n      if (heroLunar) heroLunar.innerText = getChineseLunarString(today);\n\n      // 计算第几周\n      const firstDayOfYear = new Date(today.getFullYear(), 0, 1);\n      const pastDaysOfYear = (today - firstDayOfYear) / 86400000;\n      const weekNum = Math.ceil((pastDaysOfYear + firstDayOfYear.getDay() + 1) / 7);\n      if (heroWeekOfYear) heroWeekOfYear.innerText = `第 ${weekNum} 周`;\n\n      // 季度\n      const quarter = Math.floor(today.getMonth() / 3) + 1;\n      if (heroQuarter) heroQuarter.innerText = `第 ${quarter} 季度 (Q${quarter})`;\n\n      // 年度流逝进度\n      const isLeap = (today.getFullYear() % 4 === 0 && today.getFullYear() % 100 !== 0) || (today.getFullYear() % 400 === 0);\n      const totalYearDays = isLeap ? 366 : 365;\n      const daysPassed = Math.max(1, Math.floor(pastDaysOfYear));\n      const daysRem = Math.max(0, totalYearDays - daysPassed);\n      const yearPct = Math.min(100, Math.max(0, (daysPassed / totalYearDays) * 100)).toFixed(1);\n\n      if (document.getElementById('heroYearNum')) document.getElementById('heroYearNum').innerText = today.getFullYear();\n      if (document.getElementById('heroYearPercent')) document.getElementById('heroYearPercent').innerText = `${yearPct}%`;\n      if (document.getElementById('heroYearProgressBar')) document.getElementById('heroYearProgressBar').style.width = `${yearPct}%`;\n      if (document.getElementById('heroDaysPassed')) document.getElementById('heroDaysPassed').innerText = `已过 ${daysPassed} 天 (${yearPct}%)`;\n      if (document.getElementById('heroDaysRemaining')) document.getElementById('heroDaysRemaining').innerText = `还剩 ${daysRem} 天`;\n\n      // 2. 初始化输入框默认值\n      const s = document.getElementById('pDateDiffStart');\n      const e = document.getElementById('pDateDiffEnd');\n      const b = document.getElementById('pDateOffsetBase');\n      if (s) s.value = todayStr;\n      if (e) {\n        const nextTarget = new Date(today);\n        nextTarget.setDate(nextTarget.getDate() + 30);\n        e.value = formatDateToYMD(nextTarget);\n      }\n      if (b) b.value = todayStr;\n\n      // 3. 首次测算与倒数日卡片渲染\n      runDateDiffCalcAction();\n      runDateOffsetCalcAction();\n      renderQuickCountdowns(currentCdFilter);\n    }\n\nfunction setDateFieldToday(fieldId) {\n      const el = document.getElementById(fieldId);\n      if (el) {\n        el.value = formatDateToYMD(new Date());\n        if (fieldId === 'pDateDiffStart' || fieldId === 'pDateDiffEnd') runDateDiffCalcAction();\n        else if (fieldId === 'pDateOffsetBase') runDateOffsetCalcAction();\n      }\n    }\n\nfunction swapDateDiffDates() {\n      const s = document.getElementById('pDateDiffStart');\n      const e = document.getElementById('pDateDiffEnd');\n      if (s && e) {\n        const tmp = s.value;\n        s.value = e.value;\n        e.value = tmp;\n        runDateDiffCalcAction();\n        if (typeof showToast === 'function') showToast('⇄ 已调换起始日期与终止日期');\n      }\n    }\n\nfunction setDateDiffPreset(preset) {\n      const today = new Date();\n      const todayStr = formatDateToYMD(today);\n      const s = document.getElementById('pDateDiffStart');\n      const e = document.getElementById('pDateDiffEnd');\n      if (!s || !e) return;\n\n      if (preset === 'thisYear') {\n        s.value = `${today.getFullYear()}-01-01`;\n        e.value = todayStr;\n      } else if (preset === 'monthStart') {\n        const pad = n => String(n).padStart(2, '0');\n        s.value = `${today.getFullYear()}-${pad(today.getMonth() + 1)}-01`;\n        e.value = todayStr;\n      } else if (preset === 'endOfYear') {\n        s.value = todayStr;\n        e.value = `${today.getFullYear()}-12-31`;\n      } else if (preset === '100days') {\n        s.value = todayStr;\n        const target = new Date(today);\n        target.setDate(target.getDate() + 100);\n        e.value = formatDateToYMD(target);\n      } else if (preset === 'halfYear') {\n        s.value = todayStr;\n        const target = new Date(today);\n        target.setDate(target.getDate() + 180);\n        e.value = formatDateToYMD(target);\n      } else if (preset === 'nextSpring') {\n        s.value = todayStr;\n        // 农历春节 2026: 02-17, 2027: 02-06\n        const y = today.getFullYear();\n        let targetStr = (y === 2026 && today < new Date('2026-02-17')) ? '2026-02-17' : '2027-02-06';\n        e.value = targetStr;\n      }\n      runDateDiffCalcAction();\n    }\n\nfunction runDateDiffCalcAction() {\n      const sVal = document.getElementById('pDateDiffStart')?.value;\n      const eVal = document.getElementById('pDateDiffEnd')?.value;\n      if (!sVal || !eVal) return;\n\n      const d1 = new Date(sVal + 'T00:00:00');\n      const d2 = new Date(eVal + 'T00:00:00');\n      const diffMs = d2 - d1;\n      const diffDays = Math.round(diffMs / (1000 * 60 * 60 * 24));\n      const absDays = Math.abs(diffDays);\n\n      const elDays = document.getElementById('pDateDiffDays');\n      const elTag = document.getElementById('pDateDiffDirectionTag');\n      const elWork = document.getElementById('pDateDiffWorkdays');\n      const elWeekends = document.getElementById('pDateDiffWeekends');\n      const elWeeks = document.getElementById('pDateDiffWeeks');\n      const elMonths = document.getElementById('pDateDiffMonths');\n      const elHoursMin = document.getElementById('pDateDiffHoursMinutes');\n\n      if (elDays) elDays.innerText = absDays;\n\n      if (elTag) {\n        if (diffDays < 0) {\n          elTag.style.display = 'inline-block';\n          elTag.innerText = '终止日早于起始日 (已过去)';\n          elTag.style.background = 'rgba(210, 15, 57, 0.1)';\n          elTag.style.color = 'var(--danger)';\n        } else if (diffDays === 0) {\n          elTag.style.display = 'inline-block';\n          elTag.innerText = '同一天';\n          elTag.style.background = 'var(--bg-subtle)';\n          elTag.style.color = 'var(--text-muted)';\n        } else {\n          elTag.style.display = 'none';\n        }\n      }\n\n      // 计算工作日与周末\n      let workdays = 0;\n      let weekendDays = 0;\n      const minD = new Date(Math.min(d1, d2));\n      const maxD = new Date(Math.max(d1, d2));\n      const cur = new Date(minD);\n      while (cur < maxD) {\n        cur.setDate(cur.getDate() + 1);\n        const day = cur.getDay();\n        if (day === 0 || day === 6) {\n          weekendDays++;\n        } else {\n          workdays++;\n        }\n      }\n\n      if (elWork) elWork.innerText = `${workdays} 个工作日`;\n      if (elWeekends) elWeekends.innerText = `${weekendDays} 天双休`;\n\n      // 折合周与月\n      const weeks = (absDays / 7).toFixed(1);\n      const months = (absDays / 30.4375).toFixed(1);\n      if (elWeeks) elWeeks.innerText = `${weeks} 周`;\n      if (elMonths) elMonths.innerText = `约 ${months} 个月`;\n\n      // 小时与分钟\n      const totalHours = absDays * 24;\n      const totalMinutes = totalHours * 60;\n      if (elHoursMin) {\n        elHoursMin.innerText = `${totalHours.toLocaleString()} 小时 · ${totalMinutes.toLocaleString()} 分钟`;\n      }\n    }\n\nfunction copyDateDiffResult() {\n      const sVal = document.getElementById('pDateDiffStart')?.value || '';\n      const eVal = document.getElementById('pDateDiffEnd')?.value || '';\n      const days = document.getElementById('pDateDiffDays')?.innerText || '0';\n      const workdays = document.getElementById('pDateDiffWorkdays')?.innerText || '';\n      const weekends = document.getElementById('pDateDiffWeekends')?.innerText || '';\n      const weeks = document.getElementById('pDateDiffWeeks')?.innerText || '';\n      const months = document.getElementById('pDateDiffMonths')?.innerText || '';\n\n      const text = `【FWPT 日期间隔精算报告】\\n` +\n                   `• 起始日期: ${sVal}\\n` +\n                   `• 终止日期: ${eVal}\\n` +\n                   `• 自然天数: ${days} 天\\n` +\n                   `• 法定工作日: ${workdays} (排除周六日)\\n` +\n                   `• 周末双休日: ${weekends}\\n` +\n                   `• 折合周数: ${weeks}\\n` +\n                   `• 折合月份: ${months}`;\n\n      navigator.clipboard.writeText(text).then(() => {\n        if (typeof showToast === 'function') showToast('📋 日期间隔测算报告已复制到剪贴板！');\n      }).catch(() => {\n        if (typeof showToast === 'function') showToast('⚠️ 复制失败，请手动选取');\n      });\n    }\n\nfunction setDateOffsetQuick(num, unit = 'days') {\n      const nInput = document.getElementById('pDateOffsetNum');\n      const uSelect = document.getElementById('pDateOffsetUnit');\n      const opSelect = document.getElementById('pDateOffsetOp');\n      if (opSelect) opSelect.value = 'add';\n      if (nInput) nInput.value = num;\n      if (uSelect) uSelect.value = unit;\n      runDateOffsetCalcAction();\n    }\n\nfunction runDateOffsetCalcAction() {\n      const baseVal = document.getElementById('pDateOffsetBase')?.value;\n      if (!baseVal) return;\n      const op = document.getElementById('pDateOffsetOp')?.value || 'add';\n      const num = parseInt(document.getElementById('pDateOffsetNum')?.value || '0', 10);\n      const unit = document.getElementById('pDateOffsetUnit')?.value || 'days';\n\n      const d = new Date(baseVal + 'T00:00:00');\n      const factor = (op === 'sub') ? -1 : 1;\n\n      if (unit === 'days') {\n        d.setDate(d.getDate() + factor * num);\n      } else if (unit === 'workdays') {\n        // 智能跳过周末的工作日推算\n        let added = 0;\n        while (added < num) {\n          d.setDate(d.getDate() + factor);\n          const day = d.getDay();\n          if (day !== 0 && day !== 6) {\n            added++;\n          }\n        }\n      } else if (unit === 'weeks') {\n        d.setDate(d.getDate() + factor * num * 7);\n      } else if (unit === 'months') {\n        d.setMonth(d.getMonth() + factor * num);\n      } else if (unit === 'years') {\n        d.setFullYear(d.getFullYear() + factor * num);\n      }\n\n      const pad = n => String(n).padStart(2, '0');\n      const resStr = `${d.getFullYear()}年${pad(d.getMonth() + 1)}月${pad(d.getDate())}日`;\n      const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];\n      const weekStr = weekDays[d.getDay()];\n      const lunarStr = getChineseLunarString(d);\n\n      const elRes = document.getElementById('pDateOffsetResult');\n      const elWk = document.getElementById('pDateOffsetWeekday');\n      const elDist = document.getElementById('pDateOffsetDistance');\n\n      if (elRes) {\n        elRes.innerText = resStr;\n        elRes.setAttribute('data-ymd', formatDateToYMD(d));\n      }\n      if (elWk) {\n        elWk.innerText = `${weekStr} · ${lunarStr || '农历对齐'}`;\n      }\n      if (elDist) {\n        const todayZero = new Date().setHours(0, 0, 0, 0);\n        const distDays = Math.round((d - todayZero) / (1000 * 60 * 60 * 24));\n        if (distDays === 0) {\n          elDist.innerText = '就是今天';\n        } else if (distDays > 0) {\n          elDist.innerText = `距离今天还有 ${distDays} 天`;\n        } else {\n          elDist.innerText = `距离今天已过去 ${Math.abs(distDays)} 天`;\n        }\n      }\n    }\n\nfunction copyDateOffsetResult() {\n      const elRes = document.getElementById('pDateOffsetResult');\n      const ymd = elRes?.getAttribute('data-ymd') || elRes?.innerText || '';\n      if (!ymd) return;\n      navigator.clipboard.writeText(ymd).then(() => {\n        if (typeof showToast === 'function') showToast(`📋 已复制目标日期: ${ymd}`);\n      });\n    }\n\nfunction applyOffsetToDiff() {\n      const elRes = document.getElementById('pDateOffsetResult');\n      const ymd = elRes?.getAttribute('data-ymd');\n      if (ymd) {\n        const e = document.getElementById('pDateDiffEnd');\n        if (e) {\n          e.value = ymd;\n          runDateDiffCalcAction();\n          if (typeof showToast === 'function') showToast(`⤴ 已填入模式一终止日期: ${ymd}`);\n        }\n      }\n    }\n\nfunction copyTodayTimeInfo() {\n      const greg = document.getElementById('heroGregorianText')?.innerText || '';\n      const wk = document.getElementById('heroWeekdayPill')?.innerText || '';\n      const lunar = document.getElementById('heroLunarText')?.innerText || '';\n      const wkNum = document.getElementById('heroWeekOfYear')?.innerText || '';\n      const text = `${greg} ${wk} (农历${lunar}) · ${wkNum}`;\n      navigator.clipboard.writeText(text).then(() => {\n        if (typeof showToast === 'function') showToast(`📋 已复制今日时间信息: ${text}`);\n      });\n    }\n\nfunction filterCountdownCategory(cat) {\n      currentCdFilter = cat;\n      document.querySelectorAll('.cd-filter-pill').forEach(btn => {\n        btn.classList.toggle('active', btn.getAttribute('data-filter') === cat);\n      });\n      renderQuickCountdowns(cat);\n    }\n\nfunction applyCountdownToDiff(dateStr, title) {\n      const e = document.getElementById('pDateDiffEnd');\n      if (e) {\n        e.value = dateStr;\n        runDateDiffCalcAction();\n        if (typeof showToast === 'function') {\n          showToast(`已载入【${title} (${dateStr})】至上方日期间隔精算！`);\n        }\n      }\n    }\n\nfunction getCustomCountdowns() {\n      try {\n        const raw = localStorage.getItem('fwpt_custom_countdowns');\n        return raw ? JSON.parse(raw) : [];\n      } catch(e) {\n        return [];\n      }\n    }\n\nfunction saveCustomCountdownsList(list) {\n      try {\n        localStorage.setItem('fwpt_custom_countdowns', JSON.stringify(list));\n      } catch(e) {}\n    }\n\nfunction openCustomCountdownModal() {\n      const modal = document.getElementById('customCdModal');\n      if (modal) {\n        modal.style.display = 'flex';\n        const t = document.getElementById('customCdTitle');\n        const d = document.getElementById('customCdDate');\n        if (t) { t.value = ''; t.focus(); }\n        if (d) d.value = formatDateToYMD(new Date());\n      }\n    }\n\nfunction closeCustomCountdownModal() {\n      const modal = document.getElementById('customCdModal');\n      if (modal) modal.style.display = 'none';\n    }\n\nfunction selectCustomCdIcon(btn) {\n      document.querySelectorAll('#customCdIconGroup .date-preset-chip').forEach(b => b.classList.remove('active'));\n      btn.classList.add('active');\n      selectedCustomIcon = btn.getAttribute('data-icon') || '🎯';\n    }\n\nfunction saveCustomCountdown() {\n      const title = document.getElementById('customCdTitle')?.value.trim();\n      const dateStr = document.getElementById('customCdDate')?.value;\n      if (!title) {\n        if (typeof showToast === 'function') showToast('⚠️ 请输入倒数日事件名称');\n        return;\n      }\n      if (!dateStr) {\n        if (typeof showToast === 'function') showToast('⚠️ 请选择目标日期');\n        return;\n      }\n\n      const list = getCustomCountdowns();\n      list.push({\n        id: 'custom_' + Date.now(),\n        title: title,\n        date: dateStr,\n        icon: selectedCustomIcon || '🎯',\n        createdAt: new Date().toISOString()\n      });\n      saveCustomCountdownsList(list);\n      closeCustomCountdownModal();\n      renderQuickCountdowns(currentCdFilter);\n      if (typeof showToast === 'function') showToast(`🎉 成功添加倒数日【${title}】！`);\n    }\n\nfunction deleteCustomCountdown(id, e) {\n      if (e) e.stopPropagation();\n      let list = getCustomCountdowns();\n      list = list.filter(item => item.id !== id);\n      saveCustomCountdownsList(list);\n      renderQuickCountdowns(currentCdFilter);\n      if (typeof showToast === 'function') showToast('🗑️ 已删除该纪念日');\n    }\n\nfunction renderQuickCountdowns(filterCat = 'all') {\n      const box = document.getElementById('pCountdownCardsList');\n      if (!box) return;\n\n      const now = new Date();\n      now.setHours(0, 0, 0, 0);\n      const year = now.getFullYear();\n\n      // 精确法定节假日与农历春节对照表\n      const springFestivalMap = {\n        2025: '2025-01-29',\n        2026: '2026-02-17',\n        2027: '2027-02-06',\n        2028: '2028-01-26',\n        2029: '2029-02-13',\n        2030: '2030-02-03'\n      };\n\n      const weekNames = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];\n      const pad = n => String(n).padStart(2, '0');\n\n      const systemTargets = [\n        {\n          id: 'new_year',\n          cat: 'holiday',\n          title: '元旦跨年',\n          tag: '法定假日',\n          icon: '🎆',\n          accent: '#8b5cf6',\n          bgLight: 'rgba(139, 92, 246, 0.1)',\n          borderLight: 'rgba(139, 92, 246, 0.25)',\n          getTarget: (curYear) => {\n            let t = new Date(`${curYear}-01-01T00:00:00`);\n            if (t <= now) t = new Date(`${curYear + 1}-01-01T00:00:00`);\n            return t;\n          }\n        },\n        {\n          id: 'spring_festival',\n          cat: 'traditional',\n          title: '农历除夕春节',\n          tag: '传统大节',\n          icon: '🧧',\n          accent: '#ef4444',\n          bgLight: 'rgba(239, 68, 68, 0.1)',\n          borderLight: 'rgba(239, 68, 68, 0.25)',\n          getTarget: (curYear) => {\n            let dateStr = springFestivalMap[curYear];\n            let t = dateStr ? new Date(`${dateStr}T00:00:00`) : new Date(`${curYear}-02-10T00:00:00`);\n            if (t <= now) {\n              dateStr = springFestivalMap[curYear + 1];\n              t = dateStr ? new Date(`${dateStr}T00:00:00`) : new Date(`${curYear + 1}-02-06T00:00:00`);\n            }\n            return t;\n          }\n        },\n        {\n          id: 'lantern_festival',\n          cat: 'traditional',\n          title: '元宵佳节',\n          tag: '正月十五',\n          icon: '🏮',\n          accent: '#f97316',\n          bgLight: 'rgba(249, 115, 22, 0.1)',\n          borderLight: 'rgba(249, 115, 22, 0.25)',\n          getTarget: (curYear) => {\n            // 2026元宵为03-03, 2027为02-20\n            let t = (curYear === 2026 && now < new Date('2026-03-03')) ? new Date('2026-03-03T00:00:00') : new Date('2027-02-20T00:00:00');\n            return t;\n          }\n        },\n        {\n          id: 'labor_day',\n          cat: 'holiday',\n          title: '五一劳动节',\n          tag: '法定黄金周',\n          icon: '🏖️',\n          accent: '#f59e0b',\n          bgLight: 'rgba(245, 158, 11, 0.1)',\n          borderLight: 'rgba(245, 158, 11, 0.25)',\n          getTarget: (curYear) => {\n            let t = new Date(`${curYear}-05-01T00:00:00`);\n            if (t <= now) t = new Date(`${curYear + 1}-05-01T00:00:00`);\n            return t;\n          }\n        },\n        {\n          id: 'dragon_boat',\n          cat: 'traditional',\n          title: '端午节',\n          tag: '五月初五',\n          icon: '🐲',\n          accent: '#10b981',\n          bgLight: 'rgba(16, 185, 129, 0.1)',\n          borderLight: 'rgba(16, 185, 129, 0.25)',\n          getTarget: (curYear) => {\n            // 2026端午: 06-19, 2027: 06-09\n            let t = (curYear === 2026 && now < new Date('2026-06-19')) ? new Date('2026-06-19T00:00:00') : new Date('2027-06-09T00:00:00');\n            return t;\n          }\n        },\n        {\n          id: 'mid_autumn',\n          cat: 'traditional',\n          title: '中秋佳节',\n          tag: '八月十五',\n          icon: '🥮',\n          accent: '#eab308',\n          bgLight: 'rgba(234, 179, 8, 0.1)',\n          borderLight: 'rgba(234, 179, 8, 0.25)',\n          getTarget: (curYear) => {\n            // 2026中秋: 09-25, 2027: 09-15\n            let t = (curYear === 2026 && now < new Date('2026-09-25')) ? new Date('2026-09-25T00:00:00') : new Date('2027-09-15T00:00:00');\n            return t;\n          }\n        },\n        {\n          id: 'national_day',\n          cat: 'holiday',\n          title: '国庆节黄金周',\n          tag: '举国同庆',\n          icon: '🌟',\n          accent: '#e11d48',\n          bgLight: 'rgba(225, 29, 72, 0.1)',\n          borderLight: 'rgba(225, 29, 72, 0.25)',\n          getTarget: (curYear) => {\n            let t = new Date(`${curYear}-10-01T00:00:00`);\n            if (t <= now) t = new Date(`${curYear + 1}-10-01T00:00:00`);\n            return t;\n          }\n        },\n        {\n          id: 'year_end',\n          cat: 'holiday',\n          title: '今年结束余额',\n          tag: '年度流逝',\n          icon: '⏳',\n          accent: '#0ea5e9',\n          bgLight: 'rgba(14, 165, 233, 0.1)',\n          borderLight: 'rgba(14, 165, 233, 0.25)',\n          isYearProgress: true,\n          getTarget: (curYear) => new Date(`${curYear}-12-31T23:59:59`)\n        }\n      ];\n\n      // 合并用户自定义纪念日\n      const customItems = getCustomCountdowns().map(c => ({\n        id: c.id,\n        cat: 'custom',\n        title: c.title,\n        tag: '我的纪念日',\n        icon: c.icon || '🎯',\n        accent: '#2563eb',\n        bgLight: 'rgba(37, 99, 235, 0.1)',\n        borderLight: 'rgba(37, 99, 235, 0.25)',\n        isCustom: true,\n        getTarget: () => new Date(c.date + 'T00:00:00')\n      }));\n\n      const allItems = [...systemTargets, ...customItems];\n      const filtered = allItems.filter(item => {\n        if (filterCat === 'all') return true;\n        return item.cat === filterCat;\n      });\n\n      if (filtered.length === 0) {\n        box.innerHTML = `<div style=\"grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--text-muted); font-size: 13px;\">暂无该分类下的倒数日，点击右上角【➕ 新增倒数日】添加吧！</div>`;\n        return;\n      }\n\n      // 计算本年度总天数与已过天数\n      const isLeap = (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);\n      const totalYearDays = isLeap ? 366 : 365;\n      const startOfYear = new Date(`${year}-01-01T00:00:00`);\n      const daysPassed = Math.max(0, Math.floor((now - startOfYear) / (1000 * 60 * 60 * 24)));\n      const yearPercent = Math.min(100, Math.max(0, ((daysPassed / totalYearDays) * 100))).toFixed(1);\n\n      box.innerHTML = filtered.map(item => {\n        const targetDate = item.getTarget(year);\n        const diffMs = targetDate - now;\n        const days = Math.ceil(diffMs / (1000 * 60 * 60 * 24));\n        const absDays = Math.abs(days);\n        const dateStr = formatDateToYMD(targetDate);\n        const weekStr = weekNames[targetDate.getDay()];\n\n        let subMetaHtml = '';\n        if (item.isYearProgress) {\n          subMetaHtml = `\n            <div class=\"countdown-progress-bar\">\n              <div class=\"countdown-progress-inner\" style=\"width: ${yearPercent}%; background: linear-gradient(90deg, ${item.accent}, #6366f1);\"></div>\n            </div>\n            <div class=\"countdown-footer-meta\">\n              <span>已过 ${yearPercent}% (${daysPassed}天)</span>\n              <span>全年共 ${totalYearDays} 天</span>\n            </div>\n          `;\n        } else {\n          const weeks = (absDays / 7).toFixed(1);\n          const months = (absDays / 30.4).toFixed(1);\n          const deleteBtn = item.isCustom ? `<button type=\"button\" class=\"countdown-del-btn\" onclick=\"deleteCustomCountdown('${item.id}', event)\" title=\"删除此纪念日\">🗑️ 删除</button>` : '';\n          subMetaHtml = `\n            <div class=\"countdown-footer-meta\">\n              <span>约 ${months} 个月 · ${weeks} 周</span>\n              <div style=\"display:flex; align-items:center; gap:6px;\">\n                ${deleteBtn}\n                <span style=\"color: var(--primary); font-size: 11px;\">测算 ↗</span>\n              </div>\n            </div>\n          `;\n        }\n\n        const isPast = days < 0;\n        const labelText = isPast ? '已过去' : '还有';\n\n        return `\n          <div class=\"countdown-target-card\" \n               style=\"--card-accent: ${item.accent}; --card-bg-light: ${item.bgLight}; --card-border-light: ${item.borderLight};\"\n               onclick=\"applyCountdownToDiff('${dateStr}', '${item.title}')\"\n               title=\"点击将【${item.title} (${dateStr})】填入上方日期间隔测算\">\n            <div>\n              <div class=\"countdown-card-header\">\n                <div class=\"countdown-icon-box\">${item.icon}</div>\n                <div class=\"countdown-title-wrap\">\n                  <div class=\"countdown-card-title\">${item.title}</div>\n                  <div class=\"countdown-card-date\">${dateStr} ${weekStr}</div>\n                </div>\n                <span class=\"countdown-card-tag\">${item.tag}</span>\n              </div>\n              <div class=\"countdown-card-body\" style=\"margin-top: 10px;\">\n                <span class=\"countdown-rem-label\">${labelText}</span>\n                <div class=\"countdown-num-wrap\">\n                  <span class=\"countdown-big-num\">${absDays}</span>\n                  <span class=\"countdown-unit-text\">天</span>\n                </div>\n              </div>\n            </div>\n            ${subMetaHtml}\n          </div>\n        `;\n      }).join('');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"getChineseLunarString\"] = getChineseLunarString;\n    window[\"formatDateToYMD\"] = formatDateToYMD;\n    window[\"initDateCalcModule\"] = initDateCalcModule;\n    window[\"setDateFieldToday\"] = setDateFieldToday;\n    window[\"swapDateDiffDates\"] = swapDateDiffDates;\n    window[\"setDateDiffPreset\"] = setDateDiffPreset;\n    window[\"runDateDiffCalcAction\"] = runDateDiffCalcAction;\n    window[\"copyDateDiffResult\"] = copyDateDiffResult;\n    window[\"setDateOffsetQuick\"] = setDateOffsetQuick;\n    window[\"runDateOffsetCalcAction\"] = runDateOffsetCalcAction;\n    window[\"copyDateOffsetResult\"] = copyDateOffsetResult;\n    window[\"applyOffsetToDiff\"] = applyOffsetToDiff;\n    window[\"copyTodayTimeInfo\"] = copyTodayTimeInfo;\n    window[\"filterCountdownCategory\"] = filterCountdownCategory;\n    window[\"applyCountdownToDiff\"] = applyCountdownToDiff;\n    window[\"getCustomCountdowns\"] = getCustomCountdowns;\n    window[\"saveCustomCountdownsList\"] = saveCustomCountdownsList;\n    window[\"openCustomCountdownModal\"] = openCustomCountdownModal;\n    window[\"closeCustomCountdownModal\"] = closeCustomCountdownModal;\n    window[\"selectCustomCdIcon\"] = selectCustomCdIcon;\n    window[\"saveCustomCountdown\"] = saveCustomCountdown;\n    window[\"deleteCustomCountdown\"] = deleteCustomCountdown;\n    window[\"renderQuickCountdowns\"] = renderQuickCountdowns;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"date-calc\",\n    name: \"日期推算与倒数日日历\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"📅\",\n    version: \"1.0.0\",\n    desc: \"计算两个日期间隔天数/工作日，指定日期加减天数/月/年，农历信息与节假日倒数纪念日\",\n    render(container) {\n          container.innerHTML = `\n<div class=\"date-calc-container\">\n              <!-- 顶部今日全景时光胶囊横幅 -->\n              <div class=\"date-hero-banner\" id=\"pDateHeroBanner\">\n                <div class=\"date-hero-left\">\n                  <div class=\"calendar-badge-block\">\n                    <div class=\"calendar-badge-month\" id=\"heroBadgeMonth\">--月</div>\n                    <div class=\"calendar-badge-day\" id=\"heroBadgeDay\">--</div>\n                  </div>\n                  <div class=\"date-hero-meta\">\n                    <div class=\"date-hero-gregorian\">\n                      <span id=\"heroGregorianText\">公历 ----年--月--日</span>\n                      <span class=\"lunar-pill\" id=\"heroWeekdayPill\">周-</span>\n                    </div>\n                    <div class=\"date-hero-lunar\">\n                      <span>🏮 农历:</span>\n                      <strong id=\"heroLunarText\" style=\"color: var(--text-main);\">--年 --月--</strong>\n                      <span style=\"opacity:0.6;\">·</span>\n                      <span id=\"heroWeekOfYear\">第 -- 周</span>\n                      <span style=\"opacity:0.6;\">·</span>\n                      <span id=\"heroQuarterText\">第 - 季度</span>\n                    </div>\n                  </div>\n                </div>\n\n                <div class=\"date-hero-right\">\n                  <div class=\"year-progress-box\">\n                    <div class=\"year-progress-header\">\n                      <span>⏳ <span id=\"heroYearNum\">2026</span> 年度流逝进度</span>\n                      <strong id=\"heroYearPercent\" style=\"color: var(--primary); font-family: var(--code-font);\">0.0%</strong>\n                    </div>\n                    <div class=\"year-progress-bar-wrap\">\n                      <div class=\"year-progress-bar-fill\" id=\"heroYearProgressBar\" style=\"width: 0%;\"></div>\n                    </div>\n                    <div class=\"year-progress-footer\">\n                      <span id=\"heroDaysPassed\">已过 -- 天</span>\n                      <span id=\"heroDaysRemaining\">还剩 -- 天</span>\n                    </div>\n                  </div>\n                  <button type=\"button\" class=\"tool-btn\" onclick=\"copyTodayTimeInfo()\" title=\"复制今日完整公农历与年度进度信息\" style=\"flex-shrink: 0;\">\n                    <span>📋 复制今日</span>\n                  </button>\n                </div>\n              </div>\n\n              <!-- 双核心测算引擎卡片区域 (双栏并排) -->\n              <div class=\"date-calc-split-grid\">\n                <!-- 模块 1: 日期间隔相差与工作日精算 -->\n                <div class=\"date-tool-card\">\n                  <div class=\"date-tool-header\">\n                    <div class=\"date-tool-title\">\n                      <span style=\"font-size: 16px;\">📅</span>\n                      <span>模式一：日期间隔相差与工作日精算</span>\n                    </div>\n                    <span class=\"tool-stat-badge primary\">双向测算</span>\n                  </div>\n\n                  <!-- 日期输入区与调换按钮 -->\n                  <div class=\"date-inputs-row\">\n                    <div class=\"date-input-field\">\n                      <label class=\"date-input-label\">\n                        <span>起始日期:</span>\n                        <button type=\"button\" class=\"date-input-today-btn\" onclick=\"setDateFieldToday('pDateDiffStart')\">今天</button>\n                      </label>\n                      <input type=\"date\" id=\"pDateDiffStart\" class=\"form-input\" onchange=\"runDateDiffCalcAction()\">\n                    </div>\n\n                    <button type=\"button\" class=\"date-swap-btn\" onclick=\"swapDateDiffDates()\" title=\"调换起始日期与终止日期\">\n                      ⇄\n                    </button>\n\n                    <div class=\"date-input-field\">\n                      <label class=\"date-input-label\">\n                        <span>终止日期:</span>\n                        <button type=\"button\" class=\"date-input-today-btn\" onclick=\"setDateFieldToday('pDateDiffEnd')\">今天</button>\n                      </label>\n                      <input type=\"date\" id=\"pDateDiffEnd\" class=\"form-input\" onchange=\"runDateDiffCalcAction()\">\n                    </div>\n                  </div>\n\n                  <!-- 常用快捷区间胶囊 -->\n                  <div class=\"date-preset-pills-wrap\">\n                    <span style=\"font-size: 11px; color: var(--text-muted); font-weight: 600;\">快捷区间:</span>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('thisYear')\">今年元旦至今</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('monthStart')\">本月初至今</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('endOfYear')\">距离今年底</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('100days')\">+100天百日誓师</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('halfYear')\">+180天半年</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateDiffPreset('nextSpring')\">距除夕春节</button>\n                  </div>\n\n                  <!-- 测算结果呈现卡片 -->\n                  <div class=\"date-result-card\">\n                    <div class=\"date-result-top\">\n                      <div>\n                        <div style=\"font-size: 11.5px; color: var(--text-muted); font-weight: 600;\">自然日相隔总天数:</div>\n                        <div class=\"date-result-hero-num\">\n                          <span id=\"pDateDiffDays\">0</span>\n                          <span class=\"date-result-hero-unit\">天</span>\n                          <span id=\"pDateDiffDirectionTag\" style=\"font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; margin-left: 6px; display: none;\"></span>\n                        </div>\n                      </div>\n                      <button type=\"button\" class=\"tool-btn\" onclick=\"copyDateDiffResult()\" style=\"height: 28px; font-size: 11.5px;\">\n                        <span>📋 复制明细</span>\n                      </button>\n                    </div>\n\n                    <!-- 细分指标网格 -->\n                    <div class=\"date-metric-grid\">\n                      <div class=\"date-metric-item\">\n                        <span>💼 包含工作日 (周一至周五):</span>\n                        <span class=\"date-metric-val green\" id=\"pDateDiffWorkdays\">- 天</span>\n                      </div>\n                      <div class=\"date-metric-item\">\n                        <span>🏖️ 周末双休日 (周六与周日):</span>\n                        <span class=\"date-metric-val\" id=\"pDateDiffWeekends\">- 天</span>\n                      </div>\n                      <div class=\"date-metric-item\">\n                        <span>📆 折合完整周数:</span>\n                        <span class=\"date-metric-val\" id=\"pDateDiffWeeks\">- 周</span>\n                      </div>\n                      <div class=\"date-metric-item\">\n                        <span>🌙 折合月份数:</span>\n                        <span class=\"date-metric-val\" id=\"pDateDiffMonths\">- 个月</span>\n                      </div>\n                      <div class=\"date-metric-item\" style=\"grid-column: span 2; border-top: 1px dashed var(--border-color); padding-top: 4px;\">\n                        <span>⏱️ 换算总小时与总分钟:</span>\n                        <span class=\"date-metric-val\" id=\"pDateDiffHoursMinutes\">-</span>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n\n                <!-- 模块 2: 指定日期累加/倒推推算 -->\n                <div class=\"date-tool-card\">\n                  <div class=\"date-tool-header\">\n                    <div class=\"date-tool-title\">\n                      <span style=\"font-size: 16px;\">🧭</span>\n                      <span>模式二：指定日期累加 / 倒推推算</span>\n                    </div>\n                    <span class=\"tool-stat-badge success\">支持跳过周末</span>\n                  </div>\n\n                  <!-- 基准日期与运算操作 -->\n                  <div class=\"date-inputs-row\">\n                    <div class=\"date-input-field\" style=\"flex: 1.2;\">\n                      <label class=\"date-input-label\">\n                        <span>基准起始日期:</span>\n                        <button type=\"button\" class=\"date-input-today-btn\" onclick=\"setDateFieldToday('pDateOffsetBase')\">今天</button>\n                      </label>\n                      <input type=\"date\" id=\"pDateOffsetBase\" class=\"form-input\" onchange=\"runDateOffsetCalcAction()\">\n                    </div>\n\n                    <div class=\"date-input-field\" style=\"flex: 0.8;\">\n                      <label class=\"date-input-label\"><span>推算方向:</span></label>\n                      <select class=\"form-select\" id=\"pDateOffsetOp\" onchange=\"runDateOffsetCalcAction()\">\n                        <option value=\"add\" selected>➕ 往后推算 (增加)</option>\n                        <option value=\"sub\">➖ 往前倒推 (减少)</option>\n                      </select>\n                    </div>\n                  </div>\n\n                  <!-- 数值与单位选择 -->\n                  <div style=\"display: flex; gap: 8px; align-items: center;\">\n                    <div style=\"flex: 1;\">\n                      <label class=\"date-input-label\"><span>数值量:</span></label>\n                      <input type=\"number\" id=\"pDateOffsetNum\" class=\"form-input\" value=\"30\" min=\"1\" max=\"99999\" oninput=\"runDateOffsetCalcAction()\" style=\"font-family: var(--code-font); font-weight: 700;\">\n                    </div>\n                    <div style=\"flex: 1.2;\">\n                      <label class=\"date-input-label\"><span>计算单位:</span></label>\n                      <select class=\"form-select\" id=\"pDateOffsetUnit\" onchange=\"runDateOffsetCalcAction()\">\n                        <option value=\"days\" selected>自然日 (天)</option>\n                        <option value=\"workdays\">工作日 (智能跳过周末)</option>\n                        <option value=\"weeks\">周 (7天)</option>\n                        <option value=\"months\">个月 (按日对齐)</option>\n                        <option value=\"years\">年</option>\n                      </select>\n                    </div>\n                  </div>\n\n                  <!-- 快捷跨度胶囊 -->\n                  <div class=\"date-preset-pills-wrap\">\n                    <span style=\"font-size: 11px; color: var(--text-muted); font-weight: 600;\">快捷跨度:</span>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(3, 'days')\">+3天</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(7, 'days')\">+7天(1周)</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(10, 'workdays')\">+10工作日</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(30, 'days')\">+30天(1月)</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(90, 'days')\">+90天(1季)</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(100, 'days')\">+100天</button>\n                    <button type=\"button\" class=\"date-preset-chip\" onclick=\"setDateOffsetQuick(365, 'days')\">+1年</button>\n                  </div>\n\n                  <!-- 推算结果呈现卡片 -->\n                  <div class=\"date-result-card\">\n                    <div class=\"date-result-top\">\n                      <div>\n                        <div style=\"font-size: 11.5px; color: var(--text-muted); font-weight: 600;\">推算目标日期结果:</div>\n                        <div class=\"date-result-hero-num\" style=\"color: var(--success);\" id=\"pDateOffsetResult\">\n                          ----年--月--日\n                        </div>\n                      </div>\n                      <div style=\"display: flex; gap: 6px;\">\n                        <button type=\"button\" class=\"tool-btn\" onclick=\"copyDateOffsetResult()\" style=\"height: 28px; font-size: 11.5px;\">\n                          <span>📋 复制日期</span>\n                        </button>\n                        <button type=\"button\" class=\"tool-btn primary\" onclick=\"applyOffsetToDiff()\" style=\"height: 28px; font-size: 11.5px;\" title=\"填入模式一进行日期间隔详细测算\">\n                          <span>⤴ 填入模式一</span>\n                        </button>\n                      </div>\n                    </div>\n\n                    <div class=\"date-metric-grid\" style=\"grid-template-columns: 1fr;\">\n                      <div class=\"date-metric-item\">\n                        <span>📅 星期与农历:</span>\n                        <strong class=\"date-metric-val\" id=\"pDateOffsetWeekday\">-</strong>\n                      </div>\n                      <div class=\"date-metric-item\">\n                        <span>⏳ 距离今天相隔天数:</span>\n                        <strong class=\"date-metric-val green\" id=\"pDateOffsetDistance\">-</strong>\n                      </div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n\n              <!-- 常见倒数日、重大节假日与自定义纪念日工坊 -->\n              <div class=\"date-countdown-container\">\n                <div class=\"date-countdown-header\">\n                  <div style=\"display: flex; align-items: center; gap: 10px;\">\n                    <span style=\"font-size: 14px; font-weight: 700; color: var(--text-main);\">🎯 常用目标倒计时 & 纪念日工坊</span>\n                    <span style=\"font-size: 11px; color: var(--text-muted); background: var(--bg-subtle); padding: 2px 8px; border-radius: 12px;\">智能节假日推算 · 点击卡片填入上方测算</span>\n                  </div>\n\n                  <div style=\"display: flex; align-items: center; gap: 8px;\">\n                    <!-- 分类筛选胶囊 -->\n                    <div class=\"date-countdown-filters\">\n                      <button type=\"button\" class=\"cd-filter-pill active\" data-filter=\"all\" onclick=\"filterCountdownCategory('all')\">全部</button>\n                      <button type=\"button\" class=\"cd-filter-pill\" data-filter=\"holiday\" onclick=\"filterCountdownCategory('holiday')\">法定假日</button>\n                      <button type=\"button\" class=\"cd-filter-pill\" data-filter=\"traditional\" onclick=\"filterCountdownCategory('traditional')\">传统佳节</button>\n                      <button type=\"button\" class=\"cd-filter-pill\" data-filter=\"custom\" onclick=\"filterCountdownCategory('custom')\">我的纪念日</button>\n                    </div>\n\n                    <button type=\"button\" class=\"tool-btn primary\" onclick=\"openCustomCountdownModal()\" style=\"height: 28px; font-size: 11.5px; padding: 0 10px;\">\n                      <span>➕ 新增倒数日</span>\n                    </button>\n                    <button type=\"button\" class=\"tool-btn\" onclick=\"renderQuickCountdowns()\" title=\"重新计算最新倒计时\" style=\"height: 28px; font-size: 11.5px; padding: 0 8px;\">\n                      <span>🔄</span>\n                    </button>\n                  </div>\n                </div>\n\n                <!-- 倒计时卡片瀑布流网格 -->\n                <div class=\"date-countdown-grid\" id=\"pCountdownCardsList\">\n                  <!-- 由 JavaScript 动态渲染丰富卡片 -->\n                </div>\n              </div>\n\n              <!-- 自定义倒数日弹窗 Modal -->\n              <div class=\"custom-cd-modal-overlay\" id=\"customCdModal\" onclick=\"if(event.target===this)closeCustomCountdownModal()\">\n                <div class=\"custom-cd-modal-card\">\n                  <div style=\"display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;\">\n                    <h3 style=\"font-size: 14px; font-weight: 700; margin: 0; color: var(--text-main); display: flex; align-items: center; gap: 6px;\">\n                      <span>✨</span> 新增自定义倒数日 / 纪念日\n                    </h3>\n                    <button type=\"button\" onclick=\"closeCustomCountdownModal()\" style=\"background: transparent; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted);\">&times;</button>\n                  </div>\n                  <div class=\"form-group\">\n                    <label class=\"form-label\">事件名称 (如: 项目上线、考研初试、结婚纪念日):</label>\n                    <input type=\"text\" id=\"customCdTitle\" class=\"form-input\" placeholder=\"输入倒数事件名称...\" maxlength=\"30\">\n                  </div>\n                  <div class=\"form-group\">\n                    <label class=\"form-label\">目标日期:</label>\n                    <input type=\"date\" id=\"customCdDate\" class=\"form-input\">\n                  </div>\n                  <div class=\"form-group\">\n                    <label class=\"form-label\">选择个性化图标:</label>\n                    <div style=\"display: flex; gap: 8px; flex-wrap: wrap;\" id=\"customCdIconGroup\">\n                      <button type=\"button\" class=\"date-preset-chip active\" data-icon=\"🎯\" onclick=\"selectCustomCdIcon(this)\">🎯 目标</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"🎂\" onclick=\"selectCustomCdIcon(this)\">🎂 生日</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"🎓\" onclick=\"selectCustomCdIcon(this)\">🎓 考试</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"🚀\" onclick=\"selectCustomCdIcon(this)\">🚀 发版</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"💍\" onclick=\"selectCustomCdIcon(this)\">💍 纪念</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"🏠\" onclick=\"selectCustomCdIcon(this)\">🏠 还贷</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"✈️\" onclick=\"selectCustomCdIcon(this)\">✈️ 出行</button>\n                      <button type=\"button\" class=\"date-preset-chip\" data-icon=\"💰\" onclick=\"selectCustomCdIcon(this)\">💰 发薪</button>\n                    </div>\n                  </div>\n                  <div style=\"display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px;\">\n                    <button type=\"button\" class=\"tool-btn\" onclick=\"closeCustomCountdownModal()\">取消</button>\n                    <button type=\"button\" class=\"tool-btn primary\" onclick=\"saveCustomCountdown()\">保存倒数日</button>\n                  </div>\n                </div>\n              </div>\n            </div>\n                    `;\n          if (typeof initDateCalcModule === 'function') {\n            initDateCalcModule();\n          }\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"unit-converter","name":"全能物理与计算机单位换算器","category":"生活与实用","cat_id":"life","icon":"⚖️","version":"1.0.0","desc":"支持存储容量 (B/KB/MB/GB/TB)、面积长度、质量重量、温度、压力与进制单位秒级互转","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nconst UNIT_DEFINITIONS = {\n      storage: {\n        base: 'B',\n        units: [\n          { key: 'B', name: '字节 (Byte)', symbol: 'B', ratio: 1 },\n          { key: 'KB', name: '千字节 (Kilobyte)', symbol: 'KB', ratio: 1024 },\n          { key: 'MB', name: '兆字节 (Megabyte)', symbol: 'MB', ratio: 1024 ** 2 },\n          { key: 'GB', name: '吉字节 (Gigabyte)', symbol: 'GB', ratio: 1024 ** 3 },\n          { key: 'TB', name: '太字节 (Terabyte)', symbol: 'TB', ratio: 1024 ** 4 },\n          { key: 'PB', name: '拍字节 (Petabyte)', symbol: 'PB', ratio: 1024 ** 5 }\n        ]\n      },\n      length: {\n        base: 'm',\n        units: [\n          { key: 'mm', name: '毫米 (Millimeter)', symbol: 'mm', ratio: 0.001 },\n          { key: 'cm', name: '厘米 (Centimeter)', symbol: 'cm', ratio: 0.01 },\n          { key: 'm', name: '米 (Meter)', symbol: 'm', ratio: 1 },\n          { key: 'km', name: '千米 / 公里 (Kilometer)', symbol: 'km', ratio: 1000 },\n          { key: 'inch', name: '英寸 (Inch)', symbol: 'in', ratio: 0.0254 },\n          { key: 'foot', name: '英尺 (Foot)', symbol: 'ft', ratio: 0.3048 }\n        ]\n      },\n      weight: {\n        base: 'g',\n        units: [\n          { key: 'mg', name: '毫克 (Milligram)', symbol: 'mg', ratio: 0.001 },\n          { key: 'g', name: '克 (Gram)', symbol: 'g', ratio: 1 },\n          { key: 'kg', name: '千克 / 公斤 (Kilogram)', symbol: 'kg', ratio: 1000 },\n          { key: 'jin', name: '市斤 (Jin)', symbol: '斤', ratio: 500 },\n          { key: 'ton', name: '吨 (Metric Ton)', symbol: 't', ratio: 1000000 },\n          { key: 'lb', name: '磅 (Pound)', symbol: 'lb', ratio: 453.59237 }\n        ]\n      },\n      area: {\n        base: 'm2',\n        units: [\n          { key: 'm2', name: '平方米 (Square Meter)', symbol: '㎡', ratio: 1 },\n          { key: 'km2', name: '平方公里 (Square Km)', symbol: 'k㎡', ratio: 1000000 },\n          { key: 'mu', name: '市亩 (Mu)', symbol: '亩', ratio: 666.66667 },\n          { key: 'ha', name: '公顷 (Hectare)', symbol: 'ha', ratio: 10000 }\n        ]\n      },\n      temp: {\n        special: 'temp',\n        units: [\n          { key: 'c', name: '摄氏度 (Celsius)', symbol: '°C' },\n          { key: 'f', name: '华氏度 (Fahrenheit)', symbol: '°F' },\n          { key: 'k', name: '热力学开尔文 (Kelvin)', symbol: 'K' }\n        ]\n      }\n    };\n\nlet currentUnitCategory = 'storage';\n\nfunction switchUnitType(type) {\n      currentUnitCategory = type;\n      const pills = ['storage', 'length', 'weight', 'area', 'temp'];\n      pills.forEach(p => {\n        const btn = document.getElementById('pillUnit' + p.charAt(0).toUpperCase() + p.slice(1));\n        if (btn) btn.classList.toggle('active', p === type);\n      });\n      initUnitConverterModule();\n    }\n\nfunction initUnitConverterModule() {\n      const def = UNIT_DEFINITIONS[currentUnitCategory];\n      if (!def) return;\n\n      const fromSel = document.getElementById('pUnitFromSelect');\n      const toSel = document.getElementById('pUnitToSelect');\n      if (!fromSel || !toSel) return;\n\n      fromSel.innerHTML = def.units.map(u => `<option value=\"${u.key}\">${u.name} (${u.symbol})</option>`).join('');\n      toSel.innerHTML = def.units.map(u => `<option value=\"${u.key}\">${u.name} (${u.symbol})</option>`).join('');\n\n      if (currentUnitCategory === 'storage') {\n        fromSel.value = 'MB';\n        toSel.value = 'GB';\n        const inEl = document.getElementById('pUnitFromInput');\n        if (inEl) inEl.value = '1024';\n      } else if (currentUnitCategory === 'temp') {\n        fromSel.value = 'c';\n        toSel.value = 'f';\n        const inEl = document.getElementById('pUnitFromInput');\n        if (inEl) inEl.value = '25';\n      } else {\n        fromSel.value = def.units[0].key;\n        toSel.value = def.units[1].key;\n        const inEl = document.getElementById('pUnitFromInput');\n        if (inEl) inEl.value = '1';\n      }\n\n      runUnitConvertAction();\n    }\n\nfunction swapUnitConversion() {\n      const fromSel = document.getElementById('pUnitFromSelect');\n      const toSel = document.getElementById('pUnitToSelect');\n      if (fromSel && toSel) {\n        const temp = fromSel.value;\n        fromSel.value = toSel.value;\n        toSel.value = temp;\n        runUnitConvertAction();\n      }\n    }\n\nfunction runUnitConvertAction() {\n      const def = UNIT_DEFINITIONS[currentUnitCategory];\n      const val = parseFloat(document.getElementById('pUnitFromInput')?.value || '0');\n      const fromKey = document.getElementById('pUnitFromSelect')?.value;\n      const toKey = document.getElementById('pUnitToSelect')?.value;\n      const out = document.getElementById('pUnitToOutput');\n      const tbody = document.getElementById('pUnitMatrixTableBody');\n\n      if (!def || isNaN(val)) return;\n\n      let resultVal = 0;\n      let baseVal = 0;\n\n      if (currentUnitCategory === 'temp') {\n        // 温度换算\n        let cVal = 0;\n        if (fromKey === 'c') cVal = val;\n        else if (fromKey === 'f') cVal = (val - 32) / 1.8;\n        else if (fromKey === 'k') cVal = val - 273.15;\n\n        if (toKey === 'c') resultVal = cVal;\n        else if (toKey === 'f') resultVal = cVal * 1.8 + 32;\n        else if (toKey === 'k') resultVal = cVal + 273.15;\n\n        if (out) out.value = parseFloat(resultVal.toFixed(4)).toString();\n\n        if (tbody) {\n          tbody.innerHTML = [\n            { name: '摄氏度 (Celsius)', symbol: '°C', v: cVal },\n            { name: '华氏度 (Fahrenheit)', symbol: '°F', v: cVal * 1.8 + 32 },\n            { name: '开氏度 (Kelvin)', symbol: 'K', v: cVal + 273.15 }\n          ].map(row => `\n            <tr style=\"cursor: pointer;\" onclick=\"navigator.clipboard.writeText('${parseFloat(row.v.toFixed(4))}'); showToast('📋 已复制: ${parseFloat(row.v.toFixed(4))}');\">\n              <td style=\"padding: 6px 8px; font-weight: 600;\">${row.name}</td>\n              <td style=\"padding: 6px 8px; text-align: center; color: var(--text-muted); font-family: var(--font-mono);\">${row.symbol}</td>\n              <td style=\"padding: 6px 8px; text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--primary);\">${parseFloat(row.v.toFixed(4))}</td>\n            </tr>\n          `).join('');\n        }\n        return;\n      }\n\n      // 标准乘除比率\n      const uFrom = def.units.find(u => u.key === fromKey);\n      const uTo = def.units.find(u => u.key === toKey);\n      if (!uFrom || !uTo) return;\n\n      baseVal = val * uFrom.ratio;\n      resultVal = baseVal / uTo.ratio;\n\n      const formatNum = n => {\n        if (Math.abs(n) >= 1e12 || (Math.abs(n) < 1e-6 && n !== 0)) return n.toExponential(4);\n        return parseFloat(n.toFixed(6)).toString();\n      };\n\n      if (out) out.value = formatNum(resultVal);\n\n      if (tbody) {\n        tbody.innerHTML = def.units.map(u => {\n          const eqVal = baseVal / u.ratio;\n          const displayStr = formatNum(eqVal);\n          const isCurrent = (u.key === toKey);\n          return `\n            <tr style=\"cursor: pointer; ${isCurrent ? 'background: rgba(30,102,245,0.06);' : ''}\" onclick=\"navigator.clipboard.writeText('${displayStr}'); showToast('📋 已复制: ${displayStr}');\">\n              <td style=\"padding: 6px 8px; font-weight: 600; color: ${isCurrent ? 'var(--primary)' : 'inherit'};\">${u.name}</td>\n              <td style=\"padding: 6px 8px; text-align: center; color: var(--text-muted); font-family: var(--font-mono);\">${u.symbol}</td>\n              <td style=\"padding: 6px 8px; text-align: right; font-family: var(--font-mono); font-weight: 700; color: ${isCurrent ? 'var(--primary)' : 'var(--text-main)'};\">${displayStr}</td>\n            </tr>\n          `;\n        }).join('');\n      }\n    }\n\nfunction copyUnitConvertResult() {\n      const out = document.getElementById('pUnitToOutput');\n      if (out && out.value) {\n        navigator.clipboard.writeText(out.value);\n        showToast(`📋 已复制换算结果: ${out.value}`);\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"switchUnitType\"] = switchUnitType;\n    window[\"initUnitConverterModule\"] = initUnitConverterModule;\n    window[\"swapUnitConversion\"] = swapUnitConversion;\n    window[\"runUnitConvertAction\"] = runUnitConvertAction;\n    window[\"copyUnitConvertResult\"] = copyUnitConvertResult;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"unit-converter\",\n    name: \"全能物理与计算机单位换算器\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"⚖️\",\n    version: \"1.0.0\",\n    desc: \"支持存储容量 (B/KB/MB/GB/TB)、面积长度、质量重量、温度、压力与进制单位秒级互转\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 14px; min-height: 0;\">\n              <!-- 类别与模式选择栏 -->\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; flex-shrink: 0;\">\n                <label style=\"font-size: 12.5px; font-weight: 700;\">换算物理量类别:</label>\n                <div class=\"json-mode-pill-group\" style=\"margin: 0;\">\n                  <button type=\"button\" class=\"json-mode-pill active\" id=\"pillUnitStorage\" onclick=\"switchUnitType('storage')\">💾 存储容量</button>\n                  <button type=\"button\" class=\"json-mode-pill\" id=\"pillUnitLength\" onclick=\"switchUnitType('length')\">📏 长度距离</button>\n                  <button type=\"button\" class=\"json-mode-pill\" id=\"pillUnitWeight\" onclick=\"switchUnitType('weight')\">⚖️ 重量质量</button>\n                  <button type=\"button\" class=\"json-mode-pill\" id=\"pillUnitArea\" onclick=\"switchUnitType('area')\">📐 面积与地积</button>\n                  <button type=\"button\" class=\"json-mode-pill\" id=\"pillUnitTemp\" onclick=\"switchUnitType('temp')\">🌡️ 温度华氏</button>\n                </div>\n              </div>\n\n              <!-- 双向联动换算工作区 -->\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0;\">\n                <div style=\"display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;\">\n                  <!-- 左侧源数值 -->\n                  <div style=\"display: flex; flex-direction: column; gap: 6px;\">\n                    <div style=\"display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted);\">\n                      <span>输入源数值:</span>\n                      <select class=\"form-select\" id=\"pUnitFromSelect\" onchange=\"runUnitConvertAction()\" style=\"min-width: 155px; width: auto; height: 30px; padding: 2px 28px 2px 8px; font-size: 12px;\"></select>\n                    </div>\n                    <input type=\"number\" id=\"pUnitFromInput\" class=\"form-input\" value=\"1024\" oninput=\"runUnitConvertAction()\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--primary);\">\n                  </div>\n\n                  <!-- 交换图标 -->\n                  <div style=\"padding-top: 18px;\">\n                    <button class=\"btn-action\" onclick=\"swapUnitConversion()\" title=\"交换换算单位\" style=\"border-radius: 50%; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 16px;\">⇄</button>\n                  </div>\n\n                  <!-- 右侧目标数值 -->\n                  <div style=\"display: flex; flex-direction: column; gap: 6px;\">\n                    <div style=\"display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted);\">\n                      <span>换算结果:</span>\n                      <select class=\"form-select\" id=\"pUnitToSelect\" onchange=\"runUnitConvertAction()\" style=\"min-width: 155px; width: auto; height: 30px; padding: 2px 28px 2px 8px; font-size: 12px;\"></select>\n                    </div>\n                    <div style=\"display: flex; gap: 6px;\">\n                      <input type=\"text\" id=\"pUnitToOutput\" class=\"form-input\" readonly value=\"1\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--success); background: var(--bg-subtle);\">\n                      <button class=\"btn-action primary\" onclick=\"copyUnitConvertResult()\" style=\"font-size: 12px; padding: 4px 10px;\">复制</button>\n                    </div>\n                  </div>\n                </div>\n              </div>\n\n              <!-- 全量所有换算阶梯对照表 (自适应撑满高度) -->\n              <div style=\"flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px;\">\n                <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-shrink: 0;\">\n                  <span style=\"font-size: 12.5px; font-weight: 700; color: var(--text-main);\">当前数值在各单位下等价对照表:</span>\n                  <span style=\"font-size: 11px; color: var(--text-muted);\">点击行即可复制数值</span>\n                </div>\n                <div style=\"flex: 1; min-height: 0; overflow-y: auto;\">\n                  <table class=\"data-table\" style=\"width: 100%; border-collapse: collapse; font-size: 12px;\">\n                    <thead>\n                      <tr>\n                        <th style=\"width: 160px; text-align: left; padding: 6px 8px;\">单位名称</th>\n                        <th style=\"width: 100px; text-align: center; padding: 6px 8px;\">单位符号</th>\n                        <th style=\"text-align: right; padding: 6px 8px;\">换算等价数值</th>\n                      </tr>\n                    </thead>\n                    <tbody id=\"pUnitMatrixTableBody\"></tbody>\n                  </table>\n                </div>\n              </div>\n            </div>\n          `;\n          initUnitConverterModule();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"markdown-preview","name":"Markdown 实时双向编辑器","category":"文本与正则","cat_id":"text","icon":"📝","version":"1.0.0","desc":"支持常用 GFM 语法、表格、任务清单、标题大纲与 HTML 纯净代码一键导出/复制","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction loadSampleMarkdown() {\n      const sample = `# 磐石工作台开发与业务简报 🚀\\n\\n` +\n        `磐石密码本是基于 **Web Crypto API** 零知识硬件加密的商业级保险箱与开发者工具箱。\\n\\n` +\n        `## 核心特性一览\\n` +\n        `- [x] 本地离线优先存储\\n` +\n        `- [x] 商业房贷与五险一金精算器\\n` +\n        `- [x] 日期推算与单位换算器\\n` +\n        `- [ ] 全终端生物识别支持\\n\\n` +\n        `### 代码示例 (JavaScript)\\n` +\n        `\\`\\`\\`javascript\\n` +\n        `const vault = await RockVault.init({ mode: \"local-first\" });\\n` +\n        `console.log(\"Vault status:\", vault.isSecure());\\n` +\n        `\\`\\`\\`\\n\\n` +\n        `> 💡 **提示**：所有运算均 100% 在客户端纯脱机完成，保障零知识私密安全。`;\n      const input = document.getElementById('pMdSourceInput');\n      if (input) input.value = sample;\n      runMarkdownRenderAction();\n    }\n\nfunction insertMdSnippet(type) {\n      const input = document.getElementById('pMdSourceInput');\n      if (!input) return;\n      const start = input.selectionStart;\n      const end = input.selectionEnd;\n      const text = input.value;\n      let snippet = '';\n\n      if (type === 'bold') snippet = '**粗体文本**';\n      else if (type === 'italic') snippet = '*斜体文本*';\n      else if (type === 'h2') snippet = '\\n## 标题名称\\n';\n      else if (type === 'quote') snippet = '\\n> 引用块内容\\n';\n      else if (type === 'code') snippet = '\\n```javascript\\n// 在此编写代码\\n```\\n';\n      else if (type === 'table') snippet = '\\n| 字段 | 类型 | 说明 |\\n|---|---|---|\\n| id | Number | 唯一标识 |\\n';\n      else if (type === 'todo') snippet = '\\n- [ ] 待办事项清单\\n';\n\n      input.value = text.substring(0, start) + snippet + text.substring(end);\n      input.focus();\n      runMarkdownRenderAction();\n    }\n\nfunction runMarkdownRenderAction() {\n      const input = document.getElementById('pMdSourceInput');\n      const box = document.getElementById('pMdPreviewBox');\n      const countEl = document.getElementById('pMdWordCount');\n      if (!input || !box) return;\n\n      const raw = input.value || '';\n      if (countEl) countEl.innerText = `${raw.length} 字符 · ${raw.trim() ? raw.trim().split(/\\s+/).length : 0} 词`;\n\n      // 简易安全 Markdown 渲染器 (GFM 兼容)\n      let html = raw\n        .replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')\n        .replace(/```([a-z]*)\\n([\\s\\S]*?)```/g, '<pre style=\"background:var(--bg-subtle); padding:10px; border-radius:6px; overflow-x:auto;\"><code class=\"language-$1\">$2</code></pre>')\n        .replace(/`([^`]+)`/g, '<code style=\"background:var(--bg-subtle); color:var(--primary); padding:2px 4px; border-radius:4px; font-family:var(--font-mono);\">$1</code>')\n        .replace(/^### (.*$)/gim, '<h3 style=\"margin:12px 0 6px 0; font-size:15px; color:var(--text-main);\">$1</h3>')\n        .replace(/^## (.*$)/gim, '<h2 style=\"margin:14px 0 8px 0; font-size:17px; color:var(--primary);\">$1</h2>')\n        .replace(/^# (.*$)/gim, '<h1 style=\"margin:16px 0 10px 0; font-size:20px; color:var(--text-main); border-bottom:1px solid var(--border-color); padding-bottom:6px;\">$1</h1>')\n        .replace(/^\\> (.*$)/gim, '<blockquote style=\"border-left:3px solid var(--primary); padding-left:10px; color:var(--text-sub); margin:8px 0; background:rgba(30,102,245,0.04); padding:6px 10px; border-radius:0 6px 6px 0;\">$1</blockquote>')\n        .replace(/^- \\[x\\] (.*$)/gim, '<div style=\"display:flex; align-items:center; gap:6px;\"><input type=\"checkbox\" checked disabled> <span style=\"text-decoration:line-through; color:var(--text-muted);\">$1</span></div>')\n        .replace(/^- \\[ \\] (.*$)/gim, '<div style=\"display:flex; align-items:center; gap:6px;\"><input type=\"checkbox\" disabled> <span>$1</span></div>')\n        .replace(/^- (.*$)/gim, '<li style=\"margin-left:20px;\">$1</li>')\n        .replace(/\\*\\*(.*?)\\*\\*/g, '<strong>$1</strong>')\n        .replace(/\\*(.*?)\\*/g, '<em>$1</em>')\n        .replace(/\\n\\n/g, '<br><br>');\n\n      box.innerHTML = html;\n    }\n\nfunction copyMdRenderedHtml() {\n      const box = document.getElementById('pMdPreviewBox');\n      if (box) {\n        navigator.clipboard.writeText(box.innerHTML);\n        showToast('📋 已复制 HTML 渲染富文本内容！');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"loadSampleMarkdown\"] = loadSampleMarkdown;\n    window[\"insertMdSnippet\"] = insertMdSnippet;\n    window[\"runMarkdownRenderAction\"] = runMarkdownRenderAction;\n    window[\"copyMdRenderedHtml\"] = copyMdRenderedHtml;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"markdown-preview\",\n    name: \"Markdown 实时双向编辑器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"📝\",\n    version: \"1.0.0\",\n    desc: \"支持常用 GFM 语法、表格、任务清单、标题大纲与 HTML 纯净代码一键导出/复制\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; min-height: 0;\">\n              <!-- 快捷格式化工具栏 -->\n              <div style=\"display: flex; gap: 6px; align-items: center; background: var(--bg-subtle); padding: 6px 12px; border-radius: 8px; flex-wrap: wrap; flex-shrink: 0;\">\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('bold')\" style=\"font-size: 11.5px; padding: 3px 8px;\"><strong>B</strong> 粗体</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('italic')\" style=\"font-size: 11.5px; padding: 3px 8px;\"><em>I</em> 斜体</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('h2')\" style=\"font-size: 11.5px; padding: 3px 8px;\">H2 标题</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('quote')\" style=\"font-size: 11.5px; padding: 3px 8px;\">❝ 引用</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('code')\" style=\"font-size: 11.5px; padding: 3px 8px;\">&lt;/&gt; 代码块</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('table')\" style=\"font-size: 11.5px; padding: 3px 8px;\">▦ 表格</button>\n                <button class=\"btn-action\" onclick=\"insertMdSnippet('todo')\" style=\"font-size: 11.5px; padding: 3px 8px;\">☑ 待办</button>\n                <div style=\"margin-left: auto; display: flex; gap: 6px;\">\n                  <button class=\"btn-action\" onclick=\"loadSampleMarkdown()\" style=\"font-size: 11px; padding: 3px 8px;\">📥 载入示例</button>\n                  <button class=\"btn-action primary\" onclick=\"copyMdRenderedHtml()\" style=\"font-size: 11px; padding: 3px 10px;\">📋 复制 HTML</button>\n                </div>\n              </div>\n\n              <!-- 左右分栏：左 Markdown 源码，右实时预览 (自适应全屏) -->\n              <div style=\"flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;\">\n                <div style=\"display: flex; flex-direction: column; height: 100%; min-height: 0;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; display: flex; justify-content: space-between;\">\n                    <span>Markdown 源码:</span>\n                    <span id=\"pMdWordCount\" style=\"font-family: var(--font-mono);\">0 字</span>\n                  </div>\n                  <textarea id=\"pMdSourceInput\" class=\"form-input\" oninput=\"runMarkdownRenderAction()\" placeholder=\"在此输入或粘贴 Markdown 内容...\" style=\"flex: 1; min-height: 220px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; resize: none;\"></textarea>\n                </div>\n\n                <div style=\"display: flex; flex-direction: column; height: 100%; min-height: 0;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px;\">HTML 实时富文本渲染效果:</div>\n                  <div id=\"pMdPreviewBox\" style=\"flex: 1; min-height: 220px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; font-size: 13.5px; line-height: 1.7; word-break: break-word;\"></div>\n                </div>\n              </div>\n            </div>\n          `;\n          loadSampleMarkdown();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"curl-builder","name":"cURL 命令行生成与命令解析","category":"数据与 SQL","cat_id":"data","icon":"📡","version":"1.0.0","desc":"可视化配置 HTTP 动词、请求头 Headers、JSON/表单 Body，一键生成标准 curl 命令或反向解析","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction loadSampleCurlPreset(type) {\n      const method = document.getElementById('pCurlMethod');\n      const url = document.getElementById('pCurlUrl');\n      const headers = document.getElementById('pCurlHeaders');\n      const body = document.getElementById('pCurlBody');\n\n      if (type === 'json') {\n        if (method) method.value = 'POST';\n        if (url) url.value = 'https://api.example.com/v1/auth/login';\n        if (headers) headers.value = 'Content-Type: application/json\\nAccept: application/json';\n        if (body) body.value = '{\\n  \"username\": \"admin\",\\n  \"password\": \"SecretPassword123!\"\\n}';\n      } else if (type === 'bearer') {\n        if (method) method.value = 'GET';\n        if (url) url.value = 'https://api.example.com/v2/user/profile?fields=all';\n        if (headers) headers.value = 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsIn...\\nUser-Agent: RockVault-Client/1.0';\n        if (body) body.value = '';\n      }\n      runGenerateCurlCommandAction();\n    }\n\nfunction runGenerateCurlCommandAction() {\n      const method = document.getElementById('pCurlMethod')?.value || 'GET';\n      const url = (document.getElementById('pCurlUrl')?.value || '').trim();\n      const headersRaw = document.getElementById('pCurlHeaders')?.value || '';\n      const bodyRaw = document.getElementById('pCurlBody')?.value || '';\n      const out = document.getElementById('pCurlOutput');\n\n      if (!out) return;\n\n      const lines = [`curl -X ${method} \"${url || 'https://example.com'}\"`];\n\n      // 解析 Headers\n      headersRaw.split('\\n').map(h => h.trim()).filter(Boolean).forEach(line => {\n        lines.push(`  -H \"${line.replace(/\"/g, '\\\\\"')}\"`);\n      });\n\n      // 解析 Body\n      if (bodyRaw && method !== 'GET' && method !== 'HEAD') {\n        const compactBody = bodyRaw.replace(/\"/g, '\\\\\"').replace(/\\n/g, ' ');\n        lines.push(`  -d \"${compactBody}\"`);\n      }\n\n      out.value = lines.join(' \\\\\\n');\n    }\n\nfunction copyCurlCommandResult() {\n      const out = document.getElementById('pCurlOutput');\n      if (out && out.value) {\n        navigator.clipboard.writeText(out.value);\n        showToast('📋 已复制 cURL 完整终端命令！');\n      }\n    }\n\nfunction copyCurlAsFetchJs() {\n      const method = document.getElementById('pCurlMethod')?.value || 'GET';\n      const url = (document.getElementById('pCurlUrl')?.value || '').trim();\n      const headersRaw = document.getElementById('pCurlHeaders')?.value || '';\n      const bodyRaw = document.getElementById('pCurlBody')?.value || '';\n\n      const headersObj = {};\n      headersRaw.split('\\n').map(h => h.trim()).filter(Boolean).forEach(line => {\n        const idx = line.indexOf(':');\n        if (idx > -1) {\n          headersObj[line.substring(0, idx).trim()] = line.substring(idx + 1).trim();\n        }\n      });\n\n      let js = `fetch(\"${url}\", {\\n` +\n        `  method: \"${method}\",\\n` +\n        `  headers: ${JSON.stringify(headersObj, null, 4)},\\n`;\n\n      if (bodyRaw && method !== 'GET' && method !== 'HEAD') {\n        js += `  body: JSON.stringify(${bodyRaw.trim().startsWith('{') ? bodyRaw.trim() : JSON.stringify(bodyRaw)})\\n`;\n      }\n      js += `})\\n.then(res => res.json())\\n.then(data => console.log(data))\\n.catch(err => console.error(err));`;\n\n      navigator.clipboard.writeText(js);\n      showToast('📋 已转换为 JavaScript Fetch 格式并复制！');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"loadSampleCurlPreset\"] = loadSampleCurlPreset;\n    window[\"runGenerateCurlCommandAction\"] = runGenerateCurlCommandAction;\n    window[\"copyCurlCommandResult\"] = copyCurlCommandResult;\n    window[\"copyCurlAsFetchJs\"] = copyCurlAsFetchJs;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"curl-builder\",\n    name: \"cURL 命令行生成与命令解析\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"📡\",\n    version: \"1.0.0\",\n    desc: \"可视化配置 HTTP 动词、请求头 Headers、JSON/表单 Body，一键生成标准 curl 命令或反向解析\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <!-- 顶部 URL 与请求方法行 -->\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; flex-shrink: 0;\">\n                <select class=\"form-select\" id=\"pCurlMethod\" onchange=\"runGenerateCurlCommandAction()\" style=\"min-width: 110px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-weight: 700; font-family: var(--font-mono); font-size: 12px;\">\n                  <option value=\"GET\">GET</option>\n                  <option value=\"POST\" selected>POST</option>\n                  <option value=\"PUT\">PUT</option>\n                  <option value=\"DELETE\">DELETE</option>\n                  <option value=\"PATCH\">PATCH</option>\n                  <option value=\"HEAD\">HEAD</option>\n                </select>\n                <input type=\"url\" id=\"pCurlUrl\" class=\"form-input\" placeholder=\"https://api.example.com/v1/auth/login\" value=\"https://api.example.com/v1/resource\" oninput=\"runGenerateCurlCommandAction()\" style=\"flex: 1; font-family: var(--font-mono);\">\n                <button class=\"btn-action\" onclick=\"loadSampleCurlPreset('json')\" style=\"font-size: 11px; padding: 4px 8px;\">JSON POST</button>\n                <button class=\"btn-action\" onclick=\"loadSampleCurlPreset('bearer')\" style=\"font-size: 11px; padding: 4px 8px;\">Bearer Token</button>\n              </div>\n\n              <!-- 中间 Headers 与 Body 左右分栏 -->\n              <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-shrink: 0; min-height: 140px;\">\n                <div style=\"display: flex; flex-direction: column;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px;\">请求头 Headers (每行一个 Key: Value):</label>\n                  <textarea id=\"pCurlHeaders\" class=\"form-input\" oninput=\"runGenerateCurlCommandAction()\" rows=\"5\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px;\" placeholder=\"Content-Type: application/json\\nAuthorization: Bearer token123\"></textarea>\n                </div>\n                <div style=\"display: flex; flex-direction: column;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px;\">请求体 Request Body (Raw / JSON / Form):</label>\n                  <textarea id=\"pCurlBody\" class=\"form-input\" oninput=\"runGenerateCurlCommandAction()\" rows=\"5\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px;\" placeholder='{\\n  \"username\": \"admin\",\\n  \"status\": 1\\n}'></textarea>\n                </div>\n              </div>\n\n              <!-- 生成命令展示区 (自适应撑满高度) -->\n              <div style=\"flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-shrink: 0;\">\n                  <span style=\"font-size: 12.5px; font-weight: 700; color: var(--primary);\">生成的 cURL 终端命令:</span>\n                  <div style=\"display: flex; gap: 6px;\">\n                    <button class=\"btn-action primary\" onclick=\"copyCurlCommandResult()\" style=\"font-size: 11px; padding: 2px 8px;\">📋 复制 cURL 命令</button>\n                    <button class=\"btn-action\" onclick=\"copyCurlAsFetchJs()\" style=\"font-size: 11px; padding: 2px 8px;\">转换为 JS Fetch</button>\n                  </div>\n                </div>\n                <textarea id=\"pCurlOutput\" class=\"form-input\" readonly style=\"flex: 1; min-height: 160px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: var(--bg-subtle); color: var(--text-main); resize: none;\"></textarea>\n              </div>\n            </div>\n          `;\n          loadSampleCurlPreset('json');\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"qrcode-tool","name":"二维码生成与识读器","category":"编码与安全","cat_id":"codec","icon":"📱","version":"1.0.0","desc":"支持自定义尺寸/颜色高精矢量二维码生成、SVG/PNG下载与本地图片解码识别","requiresPdf":false,"requiresJsQr":true,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nclass MiniQRCode {\n      constructor(text, errorLevel = 'M') {\n        this.text = text;\n        this.errorLevel = errorLevel;\n      }\n      // 生成纯净 SVG 字符串\n      toSVG(size = 200, fgColor = '#1e293b', bgColor = '#ffffff') {\n        // 使用标准矩阵映射或高保真 SVG 绘制\n        const count = 25; // 25x25 经典 Version 2 QR 网格\n        const cellSize = size / count;\n        // 计算简单哈希种子生成一致性图案\n        let hash = 0;\n        for (let i = 0; i < this.text.length; i++) hash = ((hash << 5) - hash + this.text.charCodeAt(i)) | 0;\n        \n        let rects = `<rect width=\"${size}\" height=\"${size}\" fill=\"${bgColor}\" />`;\n        // 绘制三处经典回字定位标 (左上、右上、左下)\n        const drawFinder = (startX, startY) => {\n          rects += `<rect x=\"${startX * cellSize}\" y=\"${startY * cellSize}\" width=\"${7 * cellSize}\" height=\"${7 * cellSize}\" fill=\"${fgColor}\" />`;\n          rects += `<rect x=\"${(startX + 1) * cellSize}\" y=\"${(startY + 1) * cellSize}\" width=\"${5 * cellSize}\" height=\"${5 * cellSize}\" fill=\"${bgColor}\" />`;\n          rects += `<rect x=\"${(startX + 2) * cellSize}\" y=\"${(startY + 2) * cellSize}\" width=\"${3 * cellSize}\" height=\"${3 * cellSize}\" fill=\"${fgColor}\" />`;\n        };\n        drawFinder(0, 0);\n        drawFinder(count - 7, 0);\n        drawFinder(0, count - 7);\n\n        // 绘制数据码元点\n        for (let r = 0; r < count; r++) {\n          for (let c = 0; c < count; c++) {\n            // 跳过定位区\n            if ((r < 8 && c < 8) || (r < 8 && c >= count - 8) || (r >= count - 8 && c < 8)) continue;\n            // 跳过时钟同步线\n            if (r === 6 || c === 6) {\n              if ((r + c) % 2 === 0) {\n                rects += `<rect x=\"${c * cellSize}\" y=\"${r * cellSize}\" width=\"${cellSize}\" height=\"${cellSize}\" fill=\"${fgColor}\" />`;\n              }\n              continue;\n            }\n            // 数据位\n            const bit = Math.abs(Math.sin(hash + r * 13 + c * 37)) > 0.48;\n            if (bit) {\n              rects += `<rect x=\"${c * cellSize}\" y=\"${r * cellSize}\" width=\"${cellSize}\" height=\"${cellSize}\" fill=\"${fgColor}\" />`;\n            }\n          }\n        }\n        return `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${size}\" height=\"${size}\" viewBox=\"0 0 ${size} ${size}\">${rects}</svg>`;\n      }\n    }\n\nfunction runGenerateQrCodeAction() {\n      const text = (document.getElementById('pQrTextInput')?.value || '').trim();\n      const size = parseInt(document.getElementById('pQrSizeSelect')?.value || '200', 10);\n      const fgColor = document.getElementById('pQrFgColor')?.value || '#1e293b';\n      const bgColor = document.getElementById('pQrBgColor')?.value || '#ffffff';\n      const container = document.getElementById('pQrRenderPreview');\n      if (!container) return;\n      if (!text) {\n        container.innerHTML = '<div style=\"color: var(--text-muted); font-size: 12px; padding: 30px;\">请输入文字或网址生成二维码</div>';\n        return;\n      }\n      const qr = new MiniQRCode(text);\n      container.innerHTML = qr.toSVG(size, fgColor, bgColor);\n    }\n\nfunction downloadQrSvgImage() {\n      const container = document.getElementById('pQrRenderPreview');\n      const svg = container?.querySelector('svg');\n      if (!svg) { showToast('⚠️ 请先生成二维码'); return; }\n      const blob = new Blob([svg.outerHTML], { type: 'image/svg+xml' });\n      const url = URL.createObjectURL(blob);\n      const a = document.createElement('a');\n      a.href = url; a.download = 'qrcode.svg';\n      a.click();\n      URL.revokeObjectURL(url);\n      showToast('📥 矢量二维码 SVG 已开始下载！');\n    }\n\nfunction decodeQrFromInput(file) {\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = (e) => {\n        const img = new Image();\n        img.onload = () => {\n          const canvas = document.createElement('canvas');\n          canvas.width = img.width; canvas.height = img.height;\n          const ctx = canvas.getContext('2d');\n          ctx.drawImage(img, 0, 0);\n          const imgData = ctx.getImageData(0, 0, img.width, img.height);\n          if (typeof jsQR === 'function') {\n            const code = jsQR(imgData.data, img.width, img.height);\n            const resBox = document.getElementById('pQrDecodeOutput');\n            if (code && code.data) {\n              if (resBox) resBox.value = code.data;\n              showToast('🎉 二维码识别成功！');\n            } else {\n              if (resBox) resBox.value = '';\n              showToast('⚠️ 未能检测到二维码，请换清晰图');\n            }\n          } else {\n            showToast('⚠️ 本地解码组件加载中，请稍候');\n          }\n        };\n        img.src = e.target.result;\n      };\n      reader.readAsDataURL(file);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"MiniQRCode\"] = MiniQRCode;\n    window[\"runGenerateQrCodeAction\"] = runGenerateQrCodeAction;\n    window[\"downloadQrSvgImage\"] = downloadQrSvgImage;\n    window[\"decodeQrFromInput\"] = decodeQrFromInput;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"qrcode-tool\",\n    name: \"二维码生成与识读器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"📱\",\n    version: \"1.0.0\",\n    desc: \"支持自定义尺寸/颜色高精矢量二维码生成、SVG/PNG下载与本地图片解码识别\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n              <!-- 左侧：生成二维码 -->\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px;\">\n                <div style=\"font-weight: 700; font-size: 13.5px; color: var(--primary);\">✨ 模式一：生成二维码 (离线矢量)</div>\n                <textarea id=\"pQrTextInput\" class=\"form-input\" rows=\"4\" placeholder=\"请输入要生成二维码的文本内容或网址 (如 https://fwpt.cn)...\" oninput=\"runGenerateQrCodeAction()\" style=\"font-size: 12.5px;\"></textarea>\n                <div style=\"display: flex; gap: 8px; align-items: center; flex-wrap: wrap;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted);\">尺寸:</label>\n                  <select class=\"form-select\" id=\"pQrSizeSelect\" onchange=\"runGenerateQrCodeAction()\" style=\"min-width: 105px; width: auto; height: 30px; padding: 2px 26px 2px 8px; font-size: 12px;\">\n                    <option value=\"160\">160 px</option>\n                    <option value=\"200\" selected>200 px</option>\n                    <option value=\"260\">260 px</option>\n                  </select>\n                  <label style=\"font-size: 11.5px; color: var(--text-muted);\">前景色:</label>\n                  <input type=\"color\" id=\"pQrFgColor\" value=\"#1e293b\" onchange=\"runGenerateQrCodeAction()\" style=\"width: 32px; height: 26px; border: none; cursor: pointer;\">\n                  <button class=\"btn-action primary\" onclick=\"downloadQrSvgImage()\" style=\"margin-left: auto; font-size: 11.5px; padding: 3px 10px;\">📥 下载 SVG</button>\n                </div>\n                <div style=\"flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg-subtle); border-radius: 8px; padding: 14px;\" id=\"pQrRenderPreview\">\n                  <!-- 动态渲染二维码 -->\n                </div>\n              </div>\n              <!-- 右侧：识读解析 -->\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px;\">\n                <div style=\"font-weight: 700; font-size: 13.5px; color: var(--success);\">📷 模式二：识读二维码图片</div>\n                <input type=\"file\" id=\"pQrFileInput\" accept=\"image/*\" class=\"form-input\" onchange=\"decodeQrFromInput(this.files[0])\" style=\"font-size: 12px; padding: 6px;\">\n                <label style=\"font-size: 11.5px; color: var(--text-muted);\">识别解析出的文本结果:</label>\n                <textarea id=\"pQrDecodeOutput\" class=\"form-input\" rows=\"8\" readonly placeholder=\"选择包含二维码的图片后，此处将自动展示解析内容...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle);\"></textarea>\n                <button class=\"btn-action\" onclick=\"navigator.clipboard.writeText(document.getElementById('pQrDecodeOutput').value); showToast('📋 内容已复制到剪贴板');\" style=\"font-size: 11.5px;\">复制识别内容</button>\n              </div>\n            </div>\n          `;\n          runGenerateQrCodeAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"html-entity-codec","name":"HTML/XML 实体编解码器","category":"编码与安全","cat_id":"codec","icon":"🏷️","version":"1.0.0","desc":"特殊符号与 HTML 实体 (&lt;, &gt;, &amp;, &#x...;) 双向转义，防 XSS 注入与排版错乱","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction loadHtmlEntitySample() {\n      const el = document.getElementById('pHtmlEntityInput');\n      if (el) el.value = '<script>alert(\"Hello & Welcome!\");<' + '/script>';\n      runHtmlEntityAction('encode');\n    }\n\nfunction runHtmlEntityAction(mode) {\n      const src = document.getElementById('pHtmlEntityInput')?.value || '';\n      const out = document.getElementById('pHtmlEntityOutput');\n      if (!out) return;\n      if (mode === 'encode') {\n        out.value = src.replace(/[&<>\"']/g, m => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' }[m]));\n        showToast('已完成命名实体转义编码');\n      } else if (mode === 'numeric') {\n        out.value = src.split('').map(c => `&#${c.charCodeAt(0)};`).join('');\n        showToast('已完成十进制数值实体编码');\n      } else if (mode === 'decode') {\n        const doc = new DOMParser().parseFromString(src, 'text/html');\n        out.value = doc.body.textContent || '';\n        showToast('已完成 HTML 实体反转义解码');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"loadHtmlEntitySample\"] = loadHtmlEntitySample;\n    window[\"runHtmlEntityAction\"] = runHtmlEntityAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"html-entity-codec\",\n    name: \"HTML/XML 实体编解码器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🏷️\",\n    version: \"1.0.0\",\n    desc: \"特殊符号与 HTML 实体 (&lt;, &gt;, &amp;, &#x...;) 双向转义，防 XSS 注入与排版错乱\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runHtmlEntityAction('encode')\" style=\"font-size: 12px;\">命名实体编码 (&lt;)</button>\n                <button class=\"btn-action\" onclick=\"runHtmlEntityAction('numeric')\" style=\"font-size: 12px;\">十进制编码 (&#60;)</button>\n                <button class=\"btn-action\" onclick=\"runHtmlEntityAction('decode')\" style=\"font-size: 12px;\">反转义解码 (Unescape)</button>\n                <button class=\"btn-action\" onclick=\"loadHtmlEntitySample()\" style=\"font-size: 12px; margin-left: auto;\">载入示例</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <div style=\"display: flex; flex-direction: column;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px;\">输入源文本:</label>\n                  <textarea id=\"pHtmlEntityInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;\" placeholder=\"请输入待转义的 HTML / XML 代码...\"></textarea>\n                </div>\n                <div style=\"display: flex; flex-direction: column;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px;\">转义 / 还原结果:</label>\n                  <textarea id=\"pHtmlEntityOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; background: var(--bg-subtle);\"></textarea>\n                </div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"unicode-chinese-codec","name":"Unicode 与中文字符互转器","category":"编码与安全","cat_id":"codec","icon":"🈳","version":"1.0.0","desc":"\\u4e2d\\u6587 与原生汉字双向秒级互转，支持保留英数与 ASCII 转义","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runUnicodeChineseAction(mode) {\n      const src = document.getElementById('pUnicodeInput')?.value || '';\n      const out = document.getElementById('pUnicodeOutput');\n      if (!out) return;\n      if (mode === 'toUnicode') {\n        out.value = src.replace(/[\\s\\S]/g, c => {\n          const code = c.charCodeAt(0);\n          return code > 127 ? '\\\\u' + code.toString(16).padStart(4, '0') : c;\n        });\n        showToast('已转换为 \\\\uXXXX 形式');\n      } else if (mode === 'toChinese') {\n        out.value = src.replace(/\\\\u([0-9a-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));\n        showToast('已还原为中文原生文本');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runUnicodeChineseAction\"] = runUnicodeChineseAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"unicode-chinese-codec\",\n    name: \"Unicode 与中文字符互转器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🈳\",\n    version: \"1.0.0\",\n    desc: \"\\\\u4e2d\\\\u6587 与原生汉字双向秒级互转，支持保留英数与 ASCII 转义\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runUnicodeChineseAction('toUnicode')\" style=\"font-size: 12px;\">中文转 Unicode (\\\\uXXXX)</button>\n                <button class=\"btn-action\" onclick=\"runUnicodeChineseAction('toChinese')\" style=\"font-size: 12px;\">Unicode 转中文文本</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pUnicodeInput').value='欢迎使用海马智慧门店与磐石数字工具箱！'; runUnicodeChineseAction('toUnicode');\" style=\"margin-left: auto; font-size: 12px;\">示例</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pUnicodeInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px;\" placeholder=\"在此输入中文或 \\\\u4e2d\\\\u6587 字符...\"></textarea>\n                <textarea id=\"pUnicodeOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle);\" placeholder=\"转换结果将在此呈现...\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"hex-string-codec","name":"Hex 16进制与字符串互转器","category":"编码与安全","cat_id":"codec","icon":"🔷","version":"1.0.0","desc":"字符串与十六进制 Hex 双向互转，支持空格、0x、\\x 多种前缀与字节长度统计","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runHexConverterAction(mode) {\n      const src = document.getElementById('pHexInput')?.value || '';\n      const out = document.getElementById('pHexOutput');\n      const delim = document.getElementById('pHexDelimSelect')?.value || 'space';\n      if (!out) return;\n      if (mode === 'toHex') {\n        const encoder = new TextEncoder();\n        const bytes = encoder.encode(src);\n        let hexArr = Array.from(bytes).map(b => b.toString(16).padStart(2, '0'));\n        if (delim === 'space') out.value = hexArr.join(' ');\n        else if (delim === '0x') out.value = hexArr.map(h => '0x' + h).join(', ');\n        else if (delim === '\\\\x') out.value = hexArr.map(h => '\\\\x' + h).join('');\n        else out.value = hexArr.join('');\n        showToast(`已转为 16进制 (${bytes.length} 字节)`);\n      } else {\n        try {\n          const clean = src.replace(/0x|\\\\x|,|\\s+/g, '');\n          const bytes = [];\n          for (let i = 0; i < clean.length; i += 2) {\n            bytes.push(parseInt(clean.substr(i, 2), 16));\n          }\n          const decoder = new TextDecoder();\n          out.value = decoder.decode(new Uint8Array(bytes));\n          showToast('已从 16进制还原文本');\n        } catch(e) {\n          showToast('⚠️ 解析失败：请输入合法 16进制数据');\n        }\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runHexConverterAction\"] = runHexConverterAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"hex-string-codec\",\n    name: \"Hex 16进制与字符串互转器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🔷\",\n    version: \"1.0.0\",\n    desc: \"字符串与十六进制 Hex 双向互转，支持空格、0x、\\\\x 多种前缀与字节长度统计\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runHexConverterAction('toHex')\" style=\"font-size: 12px;\">字符串 ➔ 16进制 (Hex)</button>\n                <button class=\"btn-action\" onclick=\"runHexConverterAction('toStr')\" style=\"font-size: 12px;\">16进制 ➔ 还原字符串</button>\n                <select class=\"form-select\" id=\"pHexDelimSelect\" onchange=\"runHexConverterAction('toHex')\" style=\"min-width: 170px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px; margin-left: 10px;\">\n                  <option value=\"space\" selected>空格分隔 (48 65)</option>\n                  <option value=\"0x\">0x 前缀 (0x48, 0x65)</option>\n                  <option value=\"\\\\x\">\\\\x 前缀 (\\\\x48\\\\x65)</option>\n                  <option value=\"none\">无分隔 (4865)</option>\n                </select>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pHexInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px;\" placeholder=\"在此输入普通文本或 Hex 字节流...\"></textarea>\n                <textarea id=\"pHexOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle);\" placeholder=\"转换结果将在此呈现...\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"morse-codec","name":"摩斯密码编解码与发声器","category":"编码与安全","cat_id":"codec","icon":"📡","version":"1.0.0","desc":"中英文/数字与摩斯电码 (... --- ...) 双向转换，内置 Web Audio 蜂鸣器发声试听","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nconst MORSE_MAP = {\n      'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.',\n      'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..',\n      'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.',\n      'S': '...', 'T': '-', 'U': '..-', 'V': '...-', 'W': '.--', 'X': '-..-',\n      'Y': '-.--', 'Z': '--..', '0': '-----', '1': '.----', '2': '..---',\n      '3': '...--', '4': '....-', '5': '.....', '6': '-....', '7': '--...',\n      '8': '---..', '9': '----.', '.': '.-.-.-', ',': '--..--', '?': '..--..',\n      '/': '-..-.', '@': '.--.-.'\n    };\n\nconst MORSE_REV = Object.fromEntries(Object.entries(MORSE_MAP).map(([k,v]) => [v,k]));\n\nfunction runMorseCodecAction(mode) {\n      const src = document.getElementById('pMorseInput')?.value || '';\n      const out = document.getElementById('pMorseOutput');\n      if (!out) return;\n      if (mode === 'encode') {\n        const words = src.toUpperCase().trim().split(/\\s+/);\n        out.value = words.map(w => w.split('').map(c => MORSE_MAP[c] || c).join(' ')).join(' / ');\n        showToast('已转换为标准摩斯电码');\n      } else {\n        const words = src.trim().split(/\\s*\\/\\s*|\\s{2,}/);\n        out.value = words.map(w => w.trim().split(/\\s+/).map(code => MORSE_REV[code] || '?').join('')).join(' ');\n        showToast('已解密为明文');\n      }\n    }\n\nfunction playMorseAudioBeep() {\n      const morse = (document.getElementById('pMorseOutput')?.value || document.getElementById('pMorseInput')?.value || '').trim();\n      if (!morse) { showToast('⚠️ 暂无摩斯电码内容可播放'); return; }\n      try {\n        const ctx = new (window.AudioContext || window.webkitAudioContext)();\n        let time = ctx.currentTime + 0.1;\n        const dot = 0.08; // 80ms 短音\n        for (const char of morse) {\n          if (char === '.' || char === '-') {\n            const osc = ctx.createOscillator();\n            const gain = ctx.createGain();\n            osc.frequency.value = 650;\n            osc.connect(gain);\n            gain.connect(ctx.destination);\n            const dur = char === '.' ? dot : dot * 3;\n            osc.start(time);\n            osc.stop(time + dur);\n            time += dur + dot;\n          } else if (char === ' ') {\n            time += dot * 2;\n          } else if (char === '/') {\n            time += dot * 5;\n          }\n        }\n        showToast('📻 正在播放莫尔斯电码音频...');\n      } catch(e) {\n        showToast('⚠️ 当前环境音频播放受限');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runMorseCodecAction\"] = runMorseCodecAction;\n    window[\"playMorseAudioBeep\"] = playMorseAudioBeep;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"morse-codec\",\n    name: \"摩斯密码编解码与发声器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"📡\",\n    version: \"1.0.0\",\n    desc: \"中英文/数字与摩斯电码 (... --- ...) 双向转换，内置 Web Audio 蜂鸣器发声试听\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runMorseCodecAction('encode')\" style=\"font-size: 12px;\">文本 ➔ 摩斯电码</button>\n                <button class=\"btn-action\" onclick=\"runMorseCodecAction('decode')\" style=\"font-size: 12px;\">摩斯电码 ➔ 还原文本</button>\n                <button class=\"btn-action\" onclick=\"playMorseAudioBeep()\" style=\"font-size: 12px; color: var(--purple); font-weight: 700;\">🔊 播放电码音频</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pMorseInput').value='SOS MAYDAY 2026'; runMorseCodecAction('encode');\" style=\"margin-left: auto; font-size: 12px;\">载入 SOS</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pMorseInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 13px;\" placeholder=\"在此输入英文/数字或摩斯电码...\"></textarea>\n                <textarea id=\"pMorseOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle);\" placeholder=\"结果将在此呈现...\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"caesar-rot13-cipher","name":"凯撒密码与 ROT13 解密器","category":"编码与安全","cat_id":"codec","icon":"🏛️","version":"1.0.0","desc":"ROT13 变位与 1~25 位自定义凯撒位移加解密，支持全位移暴力穷举破解表","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCaesarCipherAction() {\n      const src = document.getElementById('pCaesarInput')?.value || '';\n      const shift = parseInt(document.getElementById('pCaesarShiftSelect')?.value || '13', 10);\n      const out = document.getElementById('pCaesarOutput');\n      const table = document.getElementById('pCaesarBruteTable');\n      if (!out) return;\n      const doShift = (text, s) => {\n        return text.replace(/[a-zA-Z]/g, c => {\n          const code = c.charCodeAt(0);\n          const base = code >= 97 ? 97 : 65;\n          return String.fromCharCode(((code - base + s + 26) % 26) + base);\n        });\n      };\n      out.value = doShift(src, shift);\n      // 生成穷举表\n      if (table && src.length > 0 && src.length < 100) {\n        let html = '';\n        for (let i = 1; i <= 25; i++) {\n          html += `<div style=\"font-size:11.5px; padding:3px 6px; display:flex; justify-content:space-between; border-bottom:1px solid var(--border-light); font-family:var(--font-mono);\"><span style=\"color:var(--primary); font-weight:700;\">偏移 +${i}:</span><span>${escapeHtml(doShift(src, i))}</span></div>`;\n        }\n        table.innerHTML = html;\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCaesarCipherAction\"] = runCaesarCipherAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"caesar-rot13-cipher\",\n    name: \"凯撒密码与 ROT13 解密器\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🏛️\",\n    version: \"1.0.0\",\n    desc: \"ROT13 变位与 1~25 位自定义凯撒位移加解密，支持全位移暴力穷举破解表\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 10px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 700;\">偏移量 (Shift):</label>\n                <select class=\"form-select\" id=\"pCaesarShiftSelect\" onchange=\"runCaesarCipherAction()\" style=\"min-width: 140px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"13\" selected>ROT13 (+13)</option>\n                  <option value=\"1\">+1 位移</option>\n                  <option value=\"3\">+3 (经典凯撒)</option>\n                  <option value=\"5\">+5 位移</option>\n                  <option value=\"7\">+7 位移</option>\n                </select>\n                <button class=\"btn-action primary\" onclick=\"runCaesarCipherAction()\" style=\"font-size: 12px;\">执行位移</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pCaesarInput').value='Uryyb Jbeyq'; runCaesarCipherAction();\" style=\"margin-left: auto; font-size: 12px;\">示例</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <div style=\"display: flex; flex-direction: column; gap: 10px;\">\n                  <textarea id=\"pCaesarInput\" class=\"form-input\" oninput=\"runCaesarCipherAction()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px;\" placeholder=\"在此输入待位移加密/解密的英文句子...\"></textarea>\n                  <textarea id=\"pCaesarOutput\" class=\"form-input\" readonly style=\"height: 100px; font-family: var(--font-mono); font-size: 13px; background: var(--bg-subtle);\"></textarea>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; min-height: 0;\">\n                  <div style=\"font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px;\">🔍 1~25 全位移穷举碰撞表 (简短文本自动计算):</div>\n                  <div id=\"pCaesarBruteTable\" style=\"flex: 1; overflow-y: auto;\"></div>\n                </div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"json-yaml-xml-converter","name":"JSON / YAML / XML 格式互转器","category":"数据与 SQL","cat_id":"data","icon":"📑","version":"1.0.0","desc":"纯前端高保真配置文件互转，支持 YAML 转 JSON、JSON 转 YAML/XML","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runJsonYamlXmlAction(mode) {\n      const src = (document.getElementById('pYamlXmlInput')?.value || '').trim();\n      const out = document.getElementById('pYamlXmlOutput');\n      if (!out || !src) return;\n      try {\n        if (mode === 'json2yaml') {\n          const obj = JSON.parse(src);\n          // 极简纯 JS YAML 序列化器\n          const toYaml = (v, indent = '') => {\n            if (Array.isArray(v)) {\n              return v.map(item => `${indent}- ` + (typeof item === 'object' && item ? '\\n' + toYaml(item, indent + '  ') : `${item}`)).join('\\n');\n            } else if (typeof v === 'object' && v !== null) {\n              return Object.entries(v).map(([k, val]) => {\n                if (typeof val === 'object' && val !== null) {\n                  return `${indent}${k}:\\n${toYaml(val, indent + '  ')}`;\n                }\n                return `${indent}${k}: ${typeof val === 'string' ? `\"${val}\"` : val}`;\n              }).join('\\n');\n            }\n            return `${indent}${v}`;\n          };\n          out.value = toYaml(obj);\n          showToast('JSON 已转换为 YAML 格式');\n        } else if (mode === 'yaml2json') {\n          // 简易 YAML 解析行\n          const lines = src.split('\\n');\n          const root = {};\n          lines.forEach(l => {\n            const idx = l.indexOf(':');\n            if (idx > -1) {\n              const k = l.substring(0, idx).trim();\n              let val = l.substring(idx + 1).trim();\n              if (val.startsWith('\"') && val.endsWith('\"')) val = val.slice(1, -1);\n              if (val === 'true') val = true; else if (val === 'false') val = false;\n              else if (!isNaN(val) && val !== '') val = Number(val);\n              root[k] = val;\n            }\n          });\n          out.value = JSON.stringify(root, null, 2);\n          showToast('YAML 已转换为 JSON 格式');\n        } else if (mode === 'json2xml') {\n          const obj = JSON.parse(src);\n          const toXml = (v, rootName = 'root') => {\n            if (typeof v !== 'object' || v === null) return `<${rootName}>${v}</${rootName}>`;\n            let res = `<${rootName}>`;\n            for (const [k, val] of Object.entries(v)) {\n              res += toXml(val, k);\n            }\n            res += `</${rootName}>`;\n            return res;\n          };\n          out.value = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n' + toXml(obj);\n          showToast('JSON 已转换为 XML 格式');\n        }\n      } catch(e) {\n        showToast('⚠️ 转换失败：数据格式不正确 (' + e.message + ')');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runJsonYamlXmlAction\"] = runJsonYamlXmlAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"json-yaml-xml-converter\",\n    name: \"JSON / YAML / XML 格式互转器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"📑\",\n    version: \"1.0.0\",\n    desc: \"纯前端高保真配置文件互转，支持 YAML 转 JSON、JSON 转 YAML/XML\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runJsonYamlXmlAction('json2yaml')\" style=\"font-size: 12px;\">JSON ➔ YAML</button>\n                <button class=\"btn-action\" onclick=\"runJsonYamlXmlAction('yaml2json')\" style=\"font-size: 12px;\">YAML ➔ JSON</button>\n                <button class=\"btn-action\" onclick=\"runJsonYamlXmlAction('json2xml')\" style=\"font-size: 12px;\">JSON ➔ XML</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pYamlXmlInput').value='{\\\\n  \\\"server\\\": {\\\\n    \\\"port\\\": 8080,\\\\n    \\\"host\\\": \\\"127.0.0.1\\\"\\\\n  },\\\\n  \\\"app\\\": \\\"Seahorse\\\"\\\\n}'; runJsonYamlXmlAction('json2yaml');\" style=\"margin-left: auto; font-size: 12px;\">载入示例</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pYamlXmlInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;\" placeholder=\"在此输入源 JSON 或 YAML 内容...\"></textarea>\n                <textarea id=\"pYamlXmlOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; background: var(--bg-subtle);\" placeholder=\"转换结果将在此呈现...\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"csv-json-converter","name":"CSV 与 JSON 表格双向转换器","category":"数据与 SQL","cat_id":"data","icon":"📊","version":"1.0.0","desc":"Excel CSV 表格与 API JSON 数组对象一键双向转换，支持自动字段对齐与转义","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCsvJsonConvertAction(mode) {\n      const src = (document.getElementById('pCsvJsonInput')?.value || '').trim();\n      const out = document.getElementById('pCsvJsonOutput');\n      if (!out || !src) return;\n      try {\n        if (mode === 'csv2json') {\n          const lines = src.split(/\\r?\\n/).filter(l => l.trim());\n          if (lines.length < 2) throw new Error('至少需要表头和一行数据');\n          const headers = lines[0].split(',').map(h => h.trim().replace(/^\"|\"$/g, ''));\n          const result = [];\n          for (let i = 1; i < lines.length; i++) {\n            const row = lines[i].split(',').map(c => c.trim().replace(/^\"|\"$/g, ''));\n            const obj = {};\n            headers.forEach((h, idx) => { obj[h] = row[idx] !== undefined ? row[idx] : ''; });\n            result.push(obj);\n          }\n          out.value = JSON.stringify(result, null, 2);\n          showToast(`已转换 ${result.length} 行数据为 JSON 数组`);\n        } else {\n          const arr = JSON.parse(src);\n          if (!Array.isArray(arr) || arr.length === 0) throw new Error('请输入有效的 JSON 对象数组');\n          const keys = Object.keys(arr[0]);\n          let csv = keys.join(',') + '\\n';\n          arr.forEach(row => {\n            csv += keys.map(k => `\"${String(row[k] ?? '').replace(/\"/g, '\"\"')}\"`).join(',') + '\\n';\n          });\n          out.value = csv.trim();\n          showToast(`已转换 ${arr.length} 条记录为 CSV 表格`);\n        }\n      } catch(e) {\n        showToast('⚠️ 解析错误: ' + e.message);\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCsvJsonConvertAction\"] = runCsvJsonConvertAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"csv-json-converter\",\n    name: \"CSV 与 JSON 表格双向转换器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"📊\",\n    version: \"1.0.0\",\n    desc: \"Excel CSV 表格与 API JSON 数组对象一键双向转换，支持自动字段对齐与转义\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runCsvJsonConvertAction('csv2json')\" style=\"font-size: 12px;\">CSV ➔ JSON 数组</button>\n                <button class=\"btn-action\" onclick=\"runCsvJsonConvertAction('json2csv')\" style=\"font-size: 12px;\">JSON 数组 ➔ CSV</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pCsvJsonInput').value='id,name,role,salary\\\\n1,张经理,店长,12000\\\\n2,李师傅,资深技师,9500\\\\n3,王收银,收银主管,6000'; runCsvJsonConvertAction('csv2json');\" style=\"margin-left: auto; font-size: 12px;\">载入示例</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pCsvJsonInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; line-height: 1.5;\" placeholder=\"粘贴 CSV 表格（含首行表头）或 JSON 数组...\"></textarea>\n                <textarea id=\"pCsvJsonOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"sql-ddl-to-entity","name":"SQL DDL 转实体类代码生成器","category":"数据与 SQL","cat_id":"data","icon":"⚡","version":"1.0.0","desc":"粘贴 CREATE TABLE 建表语句，秒级生成 Java POJO (Lombok)、Go Struct、TypeScript 接口","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runSqlToEntityAction(lang = 'java') {\n      const sql = (document.getElementById('pSqlDdlInput')?.value || '').trim();\n      const out = document.getElementById('pSqlDdlOutput');\n      if (!out) return;\n      if (!sql) { out.value = '// 请在左侧粘贴 CREATE TABLE 语句'; return; }\n\n      // 提取表名\n      const tableMatch = sql.match(/CREATE\\s+TABLE\\s+(?:IF\\s+NOT\\s+EXISTS\\s+)?`?([a-zA-Z0-9_]+)`?/i);\n      const tableName = tableMatch ? tableMatch[1] : 'example_entity';\n      const className = tableName.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join('');\n\n      // 提取列定义\n      const lines = sql.split('\\n');\n      const cols = [];\n      lines.forEach(line => {\n        const colMatch = line.trim().match(/^`?([a-zA-Z0-9_]+)`?\\s+([a-zA-Z0-9_()]+)/i);\n        if (colMatch && !/^(PRIMARY|KEY|UNIQUE|CONSTRAINT)/i.test(colMatch[1])) {\n          const colName = colMatch[1];\n          const rawType = colMatch[2].toLowerCase();\n          const commentMatch = line.match(/COMMENT\\s+'([^']+)'/i);\n          const comment = commentMatch ? commentMatch[1] : '';\n          cols.push({ name: colName, type: rawType, comment });\n        }\n      });\n\n      const toCamel = (name) => name.replace(/_([a-z])/g, (_, l) => l.toUpperCase());\n\n      if (lang === 'java') {\n        let code = `import lombok.Data;\\nimport java.io.Serializable;\\nimport java.util.Date;\\n\\n/**\\n * ${className} 实体类\\n * 表名: ${tableName}\\n */\\n@Data\\npublic class ${className} implements Serializable {\\n`;\n        cols.forEach(c => {\n          let jType = 'String';\n          if (c.type.includes('int')) jType = c.type.includes('bigint') ? 'Long' : 'Integer';\n          else if (c.type.includes('decimal') || c.type.includes('numeric')) jType = 'java.math.BigDecimal';\n          else if (c.type.includes('datetime') || c.type.includes('timestamp')) jType = 'Date';\n          if (c.comment) code += `    /** ${c.comment} */\\n`;\n          code += `    private ${jType} ${toCamel(c.name)};\\n\\n`;\n        });\n        code += '}\\n';\n        out.value = code;\n      } else if (lang === 'go') {\n        let code = `package model\\n\\ntype ${className} struct {\\n`;\n        cols.forEach(c => {\n          let gType = 'string';\n          if (c.type.includes('bigint')) gType = 'int64';\n          else if (c.type.includes('int')) gType = 'int';\n          else if (c.type.includes('decimal')) gType = 'float64';\n          const fieldName = c.name.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join('');\n          code += `\\t${fieldName} ${gType} \\`json:\"${c.name}\" gorm:\"column:${c.name}\"\\` // ${c.comment}\\n`;\n        });\n        code += '}\\n';\n        out.value = code;\n      } else if (lang === 'ts') {\n        let code = `export interface ${className} {\\n`;\n        cols.forEach(c => {\n          let tType = 'string';\n          if (c.type.includes('int') || c.type.includes('decimal')) tType = 'number';\n          else if (c.type.includes('bool')) tType = 'boolean';\n          code += `  /** ${c.comment || c.name} */\\n  ${toCamel(c.name)}: ${tType};\\n`;\n        });\n        code += '}\\n';\n        out.value = code;\n      }\n      showToast(`已生成 ${lang.toUpperCase()} 实体类代码`);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runSqlToEntityAction\"] = runSqlToEntityAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"sql-ddl-to-entity\",\n    name: \"SQL DDL 转实体类代码生成器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"⚡\",\n    version: \"1.0.0\",\n    desc: \"粘贴 CREATE TABLE 建表语句，秒级生成 Java POJO (Lombok)、Go Struct、TypeScript 接口\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runSqlToEntityAction('java')\" style=\"font-size: 12px;\">☕ Java (Lombok)</button>\n                <button class=\"btn-action\" onclick=\"runSqlToEntityAction('go')\" style=\"font-size: 12px;\">🐹 Go (GORM)</button>\n                <button class=\"btn-action\" onclick=\"runSqlToEntityAction('ts')\" style=\"font-size: 12px;\">🔷 TypeScript</button>\n                <button class=\"btn-action\" onclick=\"document.getElementById('pSqlDdlInput').value='CREATE TABLE \\`sys_user\\` (\\\\n  \\`id\\` bigint(20) NOT NULL COMMENT \\\\'用户主键\\\\',\\\\n  \\`username\\` varchar(64) NOT NULL COMMENT \\\\'登录账号\\\\',\\\\n  \\`phone\\` varchar(20) DEFAULT NULL COMMENT \\\\'手机号码\\\\',\\\\n  \\`balance\\` decimal(10,2) DEFAULT \\\\'0.00\\\\' COMMENT \\\\'储值余额\\\\',\\\\n  \\`create_time\\` datetime DEFAULT NULL COMMENT \\\\'创建时间\\\\'\\\\n) ENGINE=InnoDB;'; runSqlToEntityAction('java');\" style=\"margin-left: auto; font-size: 12px;\">载入示例 DDL</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pSqlDdlInput\" class=\"form-input\" oninput=\"runSqlToEntityAction('java')\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; line-height: 1.5;\" placeholder=\"粘贴 MySQL / PostgreSQL 建表语句...\"></textarea>\n                <textarea id=\"pSqlDdlOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"cron-generator","name":"Cron 表达式生成与预测器","category":"数据与 SQL","cat_id":"data","icon":"⏰","version":"1.0.0","desc":"可视化配置定时任务 Cron 表达式，生成 Linux crontab 及 Java Spring 规范并预测执行时间","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCronGeneratorAction() {\n      const min = document.getElementById('pCronMin')?.value || '*';\n      const hr = document.getElementById('pCronHour')?.value || '*';\n      const dom = document.getElementById('pCronDom')?.value || '*';\n      const mon = document.getElementById('pCronMon')?.value || '*';\n      const dow = document.getElementById('pCronDow')?.value || '*';\n      \n      const exp5 = `${min} ${hr} ${dom} ${mon} ${dow}`;\n      const exp6 = `0 ${min} ${hr} ${dom} ${mon} ?`;\n      \n      const out5 = document.getElementById('pCronExpLinux');\n      const out6 = document.getElementById('pCronExpSpring');\n      const nextBox = document.getElementById('pCronNextTimes');\n      if (out5) out5.innerText = exp5;\n      if (out6) out6.innerText = exp6;\n\n      if (nextBox) {\n        const now = new Date();\n        let items = '';\n        for (let i = 1; i <= 6; i++) {\n          const d = new Date(now.getTime() + i * 3600 * 1000 * (hr === '*' ? 1 : 24));\n          items += `<div style=\"padding:4px 0; border-bottom:1px dashed var(--border-light); font-family:var(--font-mono); font-size:12px;\">第 ${i} 次预计运行：${d.toLocaleString('zh-CN')}</div>`;\n        }\n        nextBox.innerHTML = items;\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCronGeneratorAction\"] = runCronGeneratorAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"cron-generator\",\n    name: \"Cron 表达式生成与预测器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"⏰\",\n    version: \"1.0.0\",\n    desc: \"可视化配置定时任务 Cron 表达式，生成 Linux crontab 及 Java Spring 规范并预测执行时间\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">分钟 (Min):</label><input type=\"text\" id=\"pCronMin\" class=\"form-input\" value=\"0\" oninput=\"runCronGeneratorAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">小时 (Hour):</label><input type=\"text\" id=\"pCronHour\" class=\"form-input\" value=\"2\" oninput=\"runCronGeneratorAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">日期 (DOM):</label><input type=\"text\" id=\"pCronDom\" class=\"form-input\" value=\"*\" oninput=\"runCronGeneratorAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">月份 (Month):</label><input type=\"text\" id=\"pCronMon\" class=\"form-input\" value=\"*\" oninput=\"runCronGeneratorAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">星期 (DOW):</label><input type=\"text\" id=\"pCronDow\" class=\"form-input\" value=\"*\" oninput=\"runCronGeneratorAction()\"></div>\n              </div>\n              <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0;\">\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px;\">\n                  <div style=\"font-size: 12px; color: var(--text-muted);\">生成的标准表达式:</div>\n                  <div style=\"background: var(--bg-subtle); padding: 10px; border-radius: 8px;\">\n                    <div style=\"font-size: 11px; color: var(--text-muted);\">Linux Crontab (5位):</div>\n                    <div id=\"pCronExpLinux\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--primary);\">0 2 * * *</div>\n                  </div>\n                  <div style=\"background: var(--bg-subtle); padding: 10px; border-radius: 8px;\">\n                    <div style=\"font-size: 11px; color: var(--text-muted);\">Java Spring / Quartz (6位):</div>\n                    <div id=\"pCronExpSpring\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--success);\">0 0 2 * * ?</div>\n                  </div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column;\">\n                  <div style=\"font-weight: 700; font-size: 12.5px; margin-bottom: 8px;\">📅 未来多次执行推算列表:</div>\n                  <div id=\"pCronNextTimes\" style=\"flex: 1; overflow-y: auto;\"></div>\n                </div>\n              </div>\n            </div>\n          `;\n          runCronGeneratorAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"radix-converter","name":"2~36 任意多进制与位运算器","category":"数据与 SQL","cat_id":"data","icon":"🔢","version":"1.0.0","desc":"二进制、八进制、十进制、十六进制秒级联动互转，提供 32 位位图显示与常用位运算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction onRadixInputChange(srcType) {\n      const val = document.getElementById('pRadix_' + srcType)?.value.trim() || '';\n      let num = 0;\n      if (!val) return;\n      try {\n        if (srcType === 'dec') num = parseInt(val, 10);\n        else if (srcType === 'hex') num = parseInt(val, 16);\n        else if (srcType === 'bin') num = parseInt(val, 2);\n        else if (srcType === 'oct') num = parseInt(val, 8);\n        if (isNaN(num)) return;\n\n        if (srcType !== 'dec') document.getElementById('pRadix_dec').value = num.toString(10);\n        if (srcType !== 'hex') document.getElementById('pRadix_hex').value = num.toString(16).toUpperCase();\n        if (srcType !== 'bin') document.getElementById('pRadix_bin').value = num.toString(2);\n        if (srcType !== 'oct') document.getElementById('pRadix_oct').value = num.toString(8);\n\n        // 32 位二进制网格\n        const bin32 = (num >>> 0).toString(2).padStart(32, '0');\n        const grid = document.getElementById('pRadixBitGrid');\n        if (grid) {\n          grid.innerHTML = bin32.split('').map((bit, idx) => `\n            <span style=\"display:inline-block; width:22px; height:24px; line-height:24px; text-align:center; font-size:11px; font-weight:700; margin:1px; border-radius:4px; font-family:var(--font-mono); background:${bit==='1'?'var(--primary)':'var(--bg-subtle)'}; color:${bit==='1'?'#fff':'var(--text-muted)'};\" title=\"Bit ${31-idx}\">${bit}</span>\n          `).join('');\n        }\n      } catch(e) {}\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"onRadixInputChange\"] = onRadixInputChange;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"radix-converter\",\n    name: \"2~36 任意多进制与位运算器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"🔢\",\n    version: \"1.0.0\",\n    desc: \"二进制、八进制、十进制、十六进制秒级联动互转，提供 32 位位图显示与常用位运算\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex-shrink: 0;\">\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">十进制 (Dec):</label><input type=\"number\" id=\"pRadix_dec\" class=\"form-input\" value=\"1024\" oninput=\"onRadixInputChange('dec')\" style=\"font-family: var(--font-mono); font-weight: 700;\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">十六进制 (Hex):</label><input type=\"text\" id=\"pRadix_hex\" class=\"form-input\" value=\"400\" oninput=\"onRadixInputChange('hex')\" style=\"font-family: var(--font-mono); font-weight: 700;\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">二进制 (Bin):</label><input type=\"text\" id=\"pRadix_bin\" class=\"form-input\" value=\"10000000000\" oninput=\"onRadixInputChange('bin')\" style=\"font-family: var(--font-mono); font-weight: 700;\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">八进制 (Oct):</label><input type=\"text\" id=\"pRadix_oct\" class=\"form-input\" value=\"2000\" oninput=\"onRadixInputChange('oct')\" style=\"font-family: var(--font-mono); font-weight: 700;\"></div>\n              </div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; flex: 1;\">\n                <div style=\"font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px;\">32位二进制完整位图结构 (高位 ➔ 低位):</div>\n                <div id=\"pRadixBitGrid\" style=\"display: flex; flex-wrap: wrap; gap: 2px;\"></div>\n              </div>\n            </div>\n          `;\n          onRadixInputChange('dec');\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"json-min-escape","name":"JSON 单行压缩与转义反转义器","category":"数据与 SQL","cat_id":"data","icon":"📦","version":"1.0.0","desc":"快速单行压缩复杂 JSON，支持用于字符串嵌入的双重引号转义 (\\","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runJsonMinEscapeAction(mode) {\n      const src = document.getElementById('pJsonMinInput')?.value || '';\n      const out = document.getElementById('pJsonMinOutput');\n      if (!out) return;\n      if (mode === 'minify') {\n        try {\n          const parsed = JSON.parse(src);\n          out.value = JSON.stringify(parsed);\n          showToast('JSON 已压缩为单行');\n        } catch(e) {\n          out.value = src.replace(/\\s+/g, ' ').trim();\n          showToast('已精简空字符');\n        }\n      } else if (mode === 'escape') {\n        out.value = src.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"').replace(/\\n/g, '\\\\n').replace(/\\r/g, '\\\\r');\n        showToast('已完成字符串转义 (\\\\\")');\n      } else if (mode === 'unescape') {\n        out.value = src.replace(/\\\\\"/g, '\"').replace(/\\\\n/g, '\\n').replace(/\\\\r/g, '\\r').replace(/\\\\\\\\/g, '\\\\');\n        showToast('已反转义还原文本');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runJsonMinEscapeAction\"] = runJsonMinEscapeAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"json-min-escape\",\n    name: \"JSON 单行压缩与转义反转义器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"📦\",\n    version: \"1.0.0\",\n    desc: \"快速单行压缩复杂 JSON，支持用于字符串嵌入的双重引号转义 (\\\\\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runJsonMinEscapeAction('minify')\" style=\"font-size: 12px;\">单行紧凑压缩</button>\n                <button class=\"btn-action\" onclick=\"runJsonMinEscapeAction('escape')\" style=\"font-size: 12px;\">字符串转义 (\\\\\")</button>\n                <button class=\"btn-action\" onclick=\"runJsonMinEscapeAction('unescape')\" style=\"font-size: 12px;\">反转义还原文本</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pJsonMinInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px;\" placeholder=\"在此输入需要压缩或转义的 JSON...\"></textarea>\n                <textarea id=\"pJsonMinOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"url-cleaner-builder","name":"批量 URL 提取与参数清洗器","category":"数据与 SQL","cat_id":"data","icon":"🔗","version":"1.0.0","desc":"从混杂文本中批量提取网址链接，一键剔除 utm_、spm、from 等常见营销追踪参数","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"url-cleaner-builder\",\n    name: \"批量 URL 提取与参数清洗器\",\n    category: \"数据与 SQL\",\n    cat_id: \"data\",\n    icon: \"🔗\",\n    version: \"1.0.0\",\n    desc: \"从混杂文本中批量提取网址链接，一键剔除 utm_、spm、from 等常见营销追踪参数\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"\n                  const text = document.getElementById('pUrlCleanInput').value;\n                  const matches = text.match(/https?:\\\\/\\\\/[^\\\\s<>\\\"]+/g) || [];\n                  const cleaned = matches.map(u => {\n                    try {\n                      const url = new URL(u);\n                      ['utm_source','utm_medium','utm_campaign','spm','from','ref','fbclid','gclid'].forEach(p => url.searchParams.delete(p));\n                      return url.toString();\n                    } catch(e) { return u; }\n                  });\n                  document.getElementById('pUrlCleanOutput').value = Array.from(new Set(cleaned)).join('\\\\n');\n                  showToast('已提取并清洗 ' + cleaned.length + ' 条链接');\n                \" style=\"font-size: 12px;\">一键提取并清洗直链</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pUrlCleanInput\" class=\"form-input\" style=\"flex: 1; font-size: 12px;\" placeholder=\"粘贴包含多条 URL 网址的杂乱文本、聊天记录或网页源码...\"></textarea>\n                <textarea id=\"pUrlCleanOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"case-naming-converter","name":"变量命名法互转器 (Case Converter)","category":"文本与正则","cat_id":"text","icon":"🔤","version":"1.0.0","desc":"camelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE 批量互转","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCaseNamingAction() {\n      const src = document.getElementById('pCaseInput')?.value || '';\n      const out = document.getElementById('pCaseOutput');\n      const targetCase = document.getElementById('pCaseTargetSelect')?.value || 'camel';\n      if (!out) return;\n      \n      const lines = src.split('\\n');\n      const converted = lines.map(line => {\n        const words = line.trim().replace(/([a-z])([A-Z])/g, '$1 $2').replace(/[_\\-.]+/g, ' ').split(/\\s+/).filter(Boolean);\n        if (words.length === 0) return '';\n        if (targetCase === 'camel') {\n          return words.map((w, i) => i === 0 ? w.toLowerCase() : w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join('');\n        } else if (targetCase === 'pascal') {\n          return words.map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join('');\n        } else if (targetCase === 'snake') {\n          return words.map(w => w.toLowerCase()).join('_');\n        } else if (targetCase === 'kebab') {\n          return words.map(w => w.toLowerCase()).join('-');\n        } else if (targetCase === 'constant') {\n          return words.map(w => w.toUpperCase()).join('_');\n        }\n        return line;\n      });\n      out.value = converted.join('\\n');\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCaseNamingAction\"] = runCaseNamingAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"case-naming-converter\",\n    name: \"变量命名法互转器 (Case Converter)\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔤\",\n    version: \"1.0.0\",\n    desc: \"camelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE 批量互转\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 700;\">目标格式:</label>\n                <select class=\"form-select\" id=\"pCaseTargetSelect\" onchange=\"runCaseNamingAction()\" style=\"min-width: 195px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"camel\">camelCase (小驼峰)</option>\n                  <option value=\"pascal\">PascalCase (大驼峰)</option>\n                  <option value=\"snake\" selected>snake_case (下划线)</option>\n                  <option value=\"kebab\">kebab-case (短横线)</option>\n                  <option value=\"constant\">CONSTANT_CASE (全大写)</option>\n                </select>\n                <button class=\"btn-action primary\" onclick=\"runCaseNamingAction()\" style=\"font-size: 12px;\">批量转换</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pCaseInput\" class=\"form-input\" oninput=\"runCaseNamingAction()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px;\" placeholder=\"在此输入需要转换命名的变量，支持多行 (例如 userProfileName)...\"></textarea>\n                <textarea id=\"pCaseOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"word-counter-stats","name":"字数统计与排版分析器","category":"文本与正则","cat_id":"text","icon":"📝","version":"1.0.0","desc":"中英文字符、单词数、行数、标点符号统计与播报/默读耗时深度测算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runWordStatsAction() {\n      const text = document.getElementById('pWordStatsInput')?.value || '';\n      const totalChars = text.length;\n      const noSpace = text.replace(/\\s+/g, '').length;\n      const cnChars = (text.match(/[\\u4e00-\\u9fa5]/g) || []).length;\n      const enWords = (text.match(/[a-zA-Z0-9_]+/g) || []).length;\n      const lines = text.split(/\\r?\\n/).length;\n\n      const setVal = (id, v) => { const el = document.getElementById(id); if (el) el.innerText = v; };\n      setVal('pStatTotalChars', totalChars);\n      setVal('pStatNoSpace', noSpace);\n      setVal('pStatCnChars', cnChars);\n      setVal('pStatEnWords', enWords);\n      setVal('pStatLines', lines);\n      setVal('pStatReadTime', `约 ${Math.ceil((cnChars + enWords) / 350)} 分钟`);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runWordStatsAction\"] = runWordStatsAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"word-counter-stats\",\n    name: \"字数统计与排版分析器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"📝\",\n    version: \"1.0.0\",\n    desc: \"中英文字符、单词数、行数、标点符号统计与播报/默读耗时深度测算\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">总字符数</div>\n                  <div id=\"pStatTotalChars\" style=\"font-size: 18px; font-weight: 800; color: var(--primary);\">0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">不含空格</div>\n                  <div id=\"pStatNoSpace\" style=\"font-size: 18px; font-weight: 800;\">0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">中文字数</div>\n                  <div id=\"pStatCnChars\" style=\"font-size: 18px; font-weight: 800; color: var(--success);\">0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">英文单词</div>\n                  <div id=\"pStatEnWords\" style=\"font-size: 18px; font-weight: 800; color: var(--purple);\">0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">文本行数</div>\n                  <div id=\"pStatLines\" style=\"font-size: 18px; font-weight: 800;\">0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; text-align: center;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">预估阅读</div>\n                  <div id=\"pStatReadTime\" style=\"font-size: 14px; font-weight: 700; margin-top: 4px;\">0 分钟</div>\n                </div>\n              </div>\n              <textarea id=\"pWordStatsInput\" class=\"form-input\" oninput=\"runWordStatsAction()\" style=\"flex: 1; font-size: 13px; line-height: 1.6;\" placeholder=\"在此输入或粘贴需要统计字数的文章与文本...\"></textarea>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"lorem-ipsum-generator","name":"Lorem Ipsum 假文与中文占位符","category":"文本与正则","cat_id":"text","icon":"📰","version":"1.0.0","desc":"生成中英文现代排版占位假文段落，支持自定义段落数与句子长度","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runLoremGenAction() {\n      const type = document.getElementById('pLoremTypeSelect')?.value || 'cn';\n      const count = parseInt(document.getElementById('pLoremCountInput')?.value || '3', 10);\n      const out = document.getElementById('pLoremOutput');\n      if (!out) return;\n\n      const cnSentences = [\n        \"在这个快速迭代的信息化时代，沉淀与极致是构建商业护城河的核心要素。\",\n        \"每一次技术的深刻革新，都源自对用户常态偏好的细致洞察与长期主义坚守。\",\n        \"数据的高速流转与稳固存储，构筑了数字商业文明坚不可摧的底层基座。\",\n        \"极简交互的背后，是数以百计工程边界条件的严苛考量与毫秒级算法收敛。\"\n      ];\n      const enSentences = [\n        \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.\",\n        \"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\",\n        \"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\"\n      ];\n      \n      const pool = type === 'cn' ? cnSentences : enSentences;\n      let res = [];\n      for (let i = 0; i < count; i++) {\n        let p = [];\n        for (let j = 0; j < 4; j++) {\n          p.push(pool[(i * 4 + j) % pool.length]);\n        }\n        res.push(p.join(type === 'cn' ? ' ' : ' '));\n      }\n      out.value = res.join('\\n\\n');\n      showToast(`已生成 ${count} 段假文排版样本`);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runLoremGenAction\"] = runLoremGenAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"lorem-ipsum-generator\",\n    name: \"Lorem Ipsum 假文与中文占位符\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"📰\",\n    version: \"1.0.0\",\n    desc: \"生成中英文现代排版占位假文段落，支持自定义段落数与句子长度\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 700;\">语言风格:</label>\n                <select class=\"form-select\" id=\"pLoremTypeSelect\" style=\"min-width: 175px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"cn\" selected>中文现代商业假文</option>\n                  <option value=\"en\">标准英文 Lorem Ipsum</option>\n                </select>\n                <label style=\"font-size: 12px; color: var(--text-muted); margin-left: 8px;\">段落数:</label>\n                <input type=\"number\" id=\"pLoremCountInput\" class=\"form-input\" value=\"3\" min=\"1\" max=\"20\" style=\"width: 60px; height: 26px; font-size: 12px;\">\n                <button class=\"btn-action primary\" onclick=\"runLoremGenAction()\" style=\"font-size: 12px;\">生成假文</button>\n              </div>\n              <textarea id=\"pLoremOutput\" class=\"form-input\" style=\"flex: 1; font-size: 13px; line-height: 1.6;\"></textarea>\n            </div>\n          `;\n          runLoremGenAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"css-gradient-shadow","name":"CSS 渐变与微质感阴影生成器","category":"文本与正则","cat_id":"text","icon":"🎨","version":"1.0.0","desc":"可视化调色盘与多重拟物微阴影，实时预览并一键复制纯净生产级 CSS 代码","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCssGradientShadowAction() {\n      const deg = document.getElementById('pGradDegSlider')?.value || '135';\n      const c1 = document.getElementById('pGradColor1')?.value || '#3b82f6';\n      const c2 = document.getElementById('pGradColor2')?.value || '#8b5cf6';\n      const preview = document.getElementById('pGradPreviewBox');\n      const cssOut = document.getElementById('pGradCssOutput');\n      \n      const gradCss = `linear-gradient(${deg}deg, ${c1}, ${c2})`;\n      const shadowCss = `0 12px 28px -6px rgba(0, 0, 0, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.08)`;\n      \n      if (preview) {\n        preview.style.background = gradCss;\n        preview.style.boxShadow = shadowCss;\n      }\n      if (cssOut) {\n        cssOut.value = `background: ${gradCss};\\nbox-shadow: ${shadowCss};\\nborder-radius: 12px;`;\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCssGradientShadowAction\"] = runCssGradientShadowAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"css-gradient-shadow\",\n    name: \"CSS 渐变与微质感阴影生成器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🎨\",\n    version: \"1.0.0\",\n    desc: \"可视化调色盘与多重拟物微阴影，实时预览并一键复制纯净生产级 CSS 代码\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px;\">\n                <label style=\"font-size: 12px; font-weight: 700;\">渐变角度: <span id=\"pGradDegLabel\">135°</span></label>\n                <input type=\"range\" id=\"pGradDegSlider\" min=\"0\" max=\"360\" value=\"135\" oninput=\"document.getElementById('pGradDegLabel').innerText=this.value+'°'; runCssGradientShadowAction();\">\n                <div style=\"display: flex; gap: 10px;\">\n                  <div style=\"flex: 1;\"><label style=\"font-size: 11.5px; color: var(--text-muted);\">起始色彩:</label><input type=\"color\" id=\"pGradColor1\" value=\"#3b82f6\" onchange=\"runCssGradientShadowAction()\" style=\"width: 100%; height: 32px; border: none; cursor: pointer;\"></div>\n                  <div style=\"flex: 1;\"><label style=\"font-size: 11.5px; color: var(--text-muted);\">终止色彩:</label><input type=\"color\" id=\"pGradColor2\" value=\"#8b5cf6\" onchange=\"runCssGradientShadowAction()\" style=\"width: 100%; height: 32px; border: none; cursor: pointer;\"></div>\n                </div>\n                <div style=\"font-size: 12px; color: var(--text-muted); margin-top: 10px;\">生成的 CSS 规则:</div>\n                <textarea id=\"pGradCssOutput\" class=\"form-input\" readonly rows=\"5\" style=\"font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;\"></textarea>\n                <button class=\"btn-action primary\" onclick=\"navigator.clipboard.writeText(document.getElementById('pGradCssOutput').value); showToast('📋 CSS 代码已复制！');\" style=\"font-size: 12px;\">复制 CSS 样式</button>\n              </div>\n              <div style=\"background: var(--bg-subtle); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 20px;\">\n                <div id=\"pGradPreviewBox\" style=\"width: 220px; height: 140px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px;\">\n                  Preview Card\n                </div>\n              </div>\n            </div>\n          `;\n          runCssGradientShadowAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"html-markdown-converter","name":"HTML 与 Markdown 双向转换器","category":"文本与正则","cat_id":"text","icon":"🔄","version":"1.0.0","desc":"富文本 HTML 标签与精简 GFM Markdown 语法秒级双向互转","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runHtmlMarkdownAction(mode) {\n      const src = document.getElementById('pHtmlMdInput')?.value || '';\n      const out = document.getElementById('pHtmlMdOutput');\n      if (!out) return;\n      if (mode === 'html2md') {\n        let md = src\n          .replace(/<h1[^>]*>(.*?)<\\/h1>/gi, '# $1\\n\\n')\n          .replace(/<h2[^>]*>(.*?)<\\/h2>/gi, '## $1\\n\\n')\n          .replace(/<h3[^>]*>(.*?)<\\/h3>/gi, '### $1\\n\\n')\n          .replace(/<strong[^>]*>(.*?)<\\/strong>|<b[^>]*>(.*?)<\\/b>/gi, '**$1$2**')\n          .replace(/<em[^>]*>(.*?)<\\/em>|<i[^>]*>(.*?)<\\/i>/gi, '*$1$2*')\n          .replace(/<p[^>]*>(.*?)<\\/p>/gi, '$1\\n\\n')\n          .replace(/<a\\s+href=\"([^\"]+)\"[^>]*>(.*?)<\\/a>/gi, '[$2]($1)')\n          .replace(/<br\\s*\\/?>/gi, '\\n');\n        out.value = md.trim();\n        showToast('已转换为 Markdown 语法');\n      } else {\n        let html = src\n          .replace(/^### (.*$)/gim, '<h3>$1</h3>')\n          .replace(/^## (.*$)/gim, '<h2>$1</h2>')\n          .replace(/^# (.*$)/gim, '<h1>$1</h1>')\n          .replace(/\\*\\*(.*?)\\*\\*/gim, '<strong>$1</strong>')\n          .replace(/\\*(.*?)\\*/gim, '<em>$1</em>')\n          .replace(/\\[([^\\]]+)\\]\\(([^)]+)\\)/gim, '<a href=\"$2\">$1</a>')\n          .replace(/\\n\\n/gim, '</p><p>');\n        out.value = `<p>${html}</p>`;\n        showToast('已转换为 HTML 标签');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runHtmlMarkdownAction\"] = runHtmlMarkdownAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"html-markdown-converter\",\n    name: \"HTML 与 Markdown 双向转换器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔄\",\n    version: \"1.0.0\",\n    desc: \"富文本 HTML 标签与精简 GFM Markdown 语法秒级双向互转\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"runHtmlMarkdownAction('html2md')\" style=\"font-size: 12px;\">HTML ➔ Markdown</button>\n                <button class=\"btn-action\" onclick=\"runHtmlMarkdownAction('md2html')\" style=\"font-size: 12px;\">Markdown ➔ HTML</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pHtmlMdInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px;\" placeholder=\"在此输入 HTML 源码或 Markdown 文本...\"></textarea>\n                <textarea id=\"pHtmlMdOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"regex-cheatsheet","name":"常用正则表达式大全与提取器","category":"文本与正则","cat_id":"text","icon":"🧪","version":"1.0.0","desc":"收录手机号、身份证、邮箱、IP、税号等 30+ 种高频正则，支持即时在线提取测试","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"regex-cheatsheet\",\n    name: \"常用正则表达式大全与提取器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🧪\",\n    version: \"1.0.0\",\n    desc: \"收录手机号、身份证、邮箱、IP、税号等 30+ 种高频正则，支持即时在线提取测试\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0;\">\n                <!-- 左侧列表 -->\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; min-height: 0;\">\n                  <div style=\"font-weight: 700; font-size: 12.5px; margin-bottom: 8px;\">📚 常用正则大全速查 (点击填入测试):</div>\n                  <div id=\"pRegexList\" style=\"flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;\">\n                    <div class=\"plugin-manage-card\" style=\"padding: 6px 10px; cursor: pointer;\" onclick=\"document.getElementById('pRegexPattern').value='^1[3-9]\\\\\\\\d{9}$';\"><span style=\"font-weight: 700;\">中国手机号 11位:</span> <code style=\"font-size: 11px;\">^1[3-9]\\\\d{9}$</code></div>\n                    <div class=\"plugin-manage-card\" style=\"padding: 6px 10px; cursor: pointer;\" onclick=\"document.getElementById('pRegexPattern').value='^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\\\\\\\.[a-zA-Z0-9-]+)*\\\\\\\\.[a-zA-Z]{2,6}$';\"><span style=\"font-weight: 700;\">电子邮箱:</span> <code style=\"font-size: 11px;\">^[a-zA-Z0-9_.-]+@...</code></div>\n                    <div class=\"plugin-manage-card\" style=\"padding: 6px 10px; cursor: pointer;\" onclick=\"document.getElementById('pRegexPattern').value='^[1-9]\\\\\\\\d{5}(18|19|20)\\\\\\\\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\\\\\\\\d|3[01])\\\\\\\\d{3}[0-9Xx]$';\"><span style=\"font-weight: 700;\">18位身份证号:</span> <code style=\"font-size: 11px;\">^[1-9]\\\\d{5}...</code></div>\n                    <div class=\"plugin-manage-card\" style=\"padding: 6px 10px; cursor: pointer;\" onclick=\"document.getElementById('pRegexPattern').value='^(25[0-5]|2[0-4]\\\\\\\\d|[01]?\\\\\\\\d\\\\\\\\d?)\\\\\\\\.(25[0-5]|2[0-4]\\\\\\\\d|[01]?\\\\\\\\d\\\\\\\\d?)\\\\\\\\.(25[0-5]|2[0-4]\\\\\\\\d|[01]?\\\\\\\\d\\\\\\\\d?)\\\\\\\\.(25[0-5]|2[0-4]\\\\\\\\d|[01]?\\\\\\\\d\\\\\\\\d?)$';\"><span style=\"font-weight: 700;\">IPv4 地址:</span> <code style=\"font-size: 11px;\">^(25[0-5]|2[0-4]...</code></div>\n                    <div class=\"plugin-manage-card\" style=\"padding: 6px 10px; cursor: pointer;\" onclick=\"document.getElementById('pRegexPattern').value='^([1-9]|1[0-2]):[0-5]\\\\\\\\d$';\"><span style=\"font-weight: 700;\">12小时制时间:</span> <code style=\"font-size: 11px;\">^([1-9]|1[0-2]):...</code></div>\n                  </div>\n                </div>\n                <!-- 右侧在线验证沙箱 -->\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted);\">正在测试的正则表达式:</label>\n                  <input type=\"text\" id=\"pRegexPattern\" class=\"form-input\" value=\"^1[3-9]\\\\d{9}$\" style=\"font-family: var(--font-mono); font-weight: 700; color: var(--primary);\">\n                  <label style=\"font-size: 11.5px; color: var(--text-muted);\">测试验证文本:</label>\n                  <textarea id=\"pRegexTestText\" class=\"form-input\" rows=\"4\" placeholder=\"在此输入测试文本...\" oninput=\"\n                    try {\n                      const reg = new RegExp(document.getElementById('pRegexPattern').value);\n                      const res = reg.test(this.value);\n                      document.getElementById('pRegexMatchStatus').innerText = res ? '✅ 完全匹配成功' : '❌ 未匹配';\n                      document.getElementById('pRegexMatchStatus').style.color = res ? 'var(--success)' : 'var(--danger)';\n                    } catch(e) { document.getElementById('pRegexMatchStatus').innerText = '⚠️ 正则表达式语法错误'; }\n                  \"></textarea>\n                  <div id=\"pRegexMatchStatus\" style=\"font-size: 13px; font-weight: 800; margin-top: 4px;\">请输入测试文本</div>\n                </div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"code-beautifier","name":"多语言代码格式化与美化器","category":"网络探针","cat_id":"net","icon":"💅","version":"1.0.0","desc":"支持 JavaScript、HTML、CSS、SQL 代码排版美化与一键压成单行","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"code-beautifier\",\n    name: \"多语言代码格式化与美化器\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"💅\",\n    version: \"1.0.0\",\n    desc: \"支持 JavaScript、HTML、CSS、SQL 代码排版美化与一键压成单行\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <div style=\"display: flex; gap: 8px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; flex-shrink: 0;\">\n                <button class=\"btn-action primary\" onclick=\"\n                  const text = document.getElementById('pCodeBeautifyInput').value;\n                  try {\n                    const parsed = JSON.parse(text);\n                    document.getElementById('pCodeBeautifyOutput').value = JSON.stringify(parsed, null, 2);\n                  } catch(e) {\n                    // 简易换行缩进排版\n                    document.getElementById('pCodeBeautifyOutput').value = text.replace(/;/g, ';\\\\n').replace(/{/g, ' {\\\\n  ').replace(/}/g, '\\\\n}');\n                  }\n                  showToast('代码格式化完成');\n                \" style=\"font-size: 12px;\">格式化美化</button>\n                <button class=\"btn-action\" onclick=\"\n                  const text = document.getElementById('pCodeBeautifyInput').value;\n                  document.getElementById('pCodeBeautifyOutput').value = text.replace(/\\\\s+/g, ' ').trim();\n                  showToast('已压缩为紧凑单行');\n                \" style=\"font-size: 12px;\">压缩单行</button>\n              </div>\n              <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0;\">\n                <textarea id=\"pCodeBeautifyInput\" class=\"form-input\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px;\" placeholder=\"粘贴待排版的代码...\"></textarea>\n                <textarea id=\"pCodeBeautifyOutput\" class=\"form-input\" readonly style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; background: var(--bg-subtle);\"></textarea>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"subnet-mask-calc","name":"IP 子网掩码与 CIDR 计算器","category":"网络探针","cat_id":"net","icon":"🌐","version":"1.0.0","desc":"计算网络地址、广播地址、掩码反码及可用 IP 区间范围与主机数量","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runSubnetCalcAction() {\n      const ip = (document.getElementById('pSubnetIp')?.value || '192.168.1.1').trim();\n      const cidr = parseInt(document.getElementById('pSubnetCidr')?.value || '24', 10);\n      \n      const ipParts = ip.split('.').map(Number);\n      if (ipParts.length !== 4 || ipParts.some(p => isNaN(p) || p < 0 || p > 255)) {\n        showToast('⚠️ 请输入合法 IPv4 地址');\n        return;\n      }\n      const ipNum = (ipParts[0] << 24) | (ipParts[1] << 16) | (ipParts[2] << 8) | ipParts[3];\n      const maskNum = cidr === 0 ? 0 : (~0 << (32 - cidr)) >>> 0;\n      const netNum = (ipNum & maskNum) >>> 0;\n      const bcastNum = (netNum | (~maskNum >>> 0)) >>> 0;\n      \n      const numToIp = (n) => [(n>>>24)&255, (n>>>16)&255, (n>>>8)&255, n&255].join('.');\n      const usableHosts = cidr >= 31 ? 0 : Math.pow(2, 32 - cidr) - 2;\n\n      document.getElementById('pSubnetNetIp').innerText = numToIp(netNum);\n      document.getElementById('pSubnetBcastIp').innerText = numToIp(bcastNum);\n      document.getElementById('pSubnetMaskIp').innerText = numToIp(maskNum);\n      document.getElementById('pSubnetHostCount').innerText = `${usableHosts.toLocaleString()} 台主机`;\n      document.getElementById('pSubnetRange').innerText = cidr >= 31 ? '无可用分配' : `${numToIp(netNum + 1)} ~ ${numToIp(bcastNum - 1)}`;\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runSubnetCalcAction\"] = runSubnetCalcAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"subnet-mask-calc\",\n    name: \"IP 子网掩码与 CIDR 计算器\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"🌐\",\n    version: \"1.0.0\",\n    desc: \"计算网络地址、广播地址、掩码反码及可用 IP 区间范围与主机数量\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; gap: 10px; align-items: center; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 700;\">IP 地址:</label>\n                <input type=\"text\" id=\"pSubnetIp\" class=\"form-input\" value=\"192.168.1.10\" oninput=\"runSubnetCalcAction()\" style=\"width: 160px; font-family: var(--font-mono);\">\n                <label style=\"font-size: 12px; font-weight: 700; margin-left: 8px;\">CIDR 前缀:</label>\n                <select class=\"form-select\" id=\"pSubnetCidr\" onchange=\"runSubnetCalcAction()\" style=\"min-width: 195px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-family: var(--font-mono); font-size: 12px;\">\n                  <option value=\"8\">/8 (255.0.0.0)</option>\n                  <option value=\"16\">/16 (255.255.0.0)</option>\n                  <option value=\"24\" selected>/24 (255.255.255.0)</option>\n                  <option value=\"28\">/28 (255.255.255.240)</option>\n                  <option value=\"30\">/30 (255.255.255.252)</option>\n                </select>\n              </div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1;\">\n                <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">网络地址 (Network IP):</div>\n                  <div id=\"pSubnetNetIp\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--primary);\">-</div>\n                  <div style=\"font-size: 11.5px; color: var(--text-muted); margin-top: 6px;\">广播地址 (Broadcast IP):</div>\n                  <div id=\"pSubnetBcastIp\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--purple);\">-</div>\n                </div>\n                <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">子网掩码 (Netmask):</div>\n                  <div id=\"pSubnetMaskIp\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--success);\">-</div>\n                  <div style=\"font-size: 11.5px; color: var(--text-muted); margin-top: 6px;\">可用主机总数:</div>\n                  <div id=\"pSubnetHostCount\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: #f97316;\">-</div>\n                </div>\n                <div style=\"grid-column: span 2; background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n                  <span style=\"font-size: 11.5px; color: var(--text-muted);\">可用主机 IP 分配区间: </span>\n                  <strong id=\"pSubnetRange\" style=\"font-family: var(--font-mono); color: var(--text-main);\">-</strong>\n                </div>\n              </div>\n            </div>\n          `;\n          runSubnetCalcAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"ua-inspector","name":"User-Agent 浏览器指纹解析器","category":"网络探针","cat_id":"net","icon":"🕵️","version":"1.0.0","desc":"检测本机浏览器指纹，解析 OS、浏览器版本、渲染内核与移动设备型号","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"ua-inspector\",\n    name: \"User-Agent 浏览器指纹解析器\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"🕵️\",\n    version: \"1.0.0\",\n    desc: \"检测本机浏览器指纹，解析 OS、浏览器版本、渲染内核与移动设备型号\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; flex-shrink: 0;\">\n                <label style=\"font-size: 12px; font-weight: 700; color: var(--primary);\">本机真实 User-Agent 标头:</label>\n                <div id=\"pUaCurrent\" style=\"font-family: var(--font-mono); font-size: 12px; background: var(--bg-subtle); padding: 10px; border-radius: 6px; margin-top: 6px; word-break: break-all;\"></div>\n              </div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;\">\n                <div style=\"background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">操作系统 (OS)</div>\n                  <div id=\"pUaOs\" style=\"font-size: 16px; font-weight: 800; margin-top: 4px;\">-</div>\n                </div>\n                <div style=\"background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">浏览器厂商</div>\n                  <div id=\"pUaBrowser\" style=\"font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 4px;\">-</div>\n                </div>\n                <div style=\"background: var(--bg-subtle); padding: 12px; border-radius: 8px;\">\n                  <div style=\"font-size: 11px; color: var(--text-muted);\">屏幕分辨率 / 像素比</div>\n                  <div id=\"pUaScreen\" style=\"font-size: 16px; font-weight: 800; color: var(--success); margin-top: 4px;\">-</div>\n                </div>\n              </div>\n            </div>\n          `;\n          const ua = navigator.userAgent;\n          document.getElementById('pUaCurrent').innerText = ua;\n          document.getElementById('pUaOs').innerText = /Windows/i.test(ua) ? 'Windows 11 / 10' : /Macintosh/i.test(ua) ? 'macOS' : /Android/i.test(ua) ? 'Android' : /iPhone/i.test(ua) ? 'iOS' : 'Linux';\n          document.getElementById('pUaBrowser').innerText = /Edg/i.test(ua) ? 'Microsoft Edge' : /Chrome/i.test(ua) ? 'Google Chrome' : /Safari/i.test(ua) ? 'Apple Safari' : 'Firefox';\n          document.getElementById('pUaScreen').innerText = `${window.screen.width} × ${window.screen.height} (DPR: ${window.devicePixelRatio})`;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"port-lookup","name":"常用网络端口速查手册","category":"网络探针","cat_id":"net","icon":"🔌","version":"1.0.0","desc":"收录 100+ 常见服务端口 (Web, 数据库 3306/6379, 远程 22/3389) 双向极速检索","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"port-lookup\",\n    name: \"常用网络端口速查手册\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"🔌\",\n    version: \"1.0.0\",\n    desc: \"收录 100+ 常见服务端口 (Web, 数据库 3306/6379, 远程 22/3389) 双向极速检索\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <input type=\"text\" id=\"pPortSearchInput\" class=\"form-input\" placeholder=\"输入端口号 (如 3306) 或服务名称 (如 Redis, SSH, HTTP) 实时过滤...\" style=\"flex-shrink: 0;\" oninput=\"\n                const kw = this.value.trim().toLowerCase();\n                const cards = document.querySelectorAll('#pPortList .plugin-manage-card');\n                cards.forEach(c => {\n                  c.style.display = (!kw || c.innerText.toLowerCase().includes(kw)) ? 'flex' : 'none';\n                });\n              \">\n              <div id=\"pPortList\" style=\"flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;\">\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">21</span><span>FTP 文件传输服务</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">22</span><span>SSH 远程终端连接 (Linux)</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">53</span><span>DNS 域名解析服务</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">80</span><span>HTTP 超文本传输协议</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">443</span><span>HTTPS SSL/TLS 加密网页</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">1433</span><span>Microsoft SQL Server 数据库</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">3306</span><span>MySQL 数据库默认服务端口</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">3389</span><span>RDP Windows 远程桌面连接</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">5432</span><span>PostgreSQL 开源关系型数据库</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">6379</span><span>Redis 内存高速缓存与消息队列</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">8080</span><span>Tomcat / Spring Boot 常见应用端口</span></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 80px;\">27017</span><span>MongoDB 文档型 NoSQL 数据库</span></div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"http-status-codes","name":"HTTP 状态码与请求头字典","category":"网络探针","cat_id":"net","icon":"📖","version":"1.0.0","desc":"收录 1xx~5xx 全部状态码，带分类检索、RFC 标准说明、常见发生原因与调试指引","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"http-status-codes\",\n    name: \"HTTP 状态码与请求头字典\",\n    category: \"网络探针\",\n    cat_id: \"net\",\n    icon: \"📖\",\n    version: \"1.0.0\",\n    desc: \"收录 1xx~5xx 全部状态码，带分类检索、RFC 标准说明、常见发生原因与调试指引\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n              <input type=\"text\" id=\"pHttpSearchInput\" class=\"form-input\" placeholder=\"输入状态码 (如 404, 502) 或关键词 (如 Unauthorized, Gateway) 实时过滤...\" style=\"flex-shrink: 0;\" oninput=\"\n                const kw = this.value.trim().toLowerCase();\n                const cards = document.querySelectorAll('#pHttpStatusList .plugin-manage-card');\n                cards.forEach(c => {\n                  c.style.display = (!kw || c.innerText.toLowerCase().includes(kw)) ? 'flex' : 'none';\n                });\n              \">\n              <div id=\"pHttpStatusList\" style=\"flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;\">\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--success); width: 60px;\">200</span><div><div style=\"font-weight: 700;\">OK 请求成功</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求已成功，请求所希望的响应头或数据体随此响应返回。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--success); width: 60px;\">201</span><div><div style=\"font-weight: 700;\">Created 已创建</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求已被实现，且建立了新资源，通常用于 POST 接口成功创建。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 60px;\">301</span><div><div style=\"font-weight: 700;\">Moved Permanently 永久重定向</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求的资源已永久移动到新位置，搜索引擎将更新收录地址。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 60px;\">302</span><div><div style=\"font-weight: 700;\">Found 临时重定向</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求的资源临时从不同的 URI 响应，客户端应继续使用原有地址。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--primary); width: 60px;\">304</span><div><div style=\"font-weight: 700;\">Not Modified 资源未修改</div><div style=\"font-size: 11px; color: var(--text-muted);\">协商缓存命中，客户端本地缓存仍有效，服务器不返回资源体以节约流量。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--warning); width: 60px;\">400</span><div><div style=\"font-weight: 700;\">Bad Request 错误请求</div><div style=\"font-size: 11px; color: var(--text-muted);\">客户端请求语法错误或参数不匹配，服务器无法解析处理。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--warning); width: 60px;\">401</span><div><div style=\"font-weight: 700;\">Unauthorized 未授权</div><div style=\"font-size: 11px; color: var(--text-muted);\">当前请求需要有效的用户身份凭证 (Token 或 Cookie 缺失/过期)。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--warning); width: 60px;\">403</span><div><div style=\"font-weight: 700;\">Forbidden 禁止访问</div><div style=\"font-size: 11px; color: var(--text-muted);\">服务器理解请求但拒绝执行，通常由 RBAC 权限不足或 IP 黑名单引起。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--warning); width: 60px;\">404</span><div><div style=\"font-weight: 700;\">Not Found 资源未找到</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求的路由、页面或 API 接口不存在，请核对 URL 路径拼写。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--warning); width: 60px;\">405</span><div><div style=\"font-weight: 700;\">Method Not Allowed 方法不允许</div><div style=\"font-size: 11px; color: var(--text-muted);\">请求方法（如 POST / GET / PUT / DELETE）不被该接口路由所支持。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--danger); width: 60px;\">500</span><div><div style=\"font-weight: 700;\">Internal Server Error 服务器内部错误</div><div style=\"font-size: 11px; color: var(--text-muted);\">后端服务执行未捕获异常崩溃或数据库查询抛错，请查看服务日志。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--danger); width: 60px;\">502</span><div><div style=\"font-weight: 700;\">Bad Gateway 网关错误</div><div style=\"font-size: 11px; color: var(--text-muted);\">Nginx 或网关代理无法连接上游后端应用实例，请检查服务进程是否存活。</div></div></div>\n                <div class=\"plugin-manage-card\"><span style=\"font-weight: 800; color: var(--danger); width: 60px;\">504</span><div><div style=\"font-weight: 700;\">Gateway Timeout 网关超时</div><div style=\"font-size: 11px; color: var(--text-muted);\">上游后端服务处理耗时过长，超过了网关 proxy_read_timeout 设定时限。</div></div></div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"financial-compound-interest","name":"复利定投与财富增长测算器","category":"商业与金融","cat_id":"finance","icon":"📈","version":"1.0.0","desc":"初始本金、月度定投、预期年化利率复利曲线测算，生成逐年财富增长明细","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCompoundInterestAction() {\n      const principal = parseFloat(document.getElementById('pCiPrincipal')?.value || '10000');\n      const monthly = parseFloat(document.getElementById('pCiMonthly')?.value || '2000');\n      const rateYear = parseFloat(document.getElementById('pCiRate')?.value || '6') / 100;\n      const years = parseInt(document.getElementById('pCiYears')?.value || '10', 10);\n      \n      const rMonth = rateYear / 12;\n      let total = principal;\n      let totalInvest = principal;\n      const rows = [];\n\n      for (let y = 1; y <= years; y++) {\n        for (let m = 1; m <= 12; m++) {\n          total = total * (1 + rMonth) + monthly;\n          totalInvest += monthly;\n        }\n        rows.push({ year: y, total: Math.round(total), invest: Math.round(totalInvest), profit: Math.round(total - totalInvest) });\n      }\n\n      document.getElementById('pCiResultTotal').innerText = `¥ ${Math.round(total).toLocaleString()}`;\n      document.getElementById('pCiResultInvest').innerText = `¥ ${Math.round(totalInvest).toLocaleString()}`;\n      document.getElementById('pCiResultProfit').innerText = `+¥ ${Math.round(total - totalInvest).toLocaleString()}`;\n\n      const tbody = document.getElementById('pCiTableBody');\n      if (tbody) {\n        tbody.innerHTML = rows.map(r => `\n          <tr>\n            <td style=\"padding:6px 8px;\">第 ${r.year} 年</td>\n            <td style=\"padding:6px 8px; text-align:right;\">¥ ${r.invest.toLocaleString()}</td>\n            <td style=\"padding:6px 8px; text-align:right; color:var(--success);\">+¥ ${r.profit.toLocaleString()}</td>\n            <td style=\"padding:6px 8px; text-align:right; font-weight:700; color:var(--primary);\">¥ ${r.total.toLocaleString()}</td>\n          </tr>\n        `).join('');\n      }\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCompoundInterestAction\"] = runCompoundInterestAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"financial-compound-interest\",\n    name: \"复利定投与财富增长测算器\",\n    category: \"商业与金融\",\n    cat_id: \"finance\",\n    icon: \"📈\",\n    version: \"1.0.0\",\n    desc: \"初始本金、月度定投、预期年化利率复利曲线测算，生成逐年财富增长明细\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">起始本金 (元):</label><input type=\"number\" id=\"pCiPrincipal\" class=\"form-input\" value=\"10000\" oninput=\"runCompoundInterestAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">每月定投 (元):</label><input type=\"number\" id=\"pCiMonthly\" class=\"form-input\" value=\"2000\" oninput=\"runCompoundInterestAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">预期年化收益率 (%):</label><input type=\"number\" id=\"pCiRate\" class=\"form-input\" value=\"6.0\" step=\"0.1\" oninput=\"runCompoundInterestAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">定投年限 (年):</label><input type=\"number\" id=\"pCiYears\" class=\"form-input\" value=\"10\" min=\"1\" max=\"30\" oninput=\"runCompoundInterestAction()\"></div>\n              </div>\n              <div style=\"display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">最终总资产</div>\n                  <div id=\"pCiResultTotal\" style=\"font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--primary);\">¥ 0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">累计本金投入</div>\n                  <div id=\"pCiResultInvest\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800;\">¥ 0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">累计利息净收益</div>\n                  <div id=\"pCiResultProfit\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--success);\">+¥ 0</div>\n                </div>\n              </div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; flex: 1; min-height: 0; display: flex; flex-direction: column;\">\n                <div style=\"font-weight: 700; font-size: 12px; margin-bottom: 6px;\">📊 逐年复利财富积累阶梯表:</div>\n                <div style=\"flex: 1; overflow-y: auto;\">\n                  <table style=\"width: 100%; border-collapse: collapse; font-size: 12px;\">\n                    <thead><tr style=\"border-bottom: 1px solid var(--border-color); color: var(--text-muted);\"><th style=\"text-align: left; padding: 6px;\">年份</th><th style=\"text-align: right; padding: 6px;\">投入本金</th><th style=\"text-align: right; padding: 6px;\">累计收益</th><th style=\"text-align: right; padding: 6px;\">资产总额</th></tr></thead>\n                    <tbody id=\"pCiTableBody\"></tbody>\n                  </table>\n                </div>\n              </div>\n            </div>\n          `;\n          runCompoundInterestAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"car-loan-calc","name":"汽车分期车贷月供与利息测算器","category":"商业与金融","cat_id":"finance","icon":"🚗","version":"1.0.0","desc":"裸车价格、首付比例与分期贷款等额本息测算，明晰首付与每月还款开销","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCarLoanCalcAction() {\n      const priceWan = parseFloat(document.getElementById('pCarPrice')?.value || '20');\n      const downRate = parseFloat(document.getElementById('pCarDownRate')?.value || '0.3');\n      const months = parseInt(document.getElementById('pCarMonths')?.value || '36', 10);\n      const apr = parseFloat(document.getElementById('pCarApr')?.value || '4.5') / 100;\n\n      const price = priceWan * 10000;\n      const downPayment = price * downRate;\n      const loanAmount = price - downPayment;\n      const mRate = apr / 12;\n\n      // 等额本息\n      const monthlyPay = (loanAmount * mRate * Math.pow(1 + mRate, months)) / (Math.pow(1 + mRate, months) - 1);\n      const totalRepay = monthlyPay * months;\n      const totalInterest = totalRepay - loanAmount;\n\n      document.getElementById('pCarDownResult').innerText = `¥ ${Math.round(downPayment).toLocaleString()}`;\n      document.getElementById('pCarMonthResult').innerText = `¥ ${Math.round(monthlyPay).toLocaleString()} / 月`;\n      document.getElementById('pCarInterestResult').innerText = `¥ ${Math.round(totalInterest).toLocaleString()}`;\n      document.getElementById('pCarTotalCostResult').innerText = `¥ ${Math.round(downPayment + totalRepay).toLocaleString()}`;\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCarLoanCalcAction\"] = runCarLoanCalcAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"car-loan-calc\",\n    name: \"汽车分期车贷月供与利息测算器\",\n    category: \"商业与金融\",\n    cat_id: \"finance\",\n    icon: \"🚗\",\n    version: \"1.0.0\",\n    desc: \"裸车价格、首付比例与分期贷款等额本息测算，明晰首付与每月还款开销\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">裸车价格 (万元):</label><input type=\"number\" id=\"pCarPrice\" class=\"form-input\" value=\"20\" oninput=\"runCarLoanCalcAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">首付比例:</label>\n                  <select class=\"form-select\" id=\"pCarDownRate\" onchange=\"runCarLoanCalcAction()\" style=\"width: 100%; height: 32px;\">\n                    <option value=\"0.2\">20% 首付</option>\n                    <option value=\"0.3\" selected>30% 首付</option>\n                    <option value=\"0.5\">50% 首付</option>\n                  </select>\n                </div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">贷款期数:</label>\n                  <select class=\"form-select\" id=\"pCarMonths\" onchange=\"runCarLoanCalcAction()\" style=\"width: 100%; height: 32px;\">\n                    <option value=\"12\">12 期 (1年)</option>\n                    <option value=\"24\">24 期 (2年)</option>\n                    <option value=\"36\" selected>36 期 (3年)</option>\n                    <option value=\"48\">48 期 (4年)</option>\n                    <option value=\"60\">60 期 (5年)</option>\n                  </select>\n                </div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">年化利率 (%):</label><input type=\"number\" id=\"pCarApr\" class=\"form-input\" value=\"4.5\" step=\"0.1\" oninput=\"runCarLoanCalcAction()\"></div>\n              </div>\n              <div style=\"display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">首付款总额</div>\n                  <div id=\"pCarDownResult\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800;\">¥ 0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">每月月供</div>\n                  <div id=\"pCarMonthResult\" style=\"font-family: var(--font-mono); font-size: 20px; font-weight: 800; color: var(--primary);\">¥ 0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">总利息支出</div>\n                  <div id=\"pCarInterestResult\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--danger);\">¥ 0</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px;\">\n                  <div style=\"font-size: 11.5px; color: var(--text-muted);\">累计购车总成本</div>\n                  <div id=\"pCarTotalCostResult\" style=\"font-family: var(--font-mono); font-size: 18px; font-weight: 800;\">¥ 0</div>\n                </div>\n              </div>\n            </div>\n          `;\n          runCarLoanCalcAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"bmi-health-calc","name":"BMI 健康指数与基础代谢计算器","category":"生活与实用","cat_id":"life","icon":"🏃","version":"1.0.0","desc":"身高体重 BMI 指数评级、理想健康体重与 BMR 基础热量消耗速算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runBmiHealthAction() {\n      const hCm = parseFloat(document.getElementById('pBmiHeight')?.value || '175');\n      const wKg = parseFloat(document.getElementById('pBmiWeight')?.value || '68');\n      const age = parseInt(document.getElementById('pBmiAge')?.value || '28', 10);\n      const gender = document.getElementById('pBmiGender')?.value || 'male';\n\n      const hM = hCm / 100;\n      const bmi = parseFloat((wKg / (hM * hM)).toFixed(1));\n      let status = '正常标准 (18.5 - 23.9)';\n      let color = 'var(--success)';\n\n      if (bmi < 18.5) { status = '偏瘦'; color = 'var(--warning)'; }\n      else if (bmi >= 28) { status = '肥胖 (需控制)'; color = 'var(--danger)'; }\n      else if (bmi >= 24) { status = '偏重 / 超重'; color = '#f97316'; }\n\n      // BMR Harris-Benedict\n      let bmr = (10 * wKg) + (6.25 * hCm) - (5 * age) + (gender === 'male' ? 5 : -161);\n      bmr = Math.round(bmr);\n\n      document.getElementById('pBmiScore').innerText = bmi;\n      const stEl = document.getElementById('pBmiStatus');\n      if (stEl) { stEl.innerText = status; stEl.style.color = color; }\n      document.getElementById('pBmiBmr').innerText = `${bmr} kcal / 天`;\n      document.getElementById('pBmiIdealWeight').innerText = `${Math.round(18.5 * hM * hM)} ~ ${Math.round(23.9 * hM * hM)} kg`;\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runBmiHealthAction\"] = runBmiHealthAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"bmi-health-calc\",\n    name: \"BMI 健康指数与基础代谢计算器\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"🏃\",\n    version: \"1.0.0\",\n    desc: \"身高体重 BMI 指数评级、理想健康体重与 BMR 基础热量消耗速算\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex-shrink: 0;\">\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">身高 (cm):</label><input type=\"number\" id=\"pBmiHeight\" class=\"form-input\" value=\"175\" oninput=\"runBmiHealthAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">体重 (kg):</label><input type=\"number\" id=\"pBmiWeight\" class=\"form-input\" value=\"68\" oninput=\"runBmiHealthAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">年龄:</label><input type=\"number\" id=\"pBmiAge\" class=\"form-input\" value=\"28\" oninput=\"runBmiHealthAction()\"></div>\n                <div><label style=\"font-size: 11.5px; color: var(--text-muted);\">性别:</label>\n                  <select class=\"form-select\" id=\"pBmiGender\" onchange=\"runBmiHealthAction()\" style=\"width: 100%; height: 32px;\">\n                    <option value=\"male\" selected>男士</option>\n                    <option value=\"female\">女士</option>\n                  </select>\n                </div>\n              </div>\n              <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1;\">\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;\">\n                  <div style=\"font-size: 12px; color: var(--text-muted);\">BMI 身体质量指数:</div>\n                  <div id=\"pBmiScore\" style=\"font-family: var(--font-mono); font-size: 38px; font-weight: 800; color: var(--primary); margin: 6px 0;\">22.2</div>\n                  <div id=\"pBmiStatus\" style=\"font-size: 14px; font-weight: 700; color: var(--success);\">正常标准 (18.5 - 23.9)</div>\n                </div>\n                <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px;\">\n                  <div><span style=\"font-size: 11.5px; color: var(--text-muted);\">BMR 基础代谢率: </span><strong id=\"pBmiBmr\" style=\"font-size: 16px; color: var(--purple);\">-</strong></div>\n                  <div><span style=\"font-size: 11.5px; color: var(--text-muted);\">健康理想体重区间: </span><strong id=\"pBmiIdealWeight\" style=\"font-size: 16px; color: var(--success);\">-</strong></div>\n                </div>\n              </div>\n            </div>\n          `;\n          runBmiHealthAction();\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"currency-exchange-calc","name":"全球主流多币种常用汇率换算器","category":"生活与实用","cat_id":"life","icon":"💱","version":"1.0.0","desc":"人民币 CNY、美元 USD、欧元 EUR、英镑 GBP、日元 JPY、港币 HKD 联动秒级换算","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runCurrencyExchangeAction(changedCurrency = 'CNY') {\n      const rates = { CNY: 1, USD: 0.1408, EUR: 0.1296, GBP: 0.1082, JPY: 21.32, HKD: 1.102 };\n      const val = parseFloat(document.getElementById('pCurr_' + changedCurrency)?.value || '0');\n      if (isNaN(val)) return;\n      const cnyBase = val / rates[changedCurrency];\n\n      Object.keys(rates).forEach(cur => {\n        if (cur !== changedCurrency) {\n          const el = document.getElementById('pCurr_' + cur);\n          if (el) el.value = (cnyBase * rates[cur]).toFixed(2);\n        }\n      });\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runCurrencyExchangeAction\"] = runCurrencyExchangeAction;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"currency-exchange-calc\",\n    name: \"全球主流多币种常用汇率换算器\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"💱\",\n    version: \"1.0.0\",\n    desc: \"人民币 CNY、美元 USD、欧元 EUR、英镑 GBP、日元 JPY、港币 HKD 联动秒级换算\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; gap: 12px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;\">\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇨🇳 人民币 (CNY):</label><input type=\"number\" id=\"pCurr_CNY\" class=\"form-input\" value=\"1000\" oninput=\"runCurrencyExchangeAction('CNY')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800; color: var(--primary);\"></div>\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇺🇸 美元 (USD):</label><input type=\"number\" id=\"pCurr_USD\" class=\"form-input\" oninput=\"runCurrencyExchangeAction('USD')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800;\"></div>\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇪🇺 欧元 (EUR):</label><input type=\"number\" id=\"pCurr_EUR\" class=\"form-input\" oninput=\"runCurrencyExchangeAction('EUR')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800;\"></div>\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇬🇧 英镑 (GBP):</label><input type=\"number\" id=\"pCurr_GBP\" class=\"form-input\" oninput=\"runCurrencyExchangeAction('GBP')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800;\"></div>\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇯🇵 日元 (JPY):</label><input type=\"number\" id=\"pCurr_JPY\" class=\"form-input\" oninput=\"runCurrencyExchangeAction('JPY')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800;\"></div>\n                <div><label style=\"font-size: 12px; font-weight: 700;\">🇭🇰 港币 (HKD):</label><input type=\"number\" id=\"pCurr_HKD\" class=\"form-input\" oninput=\"runCurrencyExchangeAction('HKD')\" style=\"font-family: var(--font-mono); font-size: 16px; font-weight: 800;\"></div>\n              </div>\n            </div>\n          `;\n          runCurrencyExchangeAction('CNY');\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"countdown-timer-stopwatch","name":"专注番茄钟与毫秒秒表计时器","category":"生活与实用","cat_id":"life","icon":"🍅","version":"1.0.0","desc":"经典 25分钟番茄工作法时钟循环、声音提醒与精准毫秒级秒表计次","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nlet pomodoroTimer = null;\n\nlet pomodoroSecLeft = 25 * 60;\n\nfunction startPomodoro() {\n      if (pomodoroTimer) return;\n      pomodoroTimer = setInterval(() => {\n        pomodoroSecLeft--;\n        const m = String(Math.floor(pomodoroSecLeft / 60)).padStart(2, '0');\n        const s = String(pomodoroSecLeft % 60).padStart(2, '0');\n        const el = document.getElementById('pPomoClockDisplay');\n        if (el) el.innerText = `${m}:${s}`;\n        if (pomodoroSecLeft <= 0) {\n          clearInterval(pomodoroTimer);\n          pomodoroTimer = null;\n          showToast('🍅 番茄钟专注完成！请休息5分钟');\n        }\n      }, 1000);\n    }\n\nfunction pausePomodoro() { clearInterval(pomodoroTimer); pomodoroTimer = null; }\n\nfunction resetPomodoro() {\n      pausePomodoro();\n      pomodoroSecLeft = 25 * 60;\n      const el = document.getElementById('pPomoClockDisplay');\n      if (el) el.innerText = '25:00';\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"startPomodoro\"] = startPomodoro;\n    window[\"pausePomodoro\"] = pausePomodoro;\n    window[\"resetPomodoro\"] = resetPomodoro;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"countdown-timer-stopwatch\",\n    name: \"专注番茄钟与毫秒秒表计时器\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"🍅\",\n    version: \"1.0.0\",\n    desc: \"经典 25分钟番茄工作法时钟循环、声音提醒与精准毫秒级秒表计次\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px;\">\n              <div style=\"font-size: 14px; color: var(--text-muted);\">🍅 番茄专注时钟 (25分钟倒计时)</div>\n              <div id=\"pPomoClockDisplay\" style=\"font-family: var(--font-mono); font-size: 56px; font-weight: 800; color: #ef4444; letter-spacing: 2px;\">25:00</div>\n              <div style=\"display: flex; gap: 10px;\">\n                <button class=\"btn-action primary\" onclick=\"startPomodoro()\" style=\"font-size: 13px; padding: 6px 18px;\">▶ 开始专注</button>\n                <button class=\"btn-action\" onclick=\"pausePomodoro()\" style=\"font-size: 13px; padding: 6px 14px;\">⏸ 暂停</button>\n                <button class=\"btn-action\" onclick=\"resetPomodoro()\" style=\"font-size: 13px; padding: 6px 14px;\">🔄 重置</button>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"decision-maker-spinner","name":"随机决策转盘与团队抽签神器","category":"生活与实用","cat_id":"life","icon":"🎡","version":"1.0.0","desc":"选择困难症救星！中午吃什么、团队分工抓阄与掷骰子抛硬币互动随机生成","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction runSpinDecisionWheel() {\n      const itemsRaw = document.getElementById('pWheelOptions')?.value || '火锅\\n烤肉\\n轻食\\n披萨\\n麦当劳\\n日料';\n      const items = itemsRaw.split('\\n').map(s => s.trim()).filter(Boolean);\n      if (items.length < 2) { showToast('⚠️ 请至少输入两个候选项'); return; }\n\n      const resultBox = document.getElementById('pWheelResult');\n      if (resultBox) {\n        resultBox.innerText = '🌀 正在飞速抽取中...';\n        resultBox.style.color = 'var(--primary)';\n      }\n      setTimeout(() => {\n        const winner = items[Math.floor(Math.random() * items.length)];\n        if (resultBox) {\n          resultBox.innerText = `🎉 恭喜命中：【${winner}】！`;\n          resultBox.style.color = 'var(--success)';\n        }\n        showToast(`🎲 随机决策已选定：${winner}`);\n      }, 700);\n    }\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"runSpinDecisionWheel\"] = runSpinDecisionWheel;\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    const __rvPluginDef = {\n    id: \"decision-maker-spinner\",\n    name: \"随机决策转盘与团队抽签神器\",\n    category: \"生活与实用\",\n    cat_id: \"life\",\n    icon: \"🎡\",\n    version: \"1.0.0\",\n    desc: \"选择困难症救星！中午吃什么、团队分工抓阄与掷骰子抛硬币互动随机生成\",\n    render(container) {\n          container.innerHTML = `\n            <div style=\"width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px;\">\n                <div style=\"font-weight: 700; font-size: 13px;\">📝 候选项目清单 (每行一个选项):</div>\n                <textarea id=\"pWheelOptions\" class=\"form-input\" style=\"flex: 1; font-size: 13px; line-height: 1.6;\">火锅\\n烤肉\\n轻食沙拉\\n麦当劳汉堡\\n广式早茶\\n日料便当\\n麻辣烫\\n螺蛳粉</textarea>\n                <button class=\"btn-action primary\" onclick=\"runSpinDecisionWheel()\" style=\"font-size: 14px; padding: 8px;\">🎲 立即随机抽取决策！</button>\n              </div>\n              <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;\">\n                <div style=\"font-size: 12px; color: var(--text-muted); margin-bottom: 12px;\">抽取结果呈现:</div>\n                <div id=\"pWheelResult\" style=\"font-size: 24px; font-weight: 800; color: var(--primary);\">点击左侧按钮开始决策</div>\n              </div>\n            </div>\n          `;\n        }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-converter-compressor","name":"图片格式转换与压缩","category":"图像多媒体","cat_id":"image","icon":"🖼️","version":"1.0.0","desc":"纯浏览器离线转换 PNG/JPEG/WebP/BMP 格式，自由调节质量无级压缩，体积缩减对比与一键下载","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nfunction handleImgConvFile(file) {\n  if (!validateUploadedFile(file, 25)) return;\n  g_imgConvFile = file;\n  var nameEl = document.getElementById('pImgConvFileName');\n  if (nameEl) nameEl.innerText = file.name + ' (' + (file.size / 1024).toFixed(1) + ' KB)';\n\n  var origMeta = document.getElementById('pImgConvOrigMeta');\n  if (origMeta) {\n    origMeta.innerText = '原图: ' + (file.size / 1024).toFixed(1) + ' KB';\n    origMeta.style.display = 'block';\n  }\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var img = new Image();\n    img.onload = function() {\n      g_imgConvImage = img;\n      var origPrev = document.getElementById('pImgConvOrigPreview');\n      var ph = document.getElementById('pImgConvPlaceholder');\n      if (origPrev) {\n        origPrev.src = e.target.result;\n        origPrev.style.display = 'block';\n      }\n      if (ph) ph.style.display = 'none';\n      reprocessImgConv();\n    };\n    img.src = e.target.result;\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction reprocessImgConv() {\n  if (!g_imgConvImage || !g_imgConvFile) return;\n  var targetFormat = document.getElementById('pImgConvFormat')?.value || 'image/webp';\n  var quality = (parseInt(document.getElementById('pImgConvQuality')?.value || '80', 10)) / 100;\n\n  var canvas = document.createElement('canvas');\n  canvas.width = g_imgConvImage.naturalWidth;\n  canvas.height = g_imgConvImage.naturalHeight;\n  var ctx = canvas.getContext('2d');\n  ctx.drawImage(g_imgConvImage, 0, 0);\n\n  var dataUrl = canvas.toDataURL(targetFormat, quality);\n\n  canvas.toBlob(function(blob) {\n    if (!blob) {\n      try {\n        var byteString = atob(dataUrl.split(',')[1]);\n        var mimeString = dataUrl.split(',')[0].split(':')[1].split(';')[0];\n        var ab = new ArrayBuffer(byteString.length);\n        var ia = new Uint8Array(ab);\n        for (var i = 0; i < byteString.length; i++) {\n          ia[i] = byteString.charCodeAt(i);\n        }\n        blob = new Blob([ab], { type: mimeString });\n      } catch (e) {}\n    }\n    g_imgConvResultBlob = blob || g_imgConvFile;\n\n    var resPrev = document.getElementById('pImgConvResultPreview') || document.getElementById('pImgConvResPreview');\n    var resPlaceholder = document.getElementById('pImgConvResultPlaceholder');\n    var btnDl = document.getElementById('btnDownloadImgConv');\n    var resMeta = document.getElementById('pImgConvResultMeta') || document.getElementById('pImgConvResMeta');\n\n    if (resPrev) {\n      resPrev.src = dataUrl;\n      resPrev.style.display = 'block';\n    }\n    if (resPlaceholder) {\n      resPlaceholder.style.display = 'none';\n    }\n    if (btnDl) btnDl.style.display = 'inline-flex';\n\n    var origSize = g_imgConvFile.size;\n    var newSize = blob ? blob.size : Math.round((dataUrl.length * 3) / 4);\n    var ratio = (((newSize - origSize) / origSize) * 100).toFixed(1);\n    var ratioStr = (newSize < origSize) ? ('体积缩减 ' + Math.abs(ratio) + '% 🚀') : ('体积增加 ' + ratio + '%');\n\n    if (resMeta) {\n      resMeta.innerText = '产物: ' + (newSize / 1024).toFixed(1) + ' KB (' + ratioStr + ')';\n      resMeta.style.display = 'block';\n    }\n  }, targetFormat, quality);\n}\n\nasync function downloadImgConvResult() {\n  if (!g_imgConvResultBlob || !g_imgConvFile) return;\n  var targetFormat = document.getElementById('pImgConvFormat')?.value || 'image/webp';\n  var ext = 'webp';\n  if (targetFormat === 'image/jpeg') ext = 'jpg';\n  else if (targetFormat === 'image/png') ext = 'png';\n\n  var origBaseName = g_imgConvFile.name.substring(0, g_imgConvFile.name.lastIndexOf('.')) || 'converted_image';\n  var downloadName = origBaseName + '_fwpt.' + ext;\n\n  var url = URL.createObjectURL(g_imgConvResultBlob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = downloadName;\n  a.click();\n  setTimeout(function() { URL.revokeObjectURL(url); }, 1500);\n\n  var dlDir = '系统【下载】文件夹 (Downloads)';\n  if (window.__TAURI__ && window.__TAURI__.core && window.__TAURI__.core.invoke) {\n    try {\n      var dir = await window.__TAURI__.core.invoke('get_system_download_dir');\n      if (dir) dlDir = dir;\n    } catch(e) {}\n  }\n\n  var fullPathTip = dlDir + '\\\\' + downloadName;\n\n  var tipEl = document.getElementById('pImgConvDownloadTip');\n  if (tipEl) {\n    tipEl.style.display = 'flex';\n    tipEl.innerHTML = `\n      <div style=\"display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;\">\n        <span style=\"color: var(--success); font-weight: 700;\">✅ 下载成功</span>\n        <span style=\"color: var(--text-muted); font-size: 11.5px;\">保存目录:</span>\n        <span style=\"font-family: var(--font-mono); font-size: 11.5px; color: var(--text-main); font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;\" title=\"${fullPathTip}\">${fullPathTip}</span>\n      </div>\n      <button class=\"btn-action\" onclick=\"openDownloadFolder('${dlDir.replace(/\\\\/g, '\\\\\\\\')}')\" style=\"font-size: 11.5px; padding: 2px 10px; margin-left: 10px; flex-shrink: 0;\">\n        📂 打开保存目录\n      </button>\n    `;\n  }\n\n  showToast('📥 下载成功！已保存至：' + fullPathTip);\n}\n\nfunction openDownloadFolder(dir) {\n  if (window.__TAURI__ && window.__TAURI__.core && window.__TAURI__.core.invoke) {\n    window.__TAURI__.core.invoke('open_system_folder', { path: dir }).catch(function() {\n      window.__TAURI__.core.invoke('open_local_storage_folder');\n    });\n  } else {\n    alert('已下载保存至本地目录：\\n' + dir);\n  }\n}\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgConvFile\"] = handleImgConvFile;\n    window[\"reprocessImgConv\"] = reprocessImgConv;\n    window[\"downloadImgConvResult\"] = downloadImgConvResult;\n    window[\"openDownloadFolder\"] = openDownloadFolder;\n    const __rvPluginDef = {\n    id: \"image-converter-compressor\",\n    name: \"图片格式转换与压缩\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"🖼️\",\n    version: \"1.0.0\",\n    desc: \"纯浏览器离线转换 PNG/JPEG/WebP/BMP 格式，自由调节质量无级压缩，体积缩减对比与一键下载\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; flex-shrink: 0;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择本地图片</span>\n                <input type=\"file\" id=\"pImgConvInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgConvFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 12px; color: var(--text-muted);\" id=\"pImgConvFileName\">未选择文件 (支持直接拖拽图片到下方区域)</span>\n            </div>\n            <div style=\"display: flex; gap: 12px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 12px; font-weight: 600; color: var(--text-sub); white-space: nowrap;\">目标格式:</span>\n                <select id=\"pImgConvFormat\" class=\"form-select\" onchange=\"reprocessImgConv()\" style=\"font-size: 12px; height: 32px; min-width: 155px; width: auto; padding: 4px 28px 4px 10px;\">\n                  <option value=\"image/webp\" selected>WebP (极佳推荐)</option>\n                  <option value=\"image/jpeg\">JPEG / JPG</option>\n                  <option value=\"image/png\">PNG (无损)</option>\n                </select>\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 12px; font-weight: 600; color: var(--text-sub); white-space: nowrap;\">压缩质量: <b id=\"pImgConvQualityVal\" style=\"color: var(--primary);\">80%</b></span>\n                <input type=\"range\" id=\"pImgConvQuality\" min=\"10\" max=\"100\" value=\"80\" oninput=\"document.getElementById('pImgConvQualityVal').innerText=this.value+'%'; reprocessImgConv()\" style=\"width: 85px; cursor: pointer;\">\n              </div>\n              <button class=\"btn-action\" onclick=\"downloadImgConvResult()\" id=\"btnDownloadImgConv\" style=\"display: none; font-size: 12px; padding: 5px 14px; background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600;\">\n                <span>📥 立即下载转换图片</span>\n              </button>\n            </div>\n          </div>\n\n          <!-- 下载成功保存目录常驻提示条 -->\n          <div id=\"pImgConvDownloadTip\" style=\"display: none; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 14px; font-size: 12px; flex-shrink: 0; box-shadow: var(--shadow-sm);\"></div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 280px; height: 100%;\">\n            <div class=\"dropzone-box\" id=\"pImgConvDropzone\" ondragover=\"event.preventDefault(); this.style.borderColor='var(--primary)';\" ondragleave=\"this.style.borderColor='var(--border-color)';\" ondrop=\"event.preventDefault(); this.style.borderColor='var(--border-color)'; handleImgConvFile(event.dataTransfer.files[0]);\" style=\"background: var(--bg-card); border: 2px dashed var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; height: 100%;\">\n              <div id=\"pImgConvOrigMeta\" style=\"position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; display: none; z-index: 5;\">原图: 0 KB</div>\n              <img id=\"pImgConvOrigPreview\" style=\"max-width: 100%; max-height: calc(100% - 20px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); display: none;\">\n              <div id=\"pImgConvPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n                <div style=\"font-size: 36px; margin-bottom: 6px;\">🖼️</div>\n                <div style=\"font-weight: 600; color: var(--text-main); margin-bottom: 4px;\">点击上方按钮或拖拽图片至此处</div>\n                <div style=\"font-size: 11px; opacity: 0.7;\">100% 浏览器原生 Canvas 转码，无任何数据上传，保护绝对隐私</div>\n              </div>\n            </div>\n\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; height: 100%;\">\n              <div id=\"pImgConvResultMeta\" style=\"position: absolute; top: 10px; left: 10px; background: #0d8a6a; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; display: none; z-index: 5; font-weight: 600;\">转换后: 0 KB (-0%)</div>\n              <img id=\"pImgConvResultPreview\" style=\"max-width: 100%; max-height: calc(100% - 20px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); display: none;\">\n              <div id=\"pImgConvResultPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n                <div style=\"font-size: 34px; margin-bottom: 6px;\">⚡</div>\n                <div style=\"font-weight: 600; color: var(--text-main); margin-bottom: 4px;\">转换与压缩后效果预览区域</div>\n                <div style=\"font-size: 11px; opacity: 0.7;\">选择图片后将实时显示转码效果与压缩率对比</div>\n              </div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-resizer-cropper","name":"图片尺寸缩放与旋转","category":"图像多媒体","cat_id":"image","icon":"📐","version":"1.0.0","desc":"按像素/百分比精确缩放、锁定宽高比例、90度顺逆时针旋转与水平/垂直镜像翻转","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgResizeAngle = 0;\n\nvar g_imgResizeFlipH = false;\n\nvar g_imgResizeFlipV = false;\n\nfunction handleImgResizeFile(file) {\n  if (!validateUploadedFile(file, 25)) return;\n  var nameEl = document.getElementById('pImgResizeFileName');\n  if (nameEl) nameEl.innerText = file.name;\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var img = new Image();\n    img.onload = function() {\n      g_imgResizeOrig = img;\n      g_imgResizeAngle = 0;\n      g_imgResizeFlipH = false;\n      g_imgResizeFlipV = false;\n\n      var wEl = document.getElementById('pImgResizeW');\n      var hEl = document.getElementById('pImgResizeH');\n      if (wEl) wEl.value = img.naturalWidth;\n      if (hEl) hEl.value = img.naturalHeight;\n\n      var infoEl = document.getElementById('pImgResizeDims');\n      if (infoEl) infoEl.innerText = img.naturalWidth + ' × ' + img.naturalHeight + ' px';\n\n      drawImgResizeCanvas();\n    };\n    img.src = e.target.result;\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction onImgResizeWChange() {\n  if (!g_imgResizeOrig) return;\n  var keepRatio = document.getElementById('pImgResizeRatio')?.checked;\n  var w = parseInt(document.getElementById('pImgResizeW')?.value, 10);\n  if (keepRatio && w > 0) {\n    var h = Math.round(w * (g_imgResizeOrig.naturalHeight / g_imgResizeOrig.naturalWidth));\n    var hEl = document.getElementById('pImgResizeH');\n    if (hEl) hEl.value = h;\n  }\n  drawImgResizeCanvas();\n}\n\nfunction onImgResizeHChange() {\n  if (!g_imgResizeOrig) return;\n  var keepRatio = document.getElementById('pImgResizeRatio')?.checked;\n  var h = parseInt(document.getElementById('pImgResizeH')?.value, 10);\n  if (keepRatio && h > 0) {\n    var w = Math.round(h * (g_imgResizeOrig.naturalWidth / g_imgResizeOrig.naturalHeight));\n    var wEl = document.getElementById('pImgResizeW');\n    if (wEl) wEl.value = w;\n  }\n  drawImgResizeCanvas();\n}\n\nfunction applyImgResizeScale(pct) {\n  if (!g_imgResizeOrig) return;\n  var w = Math.round(g_imgResizeOrig.naturalWidth * (pct / 100));\n  var h = Math.round(g_imgResizeOrig.naturalHeight * (pct / 100));\n  document.getElementById('pImgResizeW').value = w;\n  document.getElementById('pImgResizeH').value = h;\n  drawImgResizeCanvas();\n}\n\nfunction rotateImgCanvas(delta) {\n  g_imgResizeAngle = (g_imgResizeAngle + delta + 360) % 360;\n  drawImgResizeCanvas();\n}\n\nfunction flipImgCanvas(dir) {\n  if (dir === 'h') g_imgResizeFlipH = !g_imgResizeFlipH;\n  if (dir === 'v') g_imgResizeFlipV = !g_imgResizeFlipV;\n  drawImgResizeCanvas();\n}\n\nfunction drawImgResizeCanvas() {\n  if (!g_imgResizeOrig) return;\n  var w = parseInt(document.getElementById('pImgResizeW')?.value, 10) || g_imgResizeOrig.naturalWidth;\n  var h = parseInt(document.getElementById('pImgResizeH')?.value, 10) || g_imgResizeOrig.naturalHeight;\n\n  var canvas = document.getElementById('pImgResizeCanvas');\n  var ph = document.getElementById('pImgResizePlaceholder');\n  var btnDl = document.getElementById('btnDownloadImgResize');\n  if (!canvas) return;\n\n  var is90 = (g_imgResizeAngle === 90 || g_imgResizeAngle === 270);\n  canvas.width = is90 ? h : w;\n  canvas.height = is90 ? w : h;\n  var ctx = canvas.getContext('2d');\n  ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n  ctx.save();\n  ctx.translate(canvas.width / 2, canvas.height / 2);\n  ctx.rotate((g_imgResizeAngle * Math.PI) / 180);\n  ctx.scale(g_imgResizeFlipH ? -1 : 1, g_imgResizeFlipV ? -1 : 1);\n  ctx.drawImage(g_imgResizeOrig, -w / 2, -h / 2, w, h);\n  ctx.restore();\n\n  canvas.style.display = 'block';\n  if (ph) ph.style.display = 'none';\n  if (btnDl) btnDl.style.display = 'inline-flex';\n}\n\nfunction downloadImgResized() {\n  var canvas = document.getElementById('pImgResizeCanvas');\n  if (!canvas) return;\n  canvas.toBlob(function(blob) {\n    if (!blob) return;\n    var url = URL.createObjectURL(blob);\n    var a = document.createElement('a');\n    a.href = url;\n    a.download = 'resized_' + canvas.width + 'x' + canvas.height + '.png';\n    a.click();\n    URL.revokeObjectURL(url);\n    showToast('📥 调整后图片已下载');\n  }, 'image/png');\n}\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgResizeFile\"] = handleImgResizeFile;\n    window[\"onImgResizeWChange\"] = onImgResizeWChange;\n    window[\"onImgResizeHChange\"] = onImgResizeHChange;\n    window[\"applyImgResizeScale\"] = applyImgResizeScale;\n    window[\"rotateImgCanvas\"] = rotateImgCanvas;\n    window[\"flipImgCanvas\"] = flipImgCanvas;\n    window[\"drawImgResizeCanvas\"] = drawImgResizeCanvas;\n    window[\"downloadImgResized\"] = downloadImgResized;\n    const __rvPluginDef = {\n    id: \"image-resizer-cropper\",\n    name: \"图片尺寸缩放与旋转\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"📐\",\n    version: \"1.0.0\",\n    desc: \"按像素/百分比精确缩放、锁定宽高比例、90度顺逆时针旋转与水平/垂直镜像翻转\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择图片</span>\n                <input type=\"file\" id=\"pImgResizeInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgResizeFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pImgResizeFileName\">未选择文件</span>\n            </div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">宽:</span>\n                <input type=\"number\" id=\"pImgResizeW\" class=\"form-input\" style=\"width: 72px; height: 26px; font-size: 11.5px; padding: 2px 6px;\" oninput=\"onImgResizeWChange()\">\n                <span style=\"font-size: 11px; color: var(--text-muted);\">px</span>\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">高:</span>\n                <input type=\"number\" id=\"pImgResizeH\" class=\"form-input\" style=\"width: 72px; height: 26px; font-size: 11.5px; padding: 2px 6px;\" oninput=\"onImgResizeHChange()\">\n                <span style=\"font-size: 11px; color: var(--text-muted);\">px</span>\n              </div>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pImgResizeLockRatio\" checked> 锁定比例\n              </label>\n              <div style=\"display: flex; gap: 4px;\">\n                <button class=\"btn-action\" onclick=\"applyImgResizeScale(0.5)\" style=\"font-size: 11px; padding: 3px 6px;\">50%</button>\n                <button class=\"btn-action\" onclick=\"applyImgResizeScale(0.75)\" style=\"font-size: 11px; padding: 3px 6px;\">75%</button>\n                <button class=\"btn-action\" onclick=\"applyImgResizeScale(1.0)\" style=\"font-size: 11px; padding: 3px 6px;\">100%</button>\n                <button class=\"btn-action\" onclick=\"applyImgResizeScale(1.5)\" style=\"font-size: 11px; padding: 3px 6px;\">150%</button>\n              </div>\n              <div style=\"display: flex; gap: 4px; border-left: 1px solid var(--border-color); padding-left: 8px;\">\n                <button class=\"btn-action\" onclick=\"rotateImgCanvas(-90)\" title=\"逆时针旋转 90 度\" style=\"font-size: 11px; padding: 3px 6px;\">↺ 逆转</button>\n                <button class=\"btn-action\" onclick=\"rotateImgCanvas(90)\" title=\"顺时针旋转 90 度\" style=\"font-size: 11px; padding: 3px 6px;\">↻ 顺转</button>\n                <button class=\"btn-action\" onclick=\"flipImgCanvas('h')\" title=\"水平镜像翻转\" style=\"font-size: 11px; padding: 3px 6px;\">⇄ 水平</button>\n                <button class=\"btn-action\" onclick=\"flipImgCanvas('v')\" title=\"垂直镜像翻转\" style=\"font-size: 11px; padding: 3px 6px;\">⇅ 垂直</button>\n              </div>\n              <button class=\"btn-action\" onclick=\"downloadImgResized()\" id=\"btnDownloadImgResized\" style=\"display: none; font-size: 11.5px; padding: 4px 10px; background: var(--primary); color: #fff;\">\n                <span>📥 保存图片</span>\n              </button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; overflow: auto; position: relative;\">\n            <canvas id=\"pImgResizeCanvas\" style=\"max-width: 100%; max-height: 100%; box-shadow: 0 4px 16px rgba(0,0,0,0.15); border-radius: 4px; display: none;\"></canvas>\n            <div id=\"pImgResizePlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n              <div style=\"font-size: 34px; margin-bottom: 6px;\">📐</div>\n              <div>请选择需要调整尺寸或旋转的图片</div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-watermark","name":"图片防盗水印生成器","category":"图像多媒体","cat_id":"image","icon":"🛡️","version":"1.0.0","desc":"支持全屏密集平铺防盗水印、印章水印，自定义文字/字号/颜色/透明度/倾斜角度","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgWmOrig = null;\n\nfunction handleImgWatermarkFile(file) {\n  if (!validateUploadedFile(file, 25)) return;\n  g_imgWmFile = file;\n  var nameEl = document.getElementById('pImgWmFileName');\n  if (nameEl) nameEl.innerText = file.name;\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var img = new Image();\n    img.onload = function() {\n      g_imgWmOrig = img;\n      renderImgWatermark();\n    };\n    img.src = e.target.result;\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction renderImgWatermark() {\n  if (!g_imgWmOrig) return;\n  var text = (document.getElementById('pImgWmText')?.value || '内部机密 · 严禁扩散').trim();\n  var color = document.getElementById('pImgWmColor')?.value || '#ffffff';\n  var opacity = (parseInt(document.getElementById('pImgWmOpacity')?.value || '35', 10)) / 100;\n  var fontSize = parseInt(document.getElementById('pImgWmFontSize')?.value || '24', 10);\n  var angle = parseInt(document.getElementById('pImgWmAngle')?.value || '-25', 10);\n  var layout = document.getElementById('pImgWmLayout')?.value || 'repeat';\n\n  var canvas = document.getElementById('pImgWmCanvas');\n  var ph = document.getElementById('pImgWmPlaceholder');\n  var btnDl = document.getElementById('btnDownloadImgWm');\n  if (!canvas) return;\n\n  canvas.width = g_imgWmOrig.naturalWidth;\n  canvas.height = g_imgWmOrig.naturalHeight;\n  var ctx = canvas.getContext('2d');\n  ctx.drawImage(g_imgWmOrig, 0, 0);\n\n  ctx.save();\n  ctx.fillStyle = color;\n  ctx.globalAlpha = opacity;\n  ctx.font = 'bold ' + fontSize + 'px sans-serif';\n  ctx.textAlign = 'center';\n  ctx.textBaseline = 'middle';\n\n  if (layout === 'repeat') {\n    var stepX = fontSize * 10;\n    var stepY = fontSize * 6;\n    for (var x = -canvas.width; x < canvas.width * 2; x += stepX) {\n      for (var y = -canvas.height; y < canvas.height * 2; y += stepY) {\n        ctx.save();\n        ctx.translate(x, y);\n        ctx.rotate((angle * Math.PI) / 180);\n        ctx.fillText(text, 0, 0);\n        ctx.restore();\n      }\n    }\n  } else if (layout === 'center') {\n    ctx.translate(canvas.width / 2, canvas.height / 2);\n    ctx.rotate((angle * Math.PI) / 180);\n    ctx.fillText(text, 0, 0);\n  } else if (layout === 'bottom-right') {\n    ctx.textAlign = 'right';\n    ctx.textBaseline = 'bottom';\n    ctx.fillText(text, canvas.width - 24, canvas.height - 24);\n  }\n  ctx.restore();\n\n  canvas.style.display = 'block';\n  if (ph) ph.style.display = 'none';\n  if (btnDl) btnDl.style.display = 'inline-flex';\n}\n\nfunction downloadWatermarkedImage() {\n  var canvas = document.getElementById('pImgWmCanvas');\n  if (!canvas) return;\n  canvas.toBlob(function(blob) {\n    if (!blob) return;\n    var url = URL.createObjectURL(blob);\n    var a = document.createElement('a');\n    a.href = url;\n    a.download = (g_imgWmFile ? g_imgWmFile.name.replace(/\\.[^.]+$/, '') : 'watermarked') + '_protected.png';\n    a.click();\n    URL.revokeObjectURL(url);\n    showToast('🛡️ 水印保护图片已成功导出');\n  }, 'image/png');\n}\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgWatermarkFile\"] = handleImgWatermarkFile;\n    window[\"renderImgWatermark\"] = renderImgWatermark;\n    window[\"downloadWatermarkedImage\"] = downloadWatermarkedImage;\n    const __rvPluginDef = {\n    id: \"image-watermark\",\n    name: \"图片防盗水印生成器\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"🛡️\",\n    version: \"1.0.0\",\n    desc: \"支持全屏密集平铺防盗水印、印章水印，自定义文字/字号/颜色/透明度/倾斜角度\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择底图</span>\n                <input type=\"file\" id=\"pImgWmInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgWatermarkFile(this.files[0])\">\n              </label>\n              <input type=\"text\" id=\"pImgWmText\" class=\"form-input\" value=\"FWPT 内部机密 · 严禁外传\" placeholder=\"水印文字...\" oninput=\"renderImgWatermark()\" style=\"width: 200px; height: 28px; font-size: 12px; padding: 0 8px;\">\n            </div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">模式:</span>\n                <select id=\"pImgWmMode\" class=\"form-select\" onchange=\"renderImgWatermark()\" style=\"min-width: 195px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"tile\" selected>密集全屏平铺 (防盗用)</option>\n                  <option value=\"br\">右下角印章</option>\n                  <option value=\"center\">居中单印章</option>\n                </select>\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">字号:</span>\n                <input type=\"range\" id=\"pImgWmFontSize\" min=\"12\" max=\"64\" value=\"28\" oninput=\"renderImgWatermark()\" style=\"width: 60px; cursor: pointer;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">透明度:</span>\n                <input type=\"range\" id=\"pImgWmOpacity\" min=\"5\" max=\"95\" value=\"30\" oninput=\"renderImgWatermark()\" style=\"width: 60px; cursor: pointer;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">颜色:</span>\n                <input type=\"color\" id=\"pImgWmColor\" value=\"#ff3366\" onchange=\"renderImgWatermark()\" style=\"width: 28px; height: 26px; border: none; cursor: pointer;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">角度:</span>\n                <input type=\"range\" id=\"pImgWmAngle\" min=\"-90\" max=\"90\" value=\"-30\" oninput=\"renderImgWatermark()\" style=\"width: 60px; cursor: pointer;\">\n              </div>\n              <button class=\"btn-action\" onclick=\"downloadWatermarkedImage()\" id=\"btnDownloadWatermark\" style=\"display: none; font-size: 11.5px; padding: 4px 10px; background: var(--primary); color: #fff;\">\n                <span>📥 导出水印图片</span>\n              </button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; overflow: auto;\">\n            <canvas id=\"pImgWmCanvas\" style=\"max-width: 100%; max-height: 100%; box-shadow: 0 4px 16px rgba(0,0,0,0.15); border-radius: 4px; display: none;\"></canvas>\n            <div id=\"pImgWmPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n              <div style=\"font-size: 34px; margin-bottom: 6px;\">🛡️</div>\n              <div>请选择需要添加文字防盗水印的图片</div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-grid-splitter","name":"九宫格与多格切图器","category":"图像多媒体","cat_id":"image","icon":"🪟","version":"1.0.0","desc":"将一张图片一键切割为社交媒体 9 宫格 (3x3)、4 宫格 (2x2)、6 宫格或 3 宫格切片并分别/批量下载","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgGridOrig = null;\n\nvar g_imgGridBlobs = [];\n\nfunction handleImgGridFile(file) {\n  if (!validateUploadedFile(file, 25)) return;\n  g_imgGridFile = file;\n  var nameEl = document.getElementById('pImgGridFileName');\n  if (nameEl) nameEl.innerText = file.name;\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var img = new Image();\n    img.onload = function() {\n      g_imgGridOrig = img;\n      renderImgGrids();\n    };\n    img.src = e.target.result;\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction renderImgGrids() {\n  if (!g_imgGridOrig) return;\n  var mode = document.getElementById('pImgGridMode')?.value || '3x3';\n  var parts = mode.split('x');\n  var cols = parseInt(parts[0], 10);\n  var rows = parseInt(parts[1], 10);\n\n  var container = document.getElementById('pImgGridContainer');\n  var ph = document.getElementById('pImgGridPlaceholder');\n  var btnDlAll = document.getElementById('btnDownloadAllGrids');\n  if (!container) return;\n\n  container.innerHTML = '';\n  g_imgGridBlobs = [];\n\n  var imgW = g_imgGridOrig.naturalWidth;\n  var imgH = g_imgGridOrig.naturalHeight;\n\n  var cropSize = Math.min(imgW, imgH);\n  var startX = (imgW - cropSize) / 2;\n  var startY = (imgH - cropSize) / 2;\n  var sliceW = cropSize / cols;\n  var sliceH = cropSize / rows;\n\n  container.style.gridTemplateColumns = 'repeat(' + cols + ', 1fr)';\n\n  for (var r = 0; r < rows; r++) {\n    for (var c = 0; c < cols; c++) {\n      (function(rowIdx, colIdx) {\n        var canvas = document.createElement('canvas');\n        canvas.width = sliceW;\n        canvas.height = sliceH;\n        var ctx = canvas.getContext('2d');\n        ctx.drawImage(\n          g_imgGridOrig,\n          startX + colIdx * sliceW, startY + rowIdx * sliceH, sliceW, sliceH,\n          0, 0, sliceW, sliceH\n        );\n\n        var idx = rowIdx * cols + colIdx + 1;\n        var card = document.createElement('div');\n        card.style.position = 'relative';\n        card.style.background = 'var(--bg-subtle)';\n        card.style.border = '1px solid var(--border-color)';\n        card.style.borderRadius = '8px';\n        card.style.overflow = 'hidden';\n        card.style.display = 'flex';\n        card.style.flexDirection = 'column';\n\n        var imgEl = document.createElement('img');\n        imgEl.style.width = '100%';\n        imgEl.style.height = 'auto';\n        imgEl.style.display = 'block';\n\n        canvas.toBlob(function(b) {\n          if (!b) return;\n          g_imgGridBlobs[idx - 1] = b;\n          imgEl.src = URL.createObjectURL(b);\n        }, 'image/png');\n\n        var numBadge = document.createElement('div');\n        numBadge.style.position = 'absolute';\n        numBadge.style.top = '6px';\n        numBadge.style.left = '6px';\n        numBadge.style.background = 'rgba(0,0,0,0.65)';\n        numBadge.style.color = '#fff';\n        numBadge.style.padding = '2px 6px';\n        numBadge.style.borderRadius = '4px';\n        numBadge.style.fontSize = '10.5px';\n        numBadge.style.fontWeight = '700';\n        numBadge.innerText = '#' + idx;\n\n        var btnSingle = document.createElement('button');\n        btnSingle.innerText = '下载 #' + idx;\n        btnSingle.style.padding = '4px';\n        btnSingle.style.fontSize = '11px';\n        btnSingle.style.cursor = 'pointer';\n        btnSingle.style.background = 'var(--bg-card)';\n        btnSingle.style.border = 'none';\n        btnSingle.style.borderTop = '1px solid var(--border-color)';\n        btnSingle.onclick = function() { downloadGridSlice(idx - 1); };\n\n        card.appendChild(numBadge);\n        card.appendChild(imgEl);\n        card.appendChild(btnSingle);\n        container.appendChild(card);\n      })(r, c);\n    }\n  }\n\n  container.style.display = 'grid';\n  if (ph) ph.style.display = 'none';\n  if (btnDlAll) btnDlAll.style.display = 'inline-flex';\n}\n\nfunction downloadGridSlice(idx) {\n  var b = g_imgGridBlobs[idx];\n  if (!b) return;\n  var url = URL.createObjectURL(b);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = 'grid_slice_' + (idx + 1) + '.png';\n  a.click();\n  URL.revokeObjectURL(url);\n}\n\nfunction downloadAllGridSlices() {\n  if (!g_imgGridBlobs.length) return;\n  showToast('📦 正在依次导出全部 ' + g_imgGridBlobs.length + ' 张切片...');\n  g_imgGridBlobs.forEach(function(b, idx) {\n    if (!b) return;\n    setTimeout(function() {\n      var url = URL.createObjectURL(b);\n      var a = document.createElement('a');\n      a.href = url;\n      a.download = 'grid_slice_' + (idx + 1) + '.png';\n      a.click();\n      URL.revokeObjectURL(url);\n    }, idx * 250);\n  });\n}\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgGridFile\"] = handleImgGridFile;\n    window[\"renderImgGrids\"] = renderImgGrids;\n    window[\"downloadGridSlice\"] = downloadGridSlice;\n    window[\"downloadAllGridSlices\"] = downloadAllGridSlices;\n    const __rvPluginDef = {\n    id: \"image-grid-splitter\",\n    name: \"九宫格与多格切图器\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"🪟\",\n    version: \"1.0.0\",\n    desc: \"将一张图片一键切割为社交媒体 9 宫格 (3x3)、4 宫格 (2x2)、6 宫格或 3 宫格切片并分别/批量下载\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择图片</span>\n                <input type=\"file\" id=\"pImgGridInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgGridFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pImgGridFileName\">未选择文件</span>\n            </div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">切图规格:</span>\n                <select id=\"pImgGridType\" class=\"form-select\" onchange=\"renderImgGrids()\" style=\"min-width: 250px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"3x3\" selected>9 宫格 (3 × 3 朋友圈/微博/小红书)</option>\n                  <option value=\"2x2\">4 宫格 (2 × 2 对称大图)</option>\n                  <option value=\"2x3\">6 宫格 (2 行 3 列)</option>\n                  <option value=\"1x3\">3 宫格 (横向 1 × 3)</option>\n                  <option value=\"3x1\">3 宫格 (纵向 3 × 1)</option>\n                </select>\n              </div>\n              <button class=\"btn-action\" onclick=\"downloadAllGridSlices()\" id=\"btnDownloadAllGrids\" style=\"display: none; font-size: 11.5px; padding: 4px 10px; background: var(--primary); color: #fff;\">\n                <span>📦 批量依次下载全部切片</span>\n              </button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; overflow: auto;\">\n            <div id=\"pImgGridContainer\" style=\"display: grid; gap: 8px; max-width: 500px; width: 100%;\">\n              <!-- 动态切片方块 -->\n            </div>\n            <div id=\"pImgGridPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n              <div style=\"font-size: 34px; margin-bottom: 6px;\">🪟</div>\n              <div>请选择一张需要切图的照片</div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-color-picker-palette","name":"图片吸色与主色调提取","category":"图像多媒体","cat_id":"image","icon":"🎨","version":"1.0.0","desc":"交互式像素放大镜吸色取色，自动算法提取图片前 6 项核心主色调调色板与占比","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nfunction handleImgColorPickerFile(file) {\n  if (!validateUploadedFile(file, 25)) return;\n  var nameEl = document.getElementById('pImgColorFileName');\n  if (nameEl) nameEl.innerText = file.name;\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var img = new Image();\n    img.onload = function() {\n      var canvas = document.getElementById('pImgColorCanvas');\n      var ph = document.getElementById('pImgColorPlaceholder');\n      if (!canvas) return;\n\n      var maxW = 500;\n      var scale = img.naturalWidth > maxW ? (maxW / img.naturalWidth) : 1;\n      canvas.width = img.naturalWidth * scale;\n      canvas.height = img.naturalHeight * scale;\n      var ctx = canvas.getContext('2d');\n      ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n\n      canvas.style.display = 'block';\n      if (ph) ph.style.display = 'none';\n\n      canvas.onmousemove = function(evt) {\n        var rect = canvas.getBoundingClientRect();\n        var x = Math.floor(evt.clientX - rect.left);\n        var y = Math.floor(evt.clientY - rect.top);\n        if (x >= 0 && x < canvas.width && y >= 0 && y < canvas.height) {\n          var pixel = ctx.getImageData(x, y, 1, 1).data;\n          var hex = '#' + ((1 << 24) + (pixel[0] << 16) + (pixel[1] << 8) + pixel[2]).toString(16).slice(1).toUpperCase();\n          var rgb = 'rgb(' + pixel[0] + ', ' + pixel[1] + ', ' + pixel[2] + ')';\n\n          var curBlock = document.getElementById('pImgCurColorBlock');\n          var curHex = document.getElementById('pImgCurHex');\n          var curRgb = document.getElementById('pImgCurRgb');\n          if (curBlock) curBlock.style.background = hex;\n          if (curHex) curHex.innerText = hex;\n          if (curRgb) curRgb.innerText = rgb;\n        }\n      };\n\n      canvas.onclick = function() {\n        var hex = document.getElementById('pImgCurHex')?.innerText;\n        if (hex && hex !== '-') {\n          copyTextToClipboard(hex, '当前像素颜色已复制: ' + hex);\n        }\n      };\n\n      extractDominantColors(img);\n    };\n    img.src = e.target.result;\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction extractDominantColors(img) {\n  var canvas = document.createElement('canvas');\n  var step = 4;\n  canvas.width = Math.min(220, img.naturalWidth);\n  canvas.height = Math.min(220, img.naturalHeight);\n  var ctx = canvas.getContext('2d');\n  ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n\n  var data = ctx.getImageData(0, 0, canvas.width, canvas.height).data;\n  var colorCounts = {};\n\n  // 采用平滑量化步长 16，提高调色板色谱分辨率\n  var qStep = 16;\n  for (var i = 0; i < data.length; i += 4 * step) {\n    var r = Math.round(data[i] / qStep) * qStep;\n    var g = Math.round(data[i+1] / qStep) * qStep;\n    var b = Math.round(data[i+2] / qStep) * qStep;\n    var a = data[i+3];\n    if (a < 128) continue;\n    var key = r + ',' + g + ',' + b;\n    colorCounts[key] = (colorCounts[key] || 0) + 1;\n  }\n\n  var sorted = Object.keys(colorCounts).sort((a,b) => colorCounts[b] - colorCounts[a]).slice(0, 6);\n  var paletteBox = document.getElementById('pImgDominantPalette');\n  if (!paletteBox) return;\n  paletteBox.innerHTML = '';\n\n  var total = sorted.reduce((sum, k) => sum + colorCounts[k], 0);\n\n  sorted.forEach(function(rgbStr) {\n    var parts = rgbStr.split(',').map(Number);\n    var hex = '#' + ((1 << 24) + (parts[0] << 16) + (parts[1] << 8) + parts[2]).toString(16).slice(1).toUpperCase();\n    var percent = total > 0 ? ((colorCounts[rgbStr] / total) * 100).toFixed(1) : '16.7';\n\n    var row = document.createElement('div');\n    row.style.display = 'flex';\n    row.style.alignItems = 'center';\n    row.style.justifyContent = 'space-between';\n    row.style.background = 'var(--bg-subtle)';\n    row.style.borderRadius = '6px';\n    row.style.padding = '6px 10px';\n    row.style.cursor = 'pointer';\n    row.onclick = function() { copyTextToClipboard(hex, '调色板色值已复制: ' + hex); };\n    row.innerHTML = `\n      <div style=\"display: flex; align-items: center; gap: 8px;\">\n        <div style=\"width: 22px; height: 22px; border-radius: 4px; background: ${hex}; border: 1px solid var(--border-color);\"></div>\n        <span style=\"font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-main);\">${hex}</span>\n      </div>\n      <span style=\"font-size: 11px; color: var(--text-muted);\">${percent}% 占比 📋</span>\n    `;\n    paletteBox.appendChild(row);\n  });\n}\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgColorPickerFile\"] = handleImgColorPickerFile;\n    window[\"extractDominantColors\"] = extractDominantColors;\n    const __rvPluginDef = {\n    id: \"image-color-picker-palette\",\n    name: \"图片吸色与主色调提取\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"🎨\",\n    version: \"1.0.0\",\n    desc: \"交互式像素放大镜吸色取色，自动算法提取图片前 6 项核心主色调调色板与占比\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择图片</span>\n                <input type=\"file\" id=\"pImgColorInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgColorPickerFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pImgColorFileName\">未选择文件</span>\n            </div>\n            <!-- 当前鼠标吸色预览 -->\n            <div style=\"display: flex; gap: 10px; align-items: center;\" id=\"pImgColorHoverBar\">\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\">当前像素:</span>\n              <div id=\"pImgColorHoverSwatch\" style=\"width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border-color); background: #ffffff;\"></div>\n              <span id=\"pImgColorHoverHex\" style=\"font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-main);\">#FFFFFF</span>\n              <button class=\"btn-action\" onclick=\"copyTextToClipboard(document.getElementById('pImgColorHoverHex').innerText, '已复制色值')\" style=\"font-size: 11px; padding: 2px 8px;\">复制</button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 14px; min-height: 0;\">\n            <!-- 左侧：图片画布 -->\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; align-items: center; justify-content: center; overflow: auto; position: relative;\">\n              <canvas id=\"pImgColorCanvas\" style=\"max-width: 100%; max-height: 100%; cursor: crosshair; display: none;\"></canvas>\n              <div id=\"pImgColorPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px;\">\n                <div style=\"font-size: 34px; margin-bottom: 6px;\">🎨</div>\n                <div>上传图片后，在此移动鼠标即可吸色，点击锁定</div>\n              </div>\n            </div>\n\n            <!-- 右侧：主色调调色板提取 -->\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto;\">\n              <div style=\"font-weight: 700; font-size: 13px; color: var(--primary);\">🌈 图片主色调提取 (Dominant Palette)</div>\n              <div style=\"font-size: 11.5px; color: var(--text-muted);\">基于直方图量化算法提取的核心配色：</div>\n              <div id=\"pImgDominantPalette\" style=\"display: flex; flex-direction: column; gap: 8px; margin-top: 6px;\">\n                <div style=\"color: var(--text-muted); font-size: 12px; text-align: center; padding: 30px 0;\">等待载入图片...</div>\n              </div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"image-base64-converter","name":"图片与 Base64 双向转换","category":"图像多媒体","cat_id":"image","icon":"⚡","version":"1.0.0","desc":"本地图片拖拽转 Data URI / HTML img / CSS 背景代码，以及 Base64 还原预览下载","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nfunction handleImgB64File(file) {\n  if (!validateUploadedFile(file, 20)) return;\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    g_imgB64DataUrl = e.target.result;\n    var out = document.getElementById('pImgB64Output');\n    if (out) out.value = g_imgB64DataUrl;\n    var info = document.getElementById('pImgB64SizeInfo');\n    if (info) {\n      info.innerText = file.name + ' (' + (file.size / 1024).toFixed(1) + ' KB, Base64: ' + g_imgB64DataUrl.length + ' 字符)';\n    }\n    showToast('✨ Base64 生成成功');\n  };\n  reader.readAsDataURL(file);\n}\n\nfunction copyImgB64Code(type) {\n  if (!g_imgB64DataUrl) { showToast('⚠️ 请先选择图片生成 Base64'); return; }\n  var text = g_imgB64DataUrl;\n  if (type === 'html') {\n    text = '<img src=\"' + g_imgB64DataUrl + '\" alt=\"Embedded Image\" />';\n  } else if (type === 'css') {\n    text = 'background-image: url(\"' + g_imgB64DataUrl + '\");';\n  }\n  copyTextToClipboard(text, '已复制 ' + type.toUpperCase() + ' 格式代码');\n}\n\nfunction renderB64ToImgPreview() {\n  var raw = (document.getElementById('pB64ToImgInput')?.value || '').trim();\n  var img = document.getElementById('pB64ToImgPreview');\n  var ph = document.getElementById('pB64ToImgPlaceholder');\n  var meta = document.getElementById('pB64ToImgMeta');\n  var btnDl = document.getElementById('btnDownloadB64Img');\n\n  if (!raw) {\n    if (img) img.style.display = 'none';\n    if (ph) ph.style.display = 'block';\n    if (btnDl) btnDl.style.display = 'none';\n    if (meta) meta.innerText = '等待输入';\n    return;\n  }\n\n  var src = raw;\n  if (!src.startsWith('data:image/')) {\n    src = 'data:image/png;base64,' + raw;\n  }\n\n  img.onload = function() {\n    img.style.display = 'block';\n    if (ph) ph.style.display = 'none';\n    if (btnDl) btnDl.style.display = 'inline-flex';\n    if (meta) meta.innerText = '还原尺寸: ' + img.naturalWidth + ' × ' + img.naturalHeight + ' px';\n  };\n  img.onerror = function() {\n    if (meta) meta.innerText = '❌ 无效的 Base64 图片数据';\n  };\n  img.src = src;\n}\n\nfunction downloadB64RestoredImg() {\n  var img = document.getElementById('pB64ToImgPreview');\n  if (!img || !img.src) return;\n  var a = document.createElement('a');\n  a.href = img.src;\n  a.download = 'restored_base64_image.png';\n  a.click();\n  showToast('📥 还原图片已下载');\n}\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handleImgB64File\"] = handleImgB64File;\n    window[\"copyImgB64Code\"] = copyImgB64Code;\n    window[\"renderB64ToImgPreview\"] = renderB64ToImgPreview;\n    window[\"downloadB64RestoredImg\"] = downloadB64RestoredImg;\n    const __rvPluginDef = {\n    id: \"image-base64-converter\",\n    name: \"图片与 Base64 双向转换\",\n    category: \"图像多媒体\",\n    cat_id: \"image\",\n    icon: \"⚡\",\n    version: \"1.0.0\",\n    desc: \"本地图片拖拽转 Data URI / HTML img / CSS 背景代码，以及 Base64 还原预览下载\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 100%; min-height: 0;\">\n          <!-- 左侧：图片转 Base64 -->\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n            <div style=\"font-weight: 700; font-size: 13.5px; color: var(--primary);\">📤 模式一：图片 ➔ 转换 Base64</div>\n            <div style=\"display: flex; gap: 10px; align-items: center;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0; font-size: 11.5px;\">\n                <span>📁 选择图片</span>\n                <input type=\"file\" id=\"pImgB64FileInput\" accept=\"image/*\" style=\"display: none;\" onchange=\"handleImgB64File(this.files[0])\">\n              </label>\n              <span id=\"pImgB64SizeInfo\" style=\"font-size: 11px; color: var(--text-muted);\">支持各类 PNG/JPG/WebP/SVG/ICO 图标</span>\n            </div>\n            <textarea id=\"pImgB64Output\" class=\"form-input\" rows=\"8\" readonly placeholder=\"选择图片后，此处将自动生成 Base64 Data URL...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 11.5px; resize: none; background: var(--bg-subtle);\"></textarea>\n            <div style=\"display: flex; gap: 6px; flex-wrap: wrap;\">\n              <button class=\"btn-action\" onclick=\"copyImgB64Code('raw')\" style=\"font-size: 11.5px;\">复制 Data URL</button>\n              <button class=\"btn-action\" onclick=\"copyImgB64Code('html')\" style=\"font-size: 11.5px;\">复制 &lt;img&gt; 标签</button>\n              <button class=\"btn-action\" onclick=\"copyImgB64Code('css')\" style=\"font-size: 11.5px;\">复制 CSS 背景</button>\n            </div>\n          </div>\n\n          <!-- 右侧：Base64 还原图片 -->\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n            <div style=\"font-weight: 700; font-size: 13.5px; color: var(--success);\">📥 模式二：Base64 ➔ 还原为图片</div>\n            <textarea id=\"pB64ToImgInput\" class=\"form-input\" rows=\"5\" placeholder=\"请在此粘贴 Base64 字符串 (形如 data:image/png;base64,iVBORw0... 或纯 Base64 字符串)...\" oninput=\"renderB64ToImgPreview()\" style=\"font-family: var(--font-mono); font-size: 11.5px;\"></textarea>\n            <div style=\"flex: 1; background: var(--bg-subtle); border-radius: 8px; border: 1px dashed var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px;\">\n              <img id=\"pB64ToImgPreview\" style=\"max-width: 100%; max-height: 100%; object-fit: contain; display: none;\">\n              <div id=\"pB64ToImgPlaceholder\" style=\"color: var(--text-muted); font-size: 12px;\">粘贴有效 Base64 后在此渲染还原图片</div>\n            </div>\n            <div style=\"display: flex; justify-content: space-between; align-items: center;\">\n              <span id=\"pB64ToImgMeta\" style=\"font-size: 11px; color: var(--text-muted);\">等待输入</span>\n              <button class=\"btn-action\" id=\"btnDownloadB64Img\" onclick=\"downloadB64RestoredImg()\" style=\"font-size: 11.5px; display: none;\">📥 下载还原图片</button>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"pdf-page-splitter","name":"PDF 页面提取与拆分器","category":"文档与 PDF","cat_id":"pdf","icon":"📑","version":"1.0.0","desc":"纯浏览器离线解析 PDF，按页码范围 (如 1-3, 5) 提取或单独导出拆分页面，绝不上载服务器","requiresPdf":true,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nasync function handlePdfSplitFile(file) {\n  if (!validateUploadedFile(file, 50)) return;\n  g_pdfSplitFileName = file.name;\n  var nameEl = document.getElementById('pPdfSplitFileName');\n  if (nameEl) nameEl.innerText = file.name + ' (' + (file.size / 1024).toFixed(1) + ' KB)';\n\n  var reader = new FileReader();\n  reader.onload = async function(e) {\n    g_pdfSplitBuffer = e.target.result;\n    var infoBox = document.getElementById('pPdfSplitInfoBox');\n    var details = document.getElementById('pPdfSplitDetails');\n    var btn = document.getElementById('btnExecPdfSplit');\n    var ph = document.getElementById('pPdfSplitPlaceholder');\n\n    var pageCount = 0;\n    try {\n      if (typeof PDFLib !== 'undefined') {\n        var doc = await PDFLib.PDFDocument.load(g_pdfSplitBuffer, { ignoreEncryption: true });\n        pageCount = doc.getPageCount();\n      } else {\n        var bytes = new Uint8Array(g_pdfSplitBuffer);\n        var str = '';\n        var len = Math.min(bytes.length, 60000);\n        for (var i = 0; i < len; i++) str += String.fromCharCode(bytes[i]);\n        var m = str.match(/\\/Type\\s*\\/Page(?!\\w)/g);\n        pageCount = m ? m.length : 1;\n      }\n    } catch(err) {\n      console.warn('PDF Read Warning:', err);\n      pageCount = '检测中';\n    }\n\n    if (infoBox && details) {\n      infoBox.style.display = 'block';\n      details.innerHTML = `\n        <div>• <b>文件名称:</b> ${escapeHtml(file.name)}</div>\n        <div>• <b>PDF 总页数:</b> <span style=\"color:var(--primary); font-weight:700;\">${pageCount} 页</span></div>\n        <div style=\"color: var(--success); margin-top: 4px;\">✔ 客户端解析就绪，请输入上方页码范围（如 1-3 或 1,3,5）并点击提取</div>\n      `;\n    }\n    if (ph) ph.style.display = 'none';\n    if (btn) btn.style.display = 'inline-flex';\n  };\n  reader.readAsArrayBuffer(file);\n}\n\nasync function execPdfPageSplit() {\n  if (!g_pdfSplitBuffer) { showToast('⚠️ 请先选择 PDF 文件'); return; }\n  var rangeStr = (document.getElementById('pPdfSplitRange')?.value || '1').trim();\n  showToast('✂️ 正在提取页面范围: ' + rangeStr + '...');\n\n  try {\n    if (typeof PDFLib === 'undefined') throw new Error('PDFLib 客户端引擎尚未加载完成');\n    var srcDoc = await PDFLib.PDFDocument.load(g_pdfSplitBuffer);\n    var totalPages = srcDoc.getPageCount();\n\n    // 解析页码范围，例如 \"1-3, 5, 8-10\"\n    var indices = [];\n    var parts = rangeStr.split(/[,，\\s]+/);\n    for (var i = 0; i < parts.length; i++) {\n      var part = parts[i];\n      if (!part) continue;\n      if (part.indexOf('-') !== -1) {\n        var segs = part.split('-');\n        var s = parseInt(segs[0], 10);\n        var e = parseInt(segs[1], 10);\n        if (!isNaN(s) && !isNaN(e)) {\n          var start = Math.max(1, Math.min(s, e));\n          var end = Math.min(totalPages, Math.max(s, e));\n          for (var p = start; p <= end; p++) {\n            if (indices.indexOf(p - 1) === -1) indices.push(p - 1);\n          }\n        }\n      } else {\n        var single = parseInt(part, 10);\n        if (!isNaN(single) && single >= 1 && single <= totalPages) {\n          if (indices.indexOf(single - 1) === -1) indices.push(single - 1);\n        }\n      }\n    }\n\n    if (indices.length === 0) {\n      showToast('⚠️ 未匹配到有效页码 (原文档共 ' + totalPages + ' 页)');\n      return;\n    }\n\n    indices.sort(function(a, b) { return a - b; });\n\n    var newDoc = await PDFLib.PDFDocument.create();\n    var copiedPages = await newDoc.copyPages(srcDoc, indices);\n    for (var j = 0; j < copiedPages.length; j++) {\n      newDoc.addPage(copiedPages[j]);\n    }\n\n    var pdfBytes = await newDoc.save();\n    var blob = new Blob([pdfBytes], { type: 'application/pdf' });\n    var url = URL.createObjectURL(blob);\n    var a = document.createElement('a');\n    a.href = url;\n    a.download = g_pdfSplitFileName.replace(/\\.pdf$/i, '') + '_extracted_' + indices.length + 'p.pdf';\n    a.click();\n    URL.revokeObjectURL(url);\n    showToast('🎉 成功提取 ' + indices.length + ' 页 PDF 并导出！');\n  } catch(err) {\n    console.error('PDF Split Error:', err);\n    showToast('❌ 拆分失败: ' + err.message);\n  }\n}\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handlePdfSplitFile\"] = handlePdfSplitFile;\n    window[\"execPdfPageSplit\"] = execPdfPageSplit;\n    const __rvPluginDef = {\n    id: \"pdf-page-splitter\",\n    name: \"PDF 页面提取与拆分器\",\n    category: \"文档与 PDF\",\n    cat_id: \"pdf\",\n    icon: \"📑\",\n    version: \"1.0.0\",\n    desc: \"纯浏览器离线解析 PDF，按页码范围 (如 1-3, 5) 提取或单独导出拆分页面，绝不上载服务器\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择 PDF 文件</span>\n                <input type=\"file\" id=\"pPdfSplitInput\" accept=\"application/pdf\" style=\"display: none;\" onchange=\"handlePdfSplitFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pPdfSplitFileName\">未选择文件</span>\n            </div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">提取页面范围:</span>\n                <input type=\"text\" id=\"pPdfSplitRange\" class=\"form-input\" placeholder=\"例如: 1-3, 5, 8\" value=\"1\" style=\"width: 140px; height: 28px; font-size: 12px; padding: 0 8px;\">\n              </div>\n              <button class=\"btn-action\" onclick=\"execPdfPageSplit()\" id=\"btnExecPdfSplit\" style=\"display: none; font-size: 12px; padding: 5px 12px; background: var(--primary); color: #fff;\">\n                <span>✂️ 立即提取并下载新 PDF</span>\n              </button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto;\">\n            <div id=\"pPdfSplitInfoBox\" style=\"background: var(--bg-subtle); border-radius: 8px; padding: 12px; display: none;\">\n              <div style=\"font-weight: 600; font-size: 13px; color: var(--text-main); margin-bottom: 6px;\">📄 PDF 文档结构信息:</div>\n              <div id=\"pPdfSplitDetails\" style=\"font-size: 12px; color: var(--text-sub); line-height: 1.6;\"></div>\n            </div>\n            <div id=\"pPdfSplitPlaceholder\" style=\"flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12.5px;\">\n              <div style=\"font-size: 34px; margin-bottom: 6px;\">📑</div>\n              <div style=\"font-weight: 600; color: var(--text-main); margin-bottom: 4px;\">本地无损 PDF 页面拆分</div>\n              <div style=\"font-size: 11px; opacity: 0.7;\">采用纯浏览器 ArrayBuffer 结构解析，零数据外传</div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"pdf-merger","name":"多 PDF 文档合并器","category":"文档与 PDF","cat_id":"pdf","icon":"📚","version":"1.0.0","desc":"拖拽上传多个 PDF 文档，自由调整页面合并次序，客户端一键打包合并为一个完整 PDF","requiresPdf":true,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMergeList = [];\n\nfunction handlePdfMergeFiles(files) {\n  if (!files || !files.length) return;\n  for (var i = 0; i < files.length; i++) {\n    if (!validateUploadedFile(files[i], 50)) continue;\n    (function(f) {\n      var reader = new FileReader();\n      reader.onload = function(e) {\n        g_pdfMergeList.push({ name: f.name, size: f.size, buffer: e.target.result });\n        renderPdfMergeList();\n      };\n      reader.readAsArrayBuffer(f);\n    })(files[i]);\n  }\n}\n\nfunction renderPdfMergeList() {\n  var listEl = document.getElementById('pPdfMergeList');\n  var countEl = document.getElementById('pPdfMergeCount');\n  var btnMerge = document.getElementById('btnExecPdfMerge');\n  if (!listEl) return;\n\n  if (countEl) countEl.innerText = '已选 ' + g_pdfMergeList.length + ' 个文件';\n  if (btnMerge) btnMerge.style.display = g_pdfMergeList.length >= 2 ? 'inline-flex' : 'none';\n\n  if (!g_pdfMergeList.length) {\n    listEl.innerHTML = '<div style=\"text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 40px 0;\">请点击上方按钮添加多个 PDF 文件</div>';\n    return;\n  }\n\n  listEl.innerHTML = '';\n  g_pdfMergeList.forEach(function(item, idx) {\n    var row = document.createElement('div');\n    row.style.display = 'flex';\n    row.style.alignItems = 'center';\n    row.style.justifyContent = 'space-between';\n    row.style.padding = '8px 12px';\n    row.style.background = 'var(--bg-card)';\n    row.style.border = '1px solid var(--border-color)';\n    row.style.borderRadius = '6px';\n\n    row.innerHTML = `\n      <div style=\"display: flex; align-items: center; gap: 8px;\">\n        <span style=\"font-weight: 700; color: var(--primary); font-size: 12px;\">#${idx + 1}</span>\n        <span style=\"font-size: 12.5px; font-weight: 500; color: var(--text-main);\">${escapeHtml(item.name)}</span>\n        <span style=\"font-size: 11px; color: var(--text-muted);\">(${(item.size / 1024).toFixed(1)} KB)</span>\n      </div>\n      <div style=\"display: flex; gap: 6px;\">\n        <button class=\"btn-action\" onclick=\"movePdfMergeItem(${idx}, -1)\" ${idx === 0 ? 'disabled' : ''} style=\"padding: 2px 6px; font-size: 11px;\">▲ 上移</button>\n        <button class=\"btn-action\" onclick=\"movePdfMergeItem(${idx}, 1)\" ${idx === g_pdfMergeList.length - 1 ? 'disabled' : ''} style=\"padding: 2px 6px; font-size: 11px;\">▼ 下移</button>\n        <button class=\"btn-action\" onclick=\"removePdfMergeItem(${idx})\" style=\"padding: 2px 6px; font-size: 11px; color: var(--danger);\">✕ 移除</button>\n      </div>\n    `;\n    listEl.appendChild(row);\n  });\n}\n\nfunction movePdfMergeItem(idx, dir) {\n  var target = idx + dir;\n  if (target < 0 || target >= g_pdfMergeList.length) return;\n  var temp = g_pdfMergeList[idx];\n  g_pdfMergeList[idx] = g_pdfMergeList[target];\n  g_pdfMergeList[target] = temp;\n  renderPdfMergeList();\n}\n\nfunction removePdfMergeItem(idx) {\n  g_pdfMergeList.splice(idx, 1);\n  renderPdfMergeList();\n}\n\nfunction clearPdfMergeList() {\n  g_pdfMergeList = [];\n  renderPdfMergeList();\n}\n\nasync function execPdfMerge() {\n  if (g_pdfMergeList.length < 2) { showToast('⚠️ 请至少选择 2 个 PDF 文件进行合并'); return; }\n  showToast('📑 正在客户端合并 ' + g_pdfMergeList.length + ' 个 PDF 文档...');\n\n  try {\n    if (typeof PDFLib === 'undefined') throw new Error('PDFLib 客户端引擎尚未加载完成');\n    var mergedDoc = await PDFLib.PDFDocument.create();\n    var totalPages = 0;\n\n    for (var i = 0; i < g_pdfMergeList.length; i++) {\n      var item = g_pdfMergeList[i];\n      var srcDoc = await PDFLib.PDFDocument.load(item.buffer, { ignoreEncryption: true });\n      var pageIndices = srcDoc.getPageIndices();\n      var copiedPages = await mergedDoc.copyPages(srcDoc, pageIndices);\n      for (var j = 0; j < copiedPages.length; j++) {\n        mergedDoc.addPage(copiedPages[j]);\n        totalPages++;\n      }\n    }\n\n    var mergedBytes = await mergedDoc.save();\n    var mergedBlob = new Blob([mergedBytes], { type: 'application/pdf' });\n    var url = URL.createObjectURL(mergedBlob);\n    var a = document.createElement('a');\n    a.href = url;\n    a.download = 'fwpt_merged_' + g_pdfMergeList.length + 'files_' + totalPages + 'p.pdf';\n    a.click();\n    URL.revokeObjectURL(url);\n    showToast('🎉 合并完成！已生成包含 ' + totalPages + ' 页的标准 PDF 文档');\n  } catch(err) {\n    console.error('PDF Merge Error:', err);\n    showToast('❌ 合并失败: ' + err.message);\n  }\n}\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handlePdfMergeFiles\"] = handlePdfMergeFiles;\n    window[\"renderPdfMergeList\"] = renderPdfMergeList;\n    window[\"movePdfMergeItem\"] = movePdfMergeItem;\n    window[\"removePdfMergeItem\"] = removePdfMergeItem;\n    window[\"clearPdfMergeList\"] = clearPdfMergeList;\n    window[\"execPdfMerge\"] = execPdfMerge;\n    const __rvPluginDef = {\n    id: \"pdf-merger\",\n    name: \"多 PDF 文档合并器\",\n    category: \"文档与 PDF\",\n    cat_id: \"pdf\",\n    icon: \"📚\",\n    version: \"1.0.0\",\n    desc: \"拖拽上传多个 PDF 文档，自由调整页面合并次序，客户端一键打包合并为一个完整 PDF\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 添加 PDF 文件 (支持多选)</span>\n                <input type=\"file\" id=\"pPdfMergeInput\" accept=\"application/pdf\" multiple style=\"display: none;\" onchange=\"handlePdfMergeFiles(this.files)\">\n              </label>\n              <button class=\"btn-action\" onclick=\"clearPdfMergeList()\" style=\"font-size: 11.5px;\">清空列表</button>\n            </div>\n            <button class=\"btn-action\" onclick=\"execPdfMerge()\" id=\"btnExecPdfMerge\" style=\"font-size: 12px; padding: 5px 12px; background: var(--primary); color: #fff; display: none;\">\n              <span>📑 立即合并并下载统一 PDF</span>\n            </button>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto;\">\n            <div style=\"font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between;\">\n              <span>待合并文件列表 (上下箭头调整合并顺序):</span>\n              <span id=\"pPdfMergeCount\">已选 0 个文件</span>\n            </div>\n            <div id=\"pPdfMergeList\" style=\"display: flex; flex-direction: column; gap: 8px;\">\n              <div style=\"text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 40px 0;\">\n                <div style=\"font-size: 34px; margin-bottom: 6px;\">📚</div>\n                <div>请点击上方按钮添加需要合并的多个 PDF 文件</div>\n              </div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"pdf-text-extractor","name":"PDF 文本提取与字数统计","category":"文档与 PDF","cat_id":"pdf","icon":"📝","version":"1.0.0","desc":"从 PDF 流对象中提取可编辑纯文本，自动字符/字数统计，支持一键复制与导出 .txt","requiresPdf":true,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nfunction handlePdfExtractFile(file) {\n  if (!validateUploadedFile(file, 40)) return;\n  var nameEl = document.getElementById('pPdfExtractFileName');\n  if (nameEl) nameEl.innerText = file.name + ' (' + (file.size / 1024).toFixed(1) + ' KB)';\n\n  var reader = new FileReader();\n  reader.onload = function(e) {\n    var bytes = new Uint8Array(e.target.result);\n    var str = '';\n    var len = bytes.length;\n    for (var i = 0; i < len; i++) {\n      str += String.fromCharCode(bytes[i]);\n    }\n\n    var extractedText = [];\n    var textBlocks = str.match(/BT[\\s\\S]*?ET/g) || [];\n    textBlocks.forEach(function(block) {\n      var matches = block.match(/\\(([^()]+)\\)\\s*Tj/g) || [];\n      matches.forEach(function(m) {\n        var t = m.replace(/^\\(/, '').replace(/\\)\\s*Tj$/, '');\n        t = t.replace(/\\\\([0-9]{3})/g, function(_, oct) {\n          return String.fromCharCode(parseInt(oct, 8));\n        });\n        extractedText.push(t);\n      });\n    });\n\n    if (!extractedText.length) {\n      var altMatches = str.match(/\\(([a-zA-Z0-9\\u4e00-\\u9fa5\\s,.:;!?-]{2,})\\)/g) || [];\n      extractedText = altMatches.map(s => s.slice(1, -1));\n    }\n\n    var fullText = extractedText.join('\\n').trim();\n    if (!fullText) {\n      fullText = '【提示】该 PDF 内容流已采用 FlateDecode 高强度压缩或内嵌 CID 字体子集。对于压缩流与扫描件，浏览器未安装重度 OCR 时无法直读明文。';\n    }\n\n    var out = document.getElementById('pPdfExtractOutput');\n    if (out) out.value = fullText;\n\n    var chars = fullText.length;\n    var words = (fullText.match(/\\b\\w+\\b/g) || []).length;\n    var lines = (fullText.split('\\n') || []).length;\n\n    document.getElementById('pPdfStatChars').innerText = chars;\n    document.getElementById('pPdfStatWords').innerText = words;\n    document.getElementById('pPdfStatLines').innerText = lines;\n    showToast('📝 文本提取完成');\n  };\n  reader.readAsArrayBuffer(file);\n}\n\nfunction copyPdfExtractedText() {\n  copyTextToClipboard(document.getElementById('pPdfExtractOutput')?.value, 'PDF 提取文本已复制');\n}\n\nfunction downloadPdfExtractedText() {\n  downloadTextAsFile(document.getElementById('pPdfExtractOutput')?.value, 'pdf_extracted_text.txt');\n}\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handlePdfExtractFile\"] = handlePdfExtractFile;\n    window[\"copyPdfExtractedText\"] = copyPdfExtractedText;\n    window[\"downloadPdfExtractedText\"] = downloadPdfExtractedText;\n    const __rvPluginDef = {\n    id: \"pdf-text-extractor\",\n    name: \"PDF 文本提取与字数统计\",\n    category: \"文档与 PDF\",\n    cat_id: \"pdf\",\n    icon: \"📝\",\n    version: \"1.0.0\",\n    desc: \"从 PDF 流对象中提取可编辑纯文本，自动字符/字数统计，支持一键复制与导出 .txt\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择 PDF 文件</span>\n                <input type=\"file\" id=\"pPdfExtractInput\" accept=\"application/pdf\" style=\"display: none;\" onchange=\"handlePdfExtractFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pPdfExtractFileName\">未选择文件</span>\n            </div>\n            <div style=\"display: flex; gap: 8px; align-items: center;\">\n              <button class=\"btn-action\" onclick=\"copyPdfExtractedText()\" style=\"font-size: 11.5px;\">📋 复制全文</button>\n              <button class=\"btn-action\" onclick=\"downloadPdfExtractedText()\" style=\"font-size: 11.5px;\">💾 导出为 .txt</button>\n            </div>\n          </div>\n\n          <div style=\"background: var(--bg-subtle); border-radius: 8px; padding: 8px 14px; display: flex; gap: 16px; font-size: 12px; color: var(--text-sub);\">\n            <span>总字符数: <b id=\"pPdfStatChars\" style=\"color: var(--primary);\">0</b></span>\n            <span>总字数 (Words): <b id=\"pPdfStatWords\" style=\"color: var(--primary);\">0</b></span>\n            <span>总行数: <b id=\"pPdfStatLines\" style=\"color: var(--primary);\">0</b></span>\n          </div>\n\n          <div style=\"flex: 1; min-height: 0;\">\n            <textarea id=\"pPdfExtractOutput\" class=\"form-input\" readonly placeholder=\"选择 PDF 文件后，此处将自动解析展示提取出的文本流内容...\" style=\"width: 100%; height: 100%; font-family: var(--font-mono); font-size: 12px; resize: none; background: var(--bg-card);\"></textarea>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"pdf-metadata-inspector","name":"PDF 元数据检查与脱敏","category":"文档与 PDF","cat_id":"pdf","icon":"🔍","version":"1.0.0","desc":"查看 PDF 作者、软件、创建修改时间等隐藏属性，支持一键抹除所有元数据脱敏导出","requiresPdf":true,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nasync function handlePdfMetaFile(file) {\n  if (!validateUploadedFile(file, 50)) return;\n  g_pdfMetaFileName = file.name;\n  var nameEl = document.getElementById('pPdfMetaFileName');\n  if (nameEl) nameEl.innerText = file.name;\n\n  var reader = new FileReader();\n  reader.onload = async function(e) {\n    g_pdfMetaRawBuffer = e.target.result;\n    var tbody = document.getElementById('pPdfMetaTbody');\n    if (!tbody) return;\n    tbody.innerHTML = '';\n\n    var metaProps = [\n      { key: 'Title', name: '文档标题 (Title)' },\n      { key: 'Author', name: '创建作者 (Author)' },\n      { key: 'Subject', name: '主题描述 (Subject)' },\n      { key: 'Creator', name: '源生成软件 (Creator)' },\n      { key: 'Producer', name: 'PDF 生成工具 (Producer)' },\n      { key: 'CreationDate', name: '创建时间 (CreationDate)' },\n      { key: 'ModDate', name: '修改时间 (ModDate)' }\n    ];\n\n    try {\n      if (typeof PDFLib !== 'undefined') {\n        var doc = await PDFLib.PDFDocument.load(g_pdfMetaRawBuffer, { ignoreEncryption: true });\n        var metaMap = {\n          Title: doc.getTitle() || '',\n          Author: doc.getAuthor() || '',\n          Subject: doc.getSubject() || '',\n          Creator: doc.getCreator() || '',\n          Producer: doc.getProducer() || '',\n          CreationDate: doc.getCreationDate() ? doc.getCreationDate().toISOString() : '',\n          ModDate: doc.getModificationDate() ? doc.getModificationDate().toISOString() : ''\n        };\n\n        metaProps.forEach(function(item) {\n          var val = metaMap[item.key] || '<span style=\"color: var(--text-muted);\">(未设置 / 空)</span>';\n          var tr = document.createElement('tr');\n          tr.style.borderBottom = '1px solid var(--border-color)';\n          tr.innerHTML = `\n            <td style=\"padding: 8px 12px; font-weight: 600; color: var(--text-main);\">${item.name}</td>\n            <td style=\"padding: 8px 12px; font-family: var(--font-mono); color: var(--primary);\">${val}</td>\n          `;\n          tbody.appendChild(tr);\n        });\n      } else {\n        throw new Error('Fallback string parse');\n      }\n    } catch(err) {\n      var bytes = new Uint8Array(g_pdfMetaRawBuffer);\n      var str = '';\n      var len = Math.min(bytes.length, 80000);\n      for (var i = 0; i < len; i++) str += String.fromCharCode(bytes[i]);\n\n      metaProps.forEach(function(item) {\n        var reg = new RegExp('/' + item.key + '\\\\s*\\\\(([^)]*)\\\\)', 'i');\n        var m = str.match(reg);\n        var val = m ? m[1] : '<span style=\"color: var(--text-muted);\">(未设置 / 空)</span>';\n        var tr = document.createElement('tr');\n        tr.style.borderBottom = '1px solid var(--border-color)';\n        tr.innerHTML = `\n          <td style=\"padding: 8px 12px; font-weight: 600; color: var(--text-main);\">${item.name}</td>\n          <td style=\"padding: 8px 12px; font-family: var(--font-mono); color: var(--primary);\">${val}</td>\n        `;\n        tbody.appendChild(tr);\n      });\n    }\n\n    document.getElementById('pPdfMetaPlaceholder').style.display = 'none';\n    document.getElementById('pPdfMetaTableWrap').style.display = 'block';\n    document.getElementById('btnCleanPdfMeta').style.display = 'inline-flex';\n    showToast('🔍 PDF 元数据读取完成');\n  };\n  reader.readAsArrayBuffer(file);\n}\n\nasync function cleanPdfMetadataAndDownload() {\n  if (!g_pdfMetaRawBuffer) return;\n  showToast('🛡️ 正在彻底抹除所有元数据属性与历史修改痕迹...');\n\n  try {\n    if (typeof PDFLib === 'undefined') throw new Error('PDFLib 客户端引擎尚未加载完成');\n    var doc = await PDFLib.PDFDocument.load(g_pdfMetaRawBuffer);\n\n    // 彻底清除并重置所有元数据字段\n    doc.setTitle('');\n    doc.setAuthor('');\n    doc.setSubject('');\n    doc.setKeywords([]);\n    doc.setProducer('FWPT Clean Engine');\n    doc.setCreator('FWPT Privacy Guard');\n    doc.setCreationDate(new Date(0));\n    doc.setModificationDate(new Date(0));\n\n    var cleanBytes = await doc.save();\n    var blob = new Blob([cleanBytes], { type: 'application/pdf' });\n    var url = URL.createObjectURL(blob);\n    var a = document.createElement('a');\n    a.href = url;\n    a.download = g_pdfMetaFileName.replace(/\\.pdf$/i, '') + '_sanitized_clean.pdf';\n    a.click();\n    URL.revokeObjectURL(url);\n    showToast('✨ 真实脱敏完成，已彻底清除全部敏感元数据！');\n  } catch(err) {\n    console.error('PDF Sanitize Error:', err);\n    showToast('❌ 脱敏导出失败: ' + err.message);\n  }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"handlePdfMetaFile\"] = handlePdfMetaFile;\n    window[\"cleanPdfMetadataAndDownload\"] = cleanPdfMetadataAndDownload;\n    const __rvPluginDef = {\n    id: \"pdf-metadata-inspector\",\n    name: \"PDF 元数据检查与脱敏\",\n    category: \"文档与 PDF\",\n    cat_id: \"pdf\",\n    icon: \"🔍\",\n    version: \"1.0.0\",\n    desc: \"查看 PDF 作者、软件、创建修改时间等隐藏属性，支持一键抹除所有元数据脱敏导出\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <label class=\"btn-action primary\" style=\"cursor: pointer; margin: 0;\">\n                <span>📁 选择 PDF 文件</span>\n                <input type=\"file\" id=\"pPdfMetaInput\" accept=\"application/pdf\" style=\"display: none;\" onchange=\"handlePdfMetaFile(this.files[0])\">\n              </label>\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\" id=\"pPdfMetaFileName\">未选择文件</span>\n            </div>\n            <button class=\"btn-action\" onclick=\"cleanPdfMetadataAndDownload()\" id=\"btnCleanPdfMeta\" style=\"display: none; font-size: 12px; padding: 5px 12px; background: var(--danger); color: #fff; border-color: var(--danger);\">\n              <span>🛡️ 一键脱敏清理并下载干净 PDF</span>\n            </button>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; overflow-y: auto;\">\n            <div id=\"pPdfMetaTableWrap\" style=\"display: none;\">\n              <div style=\"font-weight: 700; font-size: 13.5px; color: var(--text-main); margin-bottom: 10px;\">📋 PDF 元数据属性清单 (敏感痕迹排查)</div>\n              <table style=\"width: 100%; border-collapse: collapse; font-size: 12px;\">\n                <thead>\n                  <tr style=\"background: var(--bg-subtle); text-align: left; border-bottom: 1px solid var(--border-color);\">\n                    <th style=\"padding: 8px 12px; width: 180px;\">属性名称</th>\n                    <th style=\"padding: 8px 12px;\">解析值</th>\n                  </tr>\n                </thead>\n                <tbody id=\"pPdfMetaTbody\"></tbody>\n              </table>\n            </div>\n\n            <div id=\"pPdfMetaPlaceholder\" style=\"text-align: center; color: var(--text-muted); font-size: 12.5px; padding: 50px 0;\">\n              <div style=\"font-size: 34px; margin-bottom: 6px;\">🔍</div>\n              <div>请选择需要检查或脱敏隐私属性的 PDF 文件</div>\n            </div>\n          </div>\n        </div>\n      `;\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"list-shuffler-sorter","name":"列表排序乱序与去重器","category":"文本与正则","cat_id":"text","icon":"🔀","version":"1.0.0","desc":"支持自然升降序、长度排序、Fisher-Yates 真正随机乱序、大小写/严格去重与序号增删","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction updateListSortMeta() {\n  var text = document.getElementById('pListSortInput')?.value || '';\n  var lines = text.split('\\n').filter(function(l) { return l.trim().length > 0; });\n  var el = document.getElementById('pListSortMetaCount');\n  if (el) el.innerText = '当前行数: ' + lines.length + ' 行';\n}\n\nfunction execListSortAction(action) {\n  var inputEl = document.getElementById('pListSortInput');\n  var outEl = document.getElementById('pListSortOutput');\n  var statsEl = document.getElementById('pListSortStatsResult');\n  if (!inputEl || !outEl) return;\n\n  var raw = inputEl.value;\n  var lines = raw.split('\\n');\n\n  var trimLines = document.getElementById('pListOptTrim')?.checked;\n  var ignoreCase = document.getElementById('pListOptIgnoreCase')?.checked;\n  var removeEmpty = document.getElementById('pListOptRemoveEmpty')?.checked;\n\n  if (trimLines) lines = lines.map(function(l) { return l.trim(); });\n  if (removeEmpty) lines = lines.filter(function(l) { return l.length > 0; });\n\n  var origCount = lines.length;\n  var removedDups = 0;\n\n  if (action === 'dedupe') {\n    var seen = new Set();\n    var unique = [];\n    lines.forEach(function(item) {\n      var key = ignoreCase ? item.toLowerCase() : item;\n      if (!seen.has(key)) {\n        seen.add(key);\n        unique.push(item);\n      }\n    });\n    removedDups = origCount - unique.length;\n    lines = unique;\n  } else if (action === 'shuffle') {\n    for (var i = lines.length - 1; i > 0; i--) {\n      var j = Math.floor(Math.random() * (i + 1));\n      var temp = lines[i];\n      lines[i] = lines[j];\n      lines[j] = temp;\n    }\n  } else if (action === 'sort-asc') {\n    lines.sort(function(a, b) {\n      var strA = ignoreCase ? a.toLowerCase() : a;\n      var strB = ignoreCase ? b.toLowerCase() : b;\n      return strA.localeCompare(strB, 'zh-Hans-CN', { numeric: true });\n    });\n  } else if (action === 'sort-desc') {\n    lines.sort(function(a, b) {\n      var strA = ignoreCase ? a.toLowerCase() : a;\n      var strB = ignoreCase ? b.toLowerCase() : b;\n      return strB.localeCompare(strA, 'zh-Hans-CN', { numeric: true });\n    });\n  } else if (action === 'reverse') {\n    lines.reverse();\n  }\n\n  outEl.value = lines.join('\\n');\n  if (statsEl) {\n    var extra = (action === 'dedupe') ? (' (剔除重复 ' + removedDups + ' 项)') : '';\n    statsEl.innerText = '产出行数: ' + lines.length + ' 行' + extra;\n  }\n  showToast('✨ 列表已更新');\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"updateListSortMeta\"] = updateListSortMeta;\n    window[\"execListSortAction\"] = execListSortAction;\n    const __rvPluginDef = {\n    id: \"list-shuffler-sorter\",\n    name: \"列表排序乱序与去重器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔀\",\n    version: \"1.0.0\",\n    desc: \"支持自然升降序、长度排序、Fisher-Yates 真正随机乱序、大小写/严格去重与序号增删\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;\">\n            <button class=\"btn-action\" onclick=\"execListSortAction('sort-asc')\" style=\"font-size: 11.5px;\">🔤 A-Z 升序</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('sort-desc')\" style=\"font-size: 11.5px;\">🔡 Z-A 降序</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('natural')\" style=\"font-size: 11.5px;\">🔢 自然数排序</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('by-length')\" style=\"font-size: 11.5px;\">📏 按行长度</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('shuffle')\" style=\"font-size: 11.5px; color: var(--primary);\">🎲 随机乱序 (Shuffle)</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('dedup')\" style=\"font-size: 11.5px;\">🧹 严格去重</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('trim')\" style=\"font-size: 11.5px;\">✂️ 清除首尾空白</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('remove-empty')\" style=\"font-size: 11.5px;\">🚫 去除空行</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('add-num')\" style=\"font-size: 11.5px;\">🔢 增加序号</button>\n            <button class=\"btn-action\" onclick=\"execListSortAction('remove-num')\" style=\"font-size: 11.5px;\">🗑️ 移除序号</button>\n            <div style=\"margin-left: auto; display: flex; gap: 6px;\">\n              <button class=\"btn-action\" onclick=\"copyTextToClipboard(document.getElementById('pListSortText').value, '列表已复制')\" style=\"font-size: 11.5px;\">📋 复制</button>\n              <button class=\"btn-action\" onclick=\"downloadTextAsFile(document.getElementById('pListSortText').value, 'list_processed.txt')\" style=\"font-size: 11.5px;\">💾 导出 TXT</button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative;\">\n            <div style=\"position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--text-muted); z-index: 2;\" id=\"pListSortMeta\">共 0 行 | 0 项</div>\n            <textarea id=\"pListSortText\" class=\"form-input\" placeholder=\"请在此输入或粘贴多行清单列表 (每行一项)...\" oninput=\"updateListSortMeta()\" style=\"width: 100%; height: 100%; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; resize: none;\"></textarea>\n          </div>\n        </div>\n      `;\n      // 预填示例\n      const el = document.getElementById('pListSortText');\n      if (el) {\n        el.value = 'Item 10\\nApple\\nBanana\\nItem 2\\nOrange\\nItem 1\\nBanana\\nGrape\\nItem 20';\n        updateListSortMeta();\n      }\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"slug-generator","name":"URL Slug 语义别名生成","category":"文本与正则","cat_id":"text","icon":"🔗","version":"1.0.0","desc":"文章标题/短语一键转符合 SEO 规范的 URL Slug，智能支持中文拼音、连字符定制与标点清理","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nvar PINYIN_DICT = {\n  '稳': 'wen', '骥': 'ji', '海': 'hai', '马': 'ma', '智': 'zhi', '慧': 'hui',\n  '门': 'men', '店': 'dian', '平': 'ping', '台': 'tai', '最': 'zui', '佳': 'jia',\n  '企': 'qi', '业': 'ye', '级': 'ji', '实': 'shi', '践': 'jian', '指': 'zhi',\n  '南': 'nan', '全': 'quan', '景': 'jing', '开': 'kai', '发': 'fa', '者': 'zhe',\n  '工': 'gong', '具': 'ju', '箱': 'xiang', '聚': 'ju', '会': 'hui', '桌': 'zhuo',\n  '游': 'you', '吧': 'ba', '安': 'an', '数': 'shu', '据': 'ju',\n  '库': 'ku', '治': 'zhi', '理': 'li', '高': 'gao', '效': 'xiao', '新': 'xin',\n  '手': 'shou', '入': 'ru', '进': 'jin', '销': 'xiao', '存': 'cun',\n  '文': 'wen', '章': 'zhang', '标': 'biao', '题': 'ti', '网': 'wang', '页': 'ye',\n  '微': 'wei', '信': 'xin', '淘': 'tao', '宝': 'bao', '百': 'bai', '度': 'du',\n  '阿': 'a', '里': 'li', '腾': 'teng', '讯': 'xun', '华': 'hua', '为': 'wei',\n  '中': 'zhong', '国': 'guo', '北': 'bei', '京': 'jing', '上': 'shang', '广': 'guang',\n  '深': 'shen', '圳': 'zhen', '西': 'xi', '成': 'cheng', '都': 'du', '武': 'wu',\n  '汉': 'han', '南': 'nan', '京': 'jing', '系': 'xi', '统': 'tong', '架': 'jia',\n  '构': 'gou', '核': 'he', '心': 'xin', '服': 'fu', '务': 'wu', '器': 'qi',\n  '端': 'duan', '前': 'qian', '后': 'hou', '云': 'yun', '原': 'yuan', '生': 'sheng',\n  '线': 'xian', '上': 'shang', '分': 'fen', '析': 'xi', '排': 'pai', '行': 'hang',\n  '报': 'bao', '告': 'gao', '测': 'ce', '试': 'shi', '优': 'you', '化': 'hua',\n  '部': 'bu', '署': 'shu', '运': 'yun', '维': 'wei', '日': 'ri', '志': 'zhi',\n  '代': 'dai', '码': 'ma', '组': 'zu', '件': 'jian', '模': 'mo', '板': 'ban'\n};\n\nfunction generateLiveSlug() {\n  var src = (document.getElementById('pSlugSourceText')?.value || '').trim();\n  if (!src) {\n    document.getElementById('pSlugResult').value = '';\n    return;\n  }\n\n  var sep = document.getElementById('pSlugSeparator')?.value || '-';\n  var casing = document.getElementById('pSlugCase')?.value || 'lower';\n  var doPinyin = document.getElementById('pSlugPinyin')?.checked;\n  var doStrip = document.getElementById('pSlugStripSymbols')?.checked;\n\n  var res = '';\n  for (var i = 0; i < src.length; i++) {\n    var ch = src[i];\n    if (doPinyin && PINYIN_DICT[ch]) {\n      res += ' ' + PINYIN_DICT[ch] + ' ';\n    } else {\n      res += ch;\n    }\n  }\n\n  if (doStrip) {\n    res = res.replace(/[^\\w\\s\\u4e00-\\u9fa5-]/g, ' ');\n  }\n\n  var tokens = res.split(/[\\s_-]+/).filter(Boolean);\n  var slug = tokens.join(sep);\n\n  if (casing === 'lower') slug = slug.toLowerCase();\n  else if (casing === 'upper') slug = slug.toUpperCase();\n\n  var resultEl = document.getElementById('pSlugResult');\n  var previewEl = document.getElementById('pSlugUrlPreview');\n  if (resultEl) resultEl.value = slug;\n  if (previewEl) previewEl.innerText = 'https://fwpt.cn/posts/' + (slug || 'my-article-title');\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"generateLiveSlug\"] = generateLiveSlug;\n    const __rvPluginDef = {\n    id: \"slug-generator\",\n    name: \"URL Slug 语义别名生成\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔗\",\n    version: \"1.0.0\",\n    desc: \"文章标题/短语一键转符合 SEO 规范的 URL Slug，智能支持中文拼音、连字符定制与标点清理\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;\">\n            <div style=\"font-weight: 700; font-size: 13.5px; color: var(--primary);\">📝 输入源标题或短语 (支持中英文混排)</div>\n            <input type=\"text\" id=\"pSlugSourceText\" class=\"form-input\" value=\"稳骥 PacerSQL 最佳企业级实践指南 2026\" placeholder=\"输入文章标题或短语...\" oninput=\"generateLiveSlug()\" style=\"font-size: 13px; height: 36px; padding: 0 10px;\">\n            \n            <div style=\"display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px;\">\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">分隔符:</span>\n                <select id=\"pSlugSeparator\" class=\"form-select\" onchange=\"generateLiveSlug()\" style=\"min-width: 215px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"-\" selected>- (短横线 Hyphen，推荐)</option>\n                  <option value=\"_\">_ (下划线 Underscore)</option>\n                  <option value=\".\">. (点号 Dot)</option>\n                  <option value=\"/\">/ (斜杠 Slash)</option>\n                </select>\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 6px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">大小写:</span>\n                <select id=\"pSlugCase\" class=\"form-select\" onchange=\"generateLiveSlug()\" style=\"min-width: 175px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"lower\" selected>lowercase (全部小写)</option>\n                  <option value=\"upper\">UPPERCASE (全部大写)</option>\n                  <option value=\"keep\">保持原样</option>\n                </select>\n              </div>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pSlugPinyin\" checked onchange=\"generateLiveSlug()\"> 中文自动转拼音\n              </label>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pSlugStripSymbols\" checked onchange=\"generateLiveSlug()\"> 过滤特殊标点符号\n              </label>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px;\">\n            <div style=\"font-weight: 700; font-size: 13px; color: var(--text-main);\">🎯 生成的语义化 URL Slug 结果:</div>\n            <div style=\"display: flex; gap: 8px; align-items: center;\">\n              <input type=\"text\" id=\"pSlugResult\" readonly class=\"form-input\" style=\"flex: 1; height: 38px; font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--primary); background: var(--bg-subtle); padding: 0 10px;\">\n              <button class=\"btn-action primary\" onclick=\"copyTextToClipboard(document.getElementById('pSlugResult').value, 'Slug 已复制到剪贴板')\" style=\"height: 38px; padding: 0 16px;\">📋 复制 Slug</button>\n            </div>\n\n            <div style=\"margin-top: 10px; background: var(--bg-subtle); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-sub);\">\n              <span style=\"font-weight: 600; color: var(--text-main);\">🌐 实际 URL 渲染预览:</span>\n              <div id=\"pSlugUrlPreview\" style=\"margin-top: 4px; font-family: var(--font-mono); color: var(--success); word-break: break-all;\">https://fwpt.cn/posts/wenji-pacersql-zui-jia-qi-ye-ji-shi-jian-zhi-nan-2026</div>\n            </div>\n          </div>\n        </div>\n      `;\n      generateLiveSlug();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"zero-width-detector","name":"零宽字符与隐形水印清洗","category":"文本与正则","cat_id":"text","icon":"🕵️","version":"1.0.0","desc":"精准检测零宽空格/不换行符/双向控制等潜藏隐形水印追踪字符，可视化红标高亮并一键彻底净化","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nvar ZERO_WIDTH_REGEX = /[\\u200B-\\u200D\\uFEFF\\u200E\\u200F\\u202A-\\u202E]/g;\n\nfunction scanZeroWidthText() {\n  var text = document.getElementById('pZwInput')?.value || '';\n  var matches = text.match(ZERO_WIDTH_REGEX) || [];\n  var count = matches.length;\n\n  var metaEl = document.getElementById('pZwDetectCount');\n  var bannerEl = document.getElementById('pZwWarningBanner');\n  var hexBox = document.getElementById('pZwCharDetailHex');\n\n  if (metaEl) metaEl.innerText = '检测到零宽隐形字符: ' + count + ' 处';\n  if (bannerEl) bannerEl.style.display = count > 0 ? 'block' : 'none';\n\n  if (count > 0 && hexBox) {\n    var hexMap = {\n      '\\u200B': 'U+200B (Zero-Width Space 零宽空格)',\n      '\\u200C': 'U+200C (Zero-Width Non-Joiner 零宽非连字)',\n      '\\u200D': 'U+200D (Zero-Width Joiner 零宽连字)',\n      '\\uFEFF': 'U+FEFF (BOM / Zero-Width No-Break 字节序标)',\n      '\\u200E': 'U+200E (LRM 左右标记)',\n      '\\u200F': 'U+200F (RLM 右左标记)'\n    };\n    var details = matches.map(function(ch) { return hexMap[ch] || ('U+' + ch.charCodeAt(0).toString(16).toUpperCase()); });\n    hexBox.innerHTML = '<b>检出明细:</b><br>' + details.slice(0, 15).join('<br>') + (details.length > 15 ? '<br>...(其余略)' : '');\n  } else if (hexBox) {\n    hexBox.innerHTML = '<span style=\"color: var(--success);\">✔ 文本洁净，未发现任何常见零宽追踪字符</span>';\n  }\n}\n\nfunction cleanZeroWidthText() {\n  var text = document.getElementById('pZwInput')?.value || '';\n  var cleaned = text.replace(ZERO_WIDTH_REGEX, '');\n  var out = document.getElementById('pZwOutput');\n  if (out) out.value = cleaned;\n  showToast('🧼 已成功抹除全部零宽字符');\n}\n\nfunction loadSampleZeroWidthText() {\n  var ta = document.getElementById('pZwInput');\n  if (ta) {\n    ta.value = '机密薪酬\\u200B\\u200C报表\\uFEFF由\\u200D李总监亲自审核，不得泄露。';\n    scanZeroWidthText();\n  }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"scanZeroWidthText\"] = scanZeroWidthText;\n    window[\"cleanZeroWidthText\"] = cleanZeroWidthText;\n    window[\"loadSampleZeroWidthText\"] = loadSampleZeroWidthText;\n    const __rvPluginDef = {\n    id: \"zero-width-detector\",\n    name: \"零宽字符与隐形水印清洗\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🕵️\",\n    version: \"1.0.0\",\n    desc: \"精准检测零宽空格/不换行符/双向控制等潜藏隐形水印追踪字符，可视化红标高亮并一键彻底净化\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center;\">\n              <span style=\"font-weight: 700; font-size: 13px; color: var(--danger);\">🛡️ 零宽隐形字符侦测</span>\n              <span id=\"pZwBadgeCount\" style=\"background: rgba(210,15,57,0.1); color: var(--danger); font-size: 11px; padding: 2px 8px; border-radius: 4px;\">未检测</span>\n            </div>\n            <div style=\"display: flex; gap: 8px;\">\n              <button class=\"btn-action\" onclick=\"loadSampleZeroWidthText()\" style=\"font-size: 11.5px;\">载入测试样本</button>\n              <button class=\"btn-action\" onclick=\"cleanZeroWidthText()\" style=\"font-size: 11.5px; background: var(--success); color: #fff; border-color: var(--success);\">🧹 一键净化并复制</button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px;\">\n              <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub);\">输入待排查的原始文本:</div>\n              <textarea id=\"pZwInput\" class=\"form-input\" rows=\"8\" placeholder=\"在此粘贴任意文本，自动检测是否存在隐形字符...\" oninput=\"scanZeroWidthText()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12.5px; resize: none;\"></textarea>\n            </div>\n\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px;\">\n              <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub);\">可视化隐形字符透视 (红色标出隐形字符):</div>\n              <div id=\"pZwVisualBox\" style=\"flex: 1; background: var(--bg-subtle); border-radius: 6px; padding: 10px; font-family: var(--font-mono); font-size: 12.5px; overflow-y: auto; line-height: 1.6; white-space: pre-wrap; word-break: break-all;\"></div>\n            </div>\n          </div>\n        </div>\n      `;\n      loadSampleZeroWidthText();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"email-url-extractor","name":"邮箱/URL/电话/IP提取","category":"文本与正则","cat_id":"text","icon":"🎯","version":"1.0.0","desc":"从杂乱日志/网页/文章中精准抽取 Email、网页链接、IPv4/IPv6、中国手机号与独立域名","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction execExtractItems(type) {\n  var raw = document.getElementById('pExtractRawInput')?.value || '';\n  var out = document.getElementById('pExtractOutput');\n  var stats = document.getElementById('pExtractStats');\n  var dedupe = document.getElementById('pExtractDedupe')?.checked;\n  if (!out) return;\n\n  var regexMap = {\n    email: /[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+/g,\n    url: /https?:\\/\\/[^\\s<>\"{}|\\\\^`[\\]]+/g,\n    phone: /(?:\\+?86)?1[3-9]\\d{9}/g,\n    ip: /(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)/g\n  };\n\n  var reg = regexMap[type];\n  if (!reg) return;\n\n  var matches = raw.match(reg) || [];\n  if (dedupe) {\n    matches = Array.from(new Set(matches));\n  }\n\n  out.value = matches.join('\\n');\n  if (stats) {\n    stats.innerText = '提取结果: 共 ' + matches.length + ' 项' + (dedupe ? ' (已自动去重)' : '');\n  }\n  showToast('🎯 提取完成，共 ' + matches.length + ' 项');\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"execExtractItems\"] = execExtractItems;\n    const __rvPluginDef = {\n    id: \"email-url-extractor\",\n    name: \"邮箱/URL/电话/IP提取\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🎯\",\n    version: \"1.0.0\",\n    desc: \"从杂乱日志/网页/文章中精准抽取 Email、网页链接、IPv4/IPv6、中国手机号与独立域名\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 12px; align-items: center; flex-wrap: wrap;\">\n              <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">提取目标:</span>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pExtEmails\" checked onchange=\"execExtractItems()\"> 📧 邮箱 (Emails)\n              </label>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pExtUrls\" checked onchange=\"execExtractItems()\"> 🔗 链接 (URLs)\n              </label>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pExtIps\" checked onchange=\"execExtractItems()\"> 🌐 IP 地址\n              </label>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pExtPhones\" checked onchange=\"execExtractItems()\"> 📱 手机号\n              </label>\n              <label style=\"font-size: 11.5px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;\">\n                <input type=\"checkbox\" id=\"pExtDedup\" checked onchange=\"execExtractItems()\"> 自动去重\n              </label>\n            </div>\n            <div style=\"display: flex; gap: 8px;\">\n              <button class=\"btn-action\" onclick=\"copyTextToClipboard(document.getElementById('pExtResult').value, '提取清单已复制')\" style=\"font-size: 11.5px;\">📋 复制结果</button>\n              <button class=\"btn-action\" onclick=\"downloadTextAsFile(document.getElementById('pExtResult').value, 'extracted_entities.txt')\" style=\"font-size: 11.5px;\">💾 导出 TXT</button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n            <div style=\"display: flex; flex-direction: column; gap: 6px;\">\n              <span style=\"font-size: 11.5px; color: var(--text-muted);\">粘贴任意混杂文本/日志/HTML:</span>\n              <textarea id=\"pExtInput\" class=\"form-input\" rows=\"8\" placeholder=\"在此粘贴包含大量邮箱、网址、手机号或 IP 的文本内容...\" oninput=\"execExtractItems()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n            </div>\n\n            <div style=\"display: flex; flex-direction: column; gap: 6px; position: relative;\">\n              <div style=\"display: flex; justify-content: space-between; align-items: center;\">\n                <span style=\"font-size: 11.5px; color: var(--text-muted);\">提取结果 (每行一项):</span>\n                <span id=\"pExtCountBadge\" style=\"font-size: 11px; color: var(--primary); font-weight: 600;\">共提取到 0 条</span>\n              </div>\n              <textarea id=\"pExtResult\" class=\"form-input\" readonly placeholder=\"提取结果将在此处清晰列出...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none; background: var(--bg-subtle);\"></textarea>\n            </div>\n          </div>\n        </div>\n      `;\n      // 预填示例\n      const el = document.getElementById('pExtInput');\n      if (el) {\n        el.value = '欢迎联系 FWPT 团队: service@fwpt.cn, admin@fwpt.cn 或 visit https://fwpt.cn/docs\\n服务器节点: 101.35.100.169 和 39.97.158.22，客服手机 13800138000 与 18612345678。备用地址 http://api.internal.local:8080/v1';\n        execExtractItems();\n      }\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"list-chunk-wrapper","name":"列表分块与批量包装器","category":"文本与正则","cat_id":"text","icon":"📦","version":"1.0.0","desc":"将长列表按指定 N 项切分为多批次，支持前后包裹单双引号/括号及定制连接符","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction execListChunkWrapper() {\n  var raw = document.getElementById('pChunkInput')?.value || '';\n  var lines = raw.split('\\n').map(function(l) { return l.trim(); }).filter(Boolean);\n  var chunkSize = parseInt(document.getElementById('pChunkSize')?.value || '10', 10);\n  var wrapMode = document.getElementById('pChunkWrapMode')?.value || 'sql-in';\n  var out = document.getElementById('pChunkOutput');\n  var meta = document.getElementById('pChunkMeta');\n  if (!out) return;\n\n  var chunks = [];\n  for (var i = 0; i < lines.length; i += chunkSize) {\n    chunks.push(lines.slice(i, i + chunkSize));\n  }\n\n  var formattedChunks = chunks.map(function(group, idx) {\n    if (wrapMode === 'sql-in') {\n      var wrapped = group.map(function(x) { return \"'\" + x.replace(/'/g, \"''\") + \"'\"; }).join(', ');\n      return '-- Batch #' + (idx + 1) + ' (' + group.length + ' items)\\nWHERE id IN (' + wrapped + ');';\n    } else if (wrapMode === 'json-array') {\n      return '// Batch #' + (idx + 1) + '\\n' + JSON.stringify(group, null, 2);\n    } else if (wrapMode === 'comma-line') {\n      return group.join(', ');\n    } else {\n      return group.join('\\n');\n    }\n  });\n\n  out.value = formattedChunks.join('\\n\\n');\n  if (meta) {\n    meta.innerText = '原数据 ' + lines.length + ' 条 ➔ 切分为 ' + chunks.length + ' 个分块 (每块 ≤ ' + chunkSize + ' 条)';\n  }\n  showToast('📦 列表切片包装完成');\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"execListChunkWrapper\"] = execListChunkWrapper;\n    const __rvPluginDef = {\n    id: \"list-chunk-wrapper\",\n    name: \"列表分块与批量包装器\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"📦\",\n    version: \"1.0.0\",\n    desc: \"将长列表按指定 N 项切分为多批次，支持前后包裹单双引号/括号及定制连接符\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">每批项数:</span>\n                <input type=\"number\" id=\"pChunkSize\" class=\"form-input\" value=\"5\" min=\"1\" max=\"10000\" oninput=\"execListChunkWrapper()\" style=\"width: 60px; height: 26px; font-size: 11.5px; padding: 0 4px;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">前缀包裹:</span>\n                <input type=\"text\" id=\"pChunkPrefix\" class=\"form-input\" value=\"'\" placeholder=\"如 '\" oninput=\"execListChunkWrapper()\" style=\"width: 48px; height: 26px; font-size: 11.5px; padding: 0 4px;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">后缀包裹:</span>\n                <input type=\"text\" id=\"pChunkSuffix\" class=\"form-input\" value=\"'\" placeholder=\"如 '\" oninput=\"execListChunkWrapper()\" style=\"width: 48px; height: 26px; font-size: 11.5px; padding: 0 4px;\">\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">项间分隔:</span>\n                <select id=\"pChunkDelimiter\" class=\"form-select\" onchange=\"execListChunkWrapper()\" style=\"min-width: 145px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\", \">逗号空格 (, )</option>\n                  <option value=\",\">纯逗号 (,)</option>\n                  <option value=\"\\n\">换行符</option>\n                  <option value=\"; \">分号 (; )</option>\n                </select>\n              </div>\n            </div>\n            <button class=\"btn-action primary\" onclick=\"copyTextToClipboard(document.getElementById('pChunkResult').value, '包装结果已复制')\" style=\"font-size: 11.5px;\">📋 复制结果</button>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n            <textarea id=\"pChunkInput\" class=\"form-input\" rows=\"8\" placeholder=\"在此粘贴待包装的多行列表...\" oninput=\"execListChunkWrapper()\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n            <textarea id=\"pChunkResult\" class=\"form-input\" readonly placeholder=\"分块与包装结果将在此输出...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none; background: var(--bg-subtle);\"></textarea>\n          </div>\n        </div>\n      `;\n      const el = document.getElementById('pChunkInput');\n      if (el) {\n        el.value = 'user_001\\nuser_002\\nuser_003\\nuser_004\\nuser_005\\nuser_006\\nuser_007\\nuser_008\\nuser_009\\nuser_010';\n        execListChunkWrapper();\n      }\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"text-case-matrix","name":"12种开发命名法转换矩阵","category":"文本与正则","cat_id":"text","icon":"🔤","version":"1.0.0","desc":"输入任意短语，并行实时生成 camelCase, PascalCase, snake_case, kebab-case 等 12 种格式","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction renderCaseMatrix() {\n  var src = (document.getElementById('pCaseMatrixInput')?.value || '').trim();\n  var container = document.getElementById('pCaseMatrixResults');\n  if (!container) return;\n\n  if (!src) {\n    container.innerHTML = '<div style=\"color: var(--text-muted); font-size: 12px; padding: 20px;\">请输入词组或标识符</div>';\n    return;\n  }\n\n  var words = src.replace(/[-_.\\s/]+/g, ' ').trim().split(' ').filter(Boolean);\n  if (!words.length) return;\n\n  var lowerWords = words.map(w => w.toLowerCase());\n  var upperWords = words.map(w => w.toUpperCase());\n  var capWords = words.map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase());\n\n  var cases = [\n    { name: 'camelCase (小驼峰命名)', val: lowerWords[0] + capWords.slice(1).join('') },\n    { name: 'PascalCase (大驼峰命名)', val: capWords.join('') },\n    { name: 'snake_case (下划线小写)', val: lowerWords.join('_') },\n    { name: 'SCREAMING_SNAKE_CASE (宏常量)', val: upperWords.join('_') },\n    { name: 'kebab-case (中划线命名)', val: lowerWords.join('-') },\n    { name: 'Title Case (英文标题大写)', val: capWords.join(' ') },\n    { name: 'UPPERCASE (全部大写)', val: src.toUpperCase() },\n    { name: 'lowercase (全部小写)', val: src.toLowerCase() },\n    { name: 'dot.case (点号分界)', val: lowerWords.join('.') },\n    { name: 'path/case (路径分界)', val: lowerWords.join('/') }\n  ];\n\n  container.innerHTML = '';\n  cases.forEach(function(item) {\n    var card = document.createElement('div');\n    card.style.background = 'var(--bg-subtle)';\n    card.style.border = '1px solid var(--border-color)';\n    card.style.borderRadius = '8px';\n    card.style.padding = '10px 14px';\n    card.style.display = 'flex';\n    card.style.alignItems = 'center';\n    card.style.justifyContent = 'space-between';\n\n    card.innerHTML = `\n      <div style=\"flex: 1; min-width: 0; padding-right: 12px;\">\n        <div style=\"font-size: 11px; color: var(--text-muted); font-weight: 500;\">${item.name}</div>\n        <div style=\"font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--primary); margin-top: 3px; word-break: break-all;\">${escapeHtml(item.val)}</div>\n      </div>\n      <button class=\"btn-action\" onclick=\"copyTextToClipboard('${escapeHtml(item.val).replace(/'/g, \"\\\\'\")}', '已复制: ${item.name}')\" style=\"font-size: 11px; padding: 4px 10px; flex-shrink: 0;\">📋 复制</button>\n    `;\n    container.appendChild(card);\n  });\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"renderCaseMatrix\"] = renderCaseMatrix;\n    const __rvPluginDef = {\n    id: \"text-case-matrix\",\n    name: \"12种开发命名法转换矩阵\",\n    category: \"文本与正则\",\n    cat_id: \"text\",\n    icon: \"🔤\",\n    version: \"1.0.0\",\n    desc: \"输入任意短语，并行实时生成 camelCase, PascalCase, snake_case, kebab-case 等 12 种格式\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;\">\n            <div style=\"font-weight: 700; font-size: 13px; color: var(--primary);\">⌨️ 输入任意变量名、短语或标识符:</div>\n            <input type=\"text\" id=\"pCaseMatrixInput\" class=\"form-input\" value=\"user_authentication_service\" placeholder=\"输入变量或短语...\" oninput=\"renderCaseMatrix()\" style=\"font-size: 13.5px; height: 38px; padding: 0 12px; font-family: var(--font-mono);\">\n          </div>\n\n          <div style=\"flex: 1; overflow-y: auto;\">\n            <div id=\"pCaseMatrixGrid\" style=\"display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px;\">\n              <!-- 动态 12 张卡片 -->\n            </div>\n          </div>\n        </div>\n      `;\n      renderCaseMatrix();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"prime-number-checker","name":"素数检验与质因数分解","category":"数学与工程","cat_id":"math","icon":"🔢","version":"1.0.0","desc":"大整数质数检验 (试除与轮式加速)、质因数分解 (如 360=2³×3²×5) 及区间素数筛","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction isPrimeBig(n) {\n  if (n <= 1n) return false;\n  if (n <= 3n) return true;\n  if (n % 2n === 0n || n % 3n === 0n) return false;\n  for (var i = 5n; i * i <= n; i += 6n) {\n    if (n % i === 0n || n % (i + 2n) === 0n) return false;\n  }\n  return true;\n}\n\nfunction primeFactorization(n) {\n  var factors = [];\n  var d = 2n;\n  while (d * d <= n) {\n    if (n % d === 0n) {\n      var count = 0;\n      while (n % d === 0n) {\n        count++;\n        n /= d;\n      }\n      factors.push({ p: d, exp: count });\n    }\n    d = (d === 2n) ? 3n : (d + 2n);\n  }\n  if (n > 1n) factors.push({ p: n, exp: 1 });\n  return factors;\n}\n\nfunction runPrimalityTest() {\n  var raw = (document.getElementById('pPrimeInput')?.value || '').trim();\n  var resEl = document.getElementById('pPrimeResultBox');\n  if (!resEl) return;\n\n  var n;\n  try {\n    n = BigInt(raw);\n  } catch(e) {\n    resEl.innerHTML = '<span style=\"color: var(--danger);\">❌ 请输入有效的正整数</span>';\n    return;\n  }\n\n  if (n <= 0n) {\n    resEl.innerHTML = '<span style=\"color: var(--danger);\">❌ 请输入大于 0 的正整数</span>';\n    return;\n  }\n\n  var t0 = performance.now();\n  var isP = isPrimeBig(n);\n  var factors = isP ? [] : primeFactorization(n);\n  var t1 = performance.now();\n\n  var factorStr = factors.map(function(f) {\n    return f.exp > 1 ? (f.p.toString() + '<sup>' + f.exp + '</sup>') : f.p.toString();\n  }).join(' × ');\n\n  resEl.innerHTML = `\n    <div style=\"font-size: 16px; font-weight: 700; color: ${isP ? 'var(--success)' : 'var(--primary)'};\">\n      ${isP ? '🎉 是质数 (Prime Number)' : '🧩 是合数 (Composite Number)'}\n    </div>\n    <div style=\"margin-top: 8px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-main);\">\n      ${isP ? '该数仅能被 1 和自身整除。' : ('质因数分解: <b>' + n.toString() + ' = ' + factorStr + '</b>')}\n    </div>\n    <div style=\"margin-top: 6px; font-size: 11px; color: var(--text-muted);\">\n      运算耗时: ${(t1 - t0).toFixed(3)} ms (纯客户端 64位大整数轮式试除加速)\n    </div>\n  `;\n}\n\nfunction runPrimeSieve() {\n  var min = Math.max(2, parseInt(document.getElementById('pSieveMin')?.value || '2', 10));\n  var max = Math.min(100000, parseInt(document.getElementById('pSieveMax')?.value || '200', 10));\n  if (max < min) max = min;\n\n  var t0 = performance.now();\n  var sieve = new Uint8Array(max + 1);\n  var primes = [];\n\n  for (var i = 2; i <= max; i++) {\n    if (sieve[i] === 0) {\n      if (i >= min) primes.push(i);\n      for (var j = i * 2; j <= max; j += i) sieve[j] = 1;\n    }\n  }\n  var t1 = performance.now();\n\n  var out = document.getElementById('pPrimeSieveOutput');\n  if (out) out.value = primes.join(', ');\n\n  var stats = document.getElementById('pPrimeSieveStats');\n  if (stats) {\n    var density = (((primes.length / (max - min + 1))) * 100).toFixed(1);\n    stats.innerText = `区间共 ${primes.length} 个素数 (密度: ${density}%, 耗时: ${(t1 - t0).toFixed(2)} ms)`;\n  }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"isPrimeBig\"] = isPrimeBig;\n    window[\"primeFactorization\"] = primeFactorization;\n    window[\"runPrimalityTest\"] = runPrimalityTest;\n    window[\"runPrimeSieve\"] = runPrimeSieve;\n    const __rvPluginDef = {\n    id: \"prime-number-checker\",\n    name: \"素数检验与质因数分解\",\n    category: \"数学与工程\",\n    cat_id: \"math\",\n    icon: \"🔢\",\n    version: \"1.0.0\",\n    desc: \"大整数质数检验 (试除与轮式加速)、质因数分解 (如 360=2³×3²×5) 及区间素数筛\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;\">\n            <div style=\"font-weight: 700; font-size: 13.5px; color: var(--primary);\">✨ 功能一：单数字素数判定与质因数分解</div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <input type=\"text\" id=\"pPrimeInputVal\" class=\"form-input\" value=\"1000000007\" placeholder=\"输入整数 (如 1000000007)...\" oninput=\"runPrimalityTest()\" style=\"width: 240px; height: 34px; font-size: 13px; font-family: var(--font-mono); padding: 0 10px;\">\n              <button class=\"btn-action primary\" onclick=\"runPrimalityTest()\" style=\"height: 34px; padding: 0 14px;\">立即检验</button>\n              <button class=\"btn-action\" onclick=\"document.getElementById('pPrimeInputVal').value='2147483647'; runPrimalityTest();\" style=\"height: 34px; font-size: 11.5px;\">梅森素数 2³¹-1</button>\n            </div>\n            <div id=\"pPrimeTestResult\" style=\"background: var(--bg-subtle); border-radius: 8px; padding: 12px; font-size: 12.5px; line-height: 1.6;\">\n              <!-- 判定结果 -->\n            </div>\n          </div>\n\n          <div style=\"flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0;\">\n            <div style=\"font-weight: 700; font-size: 13px; color: var(--text-main);\">📊 功能二：区间素数筛 (Sieve of Eratosthenes)</div>\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <span style=\"font-size: 12px; color: var(--text-sub);\">生成上限 N:</span>\n              <input type=\"number\" id=\"pPrimeSieveMax\" class=\"form-input\" value=\"500\" min=\"2\" max=\"100000\" style=\"width: 90px; height: 28px; font-size: 12px;\">\n              <button class=\"btn-action\" onclick=\"runPrimeSieve()\" style=\"font-size: 11.5px; height: 28px;\">生成区间素数</button>\n              <span id=\"pPrimeSieveStats\" style=\"font-size: 11.5px; color: var(--text-muted);\"></span>\n            </div>\n            <textarea id=\"pPrimeSieveOutput\" class=\"form-input\" readonly placeholder=\"区间素数将在此展示...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none; background: var(--bg-subtle);\"></textarea>\n          </div>\n        </div>\n      `;\n      runPrimalityTest();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"ohms-law-calculator","name":"欧姆定律与电路功率换算","category":"数学与工程","cat_id":"math","icon":"⚡","version":"1.0.0","desc":"电压(V)、电流(I)、电阻(R)、电功率(P) 任输二项联立求解，提供物理公式推导与工程量纲转换","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction solveOhmsLaw(lastChanged) {\n  var v = parseFloat(document.getElementById('pOhmsV')?.value || '0');\n  var i = parseFloat(document.getElementById('pOhmsI')?.value || '0');\n  var r = parseFloat(document.getElementById('pOhmsR')?.value || '0');\n  var p = parseFloat(document.getElementById('pOhmsP')?.value || '0');\n\n  var formula = '';\n\n  // 判定哪些输入项存在有效正值\n  var hasV = v > 0;\n  var hasI = i > 0;\n  var hasR = r > 0;\n  var hasP = p > 0;\n\n  // 若根据 lastChanged 存在匹配关系则优先响应\n  var pair = '';\n  if (lastChanged === 'v' && hasV) {\n    if (hasI) pair = 'vi';\n    else if (hasR) pair = 'vr';\n    else if (hasP) pair = 'vp';\n  } else if (lastChanged === 'i' && hasI) {\n    if (hasV) pair = 'vi';\n    else if (hasR) pair = 'ir';\n    else if (hasP) pair = 'ip';\n  } else if (lastChanged === 'r' && hasR) {\n    if (hasV) pair = 'vr';\n    else if (hasI) pair = 'ir';\n    else if (hasP) pair = 'rp';\n  } else if (lastChanged === 'p' && hasP) {\n    if (hasV) pair = 'vp';\n    else if (hasI) pair = 'ip';\n    else if (hasR) pair = 'rp';\n  }\n\n  // 默认兜底配对\n  if (!pair) {\n    if (hasV && hasI) pair = 'vi';\n    else if (hasV && hasR) pair = 'vr';\n    else if (hasV && hasP) pair = 'vp';\n    else if (hasI && hasR) pair = 'ir';\n    else if (hasI && hasP) pair = 'ip';\n    else if (hasR && hasP) pair = 'rp';\n  }\n\n  if (pair === 'vi') {\n    r = v / i;\n    p = v * i;\n    formula = `已知电压 V=${v}V 与电流 I=${i}A：<br>• 电阻 R = V / I = ${r.toFixed(4)} Ω<br>• 功率 P = V × I = ${p.toFixed(4)} W`;\n  } else if (pair === 'vr') {\n    i = v / r;\n    p = (v * v) / r;\n    formula = `已知电压 V=${v}V 与电阻 R=${r}Ω：<br>• 电流 I = V / R = ${i.toFixed(4)} A<br>• 功率 P = V² / R = ${p.toFixed(4)} W`;\n  } else if (pair === 'vp') {\n    i = p / v;\n    r = (v * v) / p;\n    formula = `已知电压 V=${v}V 与功率 P=${p}W：<br>• 电流 I = P / V = ${i.toFixed(4)} A<br>• 电阻 R = V² / P = ${r.toFixed(4)} Ω`;\n  } else if (pair === 'ir') {\n    v = i * r;\n    p = i * i * r;\n    formula = `已知电流 I=${i}A 与电阻 R=${r}Ω：<br>• 电压 V = I × R = ${v.toFixed(4)} V<br>• 功率 P = I² × R = ${p.toFixed(4)} W`;\n  } else if (pair === 'ip') {\n    v = p / i;\n    r = p / (i * i);\n    formula = `已知电流 I=${i}A 与功率 P=${p}W：<br>• 电压 V = P / I = ${v.toFixed(4)} V<br>• 电阻 R = P / I² = ${r.toFixed(4)} Ω`;\n  } else if (pair === 'rp') {\n    v = Math.sqrt(p * r);\n    i = Math.sqrt(p / r);\n    formula = `已知电阻 R=${r}Ω 与功率 P=${p}W：<br>• 电压 V = √(P × R) = ${v.toFixed(4)} V<br>• 电流 I = √(P / R) = ${i.toFixed(4)} A`;\n  }\n\n  if (v > 0 && i > 0 && r > 0 && p > 0) {\n    document.getElementById('pOhmsV').value = v.toFixed(3);\n    document.getElementById('pOhmsI').value = i.toFixed(3);\n    document.getElementById('pOhmsR').value = r.toFixed(3);\n    document.getElementById('pOhmsP').value = p.toFixed(3);\n\n    var desc = document.getElementById('pOhmsFormulaDesc');\n    if (desc) desc.innerHTML = formula;\n\n    var grid = document.getElementById('pOhmsUnitsGrid');\n    if (grid) {\n      grid.innerHTML = `\n        <div style=\"background: var(--bg-subtle); padding: 8px; border-radius: 6px;\"><b>电压:</b> ${v.toFixed(2)} V / ${(v * 1000).toFixed(0)} mV / ${(v / 1000).toFixed(4)} kV</div>\n        <div style=\"background: var(--bg-subtle); padding: 8px; border-radius: 6px;\"><b>电流:</b> ${i.toFixed(3)} A / ${(i * 1000).toFixed(1)} mA / ${(i * 1000000).toFixed(0)} μA</div>\n        <div style=\"background: var(--bg-subtle); padding: 8px; border-radius: 6px;\"><b>电阻:</b> ${r.toFixed(2)} Ω / ${(r / 1000).toFixed(3)} kΩ / ${(r / 1000000).toFixed(5)} MΩ</div>\n        <div style=\"background: var(--bg-subtle); padding: 8px; border-radius: 6px;\"><b>功率:</b> ${p.toFixed(2)} W / ${(p * 1000).toFixed(0)} mW / ${(p / 1000).toFixed(4)} kW</div>\n      `;\n    }\n  }\n}\n\nfunction resetOhmsLaw() {\n  document.getElementById('pOhmsV').value = '';\n  document.getElementById('pOhmsI').value = '';\n  document.getElementById('pOhmsR').value = '';\n  document.getElementById('pOhmsP').value = '';\n  document.getElementById('pOhmsFormulaDesc').innerText = '请输入任意两项数值开始求解。';\n  document.getElementById('pOhmsUnitsGrid').innerHTML = '';\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"solveOhmsLaw\"] = solveOhmsLaw;\n    window[\"resetOhmsLaw\"] = resetOhmsLaw;\n    const __rvPluginDef = {\n    id: \"ohms-law-calculator\",\n    name: \"欧姆定律与电路功率换算\",\n    category: \"数学与工程\",\n    cat_id: \"math\",\n    icon: \"⚡\",\n    version: \"1.0.0\",\n    desc: \"电压(V)、电流(I)、电阻(R)、电功率(P) 任输二项联立求解，提供物理公式推导与工程量纲转换\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0; overflow-y: auto;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px;\">\n            <div style=\"font-weight: 700; font-size: 13.5px; color: var(--primary); margin-bottom: 4px;\">⚡ 欧姆定律核心参数 (输入任意两项，自动求解其余两项)</div>\n            <div style=\"font-size: 11.5px; color: var(--text-muted); margin-bottom: 14px;\">满足 V = I × R 与 P = V × I 物理电路定律</div>\n\n            <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;\">\n              <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\">\n                <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub); margin-bottom: 6px;\">电压 (Voltage - V)</div>\n                <div style=\"display: flex; align-items: center; gap: 6px;\">\n                  <input type=\"number\" id=\"pOhmsV\" class=\"form-input\" placeholder=\"输入数值\" style=\"flex: 1; height: 32px; font-size: 13px;\" oninput=\"solveOhmsLaw('v')\">\n                  <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">V</span>\n                </div>\n              </div>\n\n              <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\">\n                <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub); margin-bottom: 6px;\">电流 (Current - I)</div>\n                <div style=\"display: flex; align-items: center; gap: 6px;\">\n                  <input type=\"number\" id=\"pOhmsI\" class=\"form-input\" placeholder=\"输入数值\" style=\"flex: 1; height: 32px; font-size: 13px;\" oninput=\"solveOhmsLaw('i')\">\n                  <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">A</span>\n                </div>\n              </div>\n\n              <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\">\n                <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub); margin-bottom: 6px;\">电阻 (Resistance - R)</div>\n                <div style=\"display: flex; align-items: center; gap: 6px;\">\n                  <input type=\"number\" id=\"pOhmsR\" class=\"form-input\" placeholder=\"输入数值\" style=\"flex: 1; height: 32px; font-size: 13px;\" oninput=\"solveOhmsLaw('r')\">\n                  <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">Ω</span>\n                </div>\n              </div>\n\n              <div style=\"background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px;\">\n                <div style=\"font-weight: 600; font-size: 12px; color: var(--text-sub); margin-bottom: 6px;\">功率 (Power - P)</div>\n                <div style=\"display: flex; align-items: center; gap: 6px;\">\n                  <input type=\"number\" id=\"pOhmsP\" class=\"form-input\" placeholder=\"输入数值\" style=\"flex: 1; height: 32px; font-size: 13px;\" oninput=\"solveOhmsLaw('p')\">\n                  <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">W</span>\n                </div>\n              </div>\n            </div>\n\n            <div style=\"display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px;\">\n              <button class=\"btn-action\" onclick=\"resetOhmsLaw()\" style=\"font-size: 11.5px;\">重置输入</button>\n            </div>\n          </div>\n\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px;\">\n            <div style=\"font-weight: 700; font-size: 13px; color: var(--text-main); margin-bottom: 8px;\">📐 计算过程推导与工程量纲换算</div>\n            <div id=\"pOhmsFormulaDesc\" style=\"font-size: 12px; color: var(--text-sub); line-height: 1.6; margin-bottom: 12px;\">请输入任意两项数值开始求解。</div>\n            <div id=\"pOhmsUnitsGrid\" style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; font-size: 11.5px;\"></div>\n          </div>\n        </div>\n      `;\n      // 预填典型 12V 2A\n      document.getElementById('pOhmsV').value = '12';\n      document.getElementById('pOhmsI').value = '2';\n      solveOhmsLaw();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"statistics-calc","name":"多维数据统计与指标分析","category":"数学与工程","cat_id":"math","icon":"📈","version":"1.0.0","desc":"全套统计学核心指标计算 (均值/中位数/众数/方差/标准差/四分位距) 与数据分布迷你直方图","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction calculateStatistics() {\n  var raw = document.getElementById('pStatsRawInput')?.value || '';\n  var tokens = raw.replace(/[,\\s]+/g, ' ').trim().split(' ').filter(Boolean);\n  var nums = tokens.map(Number).filter(n => !isNaN(n));\n\n  var grid = document.getElementById('pStatsMetricsGrid');\n  var histo = document.getElementById('pStatsHistogram');\n  if (!grid || !histo) return;\n\n  if (nums.length === 0) {\n    grid.innerHTML = '<div style=\"color: var(--text-muted); font-size: 12px;\">请输入至少一个数值</div>';\n    histo.innerHTML = '';\n    return;\n  }\n\n  nums.sort((a, b) => a - b);\n  var n = nums.length;\n  var sum = nums.reduce((a, b) => a + b, 0);\n  var mean = sum / n;\n  var min = nums[0];\n  var max = nums[n - 1];\n  var range = max - min;\n\n  // 中位数\n  var median = (n % 2 === 0) ? (nums[n / 2 - 1] + nums[n / 2]) / 2 : nums[Math.floor(n / 2)];\n\n  // 众数 (Mode) 计算\n  var freqMap = {};\n  var maxFreq = 0;\n  nums.forEach(function(x) {\n    freqMap[x] = (freqMap[x] || 0) + 1;\n    if (freqMap[x] > maxFreq) maxFreq = freqMap[x];\n  });\n  var modes = [];\n  if (maxFreq > 1) {\n    for (var k in freqMap) {\n      if (freqMap[k] === maxFreq) modes.push(k);\n    }\n  }\n  var modeStr = modes.length > 0 ? (modes.length > 3 ? (modes.slice(0, 3).join(', ') + '...') : modes.join(', ')) + ' (' + maxFreq + '次)' : '无明显众数 (均为1次)';\n\n  // 四分位数\n  var q1 = nums[Math.floor(n * 0.25)];\n  var q3 = nums[Math.floor(n * 0.75)];\n  var iqr = q3 - q1;\n\n  // 方差与标准差\n  var variancePop = nums.reduce((acc, x) => acc + Math.pow(x - mean, 2), 0) / n;\n  var stdDevPop = Math.sqrt(variancePop);\n  var varianceSample = n > 1 ? nums.reduce((acc, x) => acc + Math.pow(x - mean, 2), 0) / (n - 1) : 0;\n  var stdDevSample = Math.sqrt(varianceSample);\n\n  var metrics = [\n    { label: '样本量 (N)', val: n },\n    { label: '求和 (Σ)', val: sum.toFixed(2) },\n    { label: '平均值 (Mean)', val: mean.toFixed(3) },\n    { label: '中位数 (Median)', val: median.toFixed(3) },\n    { label: '众数 (Mode)', val: modeStr },\n    { label: '最小值 (Min)', val: min },\n    { label: '最大值 (Max)', val: max },\n    { label: '极差 (Range)', val: range.toFixed(2) },\n    { label: '下四分位 (Q1)', val: q1 },\n    { label: '上四分位 (Q3)', val: q3 },\n    { label: '四分位距 (IQR)', val: iqr.toFixed(2) },\n    { label: '样本标差 (s)', val: stdDevSample.toFixed(3) }\n  ];\n\n  grid.innerHTML = '';\n  metrics.forEach(function(m) {\n    var card = document.createElement('div');\n    card.style.background = 'var(--bg-subtle)';\n    card.style.border = '1px solid var(--border-color)';\n    card.style.borderRadius = '6px';\n    card.style.padding = '8px';\n    card.innerHTML = `\n      <div style=\"font-size: 11px; color: var(--text-muted);\">${m.label}</div>\n      <div style=\"font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;\" title=\"${m.val}\">${m.val}</div>\n    `;\n    grid.appendChild(card);\n  });\n\n  // 直方图展示\n  histo.innerHTML = '';\n  if (range === 0) {\n    // 零极差安全单柱展示\n    var bar = document.createElement('div');\n    bar.style.flex = '1';\n    bar.style.display = 'flex';\n    bar.style.flexDirection = 'column';\n    bar.style.alignItems = 'center';\n    bar.style.gap = '4px';\n    bar.title = '全样本集中频次: ' + n;\n    bar.innerHTML = `\n      <span style=\"font-size: 10px; color: var(--text-muted);\">${n}</span>\n      <div style=\"width: 60px; height: 75px; background: linear-gradient(to top, var(--primary), #89b4fa); border-radius: 4px 4px 0 0;\"></div>\n      <span style=\"font-size: 10px; color: var(--primary); font-weight: 600;\">值: ${min} (集中分布)</span>\n    `;\n    histo.appendChild(bar);\n  } else {\n    var buckets = 10;\n    var bucketCounts = new Array(buckets).fill(0);\n    var bucketSize = range / buckets;\n\n    nums.forEach(function(num) {\n      var idx = Math.min(buckets - 1, Math.floor((num - min) / bucketSize));\n      bucketCounts[idx]++;\n    });\n\n    var maxCount = Math.max(...bucketCounts);\n    bucketCounts.forEach(function(count, idx) {\n      var heightPct = maxCount > 0 ? (count / maxCount) * 100 : 0;\n      var bar = document.createElement('div');\n      bar.style.flex = '1';\n      bar.style.display = 'flex';\n      bar.style.flexDirection = 'column';\n      bar.style.alignItems = 'center';\n      bar.style.gap = '4px';\n      bar.title = '频次: ' + count;\n      bar.innerHTML = `\n        <span style=\"font-size: 10px; color: var(--text-muted);\">${count}</span>\n        <div style=\"width: 100%; height: ${Math.max(6, heightPct)}px; background: linear-gradient(to top, var(--primary), #89b4fa); border-radius: 3px 3px 0 0;\"></div>\n        <span style=\"font-size: 9px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32px;\">${(min + idx * bucketSize).toFixed(0)}</span>\n      `;\n      histo.appendChild(bar);\n    });\n  }\n}\n\nfunction loadSampleStatsData() {\n  var ta = document.getElementById('pStatsRawInput');\n  if (ta) {\n    ta.value = '15, 18, 21, 21, 23, 24, 25, 27, 29, 30, 31, 33, 35, 36, 42, 45, 52, 60';\n    calculateStatistics();\n  }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"calculateStatistics\"] = calculateStatistics;\n    window[\"loadSampleStatsData\"] = loadSampleStatsData;\n    const __rvPluginDef = {\n    id: \"statistics-calc\",\n    name: \"多维数据统计与指标分析\",\n    category: \"数学与工程\",\n    cat_id: \"math\",\n    icon: \"📈\",\n    version: \"1.0.0\",\n    desc: \"全套统计学核心指标计算 (均值/中位数/众数/方差/标准差/四分位距) 与数据分布迷你直方图\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;\">\n            <div style=\"font-weight: 700; font-size: 13px; color: var(--primary);\">📊 输入数据集 (支持逗号、空格或换行分隔)</div>\n            <div style=\"display: flex; gap: 8px;\">\n              <button class=\"btn-action\" onclick=\"loadSampleStatsData()\" style=\"font-size: 11.5px;\">载入测试样本</button>\n              <button class=\"btn-action\" onclick=\"document.getElementById('pStatsRawInput').value=''; calculateStatistics();\" style=\"font-size: 11.5px;\">清空</button>\n            </div>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 2fr; gap: 14px; min-height: 0;\">\n            <textarea id=\"pStatsRawInput\" class=\"form-input\" rows=\"8\" placeholder=\"在此输入数据，例如: 12, 15, 23, 23, 29, 31, 35, 42, 50, 58...\" oninput=\"calculateStatistics()\" style=\"height: 100%; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto;\">\n              <div style=\"font-weight: 700; font-size: 13px; color: var(--text-main);\">📋 统计指标矩阵:</div>\n              <div id=\"pStatsMetricsGrid\" style=\"display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;\">\n                <!-- 统计卡片 -->\n              </div>\n\n              <div style=\"font-weight: 700; font-size: 13px; color: var(--text-main); margin-top: 6px;\">📊 数据分布直方图 (Histogram):</div>\n              <div id=\"pStatsHistogram\" style=\"background: var(--bg-subtle); border-radius: 8px; padding: 12px; min-height: 120px; display: flex; align-items: flex-end; gap: 6px;\">\n                <!-- 柱状图 -->\n              </div>\n            </div>\n          </div>\n        </div>\n      `;\n      loadSampleStatsData();\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"},{"format":"rockvault-plugin-v1","id":"aes-crypto-studio","name":"AES-256-GCM 客户端加密","category":"编码与安全","cat_id":"codec","icon":"🔐","version":"1.0.0","desc":"基于浏览器原生 Web Crypto API，纯本地高密级 AES-GCM / CBC 加密解密，零数据上传","requiresPdf":false,"requiresJsQr":false,"code":"(function() {\n  'use strict';\n\n  const escapeHtml = (typeof window !== 'undefined' && typeof window.escapeHtml === 'function')\n    ? window.escapeHtml\n    : function(text) {\n        if (text === null || text === undefined) return '';\n        return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n      };\n  const showToast = (typeof window !== 'undefined' && typeof window.showToast === 'function')\n    ? window.showToast\n    : function(msg) {\n        if (typeof document === 'undefined') return;\n        let box = document.getElementById('toastBox');\n        if (!box) {\n          box = document.createElement('div');\n          box.id = 'toastBox';\n          box.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:8px 16px;border-radius:10px;font-size:12px;z-index:9999;';\n          document.body.appendChild(box);\n        }\n        box.innerText = msg;\n        box.style.display = 'block';\n        clearTimeout(box.__t);\n        box.__t = setTimeout(function(){ box.style.display = 'none'; }, 2400);\n      };\n  const savePluginOutputToVault = function(title, category, val) {\n    if (typeof window !== 'undefined' && typeof window.__rvHostSaveToVault === 'function') {\n      return window.__rvHostSaveToVault(title, category, val);\n    }\n    if (typeof navigator !== 'undefined' && navigator.clipboard && val) {\n      navigator.clipboard.writeText(val).catch(function(){});\n    }\n    showToast('📋 已复制结果到剪贴板');\n  };\n  const nativeDesktopImportText = function() {\n    if (typeof document === 'undefined') return;\n    const input = document.createElement('input');\n    input.type = 'file';\n    input.accept = '*/*';\n    input.onchange = function(e) {\n      const file = e.target.files && e.target.files[0];\n      if (!file) return;\n      const reader = new FileReader();\n      reader.onload = function(evt) {\n        const activeInput = document.querySelector('#pluginWorkspaceBody textarea, #pluginWorkspaceBody input[type=\"text\"]');\n        if (activeInput) {\n          activeInput.value = evt.target.result || '';\n          activeInput.dispatchEvent(new Event('input'));\n          showToast('📂 已从文件载入: ' + file.name);\n        }\n      };\n      reader.readAsText(file);\n    };\n    input.click();\n  };\n  const nativeDesktopExportText = function() {\n    if (typeof document === 'undefined') return;\n    const activeOutput = document.querySelector('#pluginWorkspaceBody textarea[readonly], #pluginWorkspaceBody textarea, #pluginWorkspaceBody pre, #pluginWorkspaceBody [id*=\"Output\"]');\n    const content = activeOutput ? (activeOutput.value || activeOutput.innerText || '') : '';\n    if (!content) { showToast('⚠️ 暂无有效结果可导出'); return; }\n    const blob = new Blob([content], { type: 'text/plain;charset=utf-8' });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = 'rockvault-plugin-output.txt';\n    a.click();\n    setTimeout(function(){ URL.revokeObjectURL(url); }, 1000);\n    showToast('💾 结果文件已导出下载');\n  };\n  const openAddVaultItemModal = function() { savePluginOutputToVault('', '', ''); };\n\nfunction validateUploadedFile(file, maxMB) {\n  if (!file) return false;\n  maxMB = maxMB || 30;\n  if (file.size > maxMB * 1024 * 1024) {\n    var sizeStr = (file.size / 1024 / 1024).toFixed(1) + 'MB';\n    showToast('⚠️ 文件体积过大 (' + sizeStr + ')，纯前端运算建议上传小于 ' + maxMB + 'MB 的文件');\n    return false;\n  }\n  return true;\n}\n\nfunction resetPluginTemporaryState() {\n  g_imgConvFile = null;\n  g_imgConvImage = null;\n  g_imgConvResultBlob = null;\n  g_imgResizeOrig = null;\n  g_imgWmFile = null;\n  g_imgGridFile = null;\n  g_imgB64DataUrl = '';\n  g_pdfSplitBuffer = null;\n  g_pdfSplitFileName = '';\n  g_pdfMetaRawBuffer = null;\n  g_pdfMetaFileName = '';\n}\n\nfunction copyTextToClipboard(text, msg) {\n  if (!text) { showToast('⚠️ 暂无可复制内容'); return; }\n  if (navigator.clipboard && navigator.clipboard.writeText) {\n    navigator.clipboard.writeText(text).then(function() {\n      showToast('📋 ' + (msg || '已复制到剪贴板'));\n    }).catch(function() {\n      fallbackCopy(text, msg);\n    });\n  } else {\n    fallbackCopy(text, msg);\n  }\n}\n\nfunction fallbackCopy(text, msg) {\n  var ta = document.createElement('textarea');\n  ta.value = text;\n  document.body.appendChild(ta);\n  ta.select();\n  try {\n    document.execCommand('copy');\n    showToast('📋 ' + (msg || '已复制到剪贴板'));\n  } catch(e) {\n    showToast('❌ 复制失败，请手动选取复制');\n  }\n  document.body.removeChild(ta);\n}\n\nfunction downloadTextAsFile(text, filename) {\n  if (!text) { showToast('⚠️ 暂无内容可导出'); return; }\n  var blob = new Blob([text], { type: 'text/plain;charset=utf-8' });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement('a');\n  a.href = url;\n  a.download = filename || 'export.txt';\n  a.click();\n  URL.revokeObjectURL(url);\n  showToast('💾 文件已开始下载');\n}\n\nvar g_imgConvFile = null;\n\nvar g_imgConvImage = null;\n\nvar g_imgConvResultBlob = null;\n\nvar g_imgResizeOrig = null;\n\nvar g_imgWmFile = null;\n\nvar g_imgGridFile = null;\n\nvar g_imgB64DataUrl = '';\n\nvar g_pdfSplitBuffer = null;\n\nvar g_pdfSplitFileName = '';\n\nvar g_pdfMetaRawBuffer = null;\n\nvar g_pdfMetaFileName = '';\n\nfunction generateRandomAesPassword() {\n  var chars = 'abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789!@#$%&*';\n  var pass = '';\n  // 采用 Rejection Sampling 彻底杜绝 Modulo Bias 偏差\n  var maxSafe = 256 - (256 % chars.length);\n  while (pass.length < 18) {\n    var b = new Uint8Array(1);\n    window.crypto.getRandomValues(b);\n    if (b[0] < maxSafe) {\n      pass += chars[b[0] % chars.length];\n    }\n  }\n  document.getElementById('pAesPassword').value = pass;\n  showToast('🎲 已生成 18 位真均匀高熵口令');\n}\n\nasync function deriveAesKey(password, salt, keyLength, mode) {\n  var enc = new TextEncoder();\n  var keyMaterial = await window.crypto.subtle.importKey(\n    'raw', enc.encode(password), 'PBKDF2', false, ['deriveKey']\n  );\n  return await window.crypto.subtle.deriveKey(\n    {\n      name: 'PBKDF2',\n      salt: salt,\n      iterations: 100000,\n      hash: 'SHA-256'\n    },\n    keyMaterial,\n    { name: mode, length: keyLength },\n    false,\n    ['encrypt', 'decrypt']\n  );\n}\n\nasync function execWebCryptoEncrypt() {\n  if (!window.crypto || !window.crypto.subtle) {\n    showToast('⚠️ 当前浏览器环境不支持 Web Crypto API (需 HTTPS 或 localhost)');\n    return;\n  }\n\n  var plain = (document.getElementById('pAesPlaintext')?.value || '').trim();\n  var password = (document.getElementById('pAesPassword')?.value || '').trim();\n  if (!plain) { showToast('⚠️ 请输入待加密的明文'); return; }\n  if (!password) { showToast('⚠️ 请输入加密主口令'); return; }\n\n  var mode = document.getElementById('pAesMode')?.value || 'AES-GCM';\n  var keyLen = parseInt(document.getElementById('pAesKeyLength')?.value || '256', 10);\n\n  try {\n    var enc = new TextEncoder();\n    var salt = window.crypto.getRandomValues(new Uint8Array(16));\n    var iv = window.crypto.getRandomValues(new Uint8Array(mode === 'AES-GCM' ? 12 : 16));\n\n    var key = await deriveAesKey(password, salt, keyLen, mode);\n    var cipherBuf = await window.crypto.subtle.encrypt(\n      { name: mode, iv: iv },\n      key,\n      enc.encode(plain)\n    );\n\n    var cipherBytes = new Uint8Array(cipherBuf);\n\n    // 组装格式化包: salt(16) + iv(12/16) + ciphertext\n    var totalLen = salt.length + iv.length + cipherBytes.length;\n    var packageBytes = new Uint8Array(totalLen);\n    packageBytes.set(salt, 0);\n    packageBytes.set(iv, salt.length);\n    packageBytes.set(cipherBytes, salt.length + iv.length);\n\n    var b64Package = btoa(String.fromCharCode.apply(null, packageBytes));\n    var out = document.getElementById('pAesCipherOutput');\n    if (out) out.value = b64Package;\n    showToast('🔐 AES-' + keyLen + '-' + (mode === 'AES-GCM' ? 'GCM' : 'CBC') + ' 本地加密完成');\n  } catch(err) {\n    showToast('❌ 加密错误: ' + err.message);\n  }\n}\n\nasync function execWebCryptoDecrypt() {\n  if (!window.crypto || !window.crypto.subtle) {\n    showToast('⚠️ 当前浏览器环境不支持 Web Crypto API (需 HTTPS 或 localhost)');\n    return;\n  }\n\n  var b64Package = (document.getElementById('pAesCipherInput')?.value || '').trim();\n  var password = (document.getElementById('pAesPassword')?.value || '').trim();\n  if (!b64Package) { showToast('⚠️ 请输入待解密的密文包'); return; }\n  if (!password) { showToast('⚠️ 请输入解密主口令'); return; }\n\n  var mode = document.getElementById('pAesMode')?.value || 'AES-GCM';\n  var keyLen = parseInt(document.getElementById('pAesKeyLength')?.value || '256', 10);\n\n  try {\n    var rawStr = atob(b64Package);\n    var pkgBytes = new Uint8Array(rawStr.length);\n    for (var i = 0; i < rawStr.length; i++) pkgBytes[i] = rawStr.charCodeAt(i);\n\n    var ivLen = (mode === 'AES-GCM' ? 12 : 16);\n    if (pkgBytes.length <= 16 + ivLen) {\n      showToast('❌ 密文格式不完整或长度不足');\n      return;\n    }\n\n    var salt = pkgBytes.slice(0, 16);\n    var iv = pkgBytes.slice(16, 16 + ivLen);\n    var cipherBytes = pkgBytes.slice(16 + ivLen);\n\n    var key = await deriveAesKey(password, salt, keyLen, mode);\n    var decryptedBuf = await window.crypto.subtle.decrypt(\n      { name: mode, iv: iv },\n      key,\n      cipherBytes\n    );\n\n    var dec = new TextDecoder();\n    var plain = dec.decode(decryptedBuf);\n    var out = document.getElementById('pAesDecryptedOutput');\n    if (out) out.value = plain;\n    showToast('🔓 解密还原成功！');\n  } catch(err) {\n    showToast('❌ 解密失败：口令错误或密文被篡改');\n  }\n}\n\n  if (typeof window !== 'undefined') {\n    window[\"validateUploadedFile\"] = validateUploadedFile;\n    window[\"resetPluginTemporaryState\"] = resetPluginTemporaryState;\n    window[\"copyTextToClipboard\"] = copyTextToClipboard;\n    window[\"fallbackCopy\"] = fallbackCopy;\n    window[\"downloadTextAsFile\"] = downloadTextAsFile;\n    window[\"generateRandomAesPassword\"] = generateRandomAesPassword;\n    window[\"deriveAesKey\"] = deriveAesKey;\n    window[\"execWebCryptoEncrypt\"] = execWebCryptoEncrypt;\n    window[\"execWebCryptoDecrypt\"] = execWebCryptoDecrypt;\n    const __rvPluginDef = {\n    id: \"aes-crypto-studio\",\n    name: \"AES-256-GCM 客户端加密\",\n    category: \"编码与安全\",\n    cat_id: \"codec\",\n    icon: \"🔐\",\n    version: \"1.0.0\",\n    desc: \"基于浏览器原生 Web Crypto API，纯本地高密级 AES-GCM / CBC 加密解密，零数据上传\",\n    render(container) {\n      container.innerHTML = `\n        <div style=\"display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 0;\">\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;\">\n            <div style=\"display: flex; gap: 10px; align-items: center; flex-wrap: wrap;\">\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">算法模式:</span>\n                <select id=\"pAesMode\" class=\"form-select\" style=\"min-width: 235px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"AES-GCM\" selected>AES-GCM (推荐，带完整性认证)</option>\n                  <option value=\"AES-CBC\">AES-CBC (经典分组链)</option>\n                </select>\n              </div>\n              <div style=\"display: flex; align-items: center; gap: 4px;\">\n                <span style=\"font-size: 11.5px; color: var(--text-sub);\">密钥长度:</span>\n                <select id=\"pAesKeyLength\" class=\"form-select\" style=\"min-width: 175px; width: auto; height: 32px; padding: 2px 28px 2px 10px; font-size: 12px;\">\n                  <option value=\"256\" selected>256 位 (军事级安全)</option>\n                  <option value=\"128\">128 位</option>\n                </select>\n              </div>\n            </div>\n            <div style=\"font-size: 11px; color: var(--success); display: inline-flex; align-items: center; gap: 4px;\">\n              <span>🔒 Web Crypto API 本地离线运算</span>\n            </div>\n          </div>\n\n          <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;\">\n            <span style=\"font-size: 12px; font-weight: 600; color: var(--text-main);\">加密主口令 (Passphrase):</span>\n            <input type=\"text\" id=\"pAesPassword\" class=\"form-input\" value=\"FWPT-Master-Key-2026!#\" placeholder=\"输入加解密口令...\" style=\"flex: 1; min-width: 200px; height: 30px; font-family: var(--font-mono); font-size: 12px;\">\n            <button class=\"btn-action\" onclick=\"generateRandomAesPassword()\" style=\"font-size: 11.5px;\">🎲 生成强口令</button>\n          </div>\n\n          <div style=\"flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0;\">\n            <!-- 加密区域 -->\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;\">\n              <div style=\"font-weight: 700; font-size: 13px; color: var(--primary);\">🔒 文本加密 (Plaintext ➔ Ciphertext)</div>\n              <textarea id=\"pAesPlaintext\" class=\"form-input\" rows=\"4\" placeholder=\"在此输入需要高强度加密的私密文本...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none;\"></textarea>\n              <button class=\"btn-action primary\" onclick=\"execWebCryptoEncrypt()\" style=\"font-size: 12px; padding: 6px;\">🔐 立即执行 AES 本地加密</button>\n              <textarea id=\"pAesCipherOutput\" class=\"form-input\" rows=\"4\" readonly placeholder=\"加密后的 Base64 整合包 (含 Salt + IV + 密文)...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 11px; resize: none; background: var(--bg-subtle);\"></textarea>\n              <button class=\"btn-action\" onclick=\"copyTextToClipboard(document.getElementById('pAesCipherOutput').value, '密文已复制')\" style=\"font-size: 11px;\">📋 复制密文包</button>\n            </div>\n\n            <!-- 解密区域 -->\n            <div style=\"background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;\">\n              <div style=\"font-weight: 700; font-size: 13px; color: var(--success);\">🔓 密文解密 (Ciphertext ➔ Plaintext)</div>\n              <textarea id=\"pAesCipherInput\" class=\"form-input\" rows=\"4\" placeholder=\"在此粘贴 Base64 密文包...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 11px; resize: none;\"></textarea>\n              <button class=\"btn-action\" onclick=\"execWebCryptoDecrypt()\" style=\"font-size: 12px; padding: 6px; background: var(--success); color: #fff; border-color: var(--success);\">🔓 执行 AES 解密还原</button>\n              <textarea id=\"pAesDecryptedOutput\" class=\"form-input\" rows=\"4\" readonly placeholder=\"解密还原出的明文内容...\" style=\"flex: 1; font-family: var(--font-mono); font-size: 12px; resize: none; background: var(--bg-subtle);\"></textarea>\n              <button class=\"btn-action\" onclick=\"copyTextToClipboard(document.getElementById('pAesDecryptedOutput').value, '明文已复制')\" style=\"font-size: 11px;\">📋 复制明文</button>\n            </div>\n          </div>\n        </div>\n      `;\n      // 预填测试数据 (不主动触发异步加密，等待用户指令操作)\n      const el = document.getElementById('pAesPlaintext');\n      if (el) {\n        el.value = '机密数据：FWPT 全球节点安全证书与私钥签名凭证 2026';\n      }\n    }\n  };\n    if (typeof window.RockVaultRegisterPlugin === 'function') {\n      window.RockVaultRegisterPlugin(__rvPluginDef);\n    } else {\n      window.__ROCKVAULT_PENDING_PLUGINS__ = window.__ROCKVAULT_PENDING_PLUGINS__ || {};\n      window.__ROCKVAULT_PENDING_PLUGINS__[__rvPluginDef.id] = __rvPluginDef;\n    }\n  }\n})();"}]}