PageSourceSearch

https://localpdf.online/app/assets/index-DHcgu8bW.js

js localpdf.online collected 2026-10-02 01:08:59 UTC 31,624 bytes, 12 lines download raw bytes

vendor: 24,752 bytes, lines 1-8
1import{j as N}from"./jsx-runtime-0DLF9kdB.js";import{r as z}from"./index-DH-tsESH.js";import{k as ie}from"./worker-entrypoint-Cpi_3YOf.js";import{u as se}from"./platform-context-pZZ_Wbof.js";var V={},X,At;function ae(){return At||(At=1,X=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),X}var $={},U={},St;function q(){if(St)return U;St=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return U.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},U.getSymbolTotalCodewords=function(e){return o[e]},U.getBCHDigit=function(i){let e=0;for(;i!==0;)e++,i>>>=1;return e},U.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');r=e},U.isKanjiModeEnabled=function(){return typeof r<"u"},U.toSJIS=function(e){return r(e)},U}var tt={},Tt;function Bt(){return Tt||(Tt=1,(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},r.from=function(e,t){if(r.isValid(e))return e;try{return o(e)}catch{return t}}})(tt)),tt}var et,It;function ue(){if(It)return et;It=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let e=0;e<i;e++)this.putBit((o>>>i-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},et=r,et}var nt,Nt;function ce(){if(Nt)return nt;Nt=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,e,t){const n=o*this.size+i;this.data[n]=e,t&&(this.reservedBit[n]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,e){this.data[o*this.size+i]^=e},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},nt=r,nt}var rt={},Pt;function le(){return Pt||(Pt=1,(function(r){const o=q().getSymbolSize;r.getRowColCoords=function(e){if(e===1)return[];const t=Math.floor(e/7)+2,n=o(e),s=n===145?26:Math.ceil((n-13)/(2*t-2))*2,u=[n-7];for(let a=1;a<t-1;a++)u[a]=u[a-1]-s;return u.push(6),u.reverse()},r.getPositions=function(e){const t=[],n=r.getRowColCoords(e),s=n.length;for(let u=0;u<s;u++)for(let a=0;a<s;a++)u===0&&a===0||u===0&&a===s-1||u===s-1&&a===0||t.push([n[u],n[a]]);return t}})(rt)),rt}var ot={},Mt;function fe(){if(Mt)return ot;Mt=1;const r=q().getSymbolSize,o=7;return ot.getPositions=function(e){const t=r(e);return[[0,0],[t-o,0],[0,t-o]]},ot}var it={},xt;function de(){return xt||(xt=1,(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const n=t.size;let s=0,u=0,a=0,c=null,d=null;for(let R=0;R<n;R++){u=a=0,c=d=null;for(let p=0;p<n;p++){let l=t.get(R,p);l===c?u++:(u>=5&&(s+=o.N1+(u-5)),c=l,u=1),l=t.get(p,R),l===d?a++:(a>=5&&(s+=o.N1+(a-5)),d=l,a=1)}u>=5&&(s+=o.N1+(u-5)),a>=5&&(s+=o.N1+(a-5))}return s},r.getPenaltyN2=function(t){const n=t.size;let s=0;for(let u=0;u<n-1;u++)for(let a=0;a<n-1;a++){const c=t.get(u,a)+t.get(u,a+1)+t.get(u+1,a)+t.get(u+1,a+1);(c===4||c===0)&&s++}return s*o.N2},r.getPenaltyN3=function(t){const n=t.size;let s=0,u=0,a=0;for(let c=0;c<n;c++){u=a=0;for(let d=0;d<n;d++)u=u<<1&2047|t.get(c,d),d>=10&&(u===1488||u===93)&&s++,a=a<<1&2047|t.get(d,c),d>=10&&(a===1488||a===93)&&s++}return s*o.N3},r.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let a=0;a<s;a++)n+=t.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*o.N4};function i(e,t,n){switch(e){case r.Patterns.PATTERN000:return(t+n)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return n%3===0;case r.Patterns.PATTERN011:return(t+n)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case r.Patterns.PATTERN101:return t*n%2+t*n%3===0;case r.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case r.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}r.applyMask=function(t,n){const s=n.size;for(let u=0;u<s;u++)for(let a=0;a<s;a++)n.isReserved(a,u)||n.xor(a,u,i(t,a,u))},r.getBestMask=function(t,n){const s=Object.keys(r.Patterns).length;let u=0,a=1/0;for(let c=0;c<s;c++){n(c),r.applyMask(c,t);const d=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),d<a&&(a=d,u=c)}return u}})(it)),it}var Y={},vt;function $t(){if(vt)return Y;vt=1;const r=Bt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(t,n){switch(n){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(t,n){switch(n){case r.L:return i[(t-1)*4+0];case r.M:return i[(t-1)*4+1];case r.Q:return i[(t-1)*4+2];case r.H:return i[(t-1)*4+3];default:return}},Y}var st={},H={},Lt;function he(){if(Lt)return H;Lt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return(function(){let e=1;for(let t=0;t<255;t++)r[t]=e,o[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)r[t]=r[t-255]})(),H.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},H.exp=function(e){return r[e]},H.mul=function(e,t){return e===0||t===0?0:r[o[e]+o[t]]},H}var kt;function ge(){return kt||(kt=1,(function(r){const o=he();r.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let s=0;s<e.length;s++)for(let u=0;u<t.length;u++)n[s+u]^=o.mul(e[s],t[u]);return n},r.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const s=n[0];for(let a=0;a<t.length;a++)n[a]^=o.mul(t[a],s);let u=0;for(;u<n.length&&n[u]===0;)u++;n=n.slice(u)}return n},r.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=r.mul(t,new Uint8Array([1,o.exp(n)]));return t}})(st)),st}var at,Dt;function pe(){if(Dt)return at;Dt=1;const r=ge();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),s=this.degree-n.length;if(s>0){const u=new Uint8Array(this.degree);return u.set(n,s),u}return n},at=o,at}var ut={},ct={},lt={},Ut;function te(){return Ut||(Ut=1,lt.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),lt}var L={},qt;function ee(){if(qt)return L;qt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const e="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
2]))+`;L.KANJI=new RegExp(i,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(e,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),n=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(a){return t.test(a)},L.testNumeric=function(a){return n.test(a)},L.testAlphanumeric=function(a){return s.test(a)},L}var jt;function j(){return jt||(jt=1,(function(r){const o=te(),i=ee();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!o.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},r.getBestModeForData=function(n){return i.testNumeric(n)?r.NUMERIC:i.testAlphanumeric(n)?r.ALPHANUMERIC:i.testKanji(n)?r.KANJI:r.BYTE},r.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},r.isValid=function(n){return n&&n.bit&&n.ccBits};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(n,s){if(r.isValid(n))return n;try{return e(n)}catch{return s}}})(ct)),ct}var Ft;function me(){return Ft||(Ft=1,(function(r){const o=q(),i=$t(),e=Bt(),t=j(),n=te(),s=7973,u=o.getBCHDigit(s);function a(p,l,B){for(let I=1;I<=40;I++)if(l<=r.getCapacity(I,B,p))return I}function c(p,l){return t.getCharCountIndicator(p,l)+4}function d(p,l){let B=0;return p.forEach(function(I){const M=c(I.mode,l);B+=M+I.getBitsLength()}),B}function R(p,l){for(let B=1;B<=40;B++)if(d(p,B)<=r.getCapacity(B,l,t.MIXED))return B}r.from=function(l,B){return n.isValid(l)?parseInt(l,10):B},r.getCapacity=function(l,B,I){if(!n.isValid(l))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=t.BYTE);const M=o.getSymbolTotalCodewords(l),E=i.getTotalCodewordsCount(l,B),P=(M-E)*8;if(I===t.MIXED)return P;const S=P-c(I,l);switch(I){case t.NUMERIC:return Math.floor(S/10*3);case t.ALPHANUMERIC:return Math.floor(S/11*2);case t.KANJI:return Math.floor(S/13);case t.BYTE:default:return Math.floor(S/8)}},r.getBestVersionForData=function(l,B){let I;const M=e.from(B,e.M);if(Array.isArray(l)){if(l.length>1)return R(l,M);if(l.length===0)return 1;I=l[0]}else I=l;return a(I.mode,I.getLength(),M)},r.getEncodedBits=function(l){if(!n.isValid(l)||l<7)throw new Error("Invalid QR Code version");let B=l<<12;for(;o.getBCHDigit(B)-u>=0;)B^=s<<o.getBCHDigit(B)-u;return l<<12|B}})(ut)),ut}var ft={},_t;function ye(){if(_t)return ft;_t=1;const r=q(),o=1335,i=21522,e=r.getBCHDigit(o);return ft.getEncodedBits=function(n,s){const u=n.bit<<3|s;let a=u<<10;for(;r.getBCHDigit(a)-e>=0;)a^=o<<r.getBCHDigit(a)-e;return(u<<10|a)^i},ft}var dt={},ht,zt;function we(){if(zt)return ht;zt=1;const r=j();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,s;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),s=parseInt(n,10),e.put(s,10);const u=this.data.length-t;u>0&&(n=this.data.substr(t),s=parseInt(n,10),e.put(s,u*3+1))},ht=o,ht}var gt,Vt;function Ce(){if(Vt)return gt;Vt=1;const r=j(),o=["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 i(e){this.mode=r.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=o.indexOf(this.data[n])*45;s+=o.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(o.indexOf(this.data[n]),6)},gt=i,gt}var pt,Ht;function Ee(){if(Ht)return pt;Ht=1;const r=j();function o(i){this.mode=r.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(e){return e*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let e=0,t=this.data.length;e<t;e++)i.put(this.data[e],8)},pt=o,pt}var mt,Kt;function Be(){if(Kt)return mt;Kt=1;const r=j(),o=q();function i(e){this.mode=r.KANJI,this.data=e}return i.getBitsLength=function(t){return t*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},mt=i,mt}var yt={exports:{}},Jt;function be(){return Jt||(Jt=1,(function(r){var o={single_source_shortest_paths:function(i,e,t){var n={},s={};s[e]=0;var u=o.PriorityQueue.make();u.push(e,0);for(var a,c,d,R,p,l,B,I,M;!u.empty();){a=u.pop(),c=a.value,R=a.cost,p=i[c]||{};for(d in p)p.hasOwnProperty(d)&&(l=p[d],B=R+l,I=s[d],M=typeof s[d]>"u",(M||I>B)&&(s[d]=B,u.push(d,B),n[d]=c))}if(typeof t<"u"&&typeof s[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},extract_shortest_path_from_predecessor_list:function(i,e){for(var t=[],n=e;n;)t.push(n),i[n],n=i[n];return t.reverse(),t},find_path:function(i,e,t){var n=o.single_source_shortest_paths(i,e,t);return o.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(i){var e=o.PriorityQueue,t={},n;i=i||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=i.sorter||e.default_sorter,t},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var t={value:i,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o})(yt)),yt.exports}var Ot;function Re(){return Ot||(Ot=1,(function(r){const o=j(),i=we(),e=Ce(),t=Ee(),n=Be(),s=ee(),u=q(),a=be();function c(E){return unescape(encodeURIComponent(E)).length}function d(E,P,S){const b=[];let x;for(;(x=E.exec(S))!==null;)b.push({data:x[0],index:x.index,mode:P,length:x[0].length});return b}function R(E){const P=d(s.NUMERIC,o.NUMERIC,E),S=d(s.ALPHANUMERIC,o.ALPHANUMERIC,E);let b,x;return u.isKanjiModeEnabled()?(b=d(s.BYTE,o.BYTE,E),x=d(s.KANJI,o.KANJI,E)):(b=d(s.BYTE_KANJI,o.BYTE,E),x=[]),P.concat(S,b,x).sort(function(C,w){return C.index-w.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function p(E,P){switch(P){case o.NUMERIC:return i.getBitsLength(E);case o.ALPHANUMERIC:return e.getBitsLength(E);case o.KANJI:return n.getBitsLength(E);case o.BYTE:return t.getBitsLength(E)}}function l(E){return E.reduce(function(P,S){const b=P.length-1>=0?P[P.length-1]:null;return b&&b.mode===S.mode?(P[P.length-1].data+=S.data,P):(P.push(S),P)},[])}function B(E){const P=[];for(let S=0;S<E.length;S++){const b=E[S];switch(b.mode){case o.NUMERIC:P.push([b,{data:b.data,mode:o.ALPHANUMERIC,length:b.length},{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.ALPHANUMERIC:P.push([b,{data:b.data,mode:o.BYTE,length:b.length}]);break;case o.KANJI:P.push([b,{data:b.data,mode:o.BYTE,length:c(b.data)}]);break;case o.BYTE:P.push([{data:b.data,mode:o.BYTE,length:c(b.data)}])}}return P}function I(E,P){const S={},b={start:{}};let x=["start"];for(let h=0;h<E.length;h++){const C=E[h],w=[];for(let f=0;f<C.length;f++){const A=C[f],m=""+h+f;w.push(m),S[m]={node:A,lastCount:0},b[m]={};for(let y=0;y<x.length;y++){const g=x[y];S[g]&&S[g].node.mode===A.mode?(b[g][m]=p(S[g].lastCount+A.length,A.mode)-p(S[g].lastCount,A.mode),S[g].lastCount+=A.length):(S[g]&&(S[g].lastCount=A.length),b[g][m]=p(A.length,A.mode)+4+o.getCharCountIndicator(A.mode,P))}}x=w}for(let h=0;h<x.length;h++)b[x[h]].end=0;return{map:b,table:S}}function M(E,P){let S;const b=o.getBestModeForData(E);if(S=o.from(P,b),S!==o.BYTE&&S.bit<b.bit)throw new Error('"'+E+'" cannot be encoded with mode '+o.toString(S)+`.
4 Suggested mode is: `+o.toString(b));switch(S===o.KANJI&&!u.isKanjiModeEnabled()&&(S=o.BYTE),S){case o.NUMERIC:return new i(E);case o.ALPHANUMERIC:return new e(E);case o.KANJI:return new n(E);case o.BYTE:return new t(E)}}r.fromArray=function(P){return P.reduce(function(S,b){return typeof b=="string"?S.push(M(b,null)):b.data&&S.push(M(b.data,b.mode)),S},[])},r.fromString=function(P,S){const b=R(P,u.isKanjiModeEnabled()),x=B(b),h=I(x,S),C=a.find_path(h.map,"start","end"),w=[];for(let f=1;f<C.length-1;f++)w.push(h.table[C[f]].node);return r.fromArray(l(w))},r.rawSplit=function(P){return r.fromArray(R(P,u.isKanjiModeEnabled()))}})(dt)),dt}var Yt;function Ae(){if(Yt)return $;Yt=1;const r=q(),o=Bt(),i=ue(),e=ce(),t=le(),n=fe(),s=de(),u=$t(),a=pe(),c=me(),d=ye(),R=j(),p=Re();function l(h,C){const w=h.size,f=n.getPositions(C);for(let A=0;A<f.length;A++){const m=f[A][0],y=f[A][1];for(let g=-1;g<=7;g++)if(!(m+g<=-1||w<=m+g))for(let T=-1;T<=7;T++)y+T<=-1||w<=y+T||(g>=0&&g<=6&&(T===0||T===6)||T>=0&&T<=6&&(g===0||g===6)||g>=2&&g<=4&&T>=2&&T<=4?h.set(m+g,y+T,!0,!0):h.set(m+g,y+T,!1,!0))}}function B(h){const C=h.size;for(let w=8;w<C-8;w++){const f=w%2===0;h.set(w,6,f,!0),h.set(6,w,f,!0)}}function I(h,C){const w=t.getPositions(C);for(let f=0;f<w.length;f++){const A=w[f][0],m=w[f][1];for(let y=-2;y<=2;y++)for(let g=-2;g<=2;g++)y===-2||y===2||g===-2||g===2||y===0&&g===0?h.set(A+y,m+g,!0,!0):h.set(A+y,m+g,!1,!0)}}function M(h,C){const w=h.size,f=c.getEncodedBits(C);let A,m,y;for(let g=0;g<18;g++)A=Math.floor(g/3),m=g%3+w-8-3,y=(f>>g&1)===1,h.set(A,m,y,!0),h.set(m,A,y,!0)}function E(h,C,w){const f=h.size,A=d.getEncodedBits(C,w);let m,y;for(m=0;m<15;m++)y=(A>>m&1)===1,m<6?h.set(m,8,y,!0):m<8?h.set(m+1,8,y,!0):h.set(f-15+m,8,y,!0),m<8?h.set(8,f-m-1,y,!0):m<9?h.set(8,15-m-1+1,y,!0):h.set(8,15-m-1,y,!0);h.set(f-8,8,1,!0)}function P(h,C){const w=h.size;let f=-1,A=w-1,m=7,y=0;for(let g=w-1;g>0;g-=2)for(g===6&&g--;;){for(let T=0;T<2;T++)if(!h.isReserved(A,g-T)){let v=!1;y<C.length&&(v=(C[y]>>>m&1)===1),h.set(A,g-T,v),m--,m===-1&&(y++,m=7)}if(A+=f,A<0||w<=A){A-=f,f=-f;break}}}function S(h,C,w){const f=new i;w.forEach(function(T){f.put(T.mode.bit,4),f.put(T.getLength(),R.getCharCountIndicator(T.mode,h)),T.write(f)});const A=r.getSymbolTotalCodewords(h),m=u.getTotalCodewordsCount(h,C),y=(A-m)*8;for(f.getLengthInBits()+4<=y&&f.put(0,4);f.getLengthInBits()%8!==0;)f.putBit(0);const g=(y-f.getLengthInBits())/8;for(let T=0;T<g;T++)f.put(T%2?17:236,8);return b(f,h,C)}function b(h,C,w){const f=r.getSymbolTotalCodewords(C),A=u.getTotalCodewordsCount(C,w),m=f-A,y=u.getBlocksCount(C,w),g=f%y,T=y-g,v=Math.floor(f/y),F=Math.floor(m/y),K=F+1,J=v-F,re=new a(J);let G=0;const O=new Array(y),bt=new Array(y);let Q=0;const oe=new Uint8Array(h.buffer);for(let _=0;_<y;_++){const Z=_<T?F:K;O[_]=oe.slice(G,G+Z),bt[_]=re.encode(O[_]),G+=Z,Q=Math.max(Q,Z)}const W=new Uint8Array(f);let Rt=0,k,D;for(k=0;k<Q;k++)for(D=0;D<y;D++)k<O[D].length&&(W[Rt++]=O[D][k]);for(k=0;k<J;k++)for(D=0;D<y;D++)W[Rt++]=bt[D][k];return W}function x(h,C,w,f){let A;if(Array.isArray(h))A=p.fromArray(h);else if(typeof h=="string"){let v=C;if(!v){const F=p.rawSplit(h);v=c.getBestVersionForData(F,w)}A=p.fromString(h,v||40)}else throw new Error("Invalid data");const m=c.getBestVersionForData(A,w);if(!m)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=m;else if(C<m)throw new Error(`
5The chosen QR Code version cannot contain this amount of data.
6Minimum version required to store current data is: `+m+`.
7`);const y=S(C,w,A),g=r.getSymbolSize(C),T=new e(g);return l(T,C),B(T),I(T,C),E(T,w,0),C>=7&&M(T,C),P(T,y),isNaN(f)&&(f=s.getBestMask(T,E.bind(null,T,w))),s.applyMask(f,T),E(T,w,f),{modules:T,version:C,errorCorrectionLevel:w,maskPattern:f,segments:A}}return $.create=function(C,w){if(typeof C>"u"||C==="")throw new Error("No input text");let f=o.M,A,m;return typeof w<"u"&&(f=o.from(w.errorCorrectionLevel,o.M),A=c.from(w.version),m=s.from(w.maskPattern),w.toSJISFunc&&r.setToSJISFunction(w.toSJISFunc)),x(C,A,f,m)},$}var wt={},Ct={},Gt;function ne(){return Gt||(Gt=1,(function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let e=i.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+i);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");const t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}r.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,s=e.scale||4;return{width:n,scale:n?4:s,margin:t,color:{dark:o(e.color.dark||"#000000ff"),light:o(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},r.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},r.getImageWidth=function(e,t){const n=r.getScale(e,t);return Math.floor((e+t.margin*2)*n)},r.qrToImageData=function(e,t,n){const s=t.modules.size,u=t.modules.data,a=r.getScale(s,n),c=Math.floor((s+n.margin*2)*a),d=n.margin*a,R=[n.color.light,n.color.dark];for(let p=0;p<c;p++)for(let l=0;l<c;l++){let B=(p*c+l)*4,I=n.color.light;if(p>=d&&l>=d&&p<c-d&&l<c-d){const M=Math.floor((p-d)/a),E=Math.floor((l-d)/a);I=R[u[M*s+E]?1:0]}e[B++]=I.r,e[B++]=I.g,e[B++]=I.b,e[B]=I.a}}})(Ct)),Ct}var Qt;function Se(){return Qt||(Qt=1,(function(r){const o=ne();function i(t,n,s){t.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(n,s,u){let a=u,c=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(c=e()),a=o.getOptions(a);const d=o.getImageWidth(n.modules.size,a),R=c.getContext("2d"),p=R.createImageData(d,d);return o.qrToImageData(p.data,n,a),i(R,c,d),R.putImageData(p,0,0),c},r.renderToDataURL=function(n,s,u){let a=u;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const c=r.render(n,s,a),d=a.type||"image/png",R=a.rendererOpts||{};return c.toDataURL(d,R.quality)}})(wt)),wt}var Et={},Wt;function Te(){if(Wt)return Et;Wt=1;const r=ne();function o(t,n){const s=t.a/255,u=n+'="'+t.hex+'"';return s<1?u+" "+n+'-opacity="'+s.toFixed(2).slice(1)+'"':u}function i(t,n,s){let u=t+n;return typeof s<"u"&&(u+=" "+s),u}function e(t,n,s){let u="",a=0,c=!1,d=0;for(let R=0;R<t.length;R++){const p=Math.floor(R%n),l=Math.floor(R/n);!p&&!c&&(c=!0),t[R]?(d++,R>0&&p>0&&t[R-1]||(u+=c?i("M",p+s,.5+l+s):i("m",a,0),a=0,c=!1),p+1<n&&t[R+1]||(u+=i("h",d),d=0)):a++}return u}return Et.render=function(n,s,u){const a=r.getOptions(s),c=n.modules.size,d=n.modules.data,R=c+a.margin*2,p=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+R+"v"+R+'H0z"/>':"",l="<path "+o(a.color.dark,"stroke")+' d="'+e(d,c,a.margin)+'"/>',B='viewBox="0 0 '+R+" "+R+'"',M='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+B+' shape-rendering="crispEdges">'+p+l+`</svg>
8`;return typeof u=="function"&&u(null,M),M},Et}var Zt;function Ie(){if(Zt)return V;Zt=1;const r=ae(),o=Ae(),i=Se(),e=Te();
8function t(n,s,u,a,c){const d=[].slice.call(arguments,1),R=d.length,p=typeof d[R-1]=="function";if(!p&&!r())throw new Error("Callback required as last argument");if(p){if(R<2)throw new Error("Too few arguments provided");R===2?(c=u,u=s,s=a=void 0):R===3&&(s.getContext&&typeof c>"u"?(c=a,a=void 0):(c=a,a=u,u=s,s=void 0))}else{if(R<1)throw new Error("Too few arguments provided");return R===1?(u=s,s=a=void 0):R===2&&!s.getContext&&(a=u,u=s,s=void 0),new Promise(function(l,B){try{const I=o.create(u,a);l(n(I,s,a))}catch(I){B(I)}})}try{const l=o.create(u,a);c(null,n(l,s,a))}catch(l){c(l)}}return V.create=o.create,V.toCanvas=t.bind(null,i.render),V.toDataURL=t.bind(null,i.renderToDataURL),V.toString=t.bind(null,function(n,s,u){return e.render(n,u)}),V}var Ne=Ie(),Pe=ie(Ne);const Me="/app";function Xt(r){return Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("")}function De({inputFiles:r,onBack:o}){const{runtime:i}=se(),[e,t]=z.useState("idle"),[n,s]=z.useState(""),[u,a]=z.useState(null),[c,d]=z.useState(""),[R,p]=z.useState(!1);z.useEffect(()=>{let B=!0;if(r.length===0){t("error"),s("No files provided to share");return}return(async()=>{var M;try{t("encrypting"),s("Encrypting document locally...");const S=await(await(await i.vfs.read(r[0])).getBlob()).arrayBuffer();if(!B)return;const b=await window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),x=window.crypto.getRandomValues(new Uint8Array(12)),h=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:x},b,S);if(!B)return;t("uploading"),s("Uploading encrypted payload...");const C=await window.crypto.subtle.exportKey("raw",b),w=Xt(C),f=Xt(x.buffer),A=new Blob([h],{type:"application/octet-stream"}),m=new FormData;m.append("file",A,"secured.pdf");const y=await fetch("https://tmpfiles.org/api/v1/upload",{method:"POST",body:m});if(!y.ok)throw new Error(`Upload server responded with code ${y.status}`);const g=await y.json();if(g.status!=="success"||!((M=g.data)!=null&&M.url))throw new Error("Upload failed to return a valid sharing URL");const v=g.data.url.replace("https://tmpfiles.org/","https://tmpfiles.org/dl/"),K=`${`${window.location.origin}${Me}/share`}#url=${encodeURIComponent(v)}&key=${w}&iv=${f}`,J=await Pe.toDataURL(K,{width:280,margin:2,color:{dark:"#142028",light:"#ffffff"}});B&&(d(K),a(J),t("ready"))}catch(E){console.error("Failed to encrypt/upload file:",E),B&&(t("error"),s((E==null?void 0:E.message)||"Failed to securely upload the PDF."))}})(),()=>{B=!1}},[r,i.vfs]);const l=async()=>{try{await navigator.clipboard.writeText(c),p(!0),setTimeout(()=>p(!1),2e3)}catch(B){console.error("Failed to copy link:",B)}};return N.jsxs("div",{className:"tool-config-root",style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:"100%",maxWidth:"480px",margin:"0 auto",padding:"24px 16px"},children:[N.jsx("h3",{style:{fontSize:"18px",fontWeight:700,marginBottom:"8px",color:"#142028"},children:"Share PDF to Phone"}),N.jsx("p",{className:"tool-config-copy",style:{fontSize:"13px",color:"#636c72",marginBottom:"24px",lineHeight:1.5},children:"Encrypts your document end-to-end and uploads it to a temporary cloud. The encryption key resides in the QR-code itself and is never stored on the server."}),N.jsxs("div",{className:"tool-config-card",style:{width:"100%",padding:"24px",background:"#ffffff",border:"1px solid #e9e9e7",borderRadius:"12px",boxShadow:"0 4px 12px rgba(0,0,0,0.02)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"300px"},children:[(e==="encrypting"||e==="uploading")&&N.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[N.jsx("div",{className:"wz-spinner",style:{width:"36px",height:"36px",border:"3px solid #e9e9e7",borderTopColor:"#2383e2",borderRadius:"50%",animation:"spin 1s linear infinite"}}),N.jsx("div",{style:{fontSize:"14px",fontWeight:600,color:"#142028"},children:n}),N.jsx("div",{style:{fontSize:"12px",color:"#888"},children:"This might take a few seconds depending on the file size."})]}),e==="error"&&N.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"12px",color:"#e03e3e"},children:[N.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[N.jsx("circle",{cx:"12",cy:"12",r:"10"}),N.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),N.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),N.jsxs("div",{style:{fontSize:"14px",fontWeight:600},children:["Error: ",n]}),N.jsx("button",{className:"btn-ghost",style:{marginTop:"12px",color:"#2383e2"},onClick:o,children:"Try another file"})]}),e==="ready"&&u&&N.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%"},children:[N.jsx("div",{style:{background:"#f8f9fa",padding:"12px",borderRadius:"12px",border:"1px dashed #ced4da",marginBottom:"16
8px"},children:N.jsx("img",{src:u,alt:"QR Code Link to PDF",style:{width:"220px",height:"220px",display:"block"}})}),N.jsxs("div",{style:{fontSize:"13px",color:"#2b8a3e",fontWeight:600,display:"flex",alignItems:"center",gap:"4px",marginBottom:"12px"},children:[N.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:N.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),"End-to-End Encrypted Link"]}),N.jsx("div",{style:{fontSize:"12px",color:"#868e96",marginBottom:"20px"},children:"Expires in 60 minutes · Auto-destructs after download"}),N.jsx("div",{style:{display:"flex",width:"100%",gap:"8px"},children:N.jsx("button",{onClick:l,className:"btn-ghost",style:{flex:1,padding:"10px",fontSize:"13px",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",borderRadius:"8px",border:"1px solid #ced4da",background:"#ffffff",cursor:"pointer",fontWeight:500},children:R?N.jsxs(N.Fragment,{children:[N.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#2b8a3e",strokeWidth:"2.5",children:N.jsx("polyline",{points:"20 6 9 17 4 12"})}),N.jsx("span",{style:{color:"#2b8a3e"},children:"Copied!"})]}):N.jsxs(N.Fragment,{children:[N.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[N.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),N.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy Link"]})})})]})]}),N.jsx("div",{className:"tool-config-actions",style:{marginTop:"24px",width:"100%",display:"flex",justifyContent:"center"},children:N.jsx("button",{className:"btn-ghost",onClick:o,style:{padding:"10px 24px",fontSize:"13px",cursor:"pointer",borderRadius:"8px"},children:"Back to Tools"})}),N.jsx("style",{children:`
9        @keyframes spin {
10          to { transform: rotate(360deg); }
11        }
12      `})]})}export{De as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.