1import{a as Dt}from"./chunk-6XZC7M5D.js";import{b as Nt}from"./chunk-DC57WRVC.js";import"./chunk-ROYHDBIC.js";import{a as Hn}from"./chunk-VVDN6NKJ.js";import{D as kt,b as vt,c as St}from"./chunk-3DNGW4SF.js";import"./chunk-PZXQKXUD.js";import"./chunk-NAQ3BJUS.js";import"./chunk-U3D3QRKM.js";import"./chunk-FMXKS2BS.js";import"./chunk-XX3AU6B4.js";import"./chunk-GWRC6PM5.js";import"./chunk-5SKDRTPX.js";import"./chunk-OFNP2GLE.js";import"./chunk-CLSB6C2M.js";import{a as Lt}from"./chunk-6JM3F7PU.js";import{c as Rt}from"./chunk-C4MM7TIU.js";import{a as Pt,b as Mt}from"./chunk-4B3OLSJM.js";import"./chunk-5YSYEGAO.js";import{a as At}from"./chunk-UMW45ZEK.js";import"./chunk-KMGAZAMI.js";import{a as Bt,b as qt}from"./chunk-PEPRJPRD.js";import{d as Tt}from"./chunk-6JCN7U6N.js";import"./chunk-X5VSIB3L.js";import"./chunk-ATCQDNKV.js";import"./chunk-U2W2TFL5.js";import"./chunk-JIMA47Q5.js";import{F as mt,H as pt,Ja as Ct,Le as xt,Me as It,Ob as pe,Pb as yt,S as _t,T as wt,fe as bt,g as ft,l as ht,pe as Et,z as gt}from"./chunk-777WSWZL.js";import{Db as ke,Ha as at,Mb as Q,Nb as ut,Ob as U,P as Ae,Sc as I,Tb as B,Tc as v,Ub as _,Vb as p,Wb as k,Zb as dt,dc as de,f,fb as m,h as st,i as K,ic as te,kb as lt,kc as y,oa as Z,oc as fe,pb as ct,pc as he,qb as Le,qc as ge,va as X,vc as me,wa as ee,wc as b,xb as ue,xc as x,yc as Pe}from"./chunk-TM6FWLLK.js";var Ut=f(($r,Qt)=>{"use strict";Qt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var P=f(F=>{"use strict";var Me,zn=[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];F.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};F.getSymbolTotalCodewords=function(e){return zn[e]};F.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};F.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Me=e};F.isKanjiModeEnabled=function(){return typeof Me<"u"};F.toSJIS=function(e){return Me(e)}});var _e=f(E=>{"use strict";E.L={bit:1};E.M={bit:0};E.Q={bit:3};E.H={bit:2};function On(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return E.L;case"m":case"medium":return E.M;case"q":case"quartile":return E.Q;case"h":case"high":return E.H;default:throw new Error("Unknown EC Level: "+r)}}E.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};E.from=function(e,t){if(E.isValid(e))return e;try{return On(e)}catch{return t}}});var Ht=f((ei,Vt)=>{"use strict";function Ft(){this.buffer=[],this.length=0}Ft.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t<e;t++)this.putBit((r>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};Vt.exports=Ft});var Ot=f((ti,zt)=>{"use strict";function ne(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}ne.prototype.set=function(r,e,t,n){let i=r*this.size+e;this.data[i]=t,n&&(this.reservedBit[i]=!0)};ne.prototype.get=function(r,e){return this.data[r*this.size+e]};ne.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};ne.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};zt.exports=ne});var Kt=f(we=>{"use strict";var Kn=P().getSymbolSize;we.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Kn(e),i=n===145?26:Math.ceil((n-13)/(2*t-2))*2,o=[n-7];for(let s=1;s<t-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};we.getPositions=function(e){let t=[],n=we.getRowColCoords(e),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||t.push([n[o],n[s]]);return t}});var Yt=f(jt=>{"use strict";var Jn=P().getSymbolSize,Jt=7;jt.getPositions=function(e){let t=Jn(e);return[[0,0],[t-Jt,0],[0,t-Jt]]}});var Gt=f(g=>{"use strict";g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var V={N1:3,N2:3,N3:40,N4:10};g.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};g.from=function(e){return g.isValid(e)?parseInt(e,10):void 0};g.getPenaltyN1=function(e){let t=e.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<t;l++){i=o=0,s=a=null;for(let c=0;c<t;c++){let u=e.get(l,c);u===s?i++:(i>=5&&(n+=V.N1+(i-5)),s=u,i=1),u=e.get(c,l),u===a?o++:(o>=5&&(n+=V.N1+(o-5)),a=u,o=1)}i>=5&&(n+=V.N1+(i-5)),o>=5&&(n+=V.N1+(o-5))}return n};g.getPenaltyN2=function(e){let t=e.size,n=0;for(let i=0;i<t-1;i++)for(let o=0;o<t-1;o++){let s=e.get(i,o)+e.get(i,o+1)+e.get(i+1,o)+e.get(i+1,o+1);(s===4||s===0)&&n++}return n*V.N2};g.getPenaltyN3=function(e){let t=e.size,n=0,i=0,o=0;for(let s=0;s<t;s++){i=o=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|e.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*V.N3};g.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(t*100/n/5)-10)*V.N4};function jn(r,e,t){switch(r){case g.Patterns.PATTERN000:return(e+t)%2===0;case g.Patterns.PATTERN001:return e%2===0;case g.Patterns.PATTERN010:return t%3===0;case g.Patterns.PATTERN011:return(e+t)%3===0;case g.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case g.Patterns.PATTERN101:return e*t%2+e*t%3===0;case g.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case g.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}g.applyMask=function(e,t){let n=t.size;
1for(let i=0;i<n;i++)for(let o=0;o<n;o++)t.isReserved(o,i)||t.xor(o,i,jn(e,o,i))};g.getBestMask=function(e,t){let n=Object.keys(g.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){t(s),g.applyMask(s,e);let a=g.getPenaltyN1(e)+g.getPenaltyN2(e)+g.getPenaltyN3(e)+g.getPenaltyN4(e);g.applyMask(s,e),a<o&&(o=a,i=s)}return i}});var De=f(Ne=>{"use strict";var M=_e(),Ce=[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],ye=[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];Ne.getBlocksCount=function(e,t){switch(t){case M.L:return Ce[(e-1)*4+0];case M.M:return Ce[(e-1)*4+1];case M.Q:return Ce[(e-1)*4+2];case M.H:return Ce[(e-1)*4+3];default:return}};Ne.getTotalCodewordsCount=function(e,t){switch(t){case M.L:return ye[(e-1)*4+0];case M.M:return ye[(e-1)*4+1];case M.Q:return ye[(e-1)*4+2];case M.H:return ye[(e-1)*4+3];default:return}}});var Wt=f(Ee=>{"use strict";var re=new Uint8Array(512),be=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)re[t]=e,be[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)re[t]=re[t-255]})();Ee.log=function(e){if(e<1)throw new Error("log("+e+")");return be[e]};Ee.exp=function(e){return re[e]};Ee.mul=function(e,t){return e===0||t===0?0:re[be[e]+be[t]]}});var $t=f(ie=>{"use strict";var Qe=Wt();ie.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=Qe.mul(e[i],t[o]);return n};ie.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let i=n[0];for(let s=0;s<t.length;s++)n[s]^=Qe.mul(t[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};ie.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=ie.mul(t,new Uint8Array([1,Qe.exp(n)]));return t}});var en=f((li,Xt)=>{"use strict";var Zt=$t();function Ue(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}Ue.prototype.initialize=function(e){this.degree=e,this.genPoly=Zt.generateECPolynomial(this.degree)};Ue.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Zt.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};Xt.exports=Ue});var Fe=f(tn=>{"use strict";tn.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Ve=f(q=>{"use strict";var nn="[0-9]+",Yn="[A-Z $%*+\\-./:]+",oe="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oe=oe.replace(/u/g,"\\u");var Gn="(?:(?![A-Z0-9 $%*+\\-./:]|"+oe+`)(?:.|[\r 2]))+`;q.KANJI=new RegExp(oe,"g");q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");q.BYTE=new RegExp(Gn,"g");q.NUMERIC=new RegExp(nn,"g");q.ALPHANUMERIC=new RegExp(Yn,"g");var Wn=new RegExp("^"+oe+"$"),$n=new RegExp("^"+nn+"$"),Zn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(e){return Wn.test(e)};q.testNumeric=function(e){return $n.test(e)};q.testAlphanumeric=function(e){return Zn.test(e)}});var N=f(w=>{"use strict";var Xn=Fe(),He=Ve();w.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};w.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};w.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};w.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};w.MIXED={bit:-1};w.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Xn.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};w.getBestModeForData=function(e){return He.testNumeric(e)?w.NUMERIC:He.testAlphanumeric(e)?w.ALPHANUMERIC:He.testKanji(e)?w.KANJI:w.BYTE};w.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};w.isValid=function(e){return e&&e.bit&&e.ccBits};function er(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return w.NUMERIC;case"alphanumeric":return w.ALPHANUMERIC;
2case"kanji":return w.KANJI;case"byte":return w.BYTE;default:throw new Error("Unknown mode: "+r)}}w.from=function(e,t){if(w.isValid(e))return e;try{return er(e)}catch{return t}}});var ln=f(H=>{"use strict";var xe=P(),tr=De(),rn=_e(),D=N(),ze=Fe(),sn=7973,on=xe.getBCHDigit(sn);function nr(r,e,t){for(let n=1;n<=40;n++)if(e<=H.getCapacity(n,t,r))return n}function an(r,e){return D.getCharCountIndicator(r,e)+4}function rr(r,e){let t=0;return r.forEach(function(n){let i=an(n.mode,e);t+=i+n.getBitsLength()}),t}function ir(r,e){for(let t=1;t<=40;t++)if(rr(r,t)<=H.getCapacity(t,e,D.MIXED))return t}H.from=function(e,t){return ze.isValid(e)?parseInt(e,10):t};H.getCapacity=function(e,t,n){if(!ze.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=D.BYTE);let i=xe.getSymbolTotalCodewords(e),o=tr.getTotalCodewordsCount(e,t),s=(i-o)*8;if(n===D.MIXED)return s;let a=s-an(n,e);switch(n){case D.NUMERIC:return Math.floor(a/10*3);case D.ALPHANUMERIC:return Math.floor(a/11*2);case D.KANJI:return Math.floor(a/13);case D.BYTE:default:return Math.floor(a/8)}};H.getBestVersionForData=function(e,t){let n,i=rn.from(t,rn.M);if(Array.isArray(e)){if(e.length>1)return ir(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return nr(n.mode,n.getLength(),i)};H.getEncodedBits=function(e){if(!ze.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;xe.getBCHDigit(t)-on>=0;)t^=sn<<xe.getBCHDigit(t)-on;return e<<12|t}});var fn=f(dn=>{"use strict";var Oe=P(),un=1335,or=21522,cn=Oe.getBCHDigit(un);dn.getEncodedBits=function(e,t){let n=e.bit<<3|t,i=n<<10;for(;Oe.getBCHDigit(i)-cn>=0;)i^=un<<Oe.getBCHDigit(i)-cn;return(n<<10|i)^or}});var gn=f((gi,hn)=>{"use strict";var sr=N();function J(r){this.mode=sr.NUMERIC,this.data=r.toString()}J.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);let o=this.data.length-t;o>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,o*3+1))};hn.exports=J});var pn=f((mi,mn)=>{"use strict";var ar=N(),Ke=["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 j(r){this.mode=ar.ALPHANUMERIC,this.data=r}j.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};j.prototype.getLength=function(){return this.data.length};j.prototype.getBitsLength=function(){return j.getBitsLength(this.data.length)};j.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Ke.indexOf(this.data[t])*45;n+=Ke.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Ke.indexOf(this.data[t]),6)};mn.exports=j});var wn=f((pi,_n)=>{"use strict";var lr=N();function Y(r){this.mode=lr.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}Y.getBitsLength=function(e){return e*8};Y.prototype.getLength=function(){return this.data.length};Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)};Y.prototype.write=function(r){for(let e=0,t=this.data.length;e<t;e++)r.put(this.data[e],8)};_n.exports=Y});var yn=f((_i,Cn)=>{"use strict";var cr=N(),ur=P();function G(r){this.mode=cr.KANJI,this.data=r}G.getBitsLength=function(e){return e*13};G.prototype.getLength=function(){return this.data.length};G.prototype.getBitsLength=function(){return G.getBitsLength(this.data.length)};G.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let t=ur.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` 3Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};Cn.exports=G});var bn=f((wi,Je)=>{"use strict";var se={single_source_shortest_paths:function(r,e,t){var n={},i={};i[e]=0;
3var o=se.PriorityQueue.make();o.push(e,0);for(var s,a,l,c,u,C,h,S,A;!o.empty();){s=o.pop(),a=s.value,c=s.cost,u=r[a]||{};for(l in u)u.hasOwnProperty(l)&&(C=u[l],h=c+C,S=i[l],A=typeof i[l]>"u",(A||S>h)&&(i[l]=h,o.push(l,h),n[l]=a))}if(typeof t<"u"&&typeof i[t]>"u"){var L=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(L)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,i;n;)t.push(n),i=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=se.single_source_shortest_paths(r,e,t);return se.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=se.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Je<"u"&&(Je.exports=se)});var Bn=f(W=>{"use strict";var d=N(),In=gn(),vn=pn(),Sn=wn(),Tn=yn(),ae=Ve(),Ie=P(),dr=bn();function En(r){return unescape(encodeURIComponent(r)).length}function le(r,e,t){let n=[],i;for(;(i=r.exec(t))!==null;)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function Rn(r){let e=le(ae.NUMERIC,d.NUMERIC,r),t=le(ae.ALPHANUMERIC,d.ALPHANUMERIC,r),n,i;return Ie.isKanjiModeEnabled()?(n=le(ae.BYTE,d.BYTE,r),i=le(ae.KANJI,d.KANJI,r)):(n=le(ae.BYTE_KANJI,d.BYTE,r),i=[]),e.concat(t,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function je(r,e){switch(e){case d.NUMERIC:return In.getBitsLength(r);case d.ALPHANUMERIC:return vn.getBitsLength(r);case d.KANJI:return Tn.getBitsLength(r);case d.BYTE:return Sn.getBitsLength(r)}}function fr(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function hr(r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];switch(n.mode){case d.NUMERIC:e.push([n,{data:n.data,mode:d.ALPHANUMERIC,length:n.length},{data:n.data,mode:d.BYTE,length:n.length}]);break;case d.ALPHANUMERIC:e.push([n,{data:n.data,mode:d.BYTE,length:n.length}]);break;case d.KANJI:e.push([n,{data:n.data,mode:d.BYTE,length:En(n.data)}]);break;case d.BYTE:e.push([{data:n.data,mode:d.BYTE,length:En(n.data)}])}}return e}function gr(r,e){let t={},n={start:{}},i=["start"];for(let o=0;o<r.length;o++){let s=r[o],a=[];for(let l=0;l<s.length;l++){let c=s[l],u=""+o+l;a.push(u),t[u]={node:c,lastCount:0},n[u]={};for(let C=0;C<i.length;C++){let h=i[C];t[h]&&t[h].node.mode===c.mode?(n[h][u]=je(t[h].lastCount+c.length,c.mode)-je(t[h].lastCount,c.mode),t[h].lastCount+=c.length):(t[h]&&(t[h].lastCount=c.length),n[h][u]=je(c.length,c.mode)+4+d.getCharCountIndicator(c.mode,e))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:t}}function xn(r,e){let t,n=d.getBestModeForData(r);if(t=d.from(e,n),t!==d.BYTE&&t.bit<n.bit)throw new Error('"'+r+'" cannot be encoded with mode '+d.toString(t)+`. 4 Suggested mode is: `+d.toString(n));switch(t===d.KANJI&&!Ie.isKanjiModeEnabled()&&(t=d.BYTE),t){case d.NUMERIC:return new In(r);case d.ALPHANUMERIC:return new vn(r);case d.KANJI:return new Tn(r);case d.BYTE:return new Sn(r)}}W.fromArray=function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(xn(n,null)):n.data&&t.push(xn(n.data,n.mode)),t},[])};W.fromString=function(e,t){let n=Rn(e,Ie.isKanjiModeEnabled()),i=hr(n),o=gr(i,t),s=dr.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return W.fromArray(fr(a))};W.rawSplit=function(e){return W.fromArray(Rn(e,Ie.isKanjiModeEnabled()))}});var An=f(qn=>{"use strict";var Se=P(),Ye=_e(),mr=Ht(),pr=Ot(),_r=Kt(),wr=Yt(),$e=Gt(),Ze=De(),Cr=en(),ve=ln(),yr=fn(),br=N(),Ge=Bn();function Er(r,e){let t=r.size,n=wr.getPositions(e);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||t<=o+a))for(let l=-1;l<=7;l++)s+l<=-1||t<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?r.set(o+a,s+l,!0,!0):r.set(o+a,s+l,!1,!0))}}function xr(r){let e=r.size;
4for(let t=8;t<e-8;t++){let n=t%2===0;r.set(t,6,n,!0),r.set(6,t,n,!0)}}function Ir(r,e){let t=_r.getPositions(e);for(let n=0;n<t.length;n++){let i=t[n][0],o=t[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?r.set(i+s,o+a,!0,!0):r.set(i+s,o+a,!1,!0)}}function vr(r,e){let t=r.size,n=ve.getEncodedBits(e),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+t-8-3,s=(n>>a&1)===1,r.set(i,o,s,!0),r.set(o,i,s,!0)}function We(r,e,t){let n=r.size,i=yr.getEncodedBits(e,t),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?r.set(o,8,s,!0):o<8?r.set(o+1,8,s,!0):r.set(n-15+o,8,s,!0),o<8?r.set(8,n-o-1,s,!0):o<9?r.set(8,15-o-1+1,s,!0):r.set(8,15-o-1,s,!0);r.set(n-8,8,1,!0)}function Sr(r,e){let t=r.size,n=-1,i=t-1,o=7,s=0;for(let a=t-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!r.isReserved(i,a-l)){let c=!1;s<e.length&&(c=(e[s]>>>o&1)===1),r.set(i,a-l,c),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||t<=i){i-=n,n=-n;break}}}function Tr(r,e,t){let n=new mr;t.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),br.getCharCountIndicator(l.mode,r)),l.write(n)});let i=Se.getSymbolTotalCodewords(r),o=Ze.getTotalCodewordsCount(r,e),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return Rr(n,r,e)}function Rr(r,e,t){let n=Se.getSymbolTotalCodewords(e),i=Ze.getTotalCodewordsCount(e,t),o=n-i,s=Ze.getBlocksCount(e,t),a=n%s,l=s-a,c=Math.floor(n/s),u=Math.floor(o/s),C=u+1,h=c-u,S=new Cr(h),A=0,L=new Array(s),it=new Array(s),Re=0,Vn=new Uint8Array(r.buffer);for(let O=0;O<s;O++){let qe=O<l?u:C;L[O]=Vn.slice(A,A+qe),it[O]=S.encode(L[O]),A+=qe,Re=Math.max(Re,qe)}let Be=new Uint8Array(n),ot=0,T,R;for(T=0;T<Re;T++)for(R=0;R<s;R++)T<L[R].length&&(Be[ot++]=L[R][T]);for(T=0;T<h;T++)for(R=0;R<s;R++)Be[ot++]=it[R][T];return Be}function Br(r,e,t,n){let i;if(Array.isArray(r))i=Ge.fromArray(r);else if(typeof r=="string"){let c=e;if(!c){let u=Ge.rawSplit(r);c=ve.getBestVersionForData(u,t)}i=Ge.fromString(r,c||40)}else throw new Error("Invalid data");let o=ve.getBestVersionForData(i,t);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+o+`. 7`);let s=Tr(e,t,i),a=Se.getSymbolSize(e),l=new pr(a);return Er(l,e),xr(l),Ir(l,e),We(l,t,0),e>=7&&vr(l,e),Sr(l,s),isNaN(n)&&(n=$e.getBestMask(l,We.bind(null,l,t))),$e.applyMask(n,l),We(l,t,n),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:n,segments:i}}qn.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Ye.M,i,o;return typeof t<"u"&&(n=Ye.from(t.errorCorrectionLevel,Ye.M),i=ve.from(t.version),o=$e.from(t.maskPattern),t.toSJISFunc&&Se.setToSJISFunction(t.toSJISFunc)),Br(e,i,n,o)}});var Xe=f(z=>{"use strict";function Ln(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(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");let 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("")}}z.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:Ln(e.color.dark||"#000000ff"),light:Ln(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};z.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};z.getImageWidth=function(e,t){let n=z.getScale(e,t);return Math.floor((e+t.margin*2)*n)};z.qrToImageData=function(e,t,n){let i=t.modules.size,o=t.modules.data,s=z.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,c=[n.color.light,n.color.dark];for(let u=0;u<a;u++)for(let C=0;C<a;C++){let h=(u*a+C)*4,S=n.color.light;if(u>=l&&C>=l&&u<a-l&&C<a-l){let A=Math.floor((u-l)/s),L=Math.floor((C-l)/s);S=c[o[A*i+L]?1:0]}e[h++]=S.r,e[h++]=S.g,e[h++]=S.b,e[h]=S.a}
7}});var kn=f(Te=>{"use strict";var et=Xe();function qr(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function Ar(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Te.render=function(e,t,n){let i=n,o=t;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),t||(o=Ar()),i=et.getOptions(i);let s=et.getImageWidth(e.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return et.qrToImageData(l.data,e,i),qr(a,o,s),a.putImageData(l,0,0),o};Te.renderToDataURL=function(e,t,n){let i=n;typeof i>"u"&&(!t||!t.getContext)&&(i=t,t=void 0),i||(i={});let o=Te.render(e,t,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var Nn=f(Mn=>{"use strict";var Lr=Xe();function Pn(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function tt(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function kr(r,e,t){let n="",i=0,o=!1,s=0;for(let a=0;a<r.length;a++){let l=Math.floor(a%e),c=Math.floor(a/e);!l&&!o&&(o=!0),r[a]?(s++,a>0&&l>0&&r[a-1]||(n+=o?tt("M",l+t,.5+c+t):tt("m",i,0),i=0,o=!1),l+1<e&&r[a+1]||(n+=tt("h",s),s=0)):i++}return n}Mn.render=function(e,t,n){let i=Lr.getOptions(t),o=e.modules.size,s=e.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+Pn(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Pn(i.color.dark,"stroke")+' d="'+kr(s,o,i.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg> 8`;return typeof n=="function"&&n(null,h),h}});var Qn=f(ce=>{"use strict";var Pr=Ut(),nt=An(),Dn=kn(),Mr=Nn();function rt(r,e,t,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!Pr())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(l,c){try{let u=nt.create(t,n);l(r(u,e,n))}catch(u){c(u)}})}try{let l=nt.create(t,n);i(null,r(l,e,n))}catch(l){i(l)}}ce.create=nt.create;ce.toCanvas=rt.bind(null,Dn.render);ce.toDataURL=rt.bind(null,Dn.renderToDataURL);ce.toString=rt.bind(null,function(r,e,t){return Mr.render(r,t)})});var $=st(Qn(),1);var Dr=["qrcElement"],Un=(()=>{let e=class e{constructor(n,i){this.renderer=n,this.sanitizer=i,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new lt,this.context=null}ngOnChanges(){return K(this,null,function*(){yield this.createQRCode()})}isValidQrCodeText(n){return this.allowEmptyString===!1?!(typeof n>"u"||n===""||n==="null"||n===null):!(typeof n>"u")}toDataURL(n){return new Promise((i,o)=>{(0,$.toDataURL)(this.qrdata,n,(s,a)=>{s?o(s):i(a)})})}toCanvas(n,i){return new Promise((o,s)=>{(0,$.toCanvas)(n,this.qrdata,i,a=>{a?s(a):o("success")})})}toSVG(n){return new Promise((i,o)=>{(0,$.toString)(this.qrdata,n,(s,a)=>{s?o(s):i(a)})})}renderElement(n){for(let i of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,i);this.renderer.appendChild(this.qrcElement.nativeElement,n)}createQRCode(){return K(this,null,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):this.version!==void 0&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&this.qrdata===""&&(this.qrdata=" ");
8let n={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},i=this.imageSrc,o=this.imageHeight||40,s=this.imageWidth||40;switch(this.elementType){case"canvas":{let a=this.renderer.createElement("canvas");this.context=a.getContext("2d"),this.toCanvas(a,n).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(a,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(a,"title",`${this.title}`),i&&this.context){this.centerImage=new Image(s,o),i!==this.centerImage.src&&(this.centerImage.crossOrigin="anonymous",this.centerImage.src=i),o!==this.centerImage.height&&(this.centerImage.height=o),s!==this.centerImage.width&&(this.centerImage.width=s);let l=this.centerImage;l&&(l.onload=()=>{this.context?.drawImage(l,a.width/2-s/2,a.height/2-o/2,s,o)})}this.renderElement(a),this.emitQRCodeURL(a)}).catch(l=>{console.error("[angularx-qrcode] canvas error:",l)});break}case"svg":{let a=this.renderer.createElement("div");this.toSVG(n).then(l=>{this.renderer.setProperty(a,"innerHTML",l);let c=a.firstChild;this.renderer.setAttribute(c,"height",`${this.width}`),this.renderer.setAttribute(c,"width",`${this.width}`),this.renderElement(c),this.emitQRCodeURL(c)}).catch(l=>{console.error("[angularx-qrcode] svg error:",l)});break}default:{let a=this.renderer.createElement("img");this.toDataURL(n).then(l=>{this.alt&&a.setAttribute("alt",this.alt),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel),a.setAttribute("src",l),this.title&&a.setAttribute("title",this.title),this.renderElement(a),this.emitQRCodeURL(a)}).catch(l=>{console.error("[angularx-qrcode] img/url error:",l)})}}}catch(n){console.error("[angularx-qrcode] Error generating QR Code:",n.message)}})}convertBase64ImageUrlToBlob(n){let i=n.split(";base64,"),o=i[0].split(":")[1],s=atob(i[1]),a=new Uint8Array(s.length);for(let l=0;l<s.length;++l)a[l]=s.charCodeAt(l);return new Blob([a],{type:o})}emitQRCodeURL(n){let i=n.constructor.name;if(i===SVGSVGElement.name){let c=n.outerHTML,u=new Blob([c],{type:"image/svg+xml"}),C=URL.createObjectURL(u),h=this.sanitizer.bypassSecurityTrustUrl(C);this.qrCodeURL.emit(h);return}let o="";i===HTMLCanvasElement.name&&(o=n.toDataURL("image/png")),i===HTMLImageElement.name&&(o=n.src);let s=this.convertBase64ImageUrlToBlob(o),a=URL.createObjectURL(s),l=this.sanitizer.bypassSecurityTrustUrl(a);this.qrCodeURL.emit(l)}};e.\u0275fac=function(i){return new(i||e)(Le(ct),Le(gt))},e.\u0275cmp=ue({type:e,selectors:[["qrcode"]],viewQuery:function(i,o){if(i&1&&fe(Dr,7),i&2){let s;he(s=ge())&&(o.qrcElement=s.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[at],decls:2,vars:2,consts:[["qrcElement",""]],template:function(i,o){i&1&&dt(0,"div",null,0),i&2&&me(o.cssClass)},encapsulation:2,changeDetection:0});let r=e;return r})();var Fn=st(Hn());var Fr=["carousel"];function Vr(r,e){if(r&1&&(_(0,"div",22),k(1,"qrcode",23),p()),r&2){let t=e.$implicit,n=y(4);m(),B("qrdata",t.barcode)("width",n.QR_CODE_WIDTH_S)("errorCorrectionLevel","M")("margin",0)}}function Hr(r,e){if(r&1){let t=de();_(0,"p-carousel",20,0),te("onPage",function(i){X(t);let o=y(3);return ee(o.onQRCodeChange(i))}),ke(2,Vr,2,4,"ng-template",21),p()}if(r&2){let t=y(3);B("value",t.order.items)("numVisible",1)("numScroll",1)("page",0)("showNavigators",!0)("circular",!1)("showNavigators",!1)("showIndicators",!1)}}function zr(r,e){if(r&1&&k(0,"qrcode",23),r&2){let t=y(4);B("qrdata",e)("width",t.QR_CODE_WIDTH_L)("errorCorrectionLevel","M")("margin",0)}}function Or(r,e){if(r&1&&(_(0,"div",11),Q(1,zr,1,4,"qrcode",23),p()),r&2){let t,n=y(3);m(),U((t=n.order.items[0].barcode)?1:-1,t)}}function Kr(r,e){if(r&1){let t=de();_(0,"div",12)(1,"p-button",24),te("onClick",function(i){X(t);let o=y(3);return ee(o.navBackward(i))}),p(),_(2,"p-button",25),te("onClick",function(i){X(t);let o=y(3);return ee(o.navForward(i))}),p()()}if(r&2){let t=y(3);m(),B("disabled",t.currentQRIndex===0),m(),B("disabled",t.currentQRIndex+1===t.order.items.length)}}function Jr(r,e){if(r&1){let t=de();_(0,"us-button-wrapper",26),I(1,"translate"),I(2,"async"),te("clicked",function(){X(t);let i=y(3);return ee(i.printSticker())}),p()}if(r&2){let t=y(3);B("label",v(1,2,t.multipleQRCodesExist?"qr-codes.download-stickers":"qr-codes.download-sticker"))("isLoading",v(2,4,t.printStickersInProgress$))}}function jr(r,e){if(r&1&&(_(0,"div",2)(1,"div",5),b(2),k(3,"us-badge",6),p(),_(4,"div",7)(5,"div",8)(6,"div",9),Q(7,Hr,3,8,"p-carousel",10)(8,Or,2,1,"div",11),p(),Q(9,Kr,3,2,"div",12),p(),_(10,"div",13)(11,"div",14),b(12),I(13,"translate"),p(),k(14,"p-divider"),_(15,"div",15)(16,"span")(17,"div",16),b(18),I(19,"translate"),p(),_(20,"div",17),b(21),p()(),_(22,"span")(23,"div",16),b(24),I(25,"translate"),p(),_(26,"div",17),b(27),p()(),_(28,"span")(29,"div",16),b(30),I(31,"translate"),p(),_(32,"div",17),b(33),p()(),_(34,"span")(35,"div",16),b(36),I(37,"translate"),p(),_(38,"div",17),b(39),I(40,"translate"),p()(),_(41,"span")(42,"div",16),b(43),I(44,"translate"),p(),_(45,"div",17),b(46),p()(),_(47,"div",18),Q(48,Jr,3,6,"us-button-wrapper",19),p()()()()()),r&2){let t=y(2);m(2),Pe(" ",t.order.orderId," "),m(),B("text",t.order.items.length),m(4),U(t.multipleQRCodesExist?7:t.order.items[0]?8:-1),m(2),U(t.multipleQRCodesExist?9:-1),m(3),Pe(" ",v(13,16,"history.parcel-info-sidebar.parcel-data")," "),m(6),x(v(19,18,"courier.columns.number")),m(3),x(t.order.items[t.currentQRIndex].barcode),m(3),x(v(25,20,"courier.columns.recipient")),m(3),x(t.order.items[t.currentQRIndex].receiverAddress.name),m(3),x(v(31,22,"common.recipient-info.address")),m(3),x(t.getAddress(t.order.items[t.currentQRIndex].receiverAddress)),m(3),x(v(37,24,"order.cart-view.service")),m(3),x(v(40,26,t.serviceTitle(t.order.items[t.currentQRIndex]))),m(4),x(v(44,28,"history.parcel-info-sidebar.declared-size")),m(3),x(t.order.items[t.currentQRIndex].parcel.size),m(2),U(t.canPrintSticker&&!t.isPaidAtTerminal(t.order.items[t.currentQRIndex].services)?48:-1)}}function Yr(r,e){r&1&&k(0,"us-login-register-image-grid")}function Gr(r,e){if(r&1&&(_(0,"div",2),k(1,"us-logo-language-selector",3),Q(2,jr,49,30,"div",2),p(),ke(3,Yr,1,0,"us-login-register-image-grid",4)),r&2){let t=y();m(2),U(t.order?2:-1),m(),B("usShowFrom","desktop")}}function Wr(r,e){r&1&&k(0,"us-loading-view")}var _o=(()=>{let e=class e{constructor(){this._activatedRoute=Z(mt),this._router=Z(pt),this._historyService=Z(Nt),this._errorHandlerService=Z(yt),this.class="us-qr-codes block w-full h-full flex justify-content-center",this.stickersQueryParams=null,this.currentQRIndex=0,this.QR_CODE_WIDTH_S=233,this.QR_CODE_WIDTH_L=272,this.qrLoadingInProgress$=this._historyService.qrLoadingInProgress$,this.printStickersInProgress$=this._historyService.printStickersInProgress$,this.getAddress=Et}ngOnInit(){this._activatedRoute.params.pipe(Ae(1)).subscribe(n=>{let i=n.token;i?this._loadOrderData(i):this._navigateToLanding()}),this._activatedRoute.queryParams.pipe(Ae(1)).subscribe(n=>{this.stickersQueryParams={pk:n.pk,data:n.data,sign:n.sign}})}get multipleQRCodesExist(){return(this.order&&this.order.items.length>1)??!1}get canPrintSticker(){return!!(this.stickersQueryParams?.pk&&this.stickersQueryParams?.data&&this.stickersQueryParams?.sign)}onQRCodeChange(n){this.currentQRIndex=n.page??0}serviceTitle(n){return kt(n.parcel.type??"",n?.orderPlan?.superType??"")??""}isPaidAtTerminal(n){return n.some(i=>i.code===Dt.payAtTerminal)}navBackward(n){this.carousel.navBackward(n)}navForward(n){this.carousel.navForward(n)}printSticker(){return K(this,null,function*(){try{if(!this.stickersQueryParams?.pk||!this.stickersQueryParams?.data||!this.stickersQueryParams?.sign)throw pe();let n=yield this._historyService.getAnonLabelLetter(this.stickersQueryParams.pk,this.stickersQueryParams.data,this.stickersQueryParams.sign);if(n)(0,Fn.saveAs)(n,`${this.stickersQueryParams.pk}-stickers.pdf`);else throw pe()}catch(n){this._errorHandlerService.handleError(n)}})}_loadOrderData(n){return K(this,null,function*(){try{let i=yield this._historyService.getOrderInfoForQR(n);if(!i)throw pe();this.order=i}
8catch(i){this._errorHandlerService.handleError(i,void 0,void 0,()=>this._navigateToLanding());return}})}_navigateToLanding(){this._router.navigateByUrl(bt.LANDING.path)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ue({type:e,selectors:[["us-qr-codes"]],viewQuery:function(i,o){if(i&1&&fe(Fr,5),i&2){let s;he(s=ge())&&(o.carousel=s.first)}},hostVars:2,hostBindings:function(i,o){i&2&&me(o.class)},decls:4,vars:3,consts:[["carousel",""],[1,"flex","align-items-stretch","flex","align-items-stretch","justify-content-center","gap-5","p-5","min-h-screen","w-full"],[1,"us-qr-codes__left-block","flex","flex-column","w-full"],[1,"p-2"],[4,"usShowFrom"],[1,"us-qr-codes__left-block__header","flex","justify-content-between","align-items-center","text-2xl","py-4","px-5","us-bg-bw-200","mx-2"],["stylingClass","us-bg-primary text-2xl us-color-bw-100","badgeHeight","2rem","badgeWidth","2rem",3,"text"],[1,"us-qr-codes__left-block__content","flex","mt-7","w-full","gap-2"],[1,"flex","flex-column"],[1,"us-qr-codes__left-block__content__carousel-container-mobile","flex","flex-column","align-self-center","lg:align-self-start","justify-content-center"],[3,"value","numVisible","numScroll","page","showNavigators","circular","showIndicators"],[1,"us-qr-codes__left-block__qr-codes-wrapper__qr-code","p-3"],[1,"flex","gap-2","align-items-start","py-3"],[1,"us-qr-codes__left-block__content__info","flex","flex-column","mx-2","flex-grow-1"],[1,"text-2xl","font-bold"],[1,"flex","flex-column","gap-4"],[1,"text-sm"],[1,"text-sm","font-bold"],[1,"flex","flex-column","gap-3"],["loadingIcon","us-loader-icon us-icon-spinning","buttonStyleClass","w-full p-button-secondary us-bg-bw-100",3,"label","isLoading"],[3,"onPage","value","numVisible","numScroll","page","showNavigators","circular","showIndicators"],["pTemplate","item"],[1,"us-qr-codes__left-block__qr-codes-wrapper__qr-codes","p-3"],["cssClass","p-3 us-bg-bw-100 us-qr-codes__left-block__qr-codes-wrapper__qr-codes__round-border",3,"qrdata","width","errorCorrectionLevel","margin"],["styleClass","p-button-text p-0 w-auto","icon","us-arrow-left-icon",1,"us-qr-codes__left-block__content__arrow-button","us-bg-bw-200","border-round",3,"onClick","disabled"],["styleClass","p-button-text p-0 w-auto","icon","us-arrow-right-icon",1,"us-qr-codes__left-block__content__arrow-button","us-bg-bw-200","border-round",3,"onClick","disabled"],["loadingIcon","us-loader-icon us-icon-spinning","buttonStyleClass","w-full p-button-secondary us-bg-bw-100",3,"clicked","label","isLoading"]],template:function(i,o){i&1&&(_(0,"div",1),Q(1,Gr,4,2),I(2,"async"),ut(3,Wr,1,0,"us-loading-view"),p()),i&2&&(m(),U(v(2,1,o.qrLoadingInProgress$)===!1?1:3))},dependencies:[ht,Pt,It,xt,Ct,wt,qt,Bt,St,vt,Mt,Rt,At,Lt,Un,Tt,ft,_t],styles:[`.max-w-100{max-width:100%}.max-w-50{max-width:50%}.w-50{width:50%}.w-25{width:25%}.digest-gap-4.w-50{width:calc(50% - .5rem)!important}.digest-gap-4.w-25{width:calc(50% - .25rem)!important}.border-debug,.border-this,.border-all{border:1px solid red!important}.border-all>*{border:1px solid red!important}.border-all-levels,.border-all-levels *{border:1px solid red!important}.us-qr-codes__left-block{max-width:55rem}.us-qr-codes__left-block__header{border-radius:1.5rem}.us-qr-codes__left-block__content{flex-direction:column}@media(min-width:992px){.us-qr-codes__left-block__content{flex-direction:row}}.us-qr-codes__left-block__content__info{min-width:12.5rem}.us-qr-codes__left-block__content__arrow-button{transition:background-color .3s ease}.us-qr-codes__left-block__content__arrow-button button{height:3rem!important;width:3rem!important}.us-qr-codes__left-block__content__arrow-button:hover{background-color:var(--bw-400)!important}.us-qr-codes__left-block__content p-carousel{width:19.813rem}.us-qr-codes__left-block__content p-carousel .p-carousel-container{width:17.5rem}@media(max-width:991px){.us-qr-codes__left-block__content__carousel-container-mobile p-carousel{width:23.75rem}.us-qr-codes__left-block__content__carousel-container-mobile .p-carousel-container{width:18.5rem!important}.us-qr-codes__left-block__content__carousel-container-mobile .p-carousel-container .p-carousel-item{display:flex;align-items:center;justify-content:center}.us-qr-codes__left-block__content__carousel-container-mobile .p-carousel-content{overflow:hidden;align-items:center}.us-qr-codes__left-block__content__carousel-container-mobile .p-carousel-items-content{overflow:visible!important}}.us-qr-codes__left-block__qr-codes-wrapper__qr-code,.us-qr-codes__left-block__qr-codes-wrapper__qr-codes{border-radius:1.75rem;background:var(--Gradient, linear-gradient(90deg, #d2b3ff .27%, #ceff00 99.65%));width:20.338rem}.us-qr-codes__left-block__qr-codes-wrapper__qr-code__round-border,.us-qr-codes__left-block__qr-codes-wrapper__qr-codes__round-border{border-radius:1.5rem}.us-qr-codes__left-block__qr-codes-wrapper__qr-codes{width:17.438rem} 9`],encapsulation:2,changeDetection:0});let r=e;return r})();export{_o as QRCodesComponent};
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.