PageSourceSearch

https://www.playstation.com/etc.clientlibs/global_pdc/clientlibs/a…-416a859ae754f81e163d64c172441b27-lc.min.js

js playstation.com collected 2026-09-24 08:25:46 UTC 64,652 bytes, 8 lines download raw bytes

1/*!
2 * @sie/designkit
3 * @copyright     2026 Sony Interactive Entertainment LLC, all rights reserved
4 */
5
6!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function a(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function s(t){var e=a(t,"string");return"symbol"==typeof e?e:String(e)}function u(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}function f(t,e,r){return f.TYPED_ARRAY_SUPPORT||this instanceof f?"number"==typeof t?d(this,t):A(this,t,e,r):new f(t,e,r)}function c(t){if(t>=et)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+et.toString(16)+" bytes");return 0|t}function h(t){return t!==t}function l(t,e){var r;return f.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e),r.__proto__=f.prototype):(r=t,null===r&&(r=new f(e)),r.length=e),r}function d(t,e){var r=l(t,e<0?0:0|c(e));if(!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)r[n]=0;return r}function g(t,e){var r=0|w(e),n=l(t,r),o=n.write(e);return o!==r&&(n=n.slice(0,o)),n}function p(t,e){for(var r=e.length<0?0:0|c(e.length),n=l(t,r),o=0;o<r;o+=1)n[o]=255&e[o];return n}function y(t,e,r,n){if(r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),f.TYPED_ARRAY_SUPPORT?o.__proto__=f.prototype:o=p(t,o),o}function m(t,e){if(f.isBuffer(e)){var r=0|c(e.length),n=l(t,r);return 0===n.length?n:(e.copy(n,0,0,r),n)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||h(e.length)?l(t,0):p(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function w(t){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
6(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;return 0===e?0:v(t).length}function b(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function E(t,e,r,n){return b(v(e,t.length-r),t,r,n)}function A(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,r,n):"string"==typeof e?g(t,e):m(t,e)}function B(t,e){return e={exports:{}},t(e,e.exports),e.exports}function T(){this.buffer=[],this.length=0}function I(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=it.alloc(t*t),this.reservedBit=it.alloc(t*t)}function _(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function C(t){var e=_(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function S(t,e,r){return 3*(e+r)/4-r}function M(t){var e,r,n=_(t),o=n[0],i=n[1],a=new $t(S(t,o,i)),s=0,u=i>0?o-4:o;for(r=0;r<u;r+=4)e=Ft[t.charCodeAt(r)]<<18|Ft[t.charCodeAt(r+1)]<<12|Ft[t.charCodeAt(r+2)]<<6|Ft[t.charCodeAt(r+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;return 2===i&&(e=Ft[t.charCodeAt(r)]<<2|Ft[t.charCodeAt(r+1)]>>4,a[s++]=255&e),1===i&&(e=Ft[t.charCodeAt(r)]<<10|Ft[t.charCodeAt(r+1)]<<4|Ft[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e),a}function P(t){return Dt[t>>18&63]+Dt[t>>12&63]+Dt[t>>6&63]+Dt[63&t]}function L(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(P(n));return o.join("")}function R(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,s=r-n;a<s;a+=i)o.push(L(t,a,a+i>s?s:a+i));return 1===n?(e=t[r-1],o.push(Dt[e>>2]+Dt[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],o.push(Dt[e>>10]+Dt[e>>4&63]+Dt[e<<2&63]+"=")),o.join("")}function x(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}function U(t){this.mode=pe.NUMERIC,this.data=t.toString()}function N(t){this.mode=pe.ALPHANUMERIC,this.data=t}function O(t){this.mode=pe.BYTE,this.data=it.from(t)}function k(t){this.mode=pe.KANJI,this.data=t}function D(t,e){for(var r=t.size,n=Et.getPositions(e),o=0;o<n.length;o++)for(var i=n[o][0],a=n[o][1],s=-1;s<=7;s++)if(!(i+s<=-1||r<=i+s))for(var u=-1;u<=7;u++)a+u<=-1||r<=a+u||(s>=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?t.set(i+s,a+u,!0,!0):t.set(i+s,a+u,!1,!0))}function F(t){for(var e=t.size,r=8;r<e-8;r++){var n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function z(t,e){for(var r=mt.getPositions(e),n=0;n<r.length;n++)for(var o=r[n][0],i=r[n][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)a===-2||2===a||s===-2||2===s||0===a&&0===s?t.set(o+a,i+s,!0,!0):t.set(o+a,i+s,!1,!0)}function Y(t,e){for(var r,n,o,i=t.size,a=ye.getEncodedBits(e),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+i-8-3,o=1===(a>>s&1),t.set(r,n,o,!0),t.set(n,r,o,!0)}function j(t,e,r){var n,o,i=t.size,a=Ee.getEncodedBits(e,r);for(n=0;n<15;n++)o=1===(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}function H(t,e){for(var r=t.size,n=-1,o=r-1,i=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!t.isReserved(o,s-u)){var f=!1;a<e.length&&(f=1===(e[a]>>>i&1)),t.set(o,s-u,f),i--,i===-1&&(a++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function J(t,e,r){var n=new pt;r.forEach(function(e){n.put(e.mode.bit,4),n.put(e.getLength(),pe.getCharCountIndicator(e.mode,t)),e.write(n)});var o=dt.getSymbolTotalCodewords(t),i=Ct.getTotalCodewordsCount(t,e),a=8*(o-i);for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);for(var s=(a-n.getLengthInBits())/8,u=0;u<s;u++)n.put(u%2?17:236,8);return K(n,t,e)}function K(t,e,r){for(var n=dt.getSymbolTotalCodewords(e),o=Ct.getTotalCodewordsCount(e,r),i=n-o,a=Ct.getBlocksCount(e,r),s=n%a,u=a-s,f=Math.floor(n/a),c=Math.floor(i/a),h=c+1,l=f-c,d=new Xt(l),g=0,p=new Array(a),y=new Array(a),m=0,v=it.from(t.buffer),w=0;w<a;w++){var b=w<u?c:h;p[w]=v.slice(g,g+b),y[w]=d.encode(p[w]),g+=b,m=Math.max(m,b)}var E,A,B=it.alloc(n),T=0;for(E=0;E<m;E++)for(A=0;A<a;A++)E<p[A].length&&(B[T++]=p[A][E]);for(E=0;E<l;E++)for(A=0;A<a;A++)B[T++]=y[A][E];return B}function q(t,e,r,n){var o;if(tt(t))o=Se.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var i=e;if(!i){var a=Se.rawSplit(t);
6i=ye.getBestVersionForData(a,r)}o=Se.fromString(t,i||40)}var s=ye.getBestVersionForData(o,r);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else e=s;var u=J(e,r,o),f=dt.getSymbolSize(e),c=new yt(f);return D(c,e),F(c),z(c,e),j(c,r,0),e>=7&&Y(c,e),H(c,u),isNaN(n)&&(n=At.getBestMask(c,j.bind(null,c,r))),At.applyMask(n,c),j(c,r,n),{modules:c,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}function V(t,e){var r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Q(t,e,r){var n=t+e;return"undefined"!=typeof r&&(n+=" "+r),n}function X(t,e,r){for(var n="",o=0,i=!1,a=0,s=0;s<t.length;s++){var u=Math.floor(s%e),f=Math.floor(s/e);u||i||(i=!0),t[s]?(a++,s>0&&u>0&&t[s-1]||(n+=i?Q("M",u+r,.5+f+r):Q("m",o,0),o=0,i=!1),u+1<e&&t[s+1]||(n+=Q("h",a),a=0)):o++}return n}function W(t,e,r,n,o){var i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!Z())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(r=e,e=n=void 0):2!==a||e.getContext||(n=r,r=e,e=void 0),new Promise(function(o,i){try{var a=Pe.create(r,n);o(t(a,e,n))}catch(t){i(t)}})}if(a<2)throw new Error("Too few arguments provided");2===a?(o=r,r=e,e=n=void 0):3===a&&(e.getContext&&"undefined"==typeof o?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0));try{var u=Pe.create(r,n);o(null,t(u,e,n))}catch(t){o(t)}}var Z=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},G={}.toString,tt=Array.isArray||function(t){return"[object Array]"==G.call(t)};f.TYPED_ARRAY_SUPPORT=u();var et=f.TYPED_ARRAY_SUPPORT?2147483647:1073741823;f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),f.prototype.write=function(t,e,r){void 0===e?(r=this.length,e=0):void 0===r&&"string"==typeof e?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return E(this,t,e,r)},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t);var n;if(f.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=f.prototype;else{var o=e-t;n=new f(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+t]}return n},f.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!f.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},f.prototype.fill=function(t,e,r){if("string"==typeof t){if("string"==typeof e?(e=0,r=this.length):"string"==typeof r&&(r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var o;if("number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var i=f.isBuffer(t)?t:new f(t),a=i.length;for(o=0;o<r-e;++o)this[o+e]=i[o%a]}return this},f.concat=function(t,e){if(!tt(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l(null,0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=d(null,e),o=0;for(r=0;r<t.length;++r){var i=t[r];
6if(!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},f.byteLength=w,f.prototype._isBuffer=!0,f.isBuffer=function(t){return!(null==t||!t._isBuffer)};var rt,nt=function(t){var e=new f(t);return e.fill(0),e},ot=function(t){return new f(t)},it={alloc:nt,from:ot},at=[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],st=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},ut=function(t){return at[t]},ft=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},ct=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');rt=t},ht=function(){return"undefined"!=typeof rt},lt=function(t){return rt(t)},dt={getSymbolSize:st,getSymbolTotalCodewords:ut,getBCHDigit:ft,setToSJISFunction:ct,isKanjiModeEnabled:ht,toSJIS:lt},gt=B(function(t,e){function r(t){if("string"!=typeof t)throw new Error("Param is not a string");var r=t.toLowerCase();switch(r){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: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!=typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch(t){return n}}});gt.L,gt.M,gt.Q,gt.H,gt.isValid;T.prototype={get:function(t){var e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1===(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var pt=T;I.prototype.set=function(t,e,r,n){var o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},I.prototype.get=function(t,e){return this.data[t*this.size+e]},I.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},I.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var yt=I,mt=B(function(t,e){var r=dt.getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=r(t),o=145===n?26:2*Math.ceil((n-13)/(2*e-2)),i=[n-7],a=1;a<e-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()},e.getPositions=function(t){for(var r=[],n=e.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(var a=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||r.push([n[i],n[a]]);return r}}),vt=(mt.getRowColCoords,mt.getPositions,dt.getSymbolSize),wt=7,bt=function(t){var e=vt(t);return[[0,0],[e-wt,0],[0,e-wt]]},Et={getPositions:bt},At=B(function(t,e){function r(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return n%3===0;case e.Patterns.PATTERN011:return(r+n)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2===0;case e.Patterns.PATTERN101:return r*n%2+r*n%3===0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2===0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,r=0,o=0,i=0,a=null,s=null,u=0;u<e;u++){o=i=0,a=s=null;for(var f=0;f<e;f++){var c=t.get(u,f);c===a?o++:(o>=5&&(r+=n.N1+(o-5)),a=c,o=1),c=t.get(f,u),c===s?i++:(i>=5&&(r+=n.N1+(i-5)),s=c,i=1)}o>=5&&(r+=n.N1+(o-5)),i>=5&&(r+=n.N1+(i-5))}return r},e.getPenaltyN2=function(t){for(var e=t.size,r=0,o=0;o<e-1;o++)for(var i=0;i<e-1;i++){var a=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==a&&0!==a||r++}return r*n.N2},e.getPenaltyN3=function(t){for(var e=t.size,r=0,o=0,i=0,a=0;a<e;a++){o=i=0;for(var s=0;s<e;s++)o=o<<1&2047|t.get(a,s),s>=10&&(1488===o||93===o)&&r++,i=i<<1&2047|t.get(s,a),s>=10&&(1488===i||93===i)&&r++}return r*n.N3},e.getPenaltyN4=function(t){for(var e=0,r=t.data.length,o=0;o<r;o++)e+=t.data[o];var i=Math.abs(Math.ceil(100*e/r/5)-10);return i*n.N4},e.applyMask=function(t,e){for(var n=e.size,o=0;o<n;o++)for(var i=0;i<n;i++)e.isReserved(i,o)||e.xor(i,o,r(t,i,o))},e.getBestMask=function(t,r){for(var n=Object.keys(e.Patterns).length,o=0,i=1/0,a=0;a<n;a++){r(a),e.applyMask(a,t);var s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),s<i&&(i=s,o=a)}return o}}),Bt=(At.Patterns,At.isValid,At.getPenaltyN1,At.getPenaltyN2,At.getPenaltyN3,At.getPenaltyN4,At.applyM
6ask,At.getBestMask,[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]),Tt=[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],It=function(t,e){switch(e){case gt.L:return Bt[4*(t-1)+0];case gt.M:return Bt[4*(t-1)+1];case gt.Q:return Bt[4*(t-1)+2];case gt.H:return Bt[4*(t-1)+3];default:return}},_t=function(t,e){switch(e){case gt.L:return Tt[4*(t-1)+0];case gt.M:return Tt[4*(t-1)+1];case gt.Q:return Tt[4*(t-1)+2];case gt.H:return Tt[4*(t-1)+3];default:return}},Ct={getBlocksCount:It,getTotalCodewordsCount:_t},St=it.alloc(512),Mt=it.alloc(256);!function(){for(var t=1,e=0;e<255;e++)St[e]=t,Mt[t]=e,t<<=1,256&t&&(t^=285);for(e=255;e<512;e++)St[e]=St[e-255]}();for(var Pt=function(t){if(t<1)throw new Error("log("+t+")");return Mt[t]},Lt=function(t){return St[t]},Rt=function(t,e){return 0===t||0===e?0:St[Mt[t]+Mt[e]]},xt={log:Pt,exp:Lt,mul:Rt},Ut=B(function(t,e){e.mul=function(t,e){for(var r=it.alloc(t.length+e.length-1),n=0;n<t.length;n++)for(var o=0;o<e.length;o++)r[n+o]^=xt.mul(t[n],e[o]);return r},e.mod=function(t,e){for(var r=it.from(t);r.length-e.length>=0;){for(var n=r[0],o=0;o<e.length;o++)r[o]^=xt.mul(e[o],n);for(var i=0;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(t){for(var r=it.from([1]),n=0;n<t;n++)r=e.mul(r,[1,xt.exp(n)]);return r}}),Nt=(Ut.mul,Ut.mod,Ut.generateECPolynomial,C),Ot=M,kt=R,Dt=[],Ft=[],$t="undefined"!=typeof Uint8Array?Uint8Array:Array,zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yt=0,jt=zt.length;Yt<jt;++Yt)Dt[Yt]=zt[Yt],Ft[zt.charCodeAt(Yt)]=Yt;Ft["-".charCodeAt(0)]=62,Ft["_".charCodeAt(0)]=63;var Ht={byteLength:Nt,toByteArray:Ot,fromByteArray:kt},Jt=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,f=u>>1,c=-7,h=r?o-1:0,l=r?-1:1,d=t[e+h];for(h+=l,i=d&(1<<-c)-1,d>>=-c,c+=s;c>0;i=256*i+t[e+h],h+=l,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=l,c-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,n),i-=f}return(d?-1:1)*a*Math.pow(2,i-n)},Kt=function(t,e,r,n,o,i){var a,s,u,f=8*i-o-1,c=(1<<f)-1,h=c>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,g=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?l/u:l*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=g,s/=256,o-=8);for(a=a<<o|s,f+=o;f>0;t[r+d]=255&a,d+=g,a/=256,f-=8);t[r+d-g]|=128*p},qt={read:Jt,write:Kt},Vt=B(function(t,e){function r(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}function n(t){if(t>q)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return i(t,e,r)}function i(t,e,r){if("string"==typeof t)return f(t,e);if(ArrayBuffer.isView(t))return h(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);
6if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return l(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return l(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return o.from(n,e,r);var i=d(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function s(t,e,r){return a(t),t<=0?n(t):void 0!==e?"string"==typeof r?n(t).fill(e,r):n(t).fill(e):n(t)}function u(t){return a(t),n(t<0?0:0|g(t))}function f(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),i=n(r),a=i.write(t,e);return a!==r&&(i=i.slice(0,a)),i}function c(t){for(var e=t.length<0?0:0|g(t.length),r=n(e),o=0;o<e;o+=1)r[o]=255&t[o];return r}function h(t){if(H(t,Uint8Array)){var e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return c(t)}function l(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,o.prototype),n}function d(t){if(o.isBuffer(t)){var e=0|g(t.length),r=n(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?n(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}function g(t){if(t>=q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+q.toString(16)+" bytes");return 0|t}function p(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(i)return n?-1:F(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return _(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,J(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(o){var c=-1;for(f=r;f<s;f++)if(i(t,f)===i(e,c===-1?0:f-c)){if(c===-1&&(c=f),f-c+1===u)return c*a}else c!==-1&&(f-=f-c),c=-1}else for(r+u>s&&(r=s-u),f=r;f>=0;f--){for(var h=!0,l=0;l<u;l++)if(i(t,f+l)!==i(e,l)){h=!1;break}if(h)return f}return-1}function E(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(J(s))return a;t[r+a]=s}return a}function A(t,e,r,n){return j(F(e,t.length-r),t,r,n)}function B(t,e,r,n){return j($(e),t,r,n)}function T(t,e,r,n){return j(Y(e),t,r,n)}function I(t,e,r,n){return j(z(e,t.length-r),t,r,n)}function _(t,e,r){return 0===e&&r===t.length?Ht.fromByteArray(t):Ht.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){var u,f,c,h;
6switch(s){case 1:i<128&&(a=i);break;case 2:u=t[o+1],128===(192&u)&&(h=(31&i)<<6|63&u,h>127&&(a=h));break;case 3:u=t[o+1],f=t[o+2],128===(192&u)&&128===(192&f)&&(h=(15&i)<<12|(63&u)<<6|63&f,h>2047&&(h<55296||h>57343)&&(a=h));break;case 4:u=t[o+1],f=t[o+2],c=t[o+3],128===(192&u)&&128===(192&f)&&128===(192&c)&&(h=(15&i)<<18|(63&u)<<12|(63&f)<<6|63&c,h>65535&&h<1114112&&(a=h))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=s}return S(n)}function S(t){var e=t.length;if(e<=V)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=V));return r}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function P(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function L(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=X[t[i]];return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function x(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function N(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(t,e,r,n,o){return e=+e,r>>>=0,o||N(t,e,r,4),qt.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,o){return e=+e,r>>>=0,o||N(t,e,r,8),qt.write(t,e,r,n,52,8),r+8}function D(t){if(t=t.split("=")[0],t=t.trim().replace(Q,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function F(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function $(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function z(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Y(t){return Ht.toByteArray(D(t))}function j(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!==t}var K="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=p,e.INSPECT_MAX_BYTES=50;var q=2147483647;e.kMaxLength=q,o.TYPED_ARRAY_SUPPORT=r(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,r){return i(t,e,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,r){return s(t,e,r)},o.allocUnsafe=function(t){return u(t)},o.allocUnsafeSlow=function(t){return u(t)},o.isBuffer=function(t){return null!=t&&t._isBuffer===!0&&t!==o.prototype},o.compare=function(t,e){if(H(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=o.allocUnsafe(e),i=0;
7for(r=0;r<t.length;++r){var a=t[r];if(H(a,Uint8Array))i+a.length>n.length?o.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},o.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)}
7,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},K&&(o.prototype[K]=o.prototype.inspect),o.prototype.compare=function(t,e,r,n,i){if(H(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,s=r-e,u=Math.min(a,s),f=this.slice(n,i),c=t.slice(e,r),h=0;h<u;++h)if(f[h]!==c[h]){a=f[h],s=c[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,r){return this.indexOf(t,e,r)!==-1},o.prototype.indexOf=function(t,e,r){return w(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return w(this,t,e,r,!1)},o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":case"latin1":case"binary":return B(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUintLE=o.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},o.prototype.readUintBE=o.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;
vendor: 5,260 bytes, line 7
7return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},o.prototype.readInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return t>>>=0,e||x(t,4,this.length),qt.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),qt.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),qt.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),qt.read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;U(this,t,e,r,o,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;U(this,t,e,r,o,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);U(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);U(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},o.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<r;++a)this[a]=t;else{var s=o.isBuffer(t)?t:o.from(t,n),u=s.length;
7if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<r-e;++a)this[a+e]=s[a%u]}return this};var Q=/[^+/0-9A-Za-z-_]/g,X=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()}),Qt=(Vt.Buffer,Vt.SlowBuffer,Vt.INSPECT_MAX_BYTES,Vt.kMaxLength,Vt.Buffer);x.prototype.initialize=function(t){this.degree=t,this.genPoly=Ut.generateECPolynomial(this.degree)},x.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=it.alloc(this.degree),r=Qt.concat([t,e],t.length+this.degree),n=Ut.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){var i=it.alloc(this.degree);return n.copy(i,o),i}return n};var Xt=x,Wt=function(t){return!isNaN(t)&&t>=1&&t<=40},Zt={isValid:Wt},Gt="[0-9]+",te="[A-Z $%*+\\-./:]+",ee="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ee=ee.replace(/u/g,"\\u");var re="(?:(?![A-Z0-9 $%*+\\-./:]|"+ee+")(?:.|[\r\n]))+",ne=new RegExp(ee,"g"),oe=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ie=new RegExp(re,"g"),ae=new RegExp(Gt,"g"),se=new RegExp(te,"g"),ue=new RegExp("^"+ee+"$"),fe=new RegExp("^"+Gt+"$"),ce=new RegExp("^[A-Z0-9 $%*+\\-./:]+$"),he=function(t){return ue.test(t)},le=function(t){return fe.test(t)},de=function(t){return ce.test(t)},ge={KANJI:ne,BYTE_KANJI:oe,BYTE:ie,NUMERIC:ae,ALPHANUMERIC:se,testKanji:he,testNumeric:le,testAlphanumeric:de},pe=B(function(t,e){function r(t){if("string"!=typeof t)throw new Error("Param is not a string");var r=t.toLowerCase();switch(r){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Zt.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return ge.testNumeric(t)?e.NUMERIC:ge.testAlphanumeric(t)?e.ALPHANUMERIC:ge.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch(t){return n}}}),ye=(pe.NUMERIC,pe.ALPHANUMERIC,pe.BYTE,pe.KANJI,pe.MIXED,pe.getCharCountIndicator,pe.getBestModeForData,pe.isValid,B(function(t,e){function r(t,r,n){for(var o=1;o<=40;o++)if(r<=e.getCapacity(o,n,t))return o}function n(t,e){return pe.getCharCountIndicator(t,e)+4}function o(t,e){var r=0;return t.forEach(function(t){var o=n(t.mode,e);r+=o+t.getBitsLength()}),r}function i(t,r){for(var n=1;n<=40;n++){var i=o(t,n);if(i<=e.getCapacity(n,r,pe.MIXED))return n}}var a=7973,s=dt.getBCHDigit(a);e.from=function(t,e){return Zt.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!Zt.isValid(t))throw new Error("Invalid QR Code version");"undefined"==typeof r&&(r=pe.BYTE);var o=dt.getSymbolTotalCodewords(t),i=Ct.getTotalCodewordsCount(t,e),a=8*(o-i);if(r===pe.MIXED)return a;var s=a-n(r,t);switch(r){case pe.NUMERIC:return Math.floor(s/10*3);case pe.ALPHANUMERIC:return Math.floor(s/11*2);case pe.KANJI:return Math.floor(s/13);case pe.BYTE:default:return Math.floor(s/8)}},e.getBestVersionForData=function(t,e){var n,o=gt.from(e,gt.M);if(tt(t)){if(t.length>1)return i(t,o);if(0===t.length)return 1;n=t[0]}else n=t;return r(n.mode,n.getLength(),o)},e.getEncodedBits=function(t){if(!Zt.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;dt.getBCHDigit(e)-s>=0;)e^=a<<dt.getBCHDigit(e)-s;return t<<12|e}})),me=(ye.getCapacity,ye.getBestVersionForData,ye.getEncodedBits,1335),ve=21522,we=dt.getBCHDigit(me),be=function(t,e){for(var r=t.bit<<3|e,n=r<<10;
7dt.getBCHDigit(n)-we>=0;)n^=me<<dt.getBCHDigit(n)-we;return(r<<10|n)^ve},Ee={getEncodedBits:be};U.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},U.prototype.getLength=function(){return this.data.length},U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)},U.prototype.write=function(t){var e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);var o=this.data.length-e;o>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*o+1))};var Ae=U,Be=["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"," ","$","%","*","+","-",".","/",":"];N.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},N.prototype.getLength=function(){return this.data.length},N.prototype.getBitsLength=function(){return N.getBitsLength(this.data.length)},N.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var r=45*Be.indexOf(this.data[e]);r+=Be.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(Be.indexOf(this.data[e]),6)};var Te=N;O.getBitsLength=function(t){return 8*t},O.prototype.getLength=function(){return this.data.length},O.prototype.getBitsLength=function(){return O.getBitsLength(this.data.length)},O.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var Ie=O;k.getBitsLength=function(t){return 13*t},k.prototype.getLength=function(){return this.data.length},k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)},k.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=dt.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}};var _e=k,Ce=B(function(t){var e={single_source_shortest_paths:function(t,r,n){var o={},i={};i[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var s,u,f,c,h,l,d,g,p;!a.empty();){s=a.pop(),u=s.value,c=s.cost,h=t[u]||{};for(f in h)h.hasOwnProperty(f)&&(l=h[f],d=c+l,g=i[f],p="undefined"==typeof i[f],(p||g>d)&&(i[f]=d,a.push(f,d),o[f]=u))}if("undefined"!=typeof n&&"undefined"==typeof i[n]){var y=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(y)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var r,n=[],o=e;o;)n.push(o),r=t[o],o=t[o];return n.reverse(),n},find_path:function(t,r,n){var o=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,o={};t=t||{};for(r in n)n.hasOwnProperty(r)&&(o[r]=n[r]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}),Se=B(function(t,e){function r(t){return unescape(encodeURIComponent(t)).length}function n(t,e,r){for(var n,o=[];null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function o(t){var e,r,o=n(ge.NUMERIC,pe.NUMERIC,t),i=n(ge.ALPHANUMERIC,pe.ALPHANUMERIC,t);dt.isKanjiModeEnabled()?(e=n(ge.BYTE,pe.BYTE,t),r=n(ge.KANJI,pe.KANJI,t)):(e=n(ge.BYTE_KANJI,pe.BYTE,t),r=[]);var a=o.concat(i,e,r);return a.sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function i(t,e){switch(e){case pe.NUMERIC:return Ae.getBitsLength(t);case pe.ALPHANUMERIC:return Te.getBitsLength(t);case pe.KANJI:return _e.getBitsLength(t);case pe.BYTE:return Ie.getBitsLength(t)}}function a(t){return t.reduce(function(t,e){var r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function s(t){for(var e=[],n=0;n<t.length;n++){var o=t[n];switch(o.mode){case pe.NUMERIC:e.push([o,{data:o.data,mode:pe.ALPHANUMERIC,length:o.length},{data:o.data,mode:pe.BYTE,length:o.length}]);break;case pe.ALPHANUMERIC:e.push([o,{data:o.data,mode:pe.BYTE,length:o.length}]);break;case pe.KANJI:e.push([o,{data:o.data,mode:pe.BYTE,length:r(o.data)}]);break;case pe.BYTE:e.push([{data:o.data,mode:pe.BYTE,length:r(o.data)}])}}return e}function u(t,e){for(var r={},n={start:{}},o=["start"],a=0;a<t.length;a++){for(var s=t[a],u=[],f=0;f<s.length;f++){var c=s[f],h=""+a+f;u.push(h),r[h]={node:c,lastCount:0},n[h]={};for(var l=0;l<o.length;l++){var d=o[l];r[d]&&r[d].node.mode===c.mode?(n[d][h]=i(r[d].lastCount+c.length,c.mode)-i(r[d].lastCount,c.mode),r[d].lastCount+=c.length):(r[d]&&(r[d].lastCount=c.length),n[d][h]=i(c.length,c.mode)+4+pe.getCharCountIndicator(c.mode,e))}}o=u}for(l=0;l<o.length;l++)n[o[l]].end=0;return{map:n,table:r}}function f(t,e){var r,n=pe.getBestModeForData(t);
7if(r=pe.from(e,n),r!==pe.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+pe.toString(r)+".\n Suggested mode is: "+pe.toString(n));switch(r!==pe.KANJI||dt.isKanjiModeEnabled()||(r=pe.BYTE),r){case pe.NUMERIC:return new Ae(t);case pe.ALPHANUMERIC:return new Te(t);case pe.KANJI:return new _e(t);case pe.BYTE:return new Ie(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(f(e,null)):e.data&&t.push(f(e.data,e.mode)),t},[])},e.fromString=function(t,r){for(var n=o(t,dt.isKanjiModeEnabled()),i=s(n),f=u(i,r),c=Ce.find_path(f.map,"start","end"),h=[],l=1;l<c.length-1;l++)h.push(f.table[c[l]].node);return e.fromArray(a(h))},e.rawSplit=function(t){return e.fromArray(o(t,dt.isKanjiModeEnabled()))}}),Me=(Se.fromArray,Se.fromString,Se.rawSplit,function(t,e){if("undefined"==typeof t||""===t)throw new Error("No input text");var r,n,o=gt.M;return"undefined"!=typeof e&&(o=gt.from(e.errorCorrectionLevel,gt.M),r=ye.from(e.version),n=At.from(e.maskPattern),e.toSJISFunc&&dt.setToSJISFunction(e.toSJISFunc)),q(t,r,o,n)}),Pe={create:Me},Le=B(function(t,e){function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e="undefined"==typeof t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;
7return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){var n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(var o=r.modules.size,i=r.modules.data,a=e.getScale(o,n),s=Math.floor((o+2*n.margin)*a),u=n.margin*a,f=[n.color.light,n.color.dark],c=0;c<s;c++)for(var h=0;h<s;h++){var l=4*(c*s+h),d=n.color.light;if(c>=u&&h>=u&&c<s-u&&h<s-u){var g=Math.floor((c-u)/a),p=Math.floor((h-u)/a);d=f[i[g*o+p]?1:0]}t[l++]=d.r,t[l++]=d.g,t[l++]=d.b,t[l]=d.a}}}),Re=(Le.getOptions,Le.getScale,Le.getImageWidth,Le.qrToImageData,B(function(t,e){function r(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function n(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,o){var i=o,a=e;"undefined"!=typeof i||e&&e.getContext||(i=e,e=void 0),e||(a=n()),i=Le.getOptions(i);var s=Le.getImageWidth(t.modules.size,i),u=a.getContext("2d"),f=u.createImageData(s,s);return Le.qrToImageData(f.data,t,i),r(u,a,s),u.putImageData(f,0,0),a},e.renderToDataURL=function(t,r,n){var o=n;"undefined"!=typeof o||r&&r.getContext||(o=r,r=void 0),o||(o={});var i=e.render(t,r,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}})),xe=(Re.render,Re.renderToDataURL,function(t,e,r){var n=Le.getOptions(e),o=t.modules.size,i=t.modules.data,a=o+2*n.margin,s=n.color.light.a?"<path "+V(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+V(n.color.dark,"stroke")+' d="'+X(i,o,n.margin)+'"/>',f='viewBox="0 0 '+a+" "+a+'"',c=n.width?'width="'+n.width+'" height="'+n.width+'" ':"",h='<svg xmlns="http://www.w3.org/2000/svg" '+c+f+' shape-rendering="crispEdges">'+s+u+"</svg>\n";return"function"==typeof r&&r(null,h),h}),Ue={render:xe},Ne=Pe.create,Oe=W.bind(null,Re.render),ke=W.bind(null,Re.renderToDataURL),De=W.bind(null,function(t,e,r){return Ue.render(t,r)}),Fe={create:Ne,toCanvas:Oe,toDataURL:ke,toString:De},$e="show",ze=function(){function e(){t(this,e)}return r(e,[{key:"init",value:function(){_gpdc.Logger.logInitializer("customer-experience","components","QR Code");var t=$(".error-code-template-grid");if(t.length)return this.$template=$("#cx-qr-code-template"),this.$template.length?void this.detect(t):void t.addClass($e)}},{key:"createQr",value:function(){var t=new URL(window.location.href);t.searchParams.set("src","qr-code"),Fe.toCanvas($("#cx-qr-code-canvas")[0],t.toString(),{margin:2})}},{key:"show",value:function(t){this.$modal=$(this.$template.html()),t.removeClass("layout__1--c").addClass("layout__2--b").append(this.$modal),t.closest("section").addClass("cx-qr-code-section");var e=$(".cx-qr-code__body"),r=$(".cx-qr-code__header"),n=$(".feedback"),o=$(".cmp-experiencefragment--feedback").closest(".section"),i=$(".cmp-experiencefragment--contact-us-cta"),a=i.closest(".section");a.addClass("cx-qr-code--contact-us"),e.append(r.remove()),t.next().remove(),e.append(n.remove()),o.remove(),t.append(a.remove()),setTimeout(function(){return t.addClass($e)},600)}},{key:"detect",value:function(t){var e=navigator||{},r=e.userAgent;/PlayStation 5/i.test(r)?(this.show(t),this.createQr(),t.addClass("error-code-template-grid--ps5")):t.addClass($e)}}]),e}(),Ye=function(){var t=$('[data-cx-persona="true"]');$.each(t,function(t,e){var r=$(e),n=r.data(),o=n.imageUrlPath,i=n.personaAltText,a=n.totalImages,s=void 0===a?7:a,u=Math.floor(Math.random()*s),f=r.find(".cx-persona-block picture"),c=o.replace("RANDOM__NUMBER",u);f.empty(),f.prepend('<img src="'.concat(c,'?$100px--t$" alt="').concat(i,'">')),f.prepend('<source srcset="'.concat(c,'?$800px--t$" media="(min-width: 320px)">')),f.prepend('<source srcset="'.concat(c,'?$1200px--t$" media="(min-width: 768px)">')),f.prepend('<source srcset="'.concat(c,'?$1600px--t$" media="(min-width: 1024px)">
7')),r.find(".cx-persona-block").removeClass("visibility--hidden")})},je=({IS_PORTRAIT:(window.matchMedia&&matchMedia("(orientation: portrait)")||{}).matches,IS_LANDSCAPE:(window.matchMedia&&matchMedia("(orientation: landscape)")||{}).matches,IS_MOBILE:(window.matchMedia&&matchMedia("(max-width: 767px)")||{}).matches,IS_MOBILE_PORTRAIT:(window.matchMedia("(max-width: 767px) and (orientation: portrait)")||{}).matches,IS_TABLET:(window.matchMedia&&matchMedia("(min-width: 768px)")||{}).matches,IS_DESKTOP:(window.matchMedia&&matchMedia("(min-width: 1024px)")||{}).matches},{IS_PORTRAIT:window.matchMedia&&matchMedia("(orientation: portrait)")||{},IS_LANDSCAPE:window.matchMedia&&matchMedia("(orientation: landscape)")||{},IS_JETSTREAM_MOBILE:window.matchMedia&&matchMedia("(max-width: 699px)")||{},IS_MOBILE:window.matchMedia&&matchMedia("(max-width: 767px)")||{},IS_MOBILE_PORTRAIT:window.matchMedia("(max-width: 767px) and (orientation: portrait)")||{},IS_TABLET:window.matchMedia&&matchMedia("(min-width: 768px)")||{},IS_TABLET_LG:window.matchMedia&&matchMedia("(min-width: 1024px)")||{},IS_LAPTOP:window.matchMedia&&matchMedia("(min-width: 1367px)")||{},IS_DESKTOP:window.matchMedia&&matchMedia("(min-width: 1920px)")||{},IS_MAX_TABLET:window.matchMedia&&matchMedia("(max-width: 1023px)")||{},IS_JUST_TABLET:window.matchMedia&&matchMedia("(min-width: 768px) and (max-width: 1365px)")||{},IS_JUST_LAPTOP:window.matchMedia&&matchMedia("(min-width: 1366px) and (max-width: 1919px)")||{}}),He=({IS_PORTRAIT:je.IS_PORTRAIT.matches,IS_LANDSCAPE:je.IS_LANDSCAPE.matches,IS_JETSTREAM_MOBILE:je.IS_JETSTREAM_MOBILE.matches,IS_MOBILE:je.IS_MOBILE.matches,IS_MOBILE_PORTRAIT:je.IS_MOBILE_PORTRAIT.matches,IS_TABLET:je.IS_TABLET.matches,IS_MAX_TABLET:je.IS_MAX_TABLET.matches,IS_TABLET_LG:je.IS_TABLET_LG.matches,IS_LAPTOP:je.IS_LAPTOP.matches,IS_DESKTOP:je.IS_DESKTOP.matches},{attributes:!1,childList:!0,subtree:!0}),Je=function(t,e){var r=!1;if(t.length){var n=new MutationObserver(function(t,n){var o,a=i(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;"childList"!==s.type||r||(r=!0,n.disconnect(),e(s.target))}}catch(t){a.e(t)}finally{a.f()}}),o=document.querySelectorAll(t.join(", "));$.each(o,function(t,e){return n.observe(e,He)})}},Ke=function(){function e(){t(this,e)}return r(e,[{key:"getSalesforceListedRegion",value:function(){var t=_gpdc.config.region;return"APAC"!==t?t:"ja-JP"===_gpdc.config.productFormattedLocale?"JAPAN":"ASIA"}},{key:"setConfigChat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=_gpdc.config.productFormattedLocale,n="LiveAgent",o=_gpdc.elements.$body.data(),i=e?"cxchat-":"";embedded_svc.settings.displayHelpButton=!0,embedded_svc.settings.language=o.mercuryLocale,embedded_svc.settings.defaultMinimizedText=t.data(i+"default-minimized-txt"),embedded_svc.settings.disabledMinimizedText=t.data(i+"disabled-minimized-txt"),embedded_svc.settings.loadingText=t.data(i+"loading-txt"),embedded_svc.settings.storageDomain=window.location.hostname,embedded_svc.settings.extraPrechatFormDetails=[{label:"Region",value:this.getSalesforceListedRegion(),transcriptFields:["Region__c"],displayToAgent:!0},{label:"Contact Type",value:t.data(i+"sf-chat-contact-type"),transcriptFields:["Contact_Type__c"],displayToAgent:!0},{label:"Locale",value:r,displayToAgent:!0},{label:"Country",displayToAgent:!0},{label:"Preferred Language",transcriptFields:["Preferred_Language__c"],displayToAgent:!0},{label:"Browser Id",transcriptFields:["BrowserId__c"],displayToAgent:!1}],embedded_svc.settings.prepopulatedPrechatFields={Locale__c:r},embedded_svc.settings.enabledFeatures=[n],embedded_svc.settings.entryFeature=n,embedded_svc.addEventHandler("onChatEndedByAgent",function(){var t=new CustomEvent("showSurvey",{});document.dispatchEvent(t)}),embedded_svc.addEventHandler("onChatEndedByChasitor",function(t){var e=new CustomEvent("showSurvey",{});document.dispatchEvent(e)}),embedded_svc.init(o.sfCustomDomain,o["sfEnv-1"],o["sfEnv-2"],o.sfId,t.data(i+"sf-embedded-service"),{baseLiveAgentContentURL:o.sfBaseLiveAgentContentUrl,deploymentId:t.data(i+"sf-deployment-id"),buttonId:t.data(i+"sf-button-id"),baseLiveAgentURL:o.sfBaseLiveAgentUrl,eswLiveAgentDevName:t.data(i+"sf-esw-live-agent-dev-name"),isOfflineSupportEnabled:t.data(i+"sf-offline-support")})}},{key:"init",value:function(){var t=this,e=$('[data-component="sf-embedded-chat"]'),r=$('[data-component="cx-standalone-c
7hat"]'),n=$(".embeddedServiceHelpButton");$("html").css("background-color","transparent");var o=$("#gdk__content"),i=$(".cmp-experiencefragment--footer").parent(),a=new MutationObserver(function(t){t.forEach(function(t){if(("attributes"===t.type||"class"===t.attributeName)&&(t.target.classList.contains("sidebarMaximized")?o.addClass("with-chat-sidebar-maximized").removeClass("with-chat-sidebar-minimized"):o.addClass("with-chat-sidebar-minimized").removeClass("with-chat-sidebar-maximized"),t.target.classList.contains("modalContainer"))){var e=$(".modalContainer"),r=e.find(".minimizeButton"),n=e.find(".closeButton"),i=$(".embeddedServiceHelpButton");r.on("click.dkSFEmbeddedChatMinimizeBtn",function(){return i.hide()}),n.on("click.dkSFEmbeddedChatCloseBtn",function(){embedded_svc.componentInitInProgress=!1,embedded_svc.onButtonStatusChange(),i.show()})}})});return Je(["#limitless-root"],function(e){return t.move($(e),o,i)}),new MutationObserver(function(e,r){e.forEach(function(e){e.addedNodes.forEach(function(e){e.classList&&e.classList.length&&(e.classList.contains("embeddedServiceHelpButton")?t.move($(e),o,i):e.classList.contains("modalContainer")&&(a.observe(e,{attributes:!0}),setTimeout(function(){var t=$(".embeddedServiceSidebarMinimizedDefaultUI");t.length>1&&(t.first().remove(),t=$(".embeddedServiceSidebarMinimizedDefaultUI")),t.appendTo(o)},3e3)),e.classList.contains("embeddedServiceSidebar")?n.css("display","none"):n.css("display","flex"))})})}).observe(document.body,{childList:!0}),!!(e&&e.length||r&&r.length)&&(r.length?window.embedded_svc?this.setConfigChat(r,!0):_gpdc.Logger.log("window.embedded_svc not defined for SF Chat"):e.length&&$.each(e,function(e,r){var n=$(r);n.on("click.dkSFEmbeddedChatComponent",function(){window.embedded_svc?t.setConfigChat(n):_gpdc.Logger.log("window.embedded_svc not defined for SF Chat")}
7)}),document.addEventListener("setPreChatFields",function(t){t.detail.country,embedded_svc.settings.extraPrechatFormDetails[3].value=t.detail.country,embedded_svc.settings.extraPrechatFormDetails[4].value=t.detail.preferredLanguage,embedded_svc.settings.extraPrechatFormDetails[5].value=t.detail.browserId,t.detail.callback()},!1),void _gpdc.Logger.logInitializer("contact-us","components","SF Embedded Chat"))}},{key:"move",value:function(t,e,r){r.length?t.insertBefore(r):t.appendTo(e)}}]),e}(),qe=function(){function e(){t(this,e),this.init()}return r(e,[{key:"init",value:function(){_gpdc.Logger.logInitializer("custom","components","CX Article"),$(".cx-article__back").on("click.dkCxArticleBack",function(){return history.back()}),$(".articleblock h2, .articleblock h3, .articleblock h4").on("click.dkCxArticleOpen",function(t){var e=t.currentTarget,r=$(e).closest(".articleblock");r.hasClass("cx-article--open")?r.removeClass("cx-article--open"):($(".articleblock").removeClass("cx-article--open"),r.addClass("cx-article--open"),
8$("html, body").animate({scrollTop:r.offset().top-70},500))})}}]),e}(),Ve=function(){function e(){var r=this;t(this,e),window._gpdc&&_gpdc.user&&"undefined"!=typeof _gpdc.user.isLoggedIn?this.initModules():_gpdc.elements.$document.one("userInfoSet.dkComponents",function(){return r.initModules()})}return r(e,[{key:"initModules",value:function(){(new ze).init(),(new Ke).init(),new qe,Ye()}}]),e}();!function(t){_gpdc.elements.$document.ready(function(){window._dkDebug=!1,new Ve})}(jQuery)}();

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.