/*! For license information please see chunk.498.03ee3a2a74da64e99a42.js.LICENSE.txt */
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[498],{27180:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{CI:()=>i,DEBUG:()=>n})
const n=!1,i=!1},70545:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}})
var n=d(r(1914)),i=d(r(75850)),s=d(r(74098)),o=d(r(84360)),a=d(r(23826)),u=d(r(42263)),c=d(r(94812)),l=d(r(65574)),h=d(r(14925))
function d(e){return e&&e.__esModule?e:{default:e}}},6581:(e,t)=>{"use strict"
function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){const r=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,i,s,o){return n((a=n(n(t,e),n(i,o)))<<(u=s)|a>>>32-u,r)
var a,u}function s(e,t,r,n,s,o,a){return i(t&r|~t&n,e,t,s,o,a)}function o(e,t,r,n,s,o,a){return i(t&n|r&~n,e,t,s,o,a)}function a(e,t,r,n,s,o,a){return i(t^r^n,e,t,s,o,a)}function u(e,t,r,n,s,o,a){return i(r^(t|~n),e,t,s,o,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e))
e=new Uint8Array(t.length)
for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef"
for(let i=0;i<r;i+=8){const r=e[i>>5]>>>i%32&255,s=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16)
t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t
let i=1732584193,c=-271733879,l=-1732584194,h=271733878
for(let r=0;r<e.length;r+=16){const t=i,d=c,f=l,p=h
i=s(i,c,l,h,e[r],7,-680876936),h=s(h,i,c,l,e[r+1],12,-389564586),l=s(l,h,i,c,e[r+2],17,606105819),c=s(c,l,h,i,e[r+3],22,-1044525330),i=s(i,c,l,h,e[r+4],7,-176418897),h=s(h,i,c,l,e[r+5],12,1200080426),l=s(l,h,i,c,e[r+6],17,-1473231341),c=s(c,l,h,i,e[r+7],22,-45705983),i=s(i,c,l,h,e[r+8],7,1770035416),h=s(h,i,c,l,e[r+9],12,-1958414417),l=s(l,h,i,c,e[r+10],17,-42063),c=s(c,l,h,i,e[r+11],22,-1990404162),i=s(i,c,l,h,e[r+12],7,1804603682),h=s(h,i,c,l,e[r+13],12,-40341101),l=s(l,h,i,c,e[r+14],17,-1502002290),c=s(c,l,h,i,e[r+15],22,1236535329),i=o(i,c,l,h,e[r+1],5,-165796510),h=o(h,i,c,l,e[r+6],9,-1069501632),l=o(l,h,i,c,e[r+11],14,643717713),c=o(c,l,h,i,e[r],20,-373897302),i=o(i,c,l,h,e[r+5],5,-701558691),h=o(h,i,c,l,e[r+10],9,38016083),l=o(l,h,i,c,e[r+15],14,-660478335),c=o(c,l,h,i,e[r+4],20,-405537848),i=o(i,c,l,h,e[r+9],5,568446438),h=o(h,i,c,l,e[r+14],9,-1019803690),l=o(l,h,i,c,e[r+3],14,-187363961),c=o(c,l,h,i,e[r+8],20,1163531501),i=o(i,c,l,h,e[r+13],5,-1444681467),h=o(h,i,c,l,e[r+2],9,-51403784),l=o(l,h,i,c,e[r+7],14,1735328473),c=o(c,l,h,i,e[r+12],20,-1926607734),i=a(i,c,l,h,e[r+5],4,-378558),h=a(h,i,c,l,e[r+8],11,-2022574463),l=a(l,h,i,c,e[r+11],16,1839030562),c=a(c,l,h,i,e[r+14],23,-35309556),i=a(i,c,l,h,e[r+1],4,-1530992060),h=a(h,i,c,l,e[r+4],11,1272893353),l=a(l,h,i,c,e[r+7],16,-155497632),c=a(c,l,h,i,e[r+10],23,-1094730640),i=a(i,c,l,h,e[r+13],4,681279174),h=a(h,i,c,l,e[r],11,-358537222),l=a(l,h,i,c,e[r+3],16,-722521979),c=a(c,l,h,i,e[r+6],23,76029189),i=a(i,c,l,h,e[r+9],4,-640364487),h=a(h,i,c,l,e[r+12],11,-421815835),l=a(l,h,i,c,e[r+15],16,530742520),c=a(c,l,h,i,e[r+2],23,-995338651),i=u(i,c,l,h,e[r],6,-198630844),h=u(h,i,c,l,e[r+7],10,1126891415),l=u(l,h,i,c,e[r+14],15,-1416354905),c=u(c,l,h,i,e[r+5],21,-57434055),i=u(i,c,l,h,e[r+12],6,1700485571),h=u(h,i,c,l,e[r+3],10,-1894986606),l=u(l,h,i,c,e[r+10],15,-1051523),c=u(c,l,h,i,e[r+1],21,-2054922799),i=u(i,c,l,h,e[r+8],6,1873313359),h=u(h,i,c,l,e[r+15],10,-30611744),l=u(l,h,i,c,e[r+6],15,-1560198380),c=u(c,l,h,i,e[r+13],21,1309151649),i=u(i,c,l,h,e[r+4],6,-145523070),h=u(h,i,c,l,e[r+11],10,-1120210379),l=u(l,h,i,c,e[r+2],15,718787259),c=u(c,l,h,i,e[r+9],21,-343485551),i=n(i,t),c=n(c,d),l=n(l,f),h=n(h,p)}return[i,c,l,h]}(function(e){if(0===e.length)return[]
const t=8*e.length,n=new Uint32Array(r(t))
for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32
return n}(e),8*e.length))}},20903:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
t.default=r},23826:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},14925:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n,i=(n=r(94812))&&n.__esModule?n:{default:n}
t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID")
let t
const r=new Uint8Array(16)
return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},32079:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},11869:(e,t)=>{"use strict"
let r
Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return r(n)}
const n=new Uint8Array(16)},79267:(e,t)=>{"use strict"
function r(e,t,r,n){switch(e){case 0:return t&r^~t&n
case 1:case 3:return t^r^n
case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520]
if("string"==typeof e){const t=unescape(encodeURIComponent(e))
e=[]
for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e))
e.push(128)
const s=e.length/4+2,o=Math.ceil(s/16),a=new Array(o)
for(let r=0;r<o;++r){const t=new Uint32Array(16)
for(let n=0;n<16;++n)t[n]=e[64*r+4*n]<<24|e[64*r+4*n+1]<<16|e[64*r+4*n+2]<<8|e[64*r+4*n+3]
a[r]=t}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295
for(let u=0;u<o;++u){const e=new Uint32Array(80)
for(let t=0;t<16;++t)e[t]=a[u][t]
for(let t=16;t<80;++t)e[t]=n(e[t-3]^e[t-8]^e[t-14]^e[t-16],1)
let s=i[0],o=i[1],c=i[2],l=i[3],h=i[4]
for(let i=0;i<80;++i){const a=Math.floor(i/20),u=n(s,5)+r(a,o,c,l)+h+t[a]+e[i]>>>0
h=l,l=c,c=n(o,30)>>>0,o=s,s=u}i[0]=i[0]+s>>>0,i[1]=i[1]+o>>>0,i[2]=i[2]+c>>>0,i[3]=i[3]+l>>>0,i[4]=i[4]+h>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},65574:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o
var n,i=(n=r(94812))&&n.__esModule?n:{default:n}
const s=[]
for(let a=0;a<256;++a)s.push((a+256).toString(16).slice(1))
function o(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}t.default=function(e,t=0){const r=o(e,t)
if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid")
return r}},1914:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n,i=(n=r(11869))&&n.__esModule?n:{default:n},s=r(65574)
let o,a,u=0,c=0
t.default=function(e,t,r){let n=t&&r||0
const l=t||new Array(16)
let h=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:a
if(null==h||null==d){const t=e.random||(e.rng||i.default)()
null==h&&(h=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1
const g=f-u+(p-c)/1e4
if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||f>u)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
u=f,c=p,a=d,f+=122192928e5
const m=(1e4*(268435455&f)+p)%4294967296
l[n++]=m>>>24&255,l[n++]=m>>>16&255,l[n++]=m>>>8&255,l[n++]=255&m
const y=f/4294967296*1e4&268435455
l[n++]=y>>>8&255,l[n++]=255&y,l[n++]=y>>>24&15|16,l[n++]=y>>>16&255,l[n++]=d>>>8|128,l[n++]=255&d
for(let i=0;i<6;++i)l[n+i]=h[i]
return t||(0,s.unsafeStringify)(l)}},75850:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n=s(r(69310)),i=s(r(6581))
function s(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("v3",48,i.default)
t.default=o},69310:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,o,a){var u
if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e))
const t=[]
for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r))
return t}(e)),"string"==typeof n&&(n=(0,s.default)(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")
let c=new Uint8Array(16+e.length)
if(c.set(n),c.set(e,n.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0
for(let e=0;e<16;++e)o[a+e]=c[e]
return o}return(0,i.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=o,n.URL=a,n}
var n,i=r(65574),s=(n=r(14925))&&n.__esModule?n:{default:n}
const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8"
t.DNS=o
const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8"
t.URL=a},74098:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n=o(r(20903)),i=o(r(11869)),s=r(65574)
function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID()
const o=(e=e||{}).random||(e.rng||i.default)()
if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0
for(let e=0;e<16;++e)t[r+e]=o[e]
return t}return(0,s.unsafeStringify)(o)}},84360:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n=s(r(69310)),i=s(r(79267))
function s(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("v5",80,i.default)
t.default=o},94812:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n,i=(n=r(32079))&&n.__esModule?n:{default:n}
t.default=function(e){return"string"==typeof e&&i.default.test(e)}},42263:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
var n,i=(n=r(94812))&&n.__esModule?n:{default:n}
t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID")
return parseInt(e.slice(14,15),16)}},5787:(e,t,r)=>{"use strict"
function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){(null==t||t>e.length)&&(t=e.length)
for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r]
return n}r.r(t),r.d(t,{GUEST_PREFERENCES:()=>N,NON_ESSENTIAL_CATEGORIES:()=>D,SETTINGS_COLOR_SCHEME:()=>w,USER_MODE:()=>A,getBannerData:()=>k,getCookieConsent:()=>M,getPreferenceStatuses:()=>H,parseEncodedConsent:()=>P,updateCookieConsent:()=>I})
var o=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),a=/^fs_/
function u(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,r,n=o.exec(e)
return n&&(t=n[1].replace(a,""),r=n[2]),{id:r,type:t}}var c,l,h=/(?![^(]*\)),/,d=function e(t){var r=u(t),n=r.id,i=r.type,s={}
if("("===n.charAt(0)){for(var o,a=n.substring(1,n.length-1).split(h),c=0;o=a[c];++c)0===o.indexOf("urn")&&(a[c]=e(o))
n=a}return s[i]=n,s},f=function(e,t){var r=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return r&&r.length>1?r[1]:null}
function p(e){return"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(e,"base64").toString("binary"):atob(e)}var g,m,y,v,_,b,D={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},A={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},E=(i(c={},A.GUEST,"li_gc"),i(c,A.MEMBER,"li_mc"),i(c,A.ENTERPRISE_UNBOUND,"li_ec"),c),C=(i(l={},A.GUEST,"mypreferences/g/guest-cookies"),i(l,A.MEMBER,"settings/member-cookies"),i(l,A.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),l),w=Object.freeze(["dark","light"]),S=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},D)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===s},F=(g=[D.ADVERTISING,D.ANALYTICS_AND_RESEARCH,D.FUNCTIONAL],m=[0,1,2,0],y=function(e){for(var t={},r=0;r<g.length;r++)t[g[r]]=m[e>>2*r&3]
return t},v=function(e){var t=0
return e>=0&&e<=3&&(t=m[e]),t},{parseConsentBody:function(e,t){var r=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),n=e.match(r)
if(!n)return{error:"Invalid consent body encoding",consent:new S}
var i=y(parseInt(n[1],10)),s=new Date(1e3*parseInt(n[2],10)),o=v(parseInt(n[3],10))
return{error:null,consent:new S(i,s,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,r){var n=function(e){try{var t=d(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!n)return{error:"Invalid enterprise profile urn provided",consent:new S}
var i=n.enterpriseAccountId,o=n.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),u=e.match(a)
if(!u)return{error:"Invalid consent body encoding",consent:new S}
var c=u[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,n=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,s=void 0
try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),4!==r.length);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw s}}return r}}(t)||function(e,t){if(e){if("string"==typeof e)return s(e,4)
var r=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,4):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[1],u=n[2],c=n[3]
return a===i&&u===o&&c===r}))[0]
if(!c)return{error:null,consent:new S}
var l=y(c[0]),h=new Date(1e3*parseInt(u[2],10)),f=v(parseInt(u[3],10))
return{error:null,consent:new S(l,h,A.ENTERPRISE_UNBOUND,f)}}}),T=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),R=function(e){var t={}
for(var r in D)t[r]=e
return{error:null,consent:new S(t,null,null,e)}},x=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},O=function(e,t,r){var n=C[e],i=t.enterpriseProfileHash,s=t.enterpriseAppInstanceId,o=new URLSearchParams
e===A.ENTERPRISE_UNBOUND&&(i&&o.append("p",i),s&&o.append("iid",s)),"string"==typeof r&&(r=r.toLowerCase(),w.includes(r)&&o.append("li_theme",r))
var a=Array.from(o).length?"?"+o.toString():""
return"https://www.".concat(x(),"/").concat(n).concat(a)},P=function(e,t,r,n){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var i=null
try{i=p(e).match(T)}catch(e){}if(!i)return{error:"Invalid consent encoding",consent:new S}
var s=parseInt(i[1],10),o=i[2]
return 1===s?t===A.ENTERPRISE_UNBOUND?F.parseConsentBodyEnterpriseUnbound(o,r,n):F.parseConsentBody(o,t):{error:"Invalid encoded consent version ".concat(s),consent:new S}},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.enterpriseProfileUrn,i=r.enterpriseAppInstanceId
if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new S}
t=document.cookie}if(n&&!i||!n&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new S}
if(!(e!==A.ENTERPRISE_UNBOUND||n&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new S}
if(!e){var s=f(E[A.ENTERPRISE_UNBOUND],t)
if(s&&n&&i){var o=P(s,A.ENTERPRISE_UNBOUND,n,i)
if(o.consent.userMode===A.ENTERPRISE_UNBOUND||o.error)return o}e=f("liap",t)?f(E[A.MEMBER],t)?A.MEMBER:A.GUEST:f(E[A.GUEST],t)?A.GUEST:A.MEMBER}return function(e,t,r,n){var i=f(E[e],t)
return i?P(i,e,r,n):f(E[A.GUEST],t)||f(E[A.MEMBER],t)||f(E[A.ENTERPRISE_UNBOUND],t)?R(2):R(1)}(e,t,n,i)},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=M(e,document.cookie,t),i=n.consent,s=e||i.userMode||A.GUEST
return{showBanner:!n.error&&!i.consentAvailable,userMode:s,managePreferenceUrl:O(s,t,r)}},I=function(e,t){var r=e.optedInConsentMap,n=e.updateSettings,i=e.userMode,s=e.xLiTrackPayload,o=e.enterpriseContext||{},a=o.enterpriseProfileHash,u=o.enterpriseAppInstanceId
t=t||function(e,t){}
var c=f(E[A.ENTERPRISE_UNBOUND],document.cookie)
r||t("optedInConsentMap is a required option",null)
var l=new XMLHttpRequest,h=new URLSearchParams
c&&u&&h.append("appInstanceId",u)
var d=Array.from(h).length?"?"+h.toString():""
l.open("POST","https://www.".concat(x(),"/cookie-consent/").concat(d)),l.setRequestHeader("Content-Type","application/json"),s&&l.setRequestHeader("X-LI-Track",s),c&&a&&l.setRequestHeader("x-li-identity",a),l.withCredentials=!0,l.onload=function(){200!==l.status?t("Request failed with status ".concat(l.status),null):t(null,l)},l.onerror=function(){t("Request failed with an error",l)}
var p={UPDATE_SETTINGS:n,USER_MODE:i,CATEGORIES:{}}
for(var g in D){var m=void 0
!0===r[g]?m=1:!1===r[g]&&(m=2),p.CATEGORIES[g]=m}l.send(JSON.stringify(p))},N={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},L={OPT_OUT:0,OPT_IN:1},B=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.guestPreferencesData,i=void 0===r?null:r,s=t.issuedAt,o=void 0===s?null:s,a=t.defaultConsent,u=void 0===a?L.OPT_OUT:a
for(var c in n(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},N)"number"!=typeof i[c]&&(i[c]=u),this.guestPreferencesMap[c]=i[c]===L.OPT_IN},U=(_=[N.SHARE_DATA_WITH_TRUSTED_PARTNERS],b=[L.OPT_OUT,L.OPT_IN],{parseGuestPreferencesBody:function(e){var t=new RegExp(["^(\\d+)","(\\d+)"].join(";")),r=e.match(t)
if(!r)return{error:"Invalid guest preferences body encoding",guestPreferences:new B}
var n=r[1],i=function(e){for(var t={},r=0;r<_.length;r++){var n=_[r],i=e[r]
if(void 0===b[i])return
t[n]=b[i]}return t}(r[2])
if(!i)return{error:"Invalid guest preferences consent provided",guestPreferences:new B}
var s=new Date(1e3*n)
return{error:null,guestPreferences:new B({guestPreferencesData:i,issuedAt:s})}}}),j=new RegExp(["^(\\d+)","((?:.|\\d)+)"].join(";")),q=function(e){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1))
var t=null
try{t=p(e).match(j)}catch(e){}if(!t)return{error:"Invalid guest preferences encoding",guestPreferences:new B}
var r=parseInt(t[1],10),n=t[2]
return 1===r?U.parseGuestPreferencesBody(n):{error:"Invalid encoded guest preferences version ".concat(r),guestPreferences:new B}}
function H(e){"string"!=typeof e&&(e=document.cookie)
var t=f("li_gp",e)
return t?q(t):{error:null,guestPreferences:new B({defaultConsent:L.OPT_IN})}}},3713:(e,t,r)=>{"use strict"
var n
r.r(t),r.d(t,{CALL_TREE_ID_HEADER_NAME:()=>p,DEGRADATION_TRACKING_EVENT_FIELD:()=>D,DEGRADATION_TRACKING_EVENT_NAME:()=>h,DOWNSTREAM_REQUEST_FIELD:()=>A,DegradationTrackingMetadata:()=>j,DegradationTrackingMetadataOptionName:()=>k,FABRIC_HEADER_NAME:()=>y,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>d,FailureTrackingMetadata:()=>K,INSTRUMENTATION_GUIDE_PROMPT:()=>l,InternalFailureProcessingMetadata:()=>Q,InternalFeatureDegradationMetricEventProducer:()=>S,InternalFeatureDegradationMetricStore:()=>M,InvalidArgumentError:()=>N,JET_UNCLASSIFIED_ERROR_TAG:()=>C,METRIC_EMISSION_INTERVAL_IN_MS:()=>E,MICROSOFT_EDGE_REFERENCE_HEADER_NAME:()=>m,PEM_METADATA_HEADER_NAME:()=>_,PEM_RESPONSE_METADATA_HEADER_NAME:()=>v,PEM_RESPONSE_METATADA_HEADER_AVAILABILITY_KEY:()=>b,POINT_OF_PRESENCE_ID_HEADER_NAME:()=>g,ParsedResponseHeaders:()=>Y,PemTrackingService:()=>ee,RESPONSE_HEADERS:()=>f,ResponseDetails:()=>X,RetryableDegradationTrackingMetadata:()=>q,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>I,calculateSuccessfulDownstreamCallsRatio:()=>$,createDegradeEvents:()=>W,determineResponseErrorType:()=>G,generateSpanSuffix:()=>V,parseDownstreamEndpointPathname:()=>H,refineServerErrorType:()=>z,teardown:()=>Z,validateKey:()=>U,validateProductName:()=>B})
var i=new Uint8Array(16)
function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")
return n(i)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i
for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).substr(1))
const c=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)()
if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0
for(var i=0;i<16;++i)t[r+i]=n[i]
return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()
if(!function(e){return"string"==typeof e&&o.test(e)}(r))throw TypeError("Stringified UUID is invalid")
return r}(n)},l="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions",h="FeatureDegradeEvent",d="FeatureDegradationMetricEvent",f={CALL_TREE_ID:"x-li-uuid",POINT_OF_PRESENCE_ID:"x-li-pop",MICROSOFT_EDGE_REFERENCE:"x-msedge-ref",FABRIC:"x-li-fabric",PEM_RESPONSE_METADATA:"x-li-pem-resp-meta",CONTENT_TYPE:"content-type",CDN_CACHE:"x-cache"},p=f.CALL_TREE_ID,g=f.POINT_OF_PRESENCE_ID,m=f.MICROSOFT_EDGE_REFERENCE,y=f.FABRIC,v=f.PEM_RESPONSE_METADATA,_="X-LI-PEM-Metadata",b="availability",D={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},A={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},E=6e4,C="pem-unclassified-error"
class w{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class S extends w{produceMetricEvent(e){this._collectedFeatureMetrics.flushMetrics().forEach((t=>{const r=[]
t.featureCallCounts.forEach((e=>{r.push({featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,degradedDownstreamCallCount:0,totalDownstreamCallCount:e.totalApiCallCount,retriedDownstreamCallCount:e.retriedApiCallCount,retriedSuccessfulDownstreamCallsRatio:e.retriedSuccessfulCallsRatio,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,successfulDownstreamCallsRatio:e.successfulApiCallsRatio,metricKey:{featureProductName:e.featureMetricIdentifier.productName,featureKey:e.featureMetricIdentifier.featureKey,pointOfPresenceId:e.featureMetricIdentifier.pointOfPresenceId,responseErrorTypeV2:e.featureMetricIdentifier.responseErrorType,responseFabric:e.featureMetricIdentifier.responseFabric}})}))
const n={header:{},requestHeader:{},time:Date.now(),metrics:r}
this._fireEventCallback(d,n,t.pageInstance,e)}))}}class F{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class T{constructor(e){this.featureMetricIdentifier=e}}function R(e){return JSON.stringify(e,Object.keys(e).sort())}class x extends F{trackSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=1,e.totalApiCallCount++}))}trackFailedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.successfulApiCallsRatio+=t,e.totalApiCallCount++}))}trackRetriedFeatureApiCall(e,t){this.trackMetric(e,(e=>{e.retriedApiCallCount++,e.retriedSuccessfulCallsRatio+=t}))}trackRetriedSuccessfulFeatureApiCall(e){this.trackMetric(e,(e=>{e.successfulApiCallsRatio++,e.totalApiCallCount++}))}changeRetriedMetricsToTotal(){this.featureCallCounts.forEach((e=>e.changeCallCountsFromRetriedToTotal()))}trackMetric(e,t){const r=R(e)
if(this.featureCallCounts.has(r))t(this.featureCallCounts.get(r))
else{const n=new O(e)
t(n),this.featureCallCounts.set(r,n)}}}class O extends T{constructor(){super(...arguments),this.successfulApiCallsRatio=0,this.totalApiCallCount=0,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}mergeCallCounts(e){return this.successfulApiCallsRatio+=e.successfulApiCallsRatio,this.totalApiCallCount+=e.totalApiCallCount,this.retriedApiCallCount+=e.retriedApiCallCount,this.retriedSuccessfulCallsRatio+=e.retriedSuccessfulCallsRatio,this}changeCallCountsFromRetriedToTotal(){this.totalApiCallCount+=this.retriedApiCallCount,this.successfulApiCallsRatio+=this.retriedSuccessfulCallsRatio,this.retriedApiCallCount=0,this.retriedSuccessfulCallsRatio=0}}class P{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class M extends P{constructor(){super(...arguments),this.metrics=new Map}incrementSuccessfulFeatureApiCall(e,t){this.incrementMetric(t,(t=>t.trackSuccessfulFeatureApiCall(e)))}incrementFailedFeatureApiCall(e,t,r=0){this.incrementMetric(t,(t=>t.trackFailedFeatureApiCall(e,r)))}incrementRetriedFeatureApiCall(e,t,r=0){this.incrementMetric(t,(t=>t.trackRetriedFeatureApiCall(e,r)))}incrementRetriedSuccessfulApiCall(e,t){this.incrementMetric(t,(t=>t.trackRetriedSuccessfulFeatureApiCall(e)))}mergeMetricsFrom(e){e.metrics.forEach(((e,t)=>{const r=this.metrics.get(t)
void 0!==r?e.featureCallCounts.forEach(((e,n)=>{var i
let s=r.featureCallCounts.get(n)
void 0!==s?s=s.mergeCallCounts(e):null===(i=this.metrics.get(t))||void 0===i||i.featureCallCounts.set(t,e)})):this.metrics.set(t,e)}))}changeRetriedMetricsToTotal(){this.metrics.forEach((e=>e.changeRetriedMetricsToTotal()))}incrementMetric(e,t){const r=R(e)
if(this.metrics.has(r))t(this.metrics.get(r))
else{const n=new x(e)
t(n),this.metrics.set(r,n)}}}var k
!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(k||(k={}))
const I=new Set(Object.values(k))
class N extends Error{constructor(e){super(e),Object.setPrototypeOf(this,N.prototype)}}function L(e){return 0===e.length||!e.trim()}function B(e){if("string"!=typeof e)throw new N(`The product name must be a string. ${l}.`)
if(L(e))throw new N(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${l}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new N(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${l}.`)
return e}function U(e){if("string"!=typeof e)throw new N(`Keys must be strings. ${l}.`)
if(L(e))throw new N(`Keys should not be blank. ${l}.`)
if(/[^a-z0-9-]/.test(e))throw new N(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${l}.`)
return e}class j{constructor(e,t,r){var n,i,s
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=U(e),this._defaultDegradationKey=U(t),!r)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof r)throw new N(`DegradationTrackingMetadata options should be an object. ${l}.`)
const o=r.productName
o&&(this._productName=B(o))
const a=r.additionalDegradedResponseCodes,u=r.nonDegradedResponseCodes
!function(e,t){const r=(e,t)=>{if("number"!=typeof(r=e)||!isFinite(r)||Math.floor(r)!==r||e<=0||e>999)throw new N(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${l}.`)
var r
if(429===e||999===e)throw new N(`PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them from your ${t} options.`)
if(t===k.NonDegradedResponseCodes&&e>=400&&e<500)throw new N(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${k.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${k.NonDegradedResponseCodes} option. ${l}.`)}
if(void 0!==e&&!Array.isArray(e))throw new N(`Please specify an array of positive integer response codes between 1 and 999 for the response codes that shouldn't be counted as degraded for the ${k.NonDegradedResponseCodes} option. ${l}.`)
if(void 0!==t&&!Array.isArray(t))throw new N(`Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the ${k.AdditionalDegradedResponseCodes} option. ${l}.`)
null==e||e.forEach((e=>r(e,k.NonDegradedResponseCodes))),null==t||t.forEach((e=>r(e,k.AdditionalDegradedResponseCodes)))
const n=new Set(t),i=new Set(e)
if([...n].some((e=>i.has(e))))throw new N(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${l}.`)}(u,a),this._nonDegradedResponseCodes=u||[],this._additionalDegradedResponseCodes=a||[],this._degradationKeyOverrides=r.degradationKeyOverrides||[],this._clientSensorGroupName=r.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(n=r.enablePerformanceMeasurement)&&void 0!==n&&n,this._customTrackingId=r.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=r.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(s=r.enableSessionRecording)&&void 0!==s&&s,function(e){Object.keys(e).forEach((e=>{if(!I.has(e))throw new N(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${l}`)}))}(r)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(j.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}class q{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new M,this._lastRequestMetricStore=new M,this._requestsMade=0,this._trackingId=c()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(q.prototype).every((t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t)))}get degradationTrackingMetadata(){return this._degradationTrackingMetadata}get featureMetricStore(){return this._featureMetricStore}get currentRequestSequenceId(){return this._requestsMade-1}get flowTrackingId(){return this._trackingId}get shouldDisableAvailabilityCalculation(){return this._degradationTrackingMetadata.shouldDisableAvailabilityCalculation}get featureKey(){return this._degradationTrackingMetadata.featureKey}get defaultDegradationKey(){return this._degradationTrackingMetadata.defaultDegradationKey}get productName(){return this._degradationTrackingMetadata.productName}get nonDegradedResponseCodes(){return new Set(this._degradationTrackingMetadata.nonDegradedResponseCodes)}get additionalDegradedResponseCodes(){return this._degradationTrackingMetadata.additionalDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationTrackingMetadata.degradationKeyOverrides}get customTrackingId(){return this._degradationTrackingMetadata.customTrackingId}get clientSensorGroupName(){return this._degradationTrackingMetadata.clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._degradationTrackingMetadata.shouldEnablePerformanceMeasurement}incrementRetriedFeatureApiCall(e,t,r=0){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedFeatureApiCall(e,t,r)}incrementRetriedSuccessfulApiCall(e,t){this._requestsMade++,this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),this._lastRequestMetricStore.flushMetrics(),this._lastRequestMetricStore.incrementRetriedSuccessfulApiCall(e,t)}flushMetricStoreToServiceStore(e){this._lastRequestMetricStore.changeRetriedMetricsToTotal(),this._featureMetricStore.mergeMetricsFrom(this._lastRequestMetricStore),e.mergeMetricsFrom(this._featureMetricStore),this._featureMetricStore.flushMetrics(),this._lastRequestMetricStore.flushMetrics()}}function H(e,t){if(!e.includes("/"))return e
const r=function(e){const t=document.createElement("a")
return t.href=e,t.pathname}(e),n=r.split("/").filter((e=>e.length))
if(!t.length)return n.join("/")
const i=[]
for(let s=n.length-1;s>=0;s--){const e=n[s],r=t.indexOf(e)
r>=0?t.splice(r,1):i.push(e)}return i.reverse().join("/")}function z(e){if(e){if(e.fabric)return"SERVER_ERROR"
if(e.pointOfPresenceId)return"TRAFFIC_LI_POP_TO_DC_ERROR"
if(e.microsoftEdgeReference)return"TRAFFIC_AFD_TO_LI_POP_ERROR"}return"SERVER_ERROR"}function G(e){const t=e.responseError,r=e.parsedHeaders,n=e.responseCode
if(n){if(429===n||999===n)return"TOO_MANY_REQUESTS"
if(r&&!r.hasAnyLinkedInHeaders()&&n&&n>=400&&n<600)return"BLOCKED_BY_CLIENT_PROXY"
if((i=n)>=400&&i<500)return function(e){return 429===e?"TOO_MANY_REQUESTS":"CLIENT_ERROR"}(n)
if(function(e){return e>=500&&e<600}(n))return z(r)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(n,r))return"DOWNSTREAM_GRACEFUL_DEGRADATION"}var i
if(!t)return null
if(t instanceof Error){if("AbortError"===t.name)return"CLIENT_ABORTED"
if(t instanceof TypeError&&(t.message.indexOf("Network request failed")>=0||t.message.indexOf("NetworkError when attempting to fetch resource")>=0||t.message.indexOf("Failed to fetch")>=0))return"NETWORK_ERROR"}else{if("timeout"===t.statusText)return"CLIENT_TIMEOUT"
if(0===t.status&&"abort"===t.statusText)return"CLIENT_ABORTED"
if("readyState"in t&&0===t.readyState)return"NETWORK_ERROR"}return"UNCLASSIFIED"}function W(e,t,r,n){if(!(null==e?void 0:e.trim())||!t||!Array.isArray(t))return[]
const i=[],s=n.responseCode
return t.forEach((t=>{const o=t.getDegradationKey(s),a=t.shouldImpactAvailability(r)&&t.isCountedAgainstAvailability(r,s),u={endpointPath:e,degradationKey:o,responseErrorTypeV2:r,isCountedAgainstAvailability:a,downstreamServiceErrorCode:n.downstreamServiceErrorCode}
s&&(u.responseCode=s)
const c=n.parsedHeaders
c.callTreeId&&(u.responseCallTreeId=c.callTreeId),(null==c?void 0:c.pointOfPresenceId)&&(u.pointOfPresenceId=c.pointOfPresenceId),(null==c?void 0:c.microsoftEdgeReference)&&(u.microsoftEdgeReference=c.microsoftEdgeReference),(null==c?void 0:c.fabric)&&(u.fabric=c.fabric),q.isRetryableDegradationTrackingMetadata(t.retryableTrackingMetadata)&&(u.retryDetails={trackingId:t.retryableTrackingMetadata.flowTrackingId,sequenceId:t.retryableTrackingMetadata.currentRequestSequenceId}),i.push({header:{},requestHeader:{},productName:t.productName,featureKey:t.featureKey,failedDownstreamRequests:[u],customTrackingId:t.customTrackingId})})),i}function V(e){if(!e)return"-success"
switch(e){case"SERVER_ERROR":case"GRAPHQL_FULL_FAILURE":return"-server-error"
case"CLIENT_ERROR":case"TOO_MANY_REQUESTS":return"-client-error"
default:return"-misc-error"}}function $(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}class K extends j{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===K.name}}class Q{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!q.isRetryableDegradationTrackingMetadata(e)&&!j.isDegradationTrackingMetadata(e)&&!K.isFailureTrackingMetadata(e))throw new N("We encountered a bug where we forgot to provide the tracking metadata as an argument. Please report it to the #pem team.")
if(!t)throw new N("We encountered a bug where we forgot to provide the product name as an argument. Please report it to the #pem team.")
this._featureKey=e.featureKey,this._productName=t,this._clientSensorGroupName=e.clientSensorGroupName,this._defaultDegradationKey=e.defaultDegradationKey
let r=j.isDegradationTrackingMetadata(e)?e:void 0
q.isRetryableDegradationTrackingMetadata(e)&&(r=e.degradationTrackingMetadata,this._retryableTrackingMetadata=e),void 0!==r?(this._nonDegradedResponseCodes=new Set(r.nonDegradedResponseCodes),this._customTrackingId=r.customTrackingId,this._shouldDisableAvailabilityCalculation=r.shouldDisableAvailabilityCalculation,this._shouldRecordSession=r.shouldRecordSession,r.additionalDegradedResponseCodes.length&&(this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))):(this._nonDegradedResponseCodes=new Set(e.nonDegradedResponseCodes),this._customTrackingId=e.customTrackingId,this.processAdditionalDegradedResponseCodes(e.additionalDegradedResponseCodes),this.initializeDegradationKeyOverrides(e.degradationKeyOverrides))}getDegradationKey(e){return this._degradationKeyByResponseCode.has(e)?this._degradationKeyByResponseCode.get(e):this._defaultDegradationKey}get featureKey(){return this._featureKey}get productName(){return this._productName}get customTrackingId(){return this._customTrackingId}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}get retryableTrackingMetadata(){return this._retryableTrackingMetadata}get retryMetricStore(){var e,t
return void 0!==(null===(e=this._retryableTrackingMetadata)||void 0===e?void 0:e.featureMetricStore)?null===(t=this._retryableTrackingMetadata)||void 0===t?void 0:t.featureMetricStore:null}isCountedAgainstAvailability(e,t){return null!==e&&(null==t||this.canResponseCodeCountAgainstAvailability(t))}canResponseCodeCountAgainstAvailability(e){if(this._degradationKeyByResponseCode.has(e))return!0
if(this._additionalDegradedResponseCodes.has(e))return!0
const t=e>=400&&e<500,r=e>=300&&e<400,n=this._nonDegradedResponseCodes.has(e)
return!r&&!t&&!n}shouldImpactAvailability(e,t,r){return!(e&&"CLIENT_ABORTED"===e||"BLOCKED_BY_CLIENT_PROXY"===e||!(null==r?void 0:r.hasAnyLinkedInHeaders())&&t&&t>=400&&t<600||"TOO_MANY_REQUESTS"===e)}processAdditionalDegradedResponseCodes(e){e.forEach((e=>{if(this._nonDegradedResponseCodes.has(e))throw new N(`You attempted to specify ${e} as an additional degraded response code for the '${this.featureKey}' feature, however it is also specified in the non-degraded response codes for that feature. Please decide whether you want to consider ${e} responses a degraded state or not. ${l}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new N(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${l}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new N(`A degradation key override was specified for ${t}, but that response code isn't considered degraded. Please add it to additionalDegradedResponseCodes if you want it to count against your availability.`)
this._degradationKeyByResponseCode.set(t,e.degradationKey)}))}))}}class Y{constructor(e){const t=new Map
null==e||e.forEach(((e,r)=>{t.set(r.toLowerCase(),e)})),this._callTreeId=t.get(f.CALL_TREE_ID)||null,this._pointOfPresenceId=t.get(f.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=t.get(f.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=t.get(f.FABRIC)||null,this._responseMetadata=t.get(f.PEM_RESPONSE_METADATA)||null,this._downstreamAvailability=function(e){if(null==e)return null
const t=e.split(",")
for(const r of t){const e=r.split("=",2)
if(2===e.length&&e[0]===b){const t=parseFloat(e[1])
if(t>=0&&t<=1)return t}}return null}(this._responseMetadata)||1,this._contentType=t.get(f.CONTENT_TYPE)||null,this._cdnCacheMetadata=t.get(f.CDN_CACHE)||null}get callTreeId(){return this._callTreeId}get pointOfPresenceId(){return this._pointOfPresenceId}get microsoftEdgeReference(){return this._msEdgeRef}get fabric(){return this._fabric}get downstreamAvailability(){return this._downstreamAvailability}get contentType(){return this._contentType}get cdnCacheMetadata(){return this._cdnCacheMetadata}hasAnyLinkedInHeaders(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}class X{constructor(e,t,r,n){this._responseCode=e||null,this._parsedResponseHeaders=t?new Y(t):new Y,this._responseError=r||null,this._downstreamServiceErrorCode=n}get responseCode(){return this._responseCode}get parsedHeaders(){return this._parsedResponseHeaders}get responseError(){return this._responseError}set responseError(e){this._responseError=e}get downstreamServiceErrorCode(){return this._downstreamServiceErrorCode}set downstreamServiceErrorCode(e){this._downstreamServiceErrorCode=e}}const J="undefined"==typeof FastBoot
function Z(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class ee{constructor(e,t,r){this._featureMetricStore=new M,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=r,this._metricSender=new S(this._featureMetricStore,t),J&&(this._metricsInterval=window.setInterval((()=>this._metricSender.produceMetricEvent()),E),window.addEventListener("visibilitychange",this._visibilityListener))}trackFeatureDegradationsForFetch(e,t,r,n,i){let s,o=null
const a=new Map,u=this._createFailureProcessingMetadata(r)
return t=this._getAndValidateUrlEntityIDs(t),n.then((e=>{o=e.status,e.headers.forEach(((e,t)=>a.set(t.toLowerCase(),e))),!1===e.ok&&(s=e)})).catch((e=>{throw s=e,e})).finally((()=>{this._trackResponse(e,o,t,u,i,a,s)}))}trackFeatureDegradationsForJQueryAjax(e,t,r,n,i,s){const o=t.status,a=t.getAllResponseHeaders(),u=new Map
a&&a.trim().split(/[\r\n]+/).forEach((e=>{const t=e.split(": "),r=t.shift()
if(r){const e=t.join(": ")
u.set(r.toLowerCase(),e)}}))
const c=s?null:t,l=this._createFailureProcessingMetadata(n)
r=this._getAndValidateUrlEntityIDs(r),this._trackResponse(e,o,r,l,i,u,c)}startRetryFlow(e){return ee.startRetryFlow(e)}static startRetryFlow(e){return new q(e)}completeRetryFlow(e){if(!q.isRetryableDegradationTrackingMetadata(e))throw new N("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,r,n,i,s,o){const a=new X(t,s,o),u=a.parsedHeaders,c=G(a),l=H(e,r),d=new Set,f=new Set
n.forEach((e=>{d.add(e.productName),f.add(e.featureKey)
const r=null!==e.retryableTrackingMetadata&&null!==e.retryMetricStore
!e.shouldDisableAvailabilityCalculation&&e.shouldImpactAvailability(c)&&(e.isCountedAgainstAvailability(c,t)?(r?e.retryableTrackingMetadata.incrementRetriedFeatureApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementFailedFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u.pointOfPresenceId,responseErrorType:c,responseFabric:u.fabric},i,$(c,u)):(r?e.retryableTrackingMetadata.incrementRetriedSuccessfulApiCall.bind(e.retryableTrackingMetadata):this._featureMetricStore.incrementSuccessfulFeatureApiCall.bind(this._featureMetricStore))({featureKey:e.featureKey,productName:e.productName,pointOfPresenceId:u.pointOfPresenceId,responseFabric:u.fabric},i))})),c&&(this._reportErrorIfUnclassified(o,c,t,d,f),W(l,n,c,a).forEach((e=>{this._fireEventCallback(h,e,i)})))}_reportErrorIfUnclassified(e,t,r,n,i){var s
if((0===r||null==r)&&"UNCLASSIFIED"===t){const t=[C]
let r
n.forEach((e=>t.push(`pem-product-${e}`))),i.forEach((e=>t.push(`pem-feature-${e}`))),r=e instanceof Error?e:new Error(`Could not classify jQuery response: ${JSON.stringify(e)}`),null===(s=this._jetErrorCallback)||void 0===s||s.call(this,r,t,!1)}}_createFailureProcessingMetadata(e){if(!e||!Array.isArray(e)||!e.length)throw new N(`Please specify a non-empty array of degradation tracking metadata. ${l}.`)
const t=new Set
return e.map((e=>{if(!j.isDegradationTrackingMetadata(e)&&!q.isRetryableDegradationTrackingMetadata(e))throw new N(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${l}.`)
const r=B(e.productName||this._defaultProductName),n=`${r}!!${e.featureKey}`
if(t.has(n))throw new N("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(n),new Q(e,r)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new N(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${l}.`)
return e}}},97194:function(e,t){!function(e){"use strict"
const t="List(",r=")",n="(",i=")",s=/[,()':]/g,o=/[,()':]/
function a(e,s){return Array.isArray(e)?function(e,n){const i=new Array(e.length)
for(let t=0;t<e.length;t++)i[t]=a(e[t],n)
return`${t}${i.join(",")}${r}`}(e,s):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){const r=Object.keys(e).map((r=>`${u(r,t)}:${a(e[r],t)}`))
return`${n}${r.join(",")}${i}`}(e,s):u(e,s)}function u(e,t=!1){return""===e?"''":t&&"string"==typeof e&&o.test(e)?e.replace(s,escape):t?e:encodeURIComponent(e).replace(s,escape)}Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const c={"X-RestLi-Protocol-Version":"2.0.0","X-HTTP-Method-Override":"GET","Content-Type":"application/x-www-form-urlencoded"}
function l(){const e=function(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/)
if(e)return e[1]}()
if(e){const t={"Csrf-Token":e}
return Object.assign(t,c)}return c}class h{constructor(e,t){const r=function(e){return!e.lix}(e)?{lix:e}:e
this.lixes=r.lix,this.tracker=t}treatment(e,{peek:t}={}){const r=this.lixes[e]
if(!r)return"control"
if(!r.treatment)throw new Error("The LiX treatment object does not contain any treatment")
return!0!==t&&this.tracker.notifyOfEval(r),r.treatment}cleanup(){this.lixes={}}append(e){for(const t in e){const r=e[t]
void 0!==r&&(this.lixes[t]=r)}}getTests(){return this.lixes}replace(e){this.lixes=e}}const d="LixTreatmentsEvent"
class f{constructor(e){this.queue=[],this.pendingTrackedLixes=[],this.trackingFiredRecords=new WeakMap,this.logger=e}fireTrackingEvent(e){this._fireTrackingEvent?this._fireTrackingEvent(d,e):this.queue.push(e)}notifyOfEval(e){const t=Date.now()
this.shouldFireTrackingEvent(e,t)&&this.appendForTracking(e,t),e.recursiveResults?.forEach((e=>this.notifyOfEval(e)))}shouldFireTrackingEvent(e,t){return!(!e||!e.trackingInfo)&&t-(this.trackingFiredRecords.get(e)||0)>6e4}appendForTracking(e,t){0===this.pendingTrackedLixes.length&&(this.timer=window.setTimeout(this.fireTrackingEvents.bind(this),100)),this.pendingTrackedLixes.push(e.trackingInfo),this.trackingFiredRecords.set(e,t)}fireTrackingEvents(){this.track(this.pendingTrackedLixes),this.pendingTrackedLixes.length=0}attach(e){this._fireTrackingEvent=e,this.queue.forEach((e=>{this._fireTrackingEvent?.(d,e)}))}cleanup(){delete this._fireTrackingEvent,this.pendingTrackedLixes=[],this.timer&&clearTimeout(this.timer)}track(e){const t=e.reduce(((e,t)=>{const{experimentId:r,treatmentIndex:n,segmentIndex:i,urn:s,trackingUrns:o}=t,a={experimentId:r,treatmentIndex:n,segmentIndex:i},u=s.match(/^urn:li:([a-zA-Z0-9]+):(\S+)$/)
if(null===u)return this.logger(`Failed parse the URN: "${s}"`),e
const c=u[1],l=u[2]
if(!c||!l)return e
e[c]||(e[c]={})
const h=e[c]
h[l]||(h[l]={primaryEvaluationUrn:s,trackingUrns:o,treatments:[]})
const d=h[l]
return d?.treatments?.push(a),e}),{}),r=[]
for(const n in t)for(const e in t[n]){const i=t[n]?.[e]
if(i){const t={urnId:e,urnType:n,primaryEvaluationUrn:i.primaryEvaluationUrn,treatments:i.treatments}
Array.isArray(i.trackingUrns)&&(t.additionalTrackingUrns=i.trackingUrns),r.push(t)}}this.fireTrackingEvent({urns:r})}}const p="value_"
e.LixCache=h,e.LixClient=class{constructor(e,t,r){this.tracker=new f(t),this.legacyLixCache=new h(e,this.tracker),this.env=r}get lixKeys(){return Object.keys(this.legacyLixCache.getTests())}attachTrackingCore(e){const t=e.fireEvent.bind(e)
this.tracker.attach(t)}fetch(e){return this.env.isBrowser?function(e,{lixKeys:t=[],explicitUrnLixList:r=[],context:n={},endpointPath:i=""}={}){const s={ids:t,explicitUrnLiXList:r,evaluationContext:{context:n}},o=Object.keys(s).map((e=>`${e}=${function(e){const t=JSON.parse(JSON.stringify(e))
return function(e){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),a(t,!1)}(s[e])}`))
return e(`/${i||"lix/treatmentsV2"}`,{credentials:"same-origin",method:"POST",headers:l(),body:o.join("&")}).then((e=>e.text().then((t=>{const r=e.status
if(200!==r)throw new Error(`LiX request failed with status code: ${r}\n${t}`)
try{return JSON.parse(t).results}catch(e){throw new Error(`Failed to parse the LiX response: "${t}"\n${e}`)}}))))}(this.env.fetch,e).then((e=>this.appendToCache(e))):this.env.Promise.resolve({})}getTreatment(e,t){return this.legacyLixCache.treatment(e,t)}getTreatmentIsEnabled(e,t){return"control"!==this.getTreatment(e,t)}getTreatmentValue(e,t){const r=this.getTreatment(e,t)
if(!r||-1===r.indexOf(p))return!1
const n=parseInt(r.replace(p,""),10)
return!isNaN(n)&&n}destroy(){this.legacyLixCache.cleanup(),this.tracker.cleanup(),this.env.onDestroy&&this.env.onDestroy()}appendToCache(e={}){return this.legacyLixCache.append(e),this.legacyLixCache.getTests()}replaceCache(e={}){this.legacyLixCache.replace(e)}clearCache(){this.legacyLixCache.cleanup()}notifyOfEval(e){this.tracker.notifyOfEval(e)}},e.LixTracker=f,e.TRACKING_BATCH_DELAY=100,e.fetchFromDom=function(){const e=document.querySelector('meta[name="__init"]')
if(!(e instanceof HTMLMetaElement))throw new Error("Unable to parse lix values from DOM, expected HTMLMetaElement")
if(!e||!e.content||"%INIT%"===e.content)return{}
try{return JSON.parse(e.content)}catch(e){throw new Error("Unable to parse lix values from DOM")}},Object.defineProperty(e,"__esModule",{value:!0})}(t)},77036:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{cached:()=>_,dedupeTracked:()=>b,localCopy:()=>y,trackedReset:()=>v})
var n,i,s=r(3353),o=r(37219),a=r(55521),u=r(36173)
function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l=(n=class{constructor(){var e
c(this,"prevRemote",void 0),c(this,"peek",void 0),(e=i)&&Object.defineProperty(this,"value",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}},h=n.prototype,d="value",f=[a.tracked],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},g={},Object.keys(p).forEach((function(e){g[e]=p[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),void 0===(g=f.slice().reverse().reduce((function(e,t){return t(h,d,e)||e}),g)).initializer&&(Object.defineProperty(h,d,g),g=null),i=g,n)
var h,d,f,p,g
function m(e,t,r){let n=t.get(e)
return void 0===n&&(n=new l,t.set(e,n),n.value=n.peek="function"==typeof r?r.call(e):r),n}function y(e,t){(0,s.assert)(`@localCopy() must be given a memo path as its first argument, received \`${String(e)}\``,"string"==typeof e)
let r=new WeakMap
return()=>{let n=t=>(0,o.get)(t,e)
return{get(){let e=m(this,r,t),{prevRemote:i}=e,s=n(this)
return i!==s&&(e.value=e.prevRemote=s),e.value},set(e){if(!r.has(this)){let i=m(this,r,t)
return i.prevRemote=n(this),void(i.value=e)}m(this,r,t).value=e}}}}function v(e){(0,s.assert)(`@trackedReset() must be given a memo path, a memo function, or config object with a memo path or function as its first argument, received \`${String(e)}\``,"string"==typeof e||"function"==typeof e||"object"==typeof e&&null!==e&&void 0!==e.memo)
let t=new WeakMap
return(r,n,i)=>{let s,a,u=i.initializer??(()=>{})
"object"==typeof e?(s=e.memo,a=e.update??u):(s=e,a=u)
let c="function"==typeof s?(e,t)=>s.call(e,e,n,t):e=>(0,o.get)(e,s)
return{get(){let e=m(this,t,u),{prevRemote:r}=e,i=c(this,r)
return i!==r&&(e.prevRemote=i,e.value=e.peek=a.call(this,this,n,e.peek)),e.value},set(e){m(this,t,u).value=e}}}}function _(e,t,r){(0,s.assert)("@cached can only be used on getters",r&&r.get)
let{get:n,set:i}=r,o=new WeakMap
return{get(){let e=o.get(this)
return void 0===e&&(e=(0,u.createCache)(n.bind(this)),o.set(this,e)),(0,u.getValue)(e)},set:i}}function b(){let e
const t=function(t,r,n){let{initializer:i}=n,{get:s,set:o}=(0,a.tracked)(t,r,n),u=new WeakMap
return{get(){if(!u.has(this)){let e=i?.call(this)
u.set(this,e),o.call(this,e)}return s.call(this)},set(t){u.has(this)&&e(t,u.get(this))||(u.set(this,t),o.call(this,t))}}}
return 3===arguments.length?(e=(e,t)=>e===t,t(...arguments)):1===arguments.length&&"function"==typeof arguments[0]?(e=arguments[0],t):void(0,s.assert)(`@dedupeTracked() can either be invoked without arguments or with one comparator function, received \`${String(arguments)}\``,!1)}},44154:function(e){var t
"undefined"!=typeof self&&self,t=function(){return function(e){var t={}
function r(n){if(t[n])return t[n].exports
var i=t[n]={i:n,l:!1,exports:{}}
return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e}
return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=63)}([function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")()
"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(31)("wks"),i=r(21),s=r(0).Symbol,o="function"==typeof s;(e.exports=function(e){return n[e]||(n[e]=o&&s[e]||(o?s:i)("Symbol."+e))}).store=n},function(e,t){var r=e.exports={version:"2.6.11"}
"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(4),i=r(44),s=r(29),o=Object.defineProperty
t.f=r(5)?Object.defineProperty:function(e,t,r){if(n(e),t=s(t,!0),n(r),i)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!")
return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(9)
e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!")
return e}},function(e,t,r){e.exports=!r(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=window||e}).call(t,r(41))},function(e,t,r){var n=r(0),i=r(2),s=r(17),o=r(8),a=r(10),u="prototype",c=function(e,t,r){var l,h,d,f=e&c.F,p=e&c.G,g=e&c.S,m=e&c.P,y=e&c.B,v=e&c.W,_=p?i:i[t]||(i[t]={}),b=_[u],D=p?n:g?n[t]:(n[t]||{})[u]
for(l in p&&(r=t),r)(h=!f&&D&&void 0!==D[l])&&a(_,l)||(d=h?D[l]:r[l],_[l]=p&&"function"!=typeof D[l]?r[l]:y&&h?s(d,n):v&&D[l]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e
case 1:return new e(t)
case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)}
return t[u]=e[u],t}(d):m&&"function"==typeof d?s(Function.call,d):d,m&&((_.virtual||(_.virtual={}))[l]=d,e&c.R&&b&&!b[l]&&o(b,l,d)))}
c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,r){var n=r(3),i=r(19)
e.exports=r(5)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r={}.hasOwnProperty
e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(69),i=r(27)
e.exports=function(e){return n(i(e))}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PROD_REGEX=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,t.UDO_KEY="utag_data",t.CDN_HOSTNAME_PROD="platform.linkedin.com",t.CDN_HOSTNAME_EI="platform.linkedin-ei.com",t.CN_CDN_HOSTNAME_PROD="platform.linkedin.cn",t.CN_CDN_HOSTNAME_EI="platform.linkedin-ei.cn",t.COOKIE_CONSENT_CHECK_INTERVAL=2e3,t.ROOT_HOSTNAME_EI="www.linkedin-ei.com",t.ROOT_HOSTNAME_PROD="www.linkedin.com",t.CN_ROOT_HOSTNAME_EI="www.linkedin-ei.cn",t.CN_ROOT_HOSTNAME_PROD="www.linkedin.cn",t.UTAG_GLOBAL_OBJECT_KEY="utag",t.UTAG_CONFIG_OVERRIDE_OBJECT_KEY="utag_cfg_ovrd",t.CUSTOM_EVENTS_TMS_LOAD_EVENT="TagManagementSystemLoadEvent",t.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT="ExternalMarketingTagFireEvent",t.TAG_MANAGEMENT_SYSTEM_USED="tealium",t.USER_METADATA_PATH="/litms/api/metadata/user",t.TRACKING_EVENT_DEBUG_DATA="trackingEventDebugData",t.REFRESH_ON_COOKIE_CONSENT_PROPERTY="entity.refreshOnCookieConsent",t.TRACKING_IDS=["twclid","clickid","fbclid"],t.L_PAGE_COOKIE_LIFETIME="15780000"},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){var r={}.toString
e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(18)
e.exports=function(e,t,r){if(n(e),void 0===t)return e
switch(r){case 1:return function(r){return e.call(t,r)}
case 2:return function(r,n){return e.call(t,r,n)}
case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")
return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(47),i=r(32)
e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r=0,n=Math.random()
e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(3).f,i=r(10),s=r(1)("toStringTag")
e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t,r){e.exports={default:r(86),__esModule:!0}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getAPIHostname=t.getCDNHostname=t.isProd=void 0
var n,i=(n=r(6))&&n.__esModule?n:{default:n},s=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}(r(12))
function o(){var e=i.default.location?i.default.location.hostname:""
return s.PROD_REGEX.test(e)}function a(){var e=i.default.location?i.default.location.hostname:""
return/\.cn$/.test(e)}t.isProd=o,t.getCDNHostname=function(){return o()?a()?s.CN_CDN_HOSTNAME_PROD:s.CDN_HOSTNAME_PROD:a()?s.CN_CDN_HOSTNAME_EI:s.CDN_HOSTNAME_EI},t.getAPIHostname=function(){return o()?a()?s.CN_ROOT_HOSTNAME_PROD:s.ROOT_HOSTNAME_PROD:a()?s.CN_ROOT_HOSTNAME_EI:s.ROOT_HOSTNAME_EI}},function(e,t,r){"use strict"
t.__esModule=!0
var n=o(r(64)),i=o(r(76)),s="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e}
function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===s(n.default)?function(e){return void 0===e?"undefined":s(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":s(e)}},function(e,t){var r=Math.ceil,n=Math.floor
e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e)
return e}},function(e,t,r){var n=r(9),i=r(0).document,s=n(i)&&n(i.createElement)
e.exports=function(e){return s?i.createElement(e):{}}},function(e,t,r){var n=r(9)
e.exports=function(e,t){if(!n(e))return e
var r,i
if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i
if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i
if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i
throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(31)("keys"),i=r(21)
e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(2),i=r(0),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(13)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(27)
e.exports=function(e){return Object(n(e))}},function(e,t,r){t.f=r(1)},function(e,t,r){var n=r(0),i=r(2),s=r(13),o=r(34),a=r(3).f
e.exports=function(e){var t=i.Symbol||(i.Symbol=s?{}:n.Symbol||{})
"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){e.exports={default:r(89),__esModule:!0}},function(e,t,r){"use strict"
var n=r(18)
function i(e){var t,r
this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor")
t=e,r=n})),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.shouldRefreshOnCookieConsent=t.isDebugMode=t.generateCacheBuster=t.assign=void 0
var n=o(r(23)),i=r(12),s=o(r(6))
function o(e){return e&&e.__esModule?e:{default:e}}t.assign=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]
if(r)for(var i=(0,n.default)(r),s=0;s<i.length;s++){var o=i[s]
e[o]=r[o]}}return e},t.generateCacheBuster=function(e){var t=new s.default.Date
t.setSeconds(0),t.setMilliseconds(0)
var r=Math.floor(t.getMinutes()/e)*e
return t.setMinutes(r),t.getTime()},t.isDebugMode=function(){return/utagdb=[^;]+/.test(s.default.document.cookie)},t.shouldRefreshOnCookieConsent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
return!!Array.isArray(e)&&e.some((function(e){var t=e.data[i.REFRESH_ON_COOKIE_CONSENT_PROPERTY]
return"boolean"==typeof t?t:"string"==typeof t&&"true"===t.toLowerCase()}))}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
t.default=n},function(e,t){var r
r=function(){return this}()
try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict"
var n=r(66)(!0)
r(43)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i
return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict"
var n=r(13),i=r(7),s=r(45),o=r(8),a=r(15),u=r(67),c=r(22),l=r(72),h=r(1)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this}
e.exports=function(e,t,r,m,y,v,_){u(r,t,m)
var b,D,A,E=function(e){if(!d&&e in F)return F[e]
switch(e){case f:case p:return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",w=y==p,S=!1,F=e.prototype,T=F[h]||F["@@iterator"]||y&&F[y],R=T||E(y),x=y?w?E("entries"):R:void 0,O="Array"==t&&F.entries||T
if(O&&(A=l(O.call(new e)))!==Object.prototype&&A.next&&(c(A,C,!0),n||"function"==typeof A[h]||o(A,h,g)),w&&T&&T.name!==p&&(S=!0,R=function(){return T.call(this)}),n&&!_||!d&&!S&&F[h]||o(F,h,R),a[t]=R,a[C]=g,y)if(b={values:w?R:E(p),keys:v?R:E(f),entries:x},_)for(D in b)D in F||s(F,D,b[D])
else i(i.P+i.F*(d||S),t,b)
return b}},function(e,t,r){e.exports=!r(5)&&!r(14)((function(){return 7!=Object.defineProperty(r(28)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){e.exports=r(8)},function(e,t,r){var n=r(4),i=r(68),s=r(32),o=r(30)("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=r(28)("iframe"),n=s.length
for(t.style.display="none",r(49).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][s[n]]
return c()}
e.exports=Object.create||function(e,t){var r
return null!==e?(a[u]=n(e),r=new a,a[u]=null,r[o]=e):r=c(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(10),i=r(11),s=r(70)(!1),o=r(30)("IE_PROTO")
e.exports=function(e,t){var r,a=i(e),u=0,c=[]
for(r in a)r!=o&&n(a,r)&&c.push(r)
for(;t.length>u;)n(a,r=t[u++])&&(~s(c,r)||c.push(r))
return c}},function(e,t,r){var n=r(26),i=Math.min
e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(0).document
e.exports=n&&n.documentElement},function(e,t,r){r(73)
for(var n=r(0),i=r(8),s=r(15),o=r(1)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],l=n[c],h=l&&l.prototype
h&&!h[o]&&i(h,o,c),s[c]=s.Array}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(47),i=r(32).concat("length","prototype")
t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t){},function(e,t,r){var n=r(16),i=r(1)("toStringTag"),s="Arguments"==n(function(){return arguments}())
e.exports=function(e){var t,r,o
return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:s?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,r){var n=r(4),i=r(18),s=r(1)("species")
e.exports=function(e,t){var r,o=n(e).constructor
return void 0===o||null==(r=n(o)[s])?t:i(r)}},function(e,t,r){var n,i,s,o=r(17),a=r(96),u=r(49),c=r(28),l=r(0),h=l.process,d=l.setImmediate,f=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,m=0,y={},v="onreadystatechange",_=function(){var e=+this
if(y.hasOwnProperty(e)){var t=y[e]
delete y[e],t()}},b=function(e){_.call(e.data)}
d&&f||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++])
return y[++m]=function(){a("function"==typeof e?e:Function(e),t)},n(m),m},f=function(e){delete y[e]},"process"==r(16)(h)?n=function(e){h.nextTick(o(_,e,1))}:g&&g.now?n=function(e){g.now(o(_,e,1))}:p?(s=(i=new p).port2,i.port1.onmessage=b,n=o(s.postMessage,s,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n=v in c("script")?function(e){u.appendChild(c("script"))[v]=function(){u.removeChild(this),_.call(e)}}:function(e){setTimeout(o(_,e,1),0)}),e.exports={set:d,clear:f}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(4),i=r(9),s=r(38)
e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t
var r=s.f(e)
return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=t.createLoadRulesCompletedListenerForUTag=t.setGlobalUTagReference=t.cleanUpGlobalUTagReferences=t.getUTagFromGlobalReference=t.getTagsFired=t.processQueuedEvents=t.trackControlInteraction=t.trackPageView=t.loadScript=t.constructContainerTagUrl=void 0
var n=d(r(23)),i=d(r(37)),s=d(r(6)),o=h(r(12)),a=h(r(24)),u=r(60),c=r(39),l=d(r(40))
function h(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}s.default[o.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]=s.default[o.UTAG_CONFIG_OVERRIDE_OBJECT_KEY]||{},s.default[o.TRACKING_EVENT_DEBUG_DATA]=s.default[o.TRACKING_EVENT_DEBUG_DATA]||[],s.default[o.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].noview=!0,s.default[o.UTAG_CONFIG_OVERRIDE_OBJECT_KEY].nocookie=!0
var f=void 0
function p(e,t,r,n){e.onLoadRulesRunOnce(r)
var i=(0,c.assign)({},t,(0,u.getUpdatedSharedEventData)(n))
e.view(i),(0,c.isDebugMode)()&&s.default[o.TRACKING_EVENT_DEBUG_DATA].push({profileName:n,eventType:"PV",trackingData:i})}function g(e,t,r,n){e.onLoadRulesRunOnce(r)
var i=(0,c.assign)({},t,(0,u.getUpdatedSharedEventData)(n))
e.link(i),(0,c.isDebugMode)()&&s.default[o.TRACKING_EVENT_DEBUG_DATA].push({profileName:n,eventType:"CI",trackingData:i})}function m(e){s.default[o.UTAG_GLOBAL_OBJECT_KEY]=e}t.constructContainerTagUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main",t=arguments[1]
return function(){if(void 0===f&&l.default){var e=s.default.document.cookie.match(/litms_utag_override=([^;]+)/)
f=e?e[1]:""}return f}().length>0?f:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=null
return"string"==typeof e&&(r="https://"+a.getCDNHostname()+"/litms/utag/"+e+"/utag.js?cb="+(0,c.generateCacheBuster)(t)),r}(e,t)},t.loadScript=function(e){return new i.default((function(t){var r=s.default.document.createElement("script")
r.type="text/javascript",r.src=e,r.async=!0,r.onload=t,s.default.document.getElementsByTagName("head")[0].appendChild(r)}))},t.trackPageView=p,t.trackControlInteraction=g,t.processQueuedEvents=function(e,t,r){if(m(e),t instanceof Array&&t.length>0)for(var n=t.length,i=0;i<n;i++){var s=t.shift()
s.isControlInteraction?g(e,s.data,s.callback,r):p(e,s.data,s.callback,r)}},t.getTagsFired=function(e){return(0,n.default)(e.loader.cfg).filter((function(t){return 1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load}))},t.getUTagFromGlobalReference=function(){return s.default[o.UTAG_GLOBAL_OBJECT_KEY]},t.cleanUpGlobalUTagReferences=function(){void 0!==s.default[o.UTAG_GLOBAL_OBJECT_KEY]&&(s.default[o.UTAG_GLOBAL_OBJECT_KEY]=void 0),void 0!==s.default[o.UDO_KEY]&&(s.default[o.UDO_KEY]=void 0)},t.setGlobalUTagReference=m,t.createLoadRulesCompletedListenerForUTag=function(e){var t=[]
e.onLoadRulesRunOnce=function(e){t.push(e)}
var r=e.loader.initcfg
e.loader.initcfg=function(){r.call(this,arguments),t.length>0&&t.shift()()}},t.UTAG_CACHE_BUSTER_INTERVAL_IN_MINUTES_DEFAULT=5},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getEnterpriseContextForProfile=t.getUpdatedSharedEventData=t.addInUpdatedComplianceObjectFromConsentCookie=t.sharedEventData=t.addSharedEventData=t.getAllowlistForProfile=t.getUserSettings=t.UDO=void 0
var n=f(r(23)),i=f(r(25)),s=f(r(37)),o=f(r(6)),a=d(r(12)),u=r(24),c=r(109),l=d(r(61)),h=r(39)
function d(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}var p=void 0,g={},m={},y=o.default[a.UDO_KEY]||(o.default[a.UDO_KEY]={})
function v(e,t){var r=t+"."+t
return{enterpriseProfileUrn:e[r+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[r+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function _(e,t){var r=(0,h.assign)({},e),n={userSettings:r,enterpriseContext:v(e,t)}
return r["compliance.isAdvertisingOptIn"]=!function(e,t){var r=t+"."+t,n=e[r+".isEnterpriseUser"]||e[t+".isEnterpriseUser"],i=e[r+".isBoundUser"]||e[t+".isBoundUser"]
return n&&!i}(e,t)&&l.getUpdatedUserAdvertisingOptIn(n),r["compliance.isAnalyticsAndResearchOptIn"]=l.getUpdatedUserAnalyticsAndResearchOptIn(n),r["compliance.isFunctionalOptIn"]=l.getUpdatedUserFunctionalOptIn(n),r}t.UDO=y,t.getUserSettings=function(){if(!p){var e="https://"+(0,u.getAPIHostname)()+a.USER_METADATA_PATH
p=new s.default((function(t,r){(0,c.get)(e,(function(e){try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),r(e)}}),(function(e){r(e)}))}))}return p},t.getAllowlistForProfile=function(e){if(!m[e]){var t=function(e){return"https://"+(0,u.getCDNHostname)()+"/litms/allowlist/"+encodeURIComponent(e)}(e),r=new s.default((function(e,r){(0,c.get)(t,(function(t){e(JSON.parse(t))}),(function(e){r(e)}),!1)}))
m[e]=r}return m[e]},t.addSharedEventData=function(e,t){var r="string"!=typeof t?"":t+"."
"object"===(void 0===e?"undefined":(0,i.default)(e))&&(0,n.default)(e).forEach((function(t){g[r+t]=e[t]}))},t.sharedEventData=g,t.addInUpdatedComplianceObjectFromConsentCookie=_,t.getUpdatedSharedEventData=function(e){return _(g,e)},t.getEnterpriseContextForProfile=v},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getUpdatedUserFunctionalOptIn=t.getUpdatedUserAnalyticsAndResearchOptIn=t.getUpdatedUserAdvertisingOptIn=t.getAdvertisingOptIn=t.getAnalyticsAndResearchOptIn=t.getFunctionalOptIn=t.getGDPROptIn=void 0
var n=function(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}(r(62))
function i(e){return e["compliance.isGDPROptIn"]}function s(e){var t=n.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.FUNCTIONAL}function o(e){var t=n.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}function a(e){var t=n.getCookieConsent(null,void 0,e)
return!t||t.consent.optedInConsentMap.ADVERTISING}t.getGDPROptIn=i,t.getFunctionalOptIn=s,t.getAnalyticsAndResearchOptIn=o,t.getAdvertisingOptIn=a,t.getUpdatedUserAdvertisingOptIn=function(e){var t=e.userSettings,r=e.enterpriseContext
return a(void 0===r?{}:r)&&i(t)},t.getUpdatedUserAnalyticsAndResearchOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return o(void 0===t?{}:t)},t.getUpdatedUserFunctionalOptIn=function(e){e.userSettings
var t=e.enterpriseContext
return s(void 0===t?{}:t)}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){(null==t||t>e.length)&&(t=e.length)
for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r]
return n}r.d(t,"NON_ESSENTIAL_CATEGORIES",(function(){return m})),r.d(t,"USER_MODE",(function(){return y})),r.d(t,"getBannerData",(function(){return R})),r.d(t,"getCookieConsent",(function(){return T})),r.d(t,"parseEncodedConsent",(function(){return F})),r.d(t,"updateCookieConsent",(function(){return x}))
var s=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),o=/^fs_/
function a(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof e+".")
var t,r,n=s.exec(e)
return n&&(t=n[1].replace(o,""),r=n[2]),{id:r,type:t}}var u,c,l,h,d,f,p=/(?![^(]*\)),/,g=function e(t){var r=a(t),n=r.id,i=r.type,s={}
if("("===n.charAt(0)){for(var o,u=n.substring(1,n.length-1).split(p),c=0;o=u[c];++c)0===o.indexOf("urn")&&(u[c]=e(o))
n=u}return s[i]=n,s},m={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},y={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},v=(n(u={},y.GUEST,"li_gc"),n(u,y.MEMBER,"li_mc"),n(u,y.ENTERPRISE_UNBOUND,"li_ec"),u),_=(n(c={},y.GUEST,"mypreferences/g/guest-cookies"),n(c,y.MEMBER,"settings/member-cookies"),n(c,y.ENTERPRISE_UNBOUND,"settings/cookies"),c),b=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var s in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=n,this.optedInConsentMap={},m)t[s]=t[s]||0,0!==t[s]&&(this.consentAvailable=!0),this.optedInConsentMap[s]=1===t[s]||0===t[s]&&1===i},D=(l=[m.ADVERTISING,m.ANALYTICS_AND_RESEARCH,m.FUNCTIONAL],h=[0,1,2,0],d=function(e){for(var t={},r=0;r<l.length;r++)t[l[r]]=h[e>>2*r&3]
return t},f=function(e){var t=0
return e>=0&&e<=3&&(t=h[e]),t},{parseConsentBody:function(e,t){var r=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),n=e.match(r)
if(!n)return{error:"Invalid consent body encoding",consent:new b}
var i=d(parseInt(n[1],10)),s=new Date(1e3*parseInt(n[2],10)),o=f(parseInt(n[3],10))
return{error:null,consent:new b(i,s,t,o)}},parseConsentBodyEnterpriseUnbound:function(e,t,r){var n=function(e){try{var t=g(e)
if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t)
if(!n)return{error:"Invalid enterprise profile urn provided",consent:new b}
var s=n.enterpriseAccountId,o=n.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),u=e.match(a)
if(!u)return{error:"Invalid consent body encoding",consent:new b}
var c=u[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,n=(4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,s=void 0
try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),4!==r.length);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw s}}return r}}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,4)
var r=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,4):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[1],u=n[2],c=n[3]
return a===s&&u===o&&c===r}))[0]
if(!c)return{error:null,consent:new b}
var l=d(c[0]),h=new Date(1e3*parseInt(u[2],10)),p=f(parseInt(u[3],10))
return{error:null,consent:new b(l,h,y.ENTERPRISE_UNBOUND,p)}}}),A=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),E=function(e,t){var r=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return r&&r.length>1?r[1]:null},C=function(e){var t={}
for(var r in m)t[r]=e
return{error:null,consent:new b(t,null,null,e)}},w=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},S=function(e){var t=_[e]
return"https://www.".concat(w(),"/").concat(t)},F=function(t,r,n,i){t&&t.length>1&&'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1))
var s,o=null
try{o=(s=t,"undefined"==typeof atob&&void 0!==e?e.from(s,"base64").toString("binary"):atob(s)).match(A)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new b}
var a=parseInt(o[1],10),u=o[2]
return 1===a?r===y.ENTERPRISE_UNBOUND?D.parseConsentBodyEnterpriseUnbound(u,n,i):D.parseConsentBody(u,r):{error:"Invalid encoded consent version ".concat(a),consent:new b}},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.enterpriseProfileUrn,i=r.enterpriseAppInstanceId
if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new b}
t=document.cookie}if(n&&!i||!n&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new b}
if(!(e!==y.ENTERPRISE_UNBOUND||n&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new b}
if(!e){var s=E(v[y.ENTERPRISE_UNBOUND],t)
if(s&&n&&i){var o=F(s,y.ENTERPRISE_UNBOUND,n,i)
if(o.consent.userMode===y.ENTERPRISE_UNBOUND||o.error)return o}e=E("liap",t)?E(v[y.MEMBER],t)?y.MEMBER:y.GUEST:E(v[y.GUEST],t)?y.GUEST:y.MEMBER}return function(e,t,r,n){var i=E(v[e],t)
return i?F(i,e,r,n):E(v[y.GUEST],t)||E(v[y.MEMBER],t)||E(v[y.ENTERPRISE_UNBOUND],t)?C(2):C(1)}(e,t,n,i)},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=T(e,document.cookie,t),n=r.consent,i=e||n.userMode||y.GUEST
return{showBanner:!r.error&&!n.consentAvailable,userMode:i,managePreferenceUrl:S(i)}},x=function(e,t){var r=e.optedInConsentMap,n=e.updateSettings,i=e.userMode,s=e.xLiTrackPayload,o=e.enterpriseContext||{},a=o.enterpriseProfileHash,u=o.enterpriseAppInstanceId
t=t||function(e,t){}
var c=E(v[y.ENTERPRISE_UNBOUND],document.cookie)
r||t("optedInConsentMap is a required option",null)
var l=new XMLHttpRequest,h=new URLSearchParams
c&&u&&h.append("appInstanceId",u)
var d=Array.from(h).length?"?"+h.toString():""
l.open("POST","https://www.".concat(w(),"/cookie-consent/").concat(d)),l.setRequestHeader("Content-Type","application/json"),s&&l.setRequestHeader("X-LI-Track",s),c&&a&&l.setRequestHeader("x-li-identity",a),l.withCredentials=!0,l.onload=function(){200!==l.status?t("Request failed with status ".concat(l.status),null):t(null,l)},l.onerror=function(){t("Request failed with an error",l)}
var f={UPDATE_SETTINGS:n,USER_MODE:i,CATEGORIES:{}}
for(var p in m){var g=void 0
!0===r[p]?g=1:!1===r[p]&&(g=2),f.CATEGORIES[p]=g}l.send(JSON.stringify(f))}}.call(t,r(110).Buffer)},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.teardownInstanceForProfile=t.getInstanceForProfile=t.addSharedEventData=void 0
var n=b(r(25)),i=b(r(23)),s=b(r(37)),o=b(r(104)),a=b(r(105)),u=_(r(59)),c=_(r(114)),l=r(24),h=r(60),d=r(39),f=r(61),p=b(r(115)),g=r(62),m=b(r(40)),y=b(r(6)),v=r(12)
function _(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var D={},A=void 0,E={},C=void 0,w=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.profileName,n=t.tracking2Instance,i=t.enableAllowlisting,a=void 0!==i&&i,u=t.cacheBusterInterval;(0,o.default)(this,e),this.isInitialized=!1,this.isAllowlistingEnabled=!1,this._allowlistReadyPromise=s.default.resolve({}),this.isContainerTagLoaded=!1,this._queue=[],this.allowlist={pageKey:{},controlUrn:{}},this.tracking2Instance=n,this.profileName=r,this.enableAllowlisting=a,this.cacheBusterInterval=u,this.landingPageUrl}return(0,a.default)(e,[{key:"initialize",value:function(){var e=this
return this._shouldInitialize()?this.isInitialized?(console.warn("Initialize should not be called more that once"),this.initializePromise.then()):(m.default&&(sessionStorage.getItem("utagLandingPage")&&sessionStorage.removeItem("utagLandingPage"),this.landingPageUrl=y.default.location.href),this.isInitialized=!0,this.initializePromise=new s.default((function(t,r){e.enableAllowlisting?(e.isAllowlistingEnabled=!0,e._onInitializeSuccessCallback=t,e._onInitializeFailureCallback=r,e._allowlistReadyPromise=(0,h.getAllowlistForProfile)(e.profileName).then((function(t){return e._processAllowlistResult(t)})).catch((function(t){return console.error("Unable to retrieve allowlists for profile : "+e.profileName,t)}))):e._loadContainerTag(t,r)})),this.profileName&&(D[this.profileName]=this),this.initializePromise):s.default.resolve()}},{key:"_processAllowlistResult",value:function(e){var t=this;(0,i.default)(e).forEach((function(r){return t.addValuesToAllowlist(r,e[r])}))}},{key:"_setLandingPageCookie",value:function(){var e=this,t=(0,h.getUpdatedSharedEventData)(this.profileName),r={userSettings:t,enterpriseContext:(0,h.getEnterpriseContextForProfile)(t,this.profileName)}
if(this.landingPageUrl&&(0,f.getUpdatedUserAdvertisingOptIn)(r)&&v.TRACKING_IDS.find((function(t){return e.landingPageUrl.includes(t)}))){var n=(0,l.isProd)()?".linkedin.com":"linkedin-ei.com"
y.default.document.cookie="l_page="+this.landingPageUrl+";domain="+n+";path=/;max-age="+v.L_PAGE_COOKIE_LIFETIME}}},{key:"_loadContainerTag",value:function(e,t){var r=this
u.cleanUpGlobalUTagReferences()
var o=(0,h.getUserSettings)().then((function(e){(0,i.default)(e).forEach((function(t){(0,h.addSharedEventData)(e[t],t)})),m.default&&r._setLandingPageCookie()})).catch((function(e){console.error("Unable to get user settings while calling loading container tag",e)})),a=u.loadScript(u.constructContainerTagUrl(this.profileName,this.cacheBusterInterval))
s.default.all([o,a]).then((function(){r.isContainerTagLoaded=!0,r._uTag=u.getUTagFromGlobalReference(),u.createLoadRulesCompletedListenerForUTag(r._uTag),r._processQueuedEvents()
var t=c.buildTmsLoadEvent()
"object"===(0,n.default)(r.tracking2Instance)&&c.fireTrackingEvent(r.tracking2Instance,t),e(t)})).catch((function(e){console.error("Unable to complete loading container tag",e),t()}))}},{key:"_shouldInitialize",value:function(){return!p.default}},{key:"_shouldProcessEvent",value:function(e){var t=this
return p.default?s.default.resolve(!1):this.isAllowlistingEnabled?new s.default((function(r){t._allowlistReadyPromise.then((function(){r(t._isEventAllowlisted(e))}))})):s.default.resolve(!0)}},{key:"_isEventAllowlisted",value:function(e){return void 0!==e.controlUrn?this._isEventAllowlistedByControlUrn(e):this._isEventAllowlistedByPageKey(e)}},{key:"_isEventAllowlistedByPageKey",value:function(e){return void 0!==this.allowlist.pageKey[e.pageKey]}},{key:"_isEventAllowlistedByControlUrn",value:function(e){return void 0!==this.allowlist.controlUrn[e.controlUrn]}},{key:"addValuesToAllowlist",value:function(e,t){var r=this
"string"==typeof e&&Array.isArray(t)&&void 0!==this.allowlist[e]&&t.forEach((function(t){r.allowlist[e][t]=!0}))}},{key:"_processQueuedEvents",value:function(){this.isContainerTagLoaded?u.processQueuedEvents(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}},{key:"_fireAuditEvent",value:function(){var e=c.buildTagFireAuditEvent(this._uTag)
return void 0!==this.tracking2Instance&&void 0!==e&&c.fireTrackingEvent(this.tracking2Instance,e),e}},{key:"_createCallbackForAuditEvent",value:function(e){var t=this
return function(){var r=t._fireAuditEvent()
"function"==typeof e&&e(r)}}},{key:"_checkForCookieConsent",value:function(){var e=this,t=(0,h.getEnterpriseContextForProfile)(h.sharedEventData,this.profileName);(0,g.getCookieConsent)(null,void 0,t).consent.consentAvailable&&!C?(0,d.shouldRefreshOnCookieConsent)(E.payloads)?location.reload():this._refireTracking():A=setTimeout((function(){e._checkForCookieConsent()}),v.COOKIE_CONSENT_CHECK_INTERVAL)}},{key:"_refireTracking",value:function(){var e=this
E.payloads&&E.payloads.forEach((function(t){var r=t.data,n=t.callback
r.cookieConsentGiven=!0,e.trackPageView(r,n)}))}},{key:"_savePayloadForRefire",value:function(e,t){var r=this
if(m.default){C=!1
var n=E,i=n.payloads,s=void 0===i?[]:i,o=n.url,a=location.href,u={data:e,callback:t},c=a!==o?[]:s
c.push(u),E={url:a,payloads:c},A||(A=setTimeout((function(){r._checkForCookieConsent()}),v.COOKIE_CONSENT_CHECK_INTERVAL))}}},{key:"trackPageView",value:function(e,t){var r=this,n=(0,h.getEnterpriseContextForProfile)(h.sharedEventData,this.profileName)
return(0,g.getCookieConsent)(null,void 0,n).consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then((function(n){n&&(r._queue.push({isControlInteraction:!1,data:e,callback:r._createCallbackForAuditEvent(t)}),r._processQueuedEvents())}))}},{key:"trackControlInteraction",value:function(e,t){var r=this
return this._shouldProcessEvent(e).then((function(n){n&&(r._queue.push({isControlInteraction:!0,data:e,callback:r._createCallbackForAuditEvent(t)}),r._processQueuedEvents())}))}}]),e}()
t.addSharedEventData=h.addSharedEventData,t.getInstanceForProfile=function(e){var t=D[e]
return t&&u.setGlobalUTagReference(t._uTag),t},t.teardownInstanceForProfile=function(e){delete D[e]},t.default=w},function(e,t,r){e.exports={default:r(65),__esModule:!0}},function(e,t,r){r(42),r(50),e.exports=r(34).f("iterator")},function(e,t,r){var n=r(26),i=r(27)
e.exports=function(e){return function(t,r){var s,o,a=String(i(t)),u=n(r),c=a.length
return u<0||u>=c?e?"":void 0:(s=a.charCodeAt(u))<55296||s>56319||u+1===c||(o=a.charCodeAt(u+1))<56320||o>57343?e?a.charAt(u):s:e?a.slice(u,u+2):o-56320+(s-55296<<10)+65536}}},function(e,t,r){"use strict"
var n=r(46),i=r(19),s=r(22),o={}
r(8)(o,r(1)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(o,{next:i(1,r)}),s(e,t+" Iterator")}},function(e,t,r){var n=r(3),i=r(4),s=r(20)
e.exports=r(5)?Object.defineProperties:function(e,t){i(e)
for(var r,o=s(t),a=o.length,u=0;a>u;)n.f(e,r=o[u++],t[r])
return e}},function(e,t,r){var n=r(16)
e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(11),i=r(48),s=r(71)
e.exports=function(e){return function(t,r,o){var a,u=n(t),c=i(u.length),l=s(o,c)
if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0
return!e&&-1}}},function(e,t,r){var n=r(26),i=Math.max,s=Math.min
e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):s(e,t)}},function(e,t,r){var n=r(10),i=r(33),s=r(30)("IE_PROTO"),o=Object.prototype
e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){"use strict"
var n=r(74),i=r(75),s=r(15),o=r(11)
e.exports=r(43)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++
return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(77),__esModule:!0}},function(e,t,r){r(78),r(53),r(84),r(85),e.exports=r(2).Symbol},function(e,t,r){"use strict"
var n=r(0),i=r(10),s=r(5),o=r(7),a=r(45),u=r(79).KEY,c=r(14),l=r(31),h=r(22),d=r(21),f=r(1),p=r(34),g=r(35),m=r(80),y=r(81),v=r(4),_=r(9),b=r(33),D=r(11),A=r(29),E=r(19),C=r(46),w=r(82),S=r(83),F=r(51),T=r(3),R=r(20),x=S.f,O=T.f,P=w.f,M=n.Symbol,k=n.JSON,I=k&&k.stringify,N="prototype",L=f("_hidden"),B=f("toPrimitive"),U={}.propertyIsEnumerable,j=l("symbol-registry"),q=l("symbols"),H=l("op-symbols"),z=Object[N],G="function"==typeof M&&!!F.f,W=n.QObject,V=!W||!W[N]||!W[N].findChild,$=s&&c((function(){return 7!=C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=x(z,t)
n&&delete z[t],O(e,t,r),n&&e!==z&&O(z,t,n)}:O,K=function(e){var t=q[e]=C(M[N])
return t._k=e,t},Q=G&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},Y=function(e,t,r){return e===z&&Y(H,t,r),v(e),t=A(t,!0),v(r),i(q,t)?(r.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),r=C(r,{enumerable:E(0,!1)})):(i(e,L)||O(e,L,E(1,{})),e[L][t]=!0),$(e,t,r)):O(e,t,r)},X=function(e,t){v(e)
for(var r,n=m(t=D(t)),i=0,s=n.length;s>i;)Y(e,r=n[i++],t[r])
return e},J=function(e){var t=U.call(this,e=A(e,!0))
return!(this===z&&i(q,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(q,e)||i(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=D(e),t=A(t,!0),e!==z||!i(q,t)||i(H,t)){var r=x(e,t)
return!r||!i(q,t)||i(e,L)&&e[L][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=P(D(e)),n=[],s=0;r.length>s;)i(q,t=r[s++])||t==L||t==u||n.push(t)
return n},te=function(e){for(var t,r=e===z,n=P(r?H:D(e)),s=[],o=0;n.length>o;)!i(q,t=n[o++])||r&&!i(z,t)||s.push(q[t])
return s}
G||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!")
var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===z&&t.call(H,r),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),$(this,e,E(1,r))}
return s&&V&&$(z,e,{configurable:!0,set:t}),K(e)},a(M[N],"toString",(function(){return this._k})),S.f=Z,T.f=Y,r(52).f=w.f=ee,r(36).f=J,F.f=te,s&&!r(13)&&a(z,"propertyIsEnumerable",J,!0),p.f=function(e){return K(f(e))}),o(o.G+o.W+o.F*!G,{Symbol:M})
for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)f(re[ne++])
for(var ie=R(f.store),se=0;ie.length>se;)g(ie[se++])
o(o.S+o.F*!G,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=M(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!")
for(var t in j)if(j[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!G,"Object",{create:function(e,t){return void 0===t?C(e):X(C(e),t)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te})
var oe=c((function(){F.f(1)}))
o(o.S+o.F*oe,"Object",{getOwnPropertySymbols:function(e){return F.f(b(e))}}),k&&o(o.S+o.F*(!G||c((function(){var e=M()
return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++])
if(r=t=n[1],(_(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Q(t))return t}),n[1]=t,I.apply(k,n)}}),M[N][B]||r(8)(M[N],B,M[N].valueOf),h(M,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){var n=r(21)("meta"),i=r(9),s=r(10),o=r(3).f,a=0,u=Object.isExtensible||function(){return!0},c=!r(14)((function(){return u(Object.preventExtensions({}))})),l=function(e){o(e,n,{value:{i:"O"+ ++a,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e
if(!s(e,n)){if(!u(e))return"F"
if(!t)return"E"
l(e)}return e[n].i},getWeak:function(e,t){if(!s(e,n)){if(!u(e))return!0
if(!t)return!1
l(e)}return e[n].w},onFreeze:function(e){return c&&h.NEED&&u(e)&&!s(e,n)&&l(e),e}}},function(e,t,r){var n=r(20),i=r(51),s=r(36)
e.exports=function(e){var t=n(e),r=i.f
if(r)for(var o,a=r(e),u=s.f,c=0;a.length>c;)u.call(e,o=a[c++])&&t.push(o)
return t}},function(e,t,r){var n=r(16)
e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(11),i=r(52).f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[]
e.exports.f=function(e){return o&&"[object Window]"==s.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(n(e))}},function(e,t,r){var n=r(36),i=r(19),s=r(11),o=r(29),a=r(10),u=r(44),c=Object.getOwnPropertyDescriptor
t.f=r(5)?c:function(e,t){if(e=s(e),t=o(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){r(35)("asyncIterator")},function(e,t,r){r(35)("observable")},function(e,t,r){r(87),e.exports=r(2).Object.keys},function(e,t,r){var n=r(33),i=r(20)
r(88)("keys",(function(){return function(e){return i(n(e))}}))},function(e,t,r){var n=r(7),i=r(2),s=r(14)
e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],o={}
o[e]=t(r),n(n.S+n.F*s((function(){r(1)})),"Object",o)}},function(e,t,r){r(53),r(42),r(50),r(90),r(102),r(103),e.exports=r(2).Promise},function(e,t,r){"use strict"
var n,i,s,o,a=r(13),u=r(0),c=r(17),l=r(54),h=r(7),d=r(9),f=r(18),p=r(91),g=r(92),m=r(55),y=r(56).set,v=r(97)(),_=r(38),b=r(57),D=r(98),A=r(58),E="Promise",C=u.TypeError,w=u.process,S=w&&w.versions,F=S&&S.v8||"",T=u[E],R="process"==l(w),x=function(){},O=i=_.f,P=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[r(1)("species")]=function(e){e(x,x)}
return(R||"function"==typeof PromiseRejectionEvent)&&e.then(x)instanceof t&&0!==F.indexOf("6.6")&&-1===D.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t
return!(!d(e)||"function"!=typeof(t=e.then))&&t},k=function(e,t){if(!e._n){e._n=!0
var r=e._c
v((function(){for(var n=e._v,i=1==e._s,s=0,o=function(t){var r,s,o,a=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain
try{a?(i||(2==e._h&&L(e),e._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&(l.exit(),o=!0)),r===t.promise?c(C("Promise-chain cycle")):(s=M(r))?s.call(r,u,c):u(r)):c(n)}catch(e){l&&!o&&l.exit(),c(e)}};r.length>s;)o(r[s++])
e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){y.call(u,(function(){var t,r,n,i=e._v,s=N(e)
if(s&&(t=b((function(){R?w.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),e._h=R||N(e)?2:1),e._a=void 0,s&&t.e)throw t.v}))},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){y.call(u,(function(){var t
R?w.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},B=function(e){var t=this
t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),k(t,!0))},U=function(e){var t,r=this
if(!r._d){r._d=!0,r=r._w||r
try{if(r===e)throw C("Promise can't be resolved itself");(t=M(e))?v((function(){var n={_w:r,_d:!1}
try{t.call(e,c(U,n,1),c(B,n,1))}catch(e){B.call(n,e)}})):(r._v=e,r._s=1,k(r,!1))}catch(e){B.call({_w:r,_d:!1},e)}}}
P||(T=function(e){p(this,T,E,"_h"),f(e),n.call(this)
try{e(c(U,this,1),c(B,this,1))}catch(e){B.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(99)(T.prototype,{then:function(e,t){var r=O(m(this,T))
return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&k(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new n
this.promise=e,this.resolve=c(U,e,1),this.reject=c(B,e,1)},_.f=O=function(e){return e===T||e===o?new s(e):i(e)}),h(h.G+h.W+h.F*!P,{Promise:T}),r(22)(T,E),r(100)(E),o=r(2)[E],h(h.S+h.F*!P,E,{reject:function(e){var t=O(this)
return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(a||!P),E,{resolve:function(e){return A(a&&this===o?T:this,e)}}),h(h.S+h.F*!(P&&r(101)((function(e){T.all(e).catch(x)}))),E,{all:function(e){var t=this,r=O(t),n=r.resolve,i=r.reject,s=b((function(){var r=[],s=0,o=1
g(e,!1,(function(e){var a=s++,u=!1
r.push(void 0),o++,t.resolve(e).then((function(e){u||(u=!0,r[a]=e,--o||n(r))}),i)})),--o||n(r)}))
return s.e&&i(s.v),r.promise},race:function(e){var t=this,r=O(t),n=r.reject,i=b((function(){g(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}))
return i.e&&n(i.v),r.promise}})},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!")
return e}},function(e,t,r){var n=r(17),i=r(93),s=r(94),o=r(4),a=r(48),u=r(95),c={},l={};(t=e.exports=function(e,t,r,h,d){var f,p,g,m,y=d?function(){return e}:u(e),v=n(r,h,t?2:1),_=0
if("function"!=typeof y)throw TypeError(e+" is not iterable!")
if(s(y)){for(f=a(e.length);f>_;_++)if((m=t?v(o(p=e[_])[0],p[1]):v(e[_]))===c||m===l)return m}else for(g=y.call(e);!(p=g.next()).done;)if((m=i(g,v,p.value,t))===c||m===l)return m}).BREAK=c,t.RETURN=l},function(e,t,r){var n=r(4)
e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var s=e.return
throw void 0!==s&&n(s.call(e)),t}}},function(e,t,r){var n=r(15),i=r(1)("iterator"),s=Array.prototype
e.exports=function(e){return void 0!==e&&(n.Array===e||s[i]===e)}},function(e,t,r){var n=r(54),i=r(1)("iterator"),s=r(15)
e.exports=r(2).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[n(e)]}},function(e,t){e.exports=function(e,t,r){var n=void 0===r
switch(t.length){case 0:return n?e():e.call(r)
case 1:return n?e(t[0]):e.call(r,t[0])
case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1])
case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2])
case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(0),i=r(56).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u="process"==r(16)(o)
e.exports=function(){var e,t,r,c=function(){var n,i
for(u&&(n=o.domain)&&n.exit();e;){i=e.fn,e=e.next
try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()}
if(u)r=function(){o.nextTick(c)}
else if(!s||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0)
r=function(){l.then(c)}}else r=function(){i.call(n,c)}
else{var h=!0,d=document.createTextNode("")
new s(c).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0}
t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){var n=r(0).navigator
e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(8)
e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i])
return e}},function(e,t,r){"use strict"
var n=r(0),i=r(2),s=r(3),o=r(5),a=r(1)("species")
e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e]
o&&t&&!t[a]&&s.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(1)("iterator"),i=!1
try{var s=[7][n]()
s.return=function(){i=!0},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1
var r=!1
try{var s=[7],o=s[n]()
o.next=function(){return{done:r=!0}},s[n]=function(){return o},e(s)}catch(e){}return r}},function(e,t,r){"use strict"
var n=r(7),i=r(2),s=r(0),o=r(55),a=r(58)
n(n.P+n.R,"Promise",{finally:function(e){var t=o(this,i.Promise||s.Promise),r="function"==typeof e
return this.then(r?function(r){return a(t,e()).then((function(){return r}))}:e,r?function(r){return a(t,e()).then((function(){throw r}))}:e)}})},function(e,t,r){"use strict"
var n=r(7),i=r(38),s=r(57)
n(n.S,"Promise",{try:function(e){var t=i.f(this),r=s(e)
return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict"
t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict"
t.__esModule=!0
var n,i=(n=r(106))&&n.__esModule?n:{default:n}
t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r]
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){e.exports={default:r(107),__esModule:!0}},function(e,t,r){r(108)
var n=r(2).Object
e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(7)
n(n.S+n.F*!r(5),"Object",{defineProperty:r(3).f})},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.get=void 0
var n,i=(n=r(6))&&n.__esModule?n:{default:n}
t.get=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3]
if("function"!=typeof t||"function"!=typeof r)throw new TypeError("One of the specified callbacks is not a function.")
var s=new i.default.XMLHttpRequest
s.withCredentials=n,s.open("GET",e,!0),s.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):r(this))},s.send()}},function(e,t,r){"use strict";(function(e){var n=r(111),i=r(112),s=r(113)
function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length")
return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r)
if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string")
return h(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number')
return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds")
if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds")
return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding')
var n=0|p(t,r),i=(e=a(e,n)).write(t,r)
return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|f(t.length)
return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):d(e,t)
if("Buffer"===t.type&&s(t.data))return d(e,t.data)}var n
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number')
if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(l(t),e=a(e,t<0?0:0|f(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0
return e}function d(e,t){var r=t.length<0?0:0|f(t.length)
e=a(e,r)
for(var n=0;n<r;n+=1)e[n]=255&t[n]
return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes")
return 0|e}function p(e,t){if(u.isBuffer(e))return e.length
if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength
"string"!=typeof e&&(e=""+e)
var r=e.length
if(0===r)return 0
for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r
case"utf8":case"utf-8":case void 0:return j(e).length
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r
case"hex":return r>>>1
case"base64":return q(e).length
default:if(n)return j(e).length
t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1
if((void 0===t||t<0)&&(t=0),t>this.length)return""
if((void 0===r||r>this.length)&&(r=this.length),r<=0)return""
if((r>>>=0)<=(t>>>=0))return""
for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,r)
case"utf8":case"utf-8":return S(this,t,r)
case"ascii":return T(this,t,r)
case"latin1":case"binary":return R(this,t,r)
case"base64":return w(this,t,r)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r)
default:if(n)throw new TypeError("Unknown encoding: "+e)
e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t]
e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1
if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1
r=e.length-1}else if(r<0){if(!i)return-1
r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i)
if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i)
throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var s,o=1,a=e.length,u=t.length
if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1
o=2,a/=2,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1
for(s=r;s<a;s++)if(c(e,s)===c(t,-1===l?0:s-l)){if(-1===l&&(l=s),s-l+1===u)return l*o}else-1!==l&&(s-=s-l),l=-1}else for(r+u>a&&(r=a-u),s=r;s>=0;s--){for(var h=!0,d=0;d<u;d++)if(c(e,s+d)!==c(t,d)){h=!1
break}if(h)return s}return-1}function _(e,t,r,n){r=Number(r)||0
var i=e.length-r
n?(n=Number(n))>i&&(n=i):n=i
var s=t.length
if(s%2!=0)throw new TypeError("Invalid hex string")
n>s/2&&(n=s/2)
for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16)
if(isNaN(a))return o
e[r+o]=a}return o}function b(e,t,r,n){return H(j(t,e.length-r),e,r,n)}function D(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r))
return t}(t),e,r,n)}function A(e,t,r,n){return D(e,t,r,n)}function E(e,t,r,n){return H(q(t),e,r,n)}function C(e,t,r,n){return H(function(e,t){for(var r,n,i,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,s.push(i),s.push(n)
return s}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r)
for(var n=[],i=t;i<r;){var s,o,a,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1
if(i+h<=r)switch(h){case 1:c<128&&(l=c)
break
case 2:128==(192&(s=e[i+1]))&&(u=(31&c)<<6|63&s)>127&&(l=u)
break
case 3:s=e[i+1],o=e[i+2],128==(192&s)&&128==(192&o)&&(u=(15&c)<<12|(63&s)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u)
break
case 4:s=e[i+1],o=e[i+2],a=e[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(u=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(e){var t=e.length
if(t<=F)return String.fromCharCode.apply(String,e)
for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=F))
return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1)
return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers")
if(e===t)return 0
for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i]
break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers')
if(0===e.length)return u.alloc(0)
var r
if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length
var n=u.allocUnsafe(t),i=0
for(r=0;r<e.length;++r){var o=e[r]
if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers')
o.copy(n,i),i+=o.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length
if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits")
for(var t=0;t<e;t+=2)m(this,t,t+1)
return this},u.prototype.swap32=function(){var e=this.length
if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits")
for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2)
return this},u.prototype.swap64=function(){var e=this.length
if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits")
for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4)
return this},u.prototype.toString=function(){var e=0|this.length
return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer")
return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES
return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer")
if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index")
if(n>=i&&t>=r)return 0
if(n>=i)return-1
if(t>=r)return 1
if(this===e)return 0
for(var s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),a=Math.min(s,o),c=this.slice(n,i),l=e.slice(t,r),h=0;h<a;++h)if(c[h]!==l[h]){s=c[h],o=l[h]
break}return s<o?-1:o<s?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0
else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0
else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")
t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t
if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds")
n||(n="utf8")
for(var s=!1;;)switch(n){case"hex":return _(this,e,t,r)
case"utf8":case"utf-8":return b(this,e,t,r)
case"ascii":return D(this,e,t,r)
case"latin1":case"binary":return A(this,e,t,r)
case"base64":return E(this,e,t,r)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r)
default:if(s)throw new TypeError("Unknown encoding: "+n)
n=(""+n).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}}
var F=4096
function T(e,t,r){var n=""
r=Math.min(e.length,r)
for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i])
return n}function R(e,t,r){var n=""
r=Math.min(e.length,r)
for(var i=t;i<r;++i)n+=String.fromCharCode(e[i])
return n}function x(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i)
for(var s="",o=t;o<r;++o)s+=(n=e[o])<16?"0"+n.toString(16):n.toString(16)
return s}function O(e,t,r){for(var n=e.slice(t,r),i="",s=0;s<n.length;s+=2)i+=String.fromCharCode(n[s]+256*n[s+1])
return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint")
if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,s){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance')
if(t>i||t<s)throw new RangeError('"value" argument is out of bounds')
if(r+n>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1)
for(var i=0,s=Math.min(e.length-r,2);i<s;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1)
for(var i=0,s=Math.min(e.length-r,4);i<s;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range")
if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,s){return s||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,s){return s||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length
if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype
else{var i=t-e
r=new u(i,void 0)
for(var s=0;s<i;++s)r[s]=this[s+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length)
for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i
return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length)
for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i
return n},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length)
for(var n=this[e],i=1,s=0;++s<t&&(i*=256);)n+=this[e+s]*i
return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length)
for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i
return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length)
var r=this[e]|this[e+1]<<8
return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length)
var r=this[e+1]|this[e]<<8
return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0)
var i=1,s=0
for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255
return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0)
var i=r-1,s=1
for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255
return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1)
M(this,e,t,r,i-1,-i)}var s=0,o=1,a=0
for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255
return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1)
M(this,e,t,r,i-1,-i)}var s=r-1,o=1,a=0
for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255
return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0
if(0===e.length||0===this.length)return 0
if(t<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),e.length-t<n-r&&(n=e.length-t+r)
var i,s=n-r
if(this===e&&r<t&&t<n)for(i=s-1;i>=0;--i)e[i+t]=this[i+r]
else if(s<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+r]
else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),t)
return s},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0)
i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string")
if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255)
if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index")
if(r<=t)return this
var s
if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s<r;++s)this[s]=e
else{var o=u.isBuffer(e)?e:j(new u(e,n).toString()),a=o.length
for(s=0;s<r-t;++s)this[s+t]=o[s%a]}return this}
var U=/[^+\/0-9A-Za-z-_]/g
function j(e,t){var r
t=t||1/0
for(var n=e.length,i=null,s=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189)
continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189)
continue}i=r
continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r
continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189)
if(i=null,r<128){if((t-=1)<0)break
s.push(r)}else if(r<2048){if((t-=2)<0)break
s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break
s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point")
if((t-=4)<0)break
s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return""
for(;e.length%4!=0;)e+="="
return e}(e))}function H(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i]
return i}}).call(t,r(41))},function(e,t,r){"use strict"
t.byteLength=function(e){var t=u(e),r=t[0],n=t[1]
return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),o=n[0],a=n[1],c=new s(function(e,t,r){return 3*(t+r)/4-r}(0,o,a)),l=0,h=a>0?o-4:o
for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t
return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,u=r-i;a<u;a+=o)s.push(c(e,a,a+o>u?u:a+o))
return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")}
for(var n=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],i[o.charCodeAt(a)]=a
function u(e){var t=e.length
if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
var r=e.indexOf("=")
return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,s,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s])
return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,d=r?-1:1,f=e[t+h]
for(h+=d,s=f&(1<<-l)-1,f>>=-l,l+=a;l>0;s=256*s+e[t+h],h+=d,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=n;l>0;o=256*o+e[t+h],h+=d,l-=8);if(0===s)s=1-c
else{if(s===u)return o?NaN:1/0*(f?-1:1)
o+=Math.pow(2,n),s-=c}return(f?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,u,c=8*s-i-1,l=(1<<c)-1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0
for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(o++,u/=2),o+h>=l?(a=0,o=l):o+h>=1?(a=(t*u-1)*Math.pow(2,i),o+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;e[r+f]=255&o,f+=p,o/=256,c-=8);e[r+f-p]|=128*g}},function(e,t){var r={}.toString
e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.buildTagFireAuditEvent=t.buildTmsLoadEvent=t.fireTrackingEvent=void 0
var n,i=(n=r(25))&&n.__esModule?n:{default:n},s=a(r(12)),o=a(r(59))
function a(e){if(e&&e.__esModule)return e
var t={}
if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])
return t.default=e,t}function u(e,t){return"urn:li:externalMarketingTag:("+function(e){var t=e.data["ut.profile"],r=e.cfg.v
return"urn:li:tagManagementSystemProfile:("+s.TAG_MANAGEMENT_SYSTEM_USED+","+t+","+r+")"}(e)+","+parseInt(t)+")"}t.fireTrackingEvent=function(e,t){!function(e){return"object"===(void 0===e?"undefined":(0,i.default)(e))&&"function"==typeof e.fireTrackingEvent}(e)?console.error("Unable to fire tracking event"):e.fireTrackingEvent(t.info.name,t.body)},t.buildTmsLoadEvent=function(){return{info:{name:s.CUSTOM_EVENTS_TMS_LOAD_EVENT},body:{header:{},requestHeader:{}}}},t.buildTagFireAuditEvent=function(e){var t=o.getTagsFired(e).map((function(t){return function(e,t){return{tagUrn:u(e,t)}}(e,t)}))
if(0!==t.length)return{info:{name:s.CUSTOM_EVENTS_TAG_FIRE_AUDIT_EVENT},body:{header:{},requestHeader:{},tags:t}}}},function(e,t,r){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=s(r(40)),i=s(r(6))
function s(e){return e&&e.__esModule?e:{default:e}}var o=n.default&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(i.default.navigator.userAgent)
t.default=o}])},e.exports=t()},62505:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getGraphQLSource=t.getGraphQLQueryId=t.isGraphQLQuery=t.isGraphQLFragment=t.getQueryTokenByQuerySource=t.lookup=t.register=t.resetRegisteredQueries=void 0
const r=new Map
function n(e,t,r){if(e)return Object.freeze(Object.create(null))
if("query"===t.kind||"mutation"===t.kind||"subscription"===t.kind){const e=t
if(e.ast)return Object.assign(Object.create(null),e.ast,r)}return Object.freeze(Object.assign(Object.create(null),r))}function i(e){return r.get(e)}function s(e,t){const r=i(e)
if(void 0===r)throw new Error(`No GraphQL query or fragment metadata associated with the given token: ${JSON.stringify(e)}`)
return r.kind===t}t.resetRegisteredQueries=function(){r.clear()},t.register=function(e,t){let i
return i=e?n(!0,t):"query"===t.kind||"mutation"===t.kind?n(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):n(!1,t,{$debug:{name:t.name,kind:t.kind}}),r.set(i,t),i},t.lookup=i,t.getQueryTokenByQuerySource=function(e){const t=[]
for(const[n,i]of r)"query"!==i.kind&&"mutation"!==i.kind||i.source!==e||t.push(n)
if(t.length>1)throw new Error("Query source is found in multiple query files")
return t[0]},t.isGraphQLFragment=function(e){return s(e,"fragment")},t.isGraphQLQuery=function(e){return s(e,"query")},t.getGraphQLQueryId=function(e){const t=i(e)
if(void 0===t||"query"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
return t.id},t.getGraphQLSource=function(e){const t=i(e)
if(void 0===t||"query"!==t.kind)throw new Error(`No GraphQL query metadata associated with the given token: ${JSON.stringify(e)}`)
if(!t.source)throw new Error(`No GraphQL source associated with the given token: ${JSON.stringify(e)}`)
return t.source}},10210:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{DomCareCopilot:()=>q})
const n=/urn:li:careChatWorkflow:(.+)/
function i(e,[t,r],n){return`${e}${0===n?"?":"&"}${encodeURIComponent(t)}=${encodeURIComponent(r)}`}function s(e,t){return`care:concierge:copilot:${e}${t?`:${t}`:""}`}const o=s("assistInteraction"),a=s("dismissSession"),u=s("endSession"),c=s("tracking","hostAppEvent"),l=s("hostError"),h=s("resetIdleTimer"),d=s("resize"),f=s("sendMessage","static"),p=s("setTheme"),g=s("sendMessage","stateful"),m=s("startSession"),y=s("tracking","metadata"),v=s("updateHostState"),_=s("statusChange","chatAvailability"),b=s("connected"),D=s("conciergeError"),A=s("statusChange","conciergeNotification"),E=s("statusChange","conciergeState"),C=s("tracking","conciergeEvent"),w=s("dismissSession","cancelled"),S=s("dismissSession","confirmed"),F=s("dismissSession","shown"),T=s("sessionEnded"),R=s("sessionStarted"),x=s("inAppAction"),O=s("statefulMessage","interaction"),P=s("statefulMessage","updateState")
function M(e,t){return{type:e,payload:t}}let k=1
class I{constructor(){this._listeners={}}addListener(e,t){const r=k++
return this._listeners[e]||(this._listeners[e]={}),this._listeners[e][r]=t,this}dispatch(e){return this._dispatchMessage(e),this}removeListener(e,t){return this._removeListener(e,t),this}_removeListener(e,t){const r=this._getListenerIds(e)
for(let n=0;n<r.length;n++){const i=r[n]
this._listeners[e][i]===t&&this._removeListenerById(e,i)}return this}_dispatchMessage({type:e,payload:t}){const r=this._getListenerIds(e)
for(let n=0;n<r.length;n++){const i=r[n]
this._listeners[e][i].call(this,t)}}_getListenerIds(e){var t
return Object.keys((null===(t=this._listeners)||void 0===t?void 0:t[e])||{})}_removeListenerById(e,t){var r,n
e&&t&&(null===(n=null===(r=this._listeners)||void 0===r?void 0:r[e])||void 0===n?void 0:n[t])&&(delete this._listeners[e][t],this._getListenerIds(e).length||delete this._listeners[e])}}const N={}
class L{constructor(){this.messageBus=new I}destroy(){return this.messageBus=new I,this}addHostConnectedListener(e){return this.messageBus.addListener(b,e),this}sendHostConnectedMessage(){return this.messageBus.dispatch(M(b)),this}removeHostConnectedListener(e){return this.messageBus.removeListener(b,e),this}addAssistInteractionListener(e){return this.messageBus.addListener(o,e),this}sendAssistInteractionMessage(e){const t={targetId:e}
return this.messageBus.dispatch((e=>M(o,e))(t)),this}removeAssistInteractionListener(e){return this.messageBus.removeListener(o,e),this}addChatAvailabilityListener(e){return this.messageBus.addListener(_,e),this}sendChatAvailabilityMessage(e,t){const r={isChatAvailable:e,status:t}
return this.messageBus.dispatch((e=>M(_,e))(r)),this}removeChatAvailabilityListener(e){return this.messageBus.removeListener(_,e),this}addConciergeStateChangeListener(e){return this.messageBus.addListener(E,e),this}sendConciergeStateChangeMessage(e){const{conciergeState:t}=e,r={conciergeState:t}
return this.messageBus.dispatch((e=>M(E,e))(r)),this}removeConciergeStateChangeListener(e){return this.messageBus.removeListener(E,e),this}addConciergeErrorListener(e){return this.messageBus.addListener(D,e),this}sendConciergeErrorMessage(e,t,r){const n={error:e,errorDescription:t,errorType:r}
return this.messageBus.dispatch((e=>M(D,e))(n)),this}removeConciergeErrorListener(e){return this.messageBus.removeListener(D,e),this}addConciergeNotificationListener(e){return this.messageBus.addListener(A,e),this}sendConciergeNotificationMessage(e,t){const r={notification:e,notificationType:t}
return this.messageBus.dispatch((e=>M(A,e))(r)),this}removeConciergeNotificationListener(e){return this.messageBus.removeListener(A,e),this}addConciergeTrackingEventListener(e){return this.messageBus.addListener(C,e),this}sendConciergeTrackingEventMessage(e){return this.messageBus.dispatch((e=>M(C,e))(e)),this}removeConciergeTrackingEventListener(e){return this.messageBus.removeListener(C,e),this}addDismissCancelledListener(e){return this.messageBus.addListener(w,e),this}sendDismissCancelledMessage(){return this.messageBus.dispatch(M(w)),this}removeDismissCancelledListener(e){return this.messageBus.removeListener(w,e),this}addDismissConfirmedListener(e){return this.messageBus.addListener(S,e),this}sendDismissConfirmedMessage(){return this.messageBus.dispatch(M(S)),this}removeDismissConfirmedListener(e){return this.messageBus.removeListener(S,e),this}addDismissSessionListener(e){return this.messageBus.addListener(a,e),this}sendDismissSessionMessage(){return this.messageBus.dispatch(M(a)),this}removeDismissSessionListener(e){return this.messageBus.removeListener(a,e),this}addDismissShownListener(e){return this.messageBus.addListener(F,e),this}sendDismissShownMessage(){return this.messageBus.dispatch(M(F)),this}removeDismissShownListener(e){return this.messageBus.removeListener(F,e),this}addEndSessionListener(e){return this.messageBus.addListener(u,e),this}sendEndSessionMessage(e){const t={reason:e}
return this.messageBus.dispatch((e=>M(u,e))(t)),this}removeEndSessionListener(e){return this.messageBus.removeListener(u,e),this}addHostErrorListener(e){return this.messageBus.addListener(l,e),this}sendHostErrorMessage(e,t,r){const n={error:e,errorDescription:t,errorType:r}
return this.messageBus.dispatch((e=>M(l,e))(n)),this}removeHostErrorListener(e){return this.messageBus.removeListener(l,e),this}addResetIdleTimerListener(e){return this.messageBus.addListener(h,e),this}sendResetIdleTimerMessage(){return this.messageBus.dispatch(M(h)),this}removeResetIdleTimerListener(e){return this.messageBus.removeListener(h,e),this}addHostAppTrackingEventListener(e){return this.messageBus.addListener(c,e),this}sendHostAppTrackingEventMessage(e){return this.messageBus.dispatch((e=>M(c,e))(e)),this}removeHostAppTrackingEventListener(e){return this.messageBus.removeListener(c,e),this}addTrackingMetadataListener(e){return this.messageBus.addListener(y,e),this}sendTrackingMetadataMessage(e){return this.messageBus.dispatch((e=>M(y,e))(e)),this}removeTrackingMetadataListener(e){return this.messageBus.removeListener(y,e),this}addResizeWindowListener(e){return this.messageBus.addListener(d,e),this}sendResizeWindowMessage(e,t){const r={width:e,height:t}
return this.messageBus.dispatch((e=>M(d,e))(r)),this}removeResizeWindowListener(e){return this.messageBus.removeListener(d,e),this}addSendMessageListener(e){return this.messageBus.addListener(f,e),this}sendMessage(e){if(!e)throw new Error("sendMessage requires content")
const t={content:e}
return this.messageBus.dispatch((e=>M(f,e))(t)),this}removeSendMessageListener(e){return this.messageBus.removeListener(f,e),this}addSetThemeListener(e){return this.messageBus.addListener(p,e),this}sendSetThemeMessage(e){if(!e)throw new Error("sendSetThemeMessage requires themeKey")
const t={themeKey:e}
return this.messageBus.dispatch((e=>M(p,e))(t)),this}removeSetThemeListener(e){return this.messageBus.removeListener(p,e),this}addSendStatefulMessageListener(e){return this.messageBus.addListener(g,e),this}sendStatefulMessage(e,t,r=N){if(!e)throw new Error("sendStatefulMessage requires messageUuid")
if(!t)throw new Error("sendStatefulMessage requires a type")
const n=Object.assign({messageUuid:e,type:t},r)
return this.messageBus.dispatch((e=>M(g,e))(n)),this}removeSendStatefulMessageListener(e){return this.messageBus.removeListener(g,e),this}addSessionEndedListener(e){return this.messageBus.addListener(T,e),this}sendSessionEndedMessage(){return this.messageBus.dispatch(M(T)),this}removeSessionEndedListener(e){return this.messageBus.removeListener(T,e),this}addSessionStartedListener(e){return this.messageBus.addListener(R,e),this}sendSessionStartedMessage(){return this.messageBus.dispatch(M(R)),this}removeSessionStartedListener(e){return this.messageBus.removeListener(R,e),this}addStartSessionListener(e){return this.messageBus.addListener(m,e),this}sendStartSessionMessage(e){const t={visitor:e}
return this.messageBus.dispatch((e=>M(m,e))(t)),this}removeStartSessionListener(e){return this.messageBus.removeListener(m,e),this}addUpdateHostStateListener(e){return this.messageBus.addListener(v,e),this}sendUpdateHostStateMessage(e){const t={hostState:e}
return this.messageBus.dispatch((e=>M(v,e))(t)),this}removeUpdateHostStateListener(e){return this.messageBus.removeListener(v,e),this}addInAppActionListener(e){return this.messageBus.addListener(x,e),this}sendInAppActionMessage(e){const t={encodedJson:e}
return this.messageBus.dispatch((e=>M(x,e))(t)),this}removeInAppActionListener(e){return this.messageBus.removeListener(x,e),this}addStatefulMessageInteractionListener(e){return this.messageBus.addListener(O,e),this}sendStatefulMessageInteractionMessage(e){const t={buttonUuid:e}
return this.messageBus.dispatch((e=>M(O,e))(t)),this}removeStatefulMessageInteractionListener(e){return this.messageBus.removeListener(O,e),this}addUpdateStatefulMessageListener(e){return this.messageBus.addListener(P,e),this}sendUpdateStatefulMessage(e,t){if(!e)throw new Error("sendStatefulMessage requires messageUuid")
const r=Object.assign(Object.assign({},t),{messageUuid:e})
return this.messageBus.dispatch((e=>M(P,e))(r)),this}removeUpdateStatefulMessageListener(e){return this.messageBus.removeListener(P,e),this}}const B=/https:\/\/(.+)\.linkedin(?:-ei)?.(?:com|cn|biz)$/,U={DEV:"",EI:"https://www.linkedin-ei.com",PROD:"https://www.linkedin.com",PEMBERLY:"https://pemberly.www.linkedin.com:4443",MICROSITE:""}
let j=1
class q{get id(){return this._id}get isDestroying(){return this._isDestroying}get messenger(){return this._messenger}get status(){return this._chatStatus}get renderStyle(){return this._chatRenderStyle}constructor(e){this._iframe=null,this._iframePort=null,this._messenger=null,this._isDestroying=!1,this._config=e,this._baseUri=U[this._config.mode],this._chatStatus="UNKNOWN",this._id=j++,this._isChatAvailable=!1,this._chatRenderStyle="INLINE",this._consumerRequestedSize={width:400,height:600},this._currentSize={width:400,height:600},this._windowSize={width:window.innerWidth,height:window.innerHeight},this._messenger=new L,this._handleIFrameMessage=this._handleIFrameMessage.bind(this),this._handleCareWebPortMessage=this._handleCareWebPortMessage.bind(this),this._handleWindowResize=this._handleWindowResize.bind(this),this.resize=this.resize.bind(this)}_debugLog(e,...t){this._config.debug&&console.warn(e,...t)}_createIFrame(){var e
const t=this._config,r=document.createElement("iframe")
return r.classList.add("care-chat-embed"),r.height="600",r.width="400",r.style.border="none",r.title=(null===(e=t.optionalChatConfig)||void 0===e?void 0:e.iframeTitle)||"",r.src=this._createIFrameSource(),r}_createIFrameSource(){const e=this._config,t=encodeURIComponent(function(e){var t
if(n.test(e))return(null===(t=n.exec(e))||void 0===t?void 0:t[1])||""
throw new Error(`Invalid CareChatWorkflowUrn: "${e}"`)}(e.workflow)),r=`${this._baseUri}/care/embed/copilot/${encodeURIComponent(t)}`,s={hostApplicationName:e.hostApplication,origin:window.location.origin,useDefaultAvailabilityButton:"false",vanilla:"true",vanillaClientId:`${this.id}`}
return e.uiThemeKey&&(s.uiThemeKey=e.uiThemeKey),e.interfaceLocale&&(s._l=e.interfaceLocale),e.optionalChatConfig&&(void 0!==e.optionalChatConfig.showDismiss&&!1===e.optionalChatConfig.showDismiss&&(s.showDismiss=`${e.optionalChatConfig.showDismiss}`),void 0!==e.optionalChatConfig.hideWidgetHeaderUi&&!0===e.optionalChatConfig.hideWidgetHeaderUi&&(s.hideHeader=`${e.optionalChatConfig.hideWidgetHeaderUi}`)),Object.entries(s).reduce(i,r)}_canHandleMessage(e){return!!(e.origin&&e.data&&e.data.type)&&("DEV"===this._config.mode?e.origin===window.location.origin:B.test(e.origin))}_changeStatus(e,t){const r=this._chatStatus
void 0!==t&&(this._isChatAvailable=t),this._chatStatus=e,r!==this.status&&this.messenger.sendChatAvailabilityMessage(this._isChatAvailable,e)}_handleIFrameMessage(e){this._canHandleMessage(e)?"care:web:copilot:init"===e.data.type&&(this._iframePort||e.data.senderId!==this.id?this._debugLog("Ignoring handshake because I already have a connection.",e,this):this._connectPorts(e)):this._debugLog("Ignoring message from "+e.origin,e)}_handleCareWebPortMessage(e){var t
switch(null===(t=e.data)||void 0===t?void 0:t.type){case"care:web:copilot:availabilityChange":{const{data:t,workflowType:r}=e.data||{},{isChatAvailable:n,status:i}=t,s=function(e){switch(e){case"AVAILABLE":return"CHAT_AVAILABLE"
case"UNAVAILABLE":return"CHAT_UNAVAILABLE"
case"CHECKING_AVAILABILITY":return"CHECKING_AVAILABILITY"
default:return console.warn("Cannot translate status",e),e}}(i)
r&&this._setChatRenderStyle(r),this._changeStatus(s,n)
break}case"care:web:copilot:conciergeNotification":{const{data:t}=e.data||{},{notification:r,notificationType:n}=t||{}
this.messenger.sendConciergeNotificationMessage(r,n)
break}case"care:web:copilot:conciergeStateChange":{const{data:t}=e.data||{},{conciergeState:r}=t||{}
this.messenger.sendConciergeStateChangeMessage(r)
break}case"care:web:copilot:started":this.messenger.sendSessionStartedMessage(),this._changeStatus("CHAT_STARTED")
break
case"care:web:copilot:tracking:conciergeEvent":{const{data:t}=e.data||{}
this.messenger.sendConciergeTrackingEventMessage(t)
break}case"care:web:copilot:inAppAction":{const{data:t}=e.data||{},{encodedJson:r}=t||{}
this.messenger.sendInAppActionMessage(r)
break}case"care:web:copilot:statefulMessageInteraction":{const{data:t}=e.data||{},{buttonUuid:r}=t||{}
this.messenger.sendStatefulMessageInteractionMessage(r)
break}case"care:web:copilot:dismiss":this.messenger.sendDismissShownMessage(),this._changeStatus("CHAT_DISMISS")
break
case"care:web:copilot:dismissCancelled":this.messenger.sendDismissCancelledMessage()
break
case"care:web:copilot:dismissConfirmed":this.messenger.sendDismissConfirmedMessage()
break
case"care:web:copilot:ended":this.messenger.sendSessionEndedMessage(),this._changeStatus("CHAT_ENDED"),this._isDestroying&&this._handleDestroy()}}_initializeMessageListeners(){this.messenger.addAssistInteractionListener(this._listenerForAssistInteraction.bind(this)).addConciergeErrorListener(this._listenerForConciergeError.bind(this)).addDismissSessionListener(this._listenerForDismissSession.bind(this)).addEndSessionListener(this._listenerForEndSession.bind(this)).addHostAppTrackingEventListener(this._listenerForHostAppTrackingEvent.bind(this)).addHostErrorListener(this._listenerForHostError.bind(this)).addResetIdleTimerListener(this.idleStateChanged.bind(this)).addResizeWindowListener(this._listenerForResizeWindow.bind(this)).addSendMessageListener(this._listenerForSendMessage.bind(this)).addSendStatefulMessageListener(this._listenerForSendStatefulMessage.bind(this)).addStartSessionListener(this._listenerForStartSession.bind(this)).addTrackingMetadataListener(this._listenerForTrackingMetadata.bind(this)).addUpdateHostStateListener(this._listenerForUpdateHostState.bind(this)).addUpdateStatefulMessageListener(this._listenerForUpdateStatefulMessage.bind(this)).addSetThemeListener(this._listenerForSetTheme.bind(this))}_listenerForAssistInteraction(e){const{targetId:t}=e||{}
this._postMessage({type:"care:web:copilot:assistButtonInteraction",data:{targetId:t},senderId:this.id})}_listenerForDismissSession(){this.dismissSession()}_listenerForEndSession(e){const{reason:t}=e||{}
this.endSession(t)}_listenerForConciergeError(e){const{error:t,errorDescription:r,errorType:n}=e||{}
this._postMessage({type:"care:web:copilot:conciergeError",data:{error:t,errorDescription:r,errorType:n},senderId:this.id})}_listenerForHostAppTrackingEvent(e){this._postMessage({type:"care:web:copilot:tracking:hostAppEvent",data:e,senderId:this.id})}_listenerForHostError(e){const{error:t,errorDescription:r,errorType:n}=e||{}
this._postMessage({type:"care:web:copilot:hostError",data:{error:t,errorDescription:r,errorType:n},senderId:this.id})}_listenerForResizeWindow(e){const{height:t,width:r}=e
this.resize(r,t)}_listenerForSendMessage(e){this._postMessage({type:"care:web:copilot:sendMessage",data:e,senderId:this.id})}_listenerForSetTheme(e){this._postMessage({type:"care:web:copilot:setTheme",data:e,senderId:this.id})}_listenerForSendStatefulMessage(e){this._postMessage({type:"care:web:copilot:sendStatefulMessage",data:e,senderId:this.id})}_listenerForStartSession(e){const{visitor:t}=e
this.startSession(t)}_listenerForTrackingMetadata(e){this._postMessage({type:"care:web:copilot:tracking:metadata",data:e,senderId:this.id})}_listenerForUpdateHostState(e){this._postMessage({type:"care:web:copilot:hostUpdate",data:{hostState:e},senderId:this.id})}_listenerForUpdateStatefulMessage(e){this._postMessage({type:"care:web:copilot:statefulMessage:updateState",data:e,senderId:this.id})}_setChatRenderStyle(e){this._chatRenderStyle="com.linkedin.care.LegacyChatWorkflowCapabilities"===e?"NEW_WINDOW":"INLINE"}_postMessage(e){this._iframePort?this._iframePort.postMessage(e):this._debugLog("Trying to postMessage without a port. Ignoring.")}_connectPorts(e){this._iframePort=e.ports[0],this._iframePort.onmessage=this._handleCareWebPortMessage,this._postMessage({type:"care:web:copilot:connect",data:{optionalChatConfig:this._config.optionalChatConfig},senderId:this.id}),this._currentSize&&this.resize(this._currentSize.width,this._currentSize.height),this.messenger.sendHostConnectedMessage(),this._changeStatus("CONNECTED")}_getContainerSize(){const{width:e,height:t}=this._currentSize,{width:r,height:n}=this._consumerRequestedSize,{width:i,height:s}=this._windowSize
let o=t,a=e
return n<s?o=n:(n>=s||t<s)&&(o=s),r<i?a=r:(r>=i||e<i)&&(a=i),{height:o,width:a}}_handleDestroy(){var e
this._iframe&&(null===(e=this._iframe.parentElement)||void 0===e||e.removeChild(this._iframe),this._iframe=null),this._iframePort&&(this._iframePort.close(),this._iframePort.onmessage=null,this._iframePort=null),this._messenger&&(this._messenger.destroy(),this._messenger=null),window.removeEventListener("message",this._handleIFrameMessage),window.removeEventListener("resize",this._handleWindowResize),this._isDestroying=!1}_handleWindowResize(){const{width:e,height:t}=this._consumerRequestedSize,{innerWidth:r,innerHeight:n}=window
this._windowSize.height=n,this._windowSize.width=r,this.resize(e,t)}embed(e){if(!e)throw new Error("Cannot embed because target is null. It must be an HTMLElement.")
if(!(e instanceof HTMLElement))throw new Error("Cannot embed because target is not an HTMLElement.")
if(this._iframe)throw new Error("Cannot embed because this instance is already embedded. You must call `destroy()` before embedding again.")
window.addEventListener("message",this._handleIFrameMessage),window.addEventListener("resize",this._handleWindowResize),this._iframe=this._createIFrame(),this._initializeMessageListeners(),e.appendChild(this._iframe)}destroy(){this._isDestroying=!0,"CHAT_STARTED"===this._chatStatus?this.endSession("DESTROYED"):this._handleDestroy()}endSession(e){this._postMessage({type:"care:web:copilot:end",data:{reason:e},senderId:this.id})}idleStateChanged(){this._postMessage({type:"care:web:copilot:resetIdleTimer",senderId:this.id})}startSession(e){this._postMessage({type:"care:web:copilot:start",data:{visitor:e},senderId:this.id})}dismissSession(){this._postMessage({type:"care:web:copilot:dismiss",senderId:this.id})}resize(e,t){this._consumerRequestedSize={width:e,height:t},this._currentSize=this._getContainerSize(),this._postMessage({type:"care:web:copilot:resize",data:this._currentSize,senderId:this.id}),this._iframe&&(this._iframe.width=`${this._currentSize.width}`,this._iframe.height=`${this._currentSize.height}`)}}},86258:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>a})
var n=r(99745),i=r(6314),s=r(83078),o=r(60324)
function a(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1)
var a=e.getBoundingClientRect(),u=1,c=1
t&&(0,n.Re)(e)&&(u=e.offsetWidth>0&&(0,i.NM)(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,i.NM)(a.height)/e.offsetHeight||1)
var l=((0,n.kK)(e)?(0,s.Z)(e):window).visualViewport,h=!(0,o.Z)()&&r,d=(a.left+(h&&l?l.offsetLeft:0))/u,f=(a.top+(h&&l?l.offsetTop:0))/c,p=a.width/u,g=a.height/c
return{width:p,height:g,top:f,right:d+p,bottom:f+g,left:d,x:d,y:f}}},81410:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(83078)
function i(e){return(0,n.Z)(e).getComputedStyle(e)}},92478:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(99745)
function i(e){return(((0,n.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},92642:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(86258)
function i(e){var t=(0,n.Z)(e),r=e.offsetWidth,i=e.offsetHeight
return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}},48550:(e,t,r)=>{"use strict"
function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{Z:()=>n})},27258:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>h})
var n=r(83078),i=r(48550),s=r(81410),o=r(99745)
function a(e){return["table","td","th"].indexOf((0,i.Z)(e))>=0}var u=r(70714),c=r(23414)
function l(e){return(0,o.Re)(e)&&"fixed"!==(0,s.Z)(e).position?e.offsetParent:null}function h(e){for(var t=(0,n.Z)(e),r=l(e);r&&a(r)&&"static"===(0,s.Z)(r).position;)r=l(r)
return r&&("html"===(0,i.Z)(r)||"body"===(0,i.Z)(r)&&"static"===(0,s.Z)(r).position)?t:r||function(e){var t=/firefox/i.test((0,c.Z)())
if(/Trident/i.test((0,c.Z)())&&(0,o.Re)(e)&&"fixed"===(0,s.Z)(e).position)return null
var r=(0,u.Z)(e)
for((0,o.Zq)(r)&&(r=r.host);(0,o.Re)(r)&&["html","body"].indexOf((0,i.Z)(r))<0;){var n=(0,s.Z)(r)
if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r
r=r.parentNode}return null}(e)||t}},70714:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>o})
var n=r(48550),i=r(92478),s=r(99745)
function o(e){return"html"===(0,n.Z)(e)?e:e.assignedSlot||e.parentNode||((0,s.Zq)(e)?e.host:null)||(0,i.Z)(e)}},83078:(e,t,r)=>{"use strict"
function n(e){if(null==e)return window
if("[object Window]"!==e.toString()){var t=e.ownerDocument
return t&&t.defaultView||window}return e}r.d(t,{Z:()=>n})},21922:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(83078)
function i(e){var t=(0,n.Z)(e)
return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},27766:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>o})
var n=r(86258),i=r(92478),s=r(21922)
function o(e){return(0,n.Z)((0,i.Z)(e)).left+(0,s.Z)(e).scrollLeft}},99745:(e,t,r)=>{"use strict"
r.d(t,{Re:()=>s,Zq:()=>o,kK:()=>i})
var n=r(83078)
function i(e){return e instanceof(0,n.Z)(e).Element||e instanceof Element}function s(e){return e instanceof(0,n.Z)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},60324:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(23414)
function i(){return!/^((?!chrome|android).)*safari/i.test((0,n.Z)())}},81079:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>i})
var n=r(81410)
function i(e){var t=(0,n.Z)(e),r=t.overflow,i=t.overflowX,s=t.overflowY
return/auto|scroll|overlay|hidden/.test(r+s+i)}},99177:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>c})
var n=r(70714),i=r(81079),s=r(48550),o=r(99745)
function a(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,o.Re)(e)&&(0,i.Z)(e)?e:a((0,n.Z)(e))}var u=r(83078)
function c(e,t){var r
void 0===t&&(t=[])
var s=a(e),o=s===(null==(r=e.ownerDocument)?void 0:r.body),l=(0,u.Z)(s),h=o?[l].concat(l.visualViewport||[],(0,i.Z)(s)?s:[]):s,d=t.concat(h)
return o?d:d.concat(c((0,n.Z)(h)))}},37946:(e,t,r)=>{"use strict"
r.d(t,{BL:()=>c,Ct:()=>m,F2:()=>s,I:()=>i,Pj:()=>d,YP:()=>p,bw:()=>g,d7:()=>a,k5:()=>f,mv:()=>u,t$:()=>o,ut:()=>l,we:()=>n,xs:()=>y,zV:()=>h})
var n="top",i="bottom",s="right",o="left",a="auto",u=[n,i,s,o],c="start",l="end",h="clippingParents",d="viewport",f="popper",p="reference",g=u.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+l])}),[]),m=[].concat(u,[a]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+l])}),[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},52801:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>h})
var n={left:"right",right:"left",bottom:"top",top:"bottom"}
function i(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}var s=r(31501),o={start:"end",end:"start"}
function a(e){return e.replace(/start|end/g,(function(e){return o[e]}))}var u=r(88219),c=r(22026),l=r(37946)
const h={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name
if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,h=void 0===o||o,d=r.altAxis,f=void 0===d||d,p=r.fallbackPlacements,g=r.padding,m=r.boundary,y=r.rootBoundary,v=r.altBoundary,_=r.flipVariations,b=void 0===_||_,D=r.allowedAutoPlacements,A=t.options.placement,E=(0,s.Z)(A),C=p||(E!==A&&b?function(e){if((0,s.Z)(e)===l.d7)return[]
var t=i(e)
return[a(e),t,a(t)]}(A):[i(A)]),w=[A].concat(C).reduce((function(e,r){return e.concat((0,s.Z)(r)===l.d7?function(e,t){void 0===t&&(t={})
var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,h=r.flipVariations,d=r.allowedAutoPlacements,f=void 0===d?l.Ct:d,p=(0,c.Z)(n),g=p?h?l.bw:l.bw.filter((function(e){return(0,c.Z)(e)===p})):l.mv,m=g.filter((function(e){return f.indexOf(e)>=0}))
0===m.length&&(m=g)
var y=m.reduce((function(t,r){return t[r]=(0,u.Z)(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[(0,s.Z)(r)],t}),{})
return Object.keys(y).sort((function(e,t){return y[e]-y[t]}))}(t,{placement:r,boundary:m,rootBoundary:y,padding:g,flipVariations:b,allowedAutoPlacements:D}):r)}),[]),S=t.rects.reference,F=t.rects.popper,T=new Map,R=!0,x=w[0],O=0;O<w.length;O++){var P=w[O],M=(0,s.Z)(P),k=(0,c.Z)(P)===l.BL,I=[l.we,l.I].indexOf(M)>=0,N=I?"width":"height",L=(0,u.Z)(t,{placement:P,boundary:m,rootBoundary:y,altBoundary:v,padding:g}),B=I?k?l.F2:l.t$:k?l.I:l.we
S[N]>F[N]&&(B=i(B))
var U=i(B),j=[]
if(h&&j.push(L[M]<=0),f&&j.push(L[B]<=0,L[U]<=0),j.every((function(e){return e}))){x=P,R=!1
break}T.set(P,j)}if(R)for(var q=function(e){var t=w.find((function(t){var r=T.get(t)
if(r)return r.slice(0,e).every((function(e){return e}))}))
if(t)return x=t,"break"},H=b?3:1;H>0&&"break"!==q(H);H--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},47390:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>o,distanceAndSkiddingToXY:()=>s})
var n=r(31501),i=r(37946)
function s(e,t,r){var s=(0,n.Z)(e),o=[i.t$,i.we].indexOf(s)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1]
return u=u||0,c=(c||0)*o,[i.t$,i.F2].indexOf(s)>=0?{x:c,y:u}:{x:u,y:c}}const o={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,u=i.Ct.reduce((function(e,r){return e[r]=s(r,t.rects,a),e}),{}),c=u[t.placement],l=c.x,h=c.y
null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=u}}},96546:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>f})
var n=r(37946),i=r(31501),s=r(12138),o=r(6314)
function a(e,t,r){return(0,o.Fp)(e,(0,o.VV)(t,r))}var u=r(92642),c=r(27258),l=r(88219),h=r(22026),d=r(82277)
const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,f=e.name,p=r.mainAxis,g=void 0===p||p,m=r.altAxis,y=void 0!==m&&m,v=r.boundary,_=r.rootBoundary,b=r.altBoundary,D=r.padding,A=r.tether,E=void 0===A||A,C=r.tetherOffset,w=void 0===C?0:C,S=(0,l.Z)(t,{boundary:v,rootBoundary:_,padding:D,altBoundary:b}),F=(0,i.Z)(t.placement),T=(0,h.Z)(t.placement),R=!T,x=(0,s.Z)(F),O="x"===x?"y":"x",P=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,I="function"==typeof w?w(Object.assign({},t.rects,{placement:t.placement})):w,N="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0}
if(P){if(g){var U,j="y"===x?n.we:n.t$,q="y"===x?n.I:n.F2,H="y"===x?"height":"width",z=P[x],G=z+S[j],W=z-S[q],V=E?-k[H]/2:0,$=T===n.BL?M[H]:k[H],K=T===n.BL?-k[H]:-M[H],Q=t.elements.arrow,Y=E&&Q?(0,u.Z)(Q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),J=X[j],Z=X[q],ee=a(0,M[H],Y[H]),te=R?M[H]/2-V-ee-J-N.mainAxis:$-ee-J-N.mainAxis,re=R?-M[H]/2+V+ee+Z+N.mainAxis:K+ee+Z+N.mainAxis,ne=t.elements.arrow&&(0,c.Z)(t.elements.arrow),ie=ne?"y"===x?ne.clientTop||0:ne.clientLeft||0:0,se=null!=(U=null==L?void 0:L[x])?U:0,oe=z+te-se-ie,ae=z+re-se,ue=a(E?(0,o.VV)(G,oe):G,z,E?(0,o.Fp)(W,ae):W)
P[x]=ue,B[x]=ue-z}if(y){var ce,le="x"===x?n.we:n.t$,he="x"===x?n.I:n.F2,de=P[O],fe="y"===O?"height":"width",pe=de+S[le],ge=de-S[he],me=-1!==[n.we,n.t$].indexOf(F),ye=null!=(ce=null==L?void 0:L[O])?ce:0,ve=me?pe:de-M[fe]-k[fe]-ye+N.altAxis,_e=me?de+M[fe]+k[fe]-ye-N.altAxis:ge,be=E&&me?function(e,t,r){var n=a(e,t,r)
return n>r?r:n}(ve,de,_e):a(E?ve:pe,de,E?_e:ge)
P[O]=be,B[O]=be-de}t.modifiersData[f]=B}},requiresIfExists:["offset"]}},174:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{createPopper:()=>P,defaultModifiers:()=>O,detectOverflow:()=>D.Z,popperGenerator:()=>b})
var n=r(86258),i=r(21922),s=r(83078),o=r(99745),a=r(48550),u=r(27766),c=r(92478),l=r(81079),h=r(6314)
function d(e,t,r){void 0===r&&(r=!1)
var d,f,p=(0,o.Re)(t),g=(0,o.Re)(t)&&function(e){var t=e.getBoundingClientRect(),r=(0,h.NM)(t.width)/e.offsetWidth||1,n=(0,h.NM)(t.height)/e.offsetHeight||1
return 1!==r||1!==n}(t),m=(0,c.Z)(t),y=(0,n.Z)(e,g,r),v={scrollLeft:0,scrollTop:0},_={x:0,y:0}
return(p||!p&&!r)&&(("body"!==(0,a.Z)(t)||(0,l.Z)(m))&&(v=(d=t)!==(0,s.Z)(d)&&(0,o.Re)(d)?{scrollLeft:(f=d).scrollLeft,scrollTop:f.scrollTop}:(0,i.Z)(d)),(0,o.Re)(t)?((_=(0,n.Z)(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):m&&(_.x=(0,u.Z)(m))),{x:y.left+v.scrollLeft-_.x,y:y.top+v.scrollTop-_.y,width:y.width,height:y.height}}var f=r(92642),p=r(99177),g=r(27258),m=r(37946)
function y(e){var t=new Map,r=new Set,n=[]
function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e)
n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}var v={placement:"bottom",modifiers:[],strategy:"absolute"}
function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]
return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function b(e){void 0===e&&(e={})
var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,s=void 0===i?v:i
return function(e,t,r){void 0===r&&(r=s)
var i,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},v,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,h={state:u,setOptions:function(r){var i="function"==typeof r?r(u.options):r
b(),u.options=Object.assign({},s,u.options,i),u.scrollParents={reference:(0,o.kK)(e)?(0,p.Z)(e):e.contextElement?(0,p.Z)(e.contextElement):[],popper:(0,p.Z)(t)}
var a,l,d=function(e){var t=y(e)
return m.xs.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((a=[].concat(n,u.options.modifiers),l=a.reduce((function(e,t){var r=e[t.name]
return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))))
return u.orderedModifiers=d.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect
if("function"==typeof i){var s=i({state:u,name:t,instance:h,options:n})
c.push(s||function(){})}})),h.update()},forceUpdate:function(){if(!l){var e=u.elements,t=e.reference,r=e.popper
if(_(t,r)){u.rects={reference:d(t,(0,g.Z)(r),"fixed"===u.options.strategy),popper:(0,f.Z)(r)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}))
for(var n=0;n<u.orderedModifiers.length;n++)if(!0!==u.reset){var i=u.orderedModifiers[n],s=i.fn,o=i.options,a=void 0===o?{}:o,c=i.name
"function"==typeof s&&(u=s({state:u,options:a,name:c,instance:h})||u)}else u.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){h.forceUpdate(),e(u)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){b(),l=!0}}
if(!_(e,t))return h
function b(){c.forEach((function(e){return e()})),c=[]}return h.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),h}}var D=r(88219),A={passive:!0}
const E={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,u=void 0===a||a,c=(0,s.Z)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper)
return o&&l.forEach((function(e){e.addEventListener("scroll",r.update,A)})),u&&c.addEventListener("resize",r.update,A),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",r.update,A)})),u&&c.removeEventListener("resize",r.update,A)}},data:{}}
var C=r(21274)
const w={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name
t.modifiersData[r]=(0,C.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}
var S=r(81410),F=r(31501),T=r(22026),R={top:"auto",right:"auto",bottom:"auto",left:"auto"}
function x(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,l=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,v=void 0===y?0:y,_=a.y,b=void 0===_?0:_,D="function"==typeof f?f({x:v,y:b}):{x:v,y:b}
v=D.x,b=D.y
var A=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),C=m.t$,w=m.we,F=window
if(d){var T=(0,g.Z)(r),x="clientHeight",O="clientWidth"
T===(0,s.Z)(r)&&(T=(0,c.Z)(r),"static"!==(0,S.Z)(T).position&&"absolute"===u&&(x="scrollHeight",O="scrollWidth")),(i===m.we||(i===m.t$||i===m.F2)&&o===m.ut)&&(w=m.I,b-=(p&&T===F&&F.visualViewport?F.visualViewport.height:T[x])-n.height,b*=l?1:-1),i!==m.t$&&(i!==m.we&&i!==m.I||o!==m.ut)||(C=m.F2,v-=(p&&T===F&&F.visualViewport?F.visualViewport.width:T[O])-n.width,v*=l?1:-1)}var P,M=Object.assign({position:u},d&&R),k=!0===f?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1
return{x:(0,h.NM)(r*i)/i||0,y:(0,h.NM)(n*i)/i||0}}({x:v,y:b},(0,s.Z)(r)):{x:v,y:b}
return v=k.x,b=k.y,l?Object.assign({},M,((P={})[w]=E?"0":"",P[C]=A?"0":"",P.transform=(F.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",P)):Object.assign({},M,((t={})[w]=E?b+"px":"",t[C]=A?v+"px":"",t.transform="",t))}var O=[E,w,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,s=r.adaptive,o=void 0===s||s,a=r.roundOffsets,u=void 0===a||a,c={placement:(0,F.Z)(t.placement),variation:(0,T.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy}
null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,x(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,x(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state
Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];(0,o.Re)(i)&&(0,a.Z)(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e]
!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.Re)(n)&&(0,a.Z)(n)&&(Object.assign(n.style,s),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]}],P=b({defaultModifiers:O})},21274:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>a})
var n=r(31501),i=r(22026),s=r(12138),o=r(37946)
function a(e){var t,r=e.reference,a=e.element,u=e.placement,c=u?(0,n.Z)(u):null,l=u?(0,i.Z)(u):null,h=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2
switch(c){case o.we:t={x:h,y:r.y-a.height}
break
case o.I:t={x:h,y:r.y+r.height}
break
case o.F2:t={x:r.x+r.width,y:d}
break
case o.t$:t={x:r.x-a.width,y:d}
break
default:t={x:r.x,y:r.y}}var f=c?(0,s.Z)(c):null
if(null!=f){var p="y"===f?"height":"width"
switch(l){case o.BL:t[f]=t[f]-(r[p]/2-a[p]/2)
break
case o.ut:t[f]=t[f]+(r[p]/2-a[p]/2)}}return t}},88219:(e,t,r)=>{"use strict"
r.d(t,{Z:()=>D})
var n=r(37946),i=r(83078),s=r(92478),o=r(27766),a=r(60324),u=r(81410),c=r(21922),l=r(6314),h=r(99177),d=r(27258),f=r(99745),p=r(86258),g=r(70714),m=r(48550)
function y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function v(e,t,r){return t===n.Pj?y(function(e,t){var r=(0,i.Z)(e),n=(0,s.Z)(e),u=r.visualViewport,c=n.clientWidth,l=n.clientHeight,h=0,d=0
if(u){c=u.width,l=u.height
var f=(0,a.Z)();(f||!f&&"fixed"===t)&&(h=u.offsetLeft,d=u.offsetTop)}return{width:c,height:l,x:h+(0,o.Z)(e),y:d}}(e,r)):(0,f.kK)(t)?function(e,t){var r=(0,p.Z)(e,!1,"fixed"===t)
return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):y(function(e){var t,r=(0,s.Z)(e),n=(0,c.Z)(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=(0,l.Fp)(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=(0,l.Fp)(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-n.scrollLeft+(0,o.Z)(e),f=-n.scrollTop
return"rtl"===(0,u.Z)(i||r).direction&&(d+=(0,l.Fp)(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:h,x:d,y:f}}((0,s.Z)(e)))}var _=r(21274),b=r(82277)
function D(e,t){void 0===t&&(t={})
var r,i=t,o=i.placement,a=void 0===o?e.placement:o,c=i.strategy,D=void 0===c?e.strategy:c,A=i.boundary,E=void 0===A?n.zV:A,C=i.rootBoundary,w=void 0===C?n.Pj:C,S=i.elementContext,F=void 0===S?n.k5:S,T=i.altBoundary,R=void 0!==T&&T,x=i.padding,O=void 0===x?0:x,P=function(e){return Object.assign({},(0,b.Z)(),e)}("number"!=typeof O?O:(r=O,n.mv.reduce((function(e,t){return e[t]=r,e}),{}))),M=F===n.k5?n.YP:n.k5,k=e.rects.popper,I=e.elements[R?M:F],N=function(e,t,r,n){var i="clippingParents"===t?function(e){var t=(0,h.Z)((0,g.Z)(e)),r=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,f.Re)(e)?(0,d.Z)(e):e
return(0,f.kK)(r)?t.filter((function(e){return(0,f.kK)(e)&&function(e,t){var r=t.getRootNode&&t.getRootNode()
if(e.contains(t))return!0
if(r&&(0,f.Zq)(r)){var n=t
do{if(n&&e.isSameNode(n))return!0
n=n.parentNode||n.host}while(n)}return!1}(e,r)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),s=[].concat(i,[r]),o=s[0],a=s.reduce((function(t,r){var i=v(e,r,n)
return t.top=(0,l.Fp)(i.top,t.top),t.right=(0,l.VV)(i.right,t.right),t.bottom=(0,l.VV)(i.bottom,t.bottom),t.left=(0,l.Fp)(i.left,t.left),t}),v(e,o,n))
return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}((0,f.kK)(I)?I:I.contextElement||(0,s.Z)(e.elements.popper),E,w,D),L=(0,p.Z)(e.elements.reference),B=(0,_.Z)({reference:L,element:k,strategy:"absolute",placement:a}),U=y(Object.assign({},k,B)),j=F===n.k5?U:L,q={top:N.top-j.top+P.top,bottom:j.bottom-N.bottom+P.bottom,left:N.left-j.left+P.left,right:j.right-N.right+P.right},H=e.modifiersData.offset
if(F===n.k5&&H){var z=H[a]
Object.keys(q).forEach((function(e){var t=[n.F2,n.I].indexOf(e)>=0?1:-1,r=[n.we,n.I].indexOf(e)>=0?"y":"x"
q[e]+=z[r]*t}))}return q}},31501:(e,t,r)=>{"use strict"
function n(e){return e.split("-")[0]}r.d(t,{Z:()=>n})},82277:(e,t,r)=>{"use strict"
function n(){return{top:0,right:0,bottom:0,left:0}}r.d(t,{Z:()=>n})},12138:(e,t,r)=>{"use strict"
function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}r.d(t,{Z:()=>n})},22026:(e,t,r)=>{"use strict"
function n(e){return e.split("-")[1]}r.d(t,{Z:()=>n})},6314:(e,t,r)=>{"use strict"
r.d(t,{Fp:()=>n,NM:()=>s,VV:()=>i})
var n=Math.max,i=Math.min,s=Math.round},23414:(e,t,r)=>{"use strict"
function n(){var e=navigator.userAgentData
return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}r.d(t,{Z:()=>n})},46315:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(77307),i=r(46755)
class s extends n.Subscribable{constructor(){super(),this.setup=e=>{if(!i.isServer&&window.addEventListener){const t=()=>e()
return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e
this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t
this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const o=new s
t.FocusManager=s,t.focusManager=o},20782:(e,t)=>{"use strict"
function r(e){return e.state.isPaused}function n(e){return"success"===e.state.status}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultShouldDehydrateMutation=r,t.defaultShouldDehydrateQuery=n,t.dehydrate=function(e,t={}){const i=[],s=[]
if(!1!==t.dehydrateMutations){const n=t.shouldDehydrateMutation||r
e.getMutationCache().getAll().forEach((e=>{n(e)&&i.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const r=t.shouldDehydrateQuery||n
e.getQueryCache().getAll().forEach((e=>{r(e)&&s.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:i,queries:s}},t.hydrate=function(e,t,r){if("object"!=typeof t||null===t)return
const n=e.getMutationCache(),i=e.getQueryCache(),s=t.mutations||[],o=t.queries||[]
s.forEach((t=>{var i
n.build(e,{...null==r||null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),o.forEach((t=>{var n
const s=i.get(t.queryHash),o={...t.state,fetchStatus:"idle"}
s?s.state.dataUpdatedAt<o.dataUpdatedAt&&s.setState(o):i.build(e,{...null==r||null==(n=r.defaultOptions)?void 0:n.queries,queryKey:t.queryKey,queryHash:t.queryHash},o)}))}},51202:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(61592),i=r(61920),s=r(11854),o=r(86427),a=r(16841),u=r(69121),c=r(25130),l=r(22922),h=r(18211),d=r(46315),f=r(42795),p=r(46755),g=r(20782),m=r(50403)
t.CancelledError=n.CancelledError,t.isCancelledError=n.isCancelledError,t.QueryCache=i.QueryCache,t.QueryClient=s.QueryClient,t.QueryObserver=o.QueryObserver,t.QueriesObserver=a.QueriesObserver,t.InfiniteQueryObserver=u.InfiniteQueryObserver,t.MutationCache=c.MutationCache,t.MutationObserver=l.MutationObserver,t.notifyManager=h.notifyManager,t.focusManager=d.focusManager,t.onlineManager=f.onlineManager,t.hashQueryKey=p.hashQueryKey,t.isError=p.isError,t.isServer=p.isServer,t.matchQuery=p.matchQuery,t.parseFilterArgs=p.parseFilterArgs,t.parseMutationArgs=p.parseMutationArgs,t.parseMutationFilterArgs=p.parseMutationFilterArgs,t.parseQueryArgs=p.parseQueryArgs,t.replaceEqualDeep=p.replaceEqualDeep,t.defaultShouldDehydrateMutation=g.defaultShouldDehydrateMutation,t.defaultShouldDehydrateQuery=g.defaultShouldDehydrateQuery,t.dehydrate=g.dehydrate,t.hydrate=g.hydrate,t.Query=m.Query},18545:(e,t)=>{"use strict"
function r(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function n(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPageParam=r,t.getPreviousPageParam=n,t.hasNextPage=function(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=r(e,t)
return null!=n&&!1!==n}},t.hasPreviousPage=function(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=n(e,t)
return null!=r&&!1!==r}},t.infiniteQueryBehavior=function(){return{onFetch:e=>{e.fetchFn=()=>{var t,i,s,o,a,u
const c=null==(t=e.fetchOptions)||null==(i=t.meta)?void 0:i.refetchPage,l=null==(s=e.fetchOptions)||null==(o=s.meta)?void 0:o.fetchMore,h=null==l?void 0:l.pageParam,d="forward"===(null==l?void 0:l.direction),f="backward"===(null==l?void 0:l.direction),p=(null==(a=e.state.data)?void 0:a.pages)||[],g=(null==(u=e.state.data)?void 0:u.pageParams)||[]
let m=g,y=!1
const v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),_=(e,t,r,n)=>(m=n?[t,...m]:[...m,t],n?[r,...e]:[...e,r]),b=(t,r,n,i)=>{if(y)return Promise.reject("Cancelled")
if(void 0===n&&!r&&t.length)return Promise.resolve(t)
const s={queryKey:e.queryKey,pageParam:n,meta:e.options.meta}
var o
o=s,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{var t,r
return null!=(t=e.signal)&&t.aborted?y=!0:null==(r=e.signal)||r.addEventListener("abort",(()=>{y=!0})),e.signal}})
const a=v(s)
return Promise.resolve(a).then((e=>_(t,n,e,i)))}
let D
if(p.length)if(d){const t=void 0!==h,n=t?h:r(e.options,p)
D=b(p,t,n)}else if(f){const t=void 0!==h,r=t?h:n(e.options,p)
D=b(p,t,r,!0)}else{m=[]
const t=void 0===e.options.getNextPageParam
D=c&&p[0]&&!c(p[0],0,p)?Promise.resolve(_([],g[0],p[0])):b([],t,g[0])
for(let n=1;n<p.length;n++)D=D.then((i=>{if(!c||!p[n]||c(p[n],n,p)){const s=t?g[n]:r(e.options,i)
return b(i,t,s)}return Promise.resolve(_(i,g[n],p[n]))}))}else D=b([])
return D.then((e=>({pages:e,pageParams:m})))}}}}},69121:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(86427),i=r(18545)
class s extends n.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:i.infiniteQueryBehavior()},t)}getOptimisticResult(e){return e.behavior=i.infiniteQueryBehavior(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var r,n,s,o,a,u
const{state:c}=e,l=super.createResult(e,t),{isFetching:h,isRefetching:d}=l,f=h&&"forward"===(null==(r=c.fetchMeta)||null==(n=r.fetchMore)?void 0:n.direction),p=h&&"backward"===(null==(s=c.fetchMeta)||null==(o=s.fetchMore)?void 0:o.direction)
return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:i.hasNextPage(t,null==(a=c.data)?void 0:a.pages),hasPreviousPage:i.hasPreviousPage(t,null==(u=c.data)?void 0:u.pages),isFetchingNextPage:f,isFetchingPreviousPage:p,isRefetching:d&&!f&&!p}}}t.InfiniteQueryObserver=s},63612:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
const r=console
t.defaultLogger=r},48686:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(63612),i=r(18211),s=r(76333),o=r(61592)
class a extends s.Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||n.defaultLogger,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t
return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e
return this.retryer=o.createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status
try{var r,n,i,s,a,u,c,l
if(!t){var h,d,f,p
this.dispatch({type:"loading",variables:this.options.variables}),await(null==(h=(d=this.mutationCache.config).onMutate)?void 0:h.call(d,this.state.variables,this))
const e=await(null==(f=(p=this.options).onMutate)?void 0:f.call(p,this.state.variables))
e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const o=await e()
return await(null==(r=(n=this.mutationCache.config).onSuccess)?void 0:r.call(n,o,this.state.variables,this.state.context,this)),await(null==(i=(s=this.options).onSuccess)?void 0:i.call(s,o,this.state.variables,this.state.context)),await(null==(a=(u=this.mutationCache.config).onSettled)?void 0:a.call(u,o,null,this.state.variables,this.state.context,this)),await(null==(c=(l=this.options).onSettled)?void 0:c.call(l,o,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:o}),o}catch(e){try{var g,m,y,v,_,b,D,A
throw await(null==(g=(m=this.mutationCache.config).onError)?void 0:g.call(m,e,this.state.variables,this.state.context,this)),await(null==(y=(v=this.options).onError)?void 0:y.call(v,e,this.state.variables,this.state.context)),await(null==(_=(b=this.mutationCache.config).onSettled)?void 0:_.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(D=(A=this.options).onSettled)?void 0:D.call(A,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error}
case"pause":return{...t,isPaused:!0}
case"continue":return{...t,isPaused:!1}
case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!o.canFetch(this.options.networkMode),status:"loading",variables:e.variables}
case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1}
case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}
case"setState":return{...t,...e.state}}})(this.state),i.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}t.Mutation=a,t.getDefaultState=function(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},25130:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(18211),i=r(48686),s=r(46755),o=r(77307)
class a extends o.Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new i.Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0})
return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){n.notifyManager.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>s.matchMutation(e,t)))}findAll(e){return this.mutations.filter((t=>s.matchMutation(e,t)))}notify(e){n.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e
return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused))
return n.notifyManager.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(s.noop)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}t.MutationCache=a},22922:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(48686),i=r(18211),s=r(77307),o=r(46755)
class a extends s.Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t
const r=this.options
this.options=this.client.defaultMutationOptions(e),o.shallowEqualObjects(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e
this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult()
const t={listeners:!0}
"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:n.getDefaultState(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}
this.currentResult=t}notify(e){i.notifyManager.batch((()=>{var t,r,n,i
if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)
else if(e.onError){var s,o,a,u
null==(s=(o=this.mutateOptions).onError)||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(u=this.mutateOptions).onSettled)||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}t.MutationObserver=a},18211:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755)
function i(){let e=[],t=0,r=e=>{e()},i=e=>{e()}
const s=i=>{t?e.push(i):n.scheduleMicrotask((()=>{r(i)}))}
return{batch:s=>{let o
t++
try{o=s()}finally{t--,t||(()=>{const t=e
e=[],t.length&&n.scheduleMicrotask((()=>{i((()=>{t.forEach((e=>{r(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{s((()=>{e(...t)}))},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e}}}const s=i()
t.createNotifyManager=i,t.notifyManager=s},42795:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(77307),i=r(46755)
const s=["online","offline"]
class o extends n.Subscribable{constructor(){super(),this.setup=e=>{if(!i.isServer&&window.addEventListener){const t=()=>e()
return s.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{s.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e
this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t
this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const a=new o
t.OnlineManager=o,t.onlineManager=a},16841:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755),i=r(18211),s=r(86427),o=r(77307)
class a extends o.Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,i.notifyManager.batch((()=>{const e=this.observers,r=this.findMatchingObservers(this.queries)
r.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)))
const i=r.map((e=>e.observer)),s=Object.fromEntries(i.map((e=>[e.options.queryHash,e]))),o=i.map((e=>e.getCurrentResult())),a=i.some(((t,r)=>t!==e[r]));(e.length!==i.length||a)&&(this.observers=i,this.observersMap=s,this.result=o,this.hasListeners()&&(n.difference(e,i).forEach((e=>{e.destroy()})),n.difference(i,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,r=new Map(t.map((e=>[e.options.queryHash,e]))),n=e.map((e=>this.client.defaultQueryOptions(e))),i=n.flatMap((e=>{const t=r.get(e.queryHash)
return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=new Set(i.map((e=>e.defaultedQueryOptions.queryHash))),a=n.filter((e=>!o.has(e.queryHash))),u=new Set(i.map((e=>e.observer))),c=t.filter((e=>!u.has(e))),l=e=>{const t=this.client.defaultQueryOptions(e),r=this.observersMap[t.queryHash]
return null!=r?r:new s.QueryObserver(this.client,t)},h=a.map(((e,t)=>{if(e.keepPreviousData){const r=c[t]
if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:l(e)}}))
return i.concat(h).sort(((e,t)=>n.indexOf(e.defaultedQueryOptions)-n.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const r=this.observers.indexOf(e);-1!==r&&(this.result=n.replaceAt(this.result,r,t),this.notify())}notify(){i.notifyManager.batch((()=>{this.listeners.forEach((({listener:e})=>{e(this.result)}))}))}}t.QueriesObserver=a},50403:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755),i=r(63612),s=r(18211),o=r(61592),a=r(76333)
class u extends a.Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||i.defaultLogger,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0
return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const r=n.replaceData(this.state.data,e,this.options)
return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t
const r=this.promise
return null==(t=this.retryer)||t.cancel(e),r?r.then(n.noop).catch(n.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!n.timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e
const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()))
t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e
const t=this.observers.find((e=>e.shouldFetchOnReconnect()))
t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,i
if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0})
else if(this.promise){var s
return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn))
e&&this.setOptions(e.options)}const a=n.getAbortController(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})}
c(u)
const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")}
var h
c(l),null==(r=this.options.behavior)||r.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=l.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(h=l.fetchOptions)?void 0:h.meta})
const d=e=>{var t,r,n,i
o.isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),o.isCancelledError(e)||(null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}
return this.retryer=o.createRetryer({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,i
void 0!==e?(this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):d(new Error(this.queryHash+" data is undefined"))},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n
switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error}
case"pause":return{...t,fetchStatus:"paused"}
case"continue":return{...t,fetchStatus:"fetching"}
case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:o.canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}}
case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}}
case"error":const i=e.error
return o.isCancelledError(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"}
case"invalidate":return{...t,isInvalidated:!0}
case"setState":return{...t,...e.state}}})(this.state),s.notifyManager.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}t.Query=u},61920:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755),i=r(50403),s=r(18211),o=r(77307)
class a extends o.Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var s
const o=t.queryKey,a=null!=(s=t.queryHash)?s:n.hashQueryKeyByOptions(o,t)
let u=this.get(a)
return u||(u=new i.Query({cache:this,logger:e.getLogger(),queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash]
t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=n.parseFilterArgs(e,t)
return void 0===r.exact&&(r.exact=!0),this.queries.find((e=>n.matchQuery(r,e)))}findAll(e,t){const[r]=n.parseFilterArgs(e,t)
return Object.keys(r).length>0?this.queries.filter((e=>n.matchQuery(r,e))):this.queries}notify(e){s.notifyManager.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){s.notifyManager.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}t.QueryCache=a},11854:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755),i=r(61920),s=r(25130),o=r(46315),a=r(42795),u=r(18211),c=r(18545),l=r(63612)
t.QueryClient=class{constructor(e={}){this.queryCache=e.queryCache||new i.QueryCache,this.mutationCache=e.mutationCache||new s.MutationCache,this.logger=e.logger||l.defaultLogger,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=o.focusManager.subscribe((()=>{o.focusManager.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=a.onlineManager.subscribe((()=>{a.onlineManager.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t
this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=n.parseFilterArgs(e,t)
return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r
return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){const i=n.parseQueryArgs(e,t,r),s=this.getQueryData(i.queryKey)
return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const i=this.queryCache.find(e),s=null==i?void 0:i.state.data,o=n.functionalUpdate(t,s)
if(void 0===o)return
const a=n.parseQueryArgs(e),u=this.defaultQueryOptions(a)
return this.queryCache.build(this,u).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return u.notifyManager.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e,t){var r
return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){const[r]=n.parseFilterArgs(e,t),i=this.queryCache
u.notifyManager.batch((()=>{i.findAll(r).forEach((e=>{i.remove(e)}))}))}resetQueries(e,t,r){const[i,s]=n.parseFilterArgs(e,t,r),o=this.queryCache,a={type:"active",...i}
return u.notifyManager.batch((()=>(o.findAll(i).forEach((e=>{e.reset()})),this.refetchQueries(a,s))))}cancelQueries(e,t,r){const[i,s={}]=n.parseFilterArgs(e,t,r)
void 0===s.revert&&(s.revert=!0)
const o=u.notifyManager.batch((()=>this.queryCache.findAll(i).map((e=>e.cancel(s)))))
return Promise.all(o).then(n.noop).catch(n.noop)}invalidateQueries(e,t,r){const[i,s]=n.parseFilterArgs(e,t,r)
return u.notifyManager.batch((()=>{var e,t
if(this.queryCache.findAll(i).forEach((e=>{e.invalidate()})),"none"===i.refetchType)return Promise.resolve()
const r={...i,type:null!=(e=null!=(t=i.refetchType)?t:i.type)?e:"active"}
return this.refetchQueries(r,s)}))}refetchQueries(e,t,r){const[i,s]=n.parseFilterArgs(e,t,r),o=u.notifyManager.batch((()=>this.queryCache.findAll(i).filter((e=>!e.isDisabled())).map((e=>{var t
return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:i.refetchPage}})}))))
let a=Promise.all(o).then(n.noop)
return null!=s&&s.throwOnError||(a=a.catch(n.noop)),a}fetchQuery(e,t,r){const i=n.parseQueryArgs(e,t,r),s=this.defaultQueryOptions(i)
void 0===s.retry&&(s.retry=!1)
const o=this.queryCache.build(this,s)
return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(n.noop).catch(n.noop)}fetchInfiniteQuery(e,t,r){const i=n.parseQueryArgs(e,t,r)
return i.behavior=c.infiniteQueryBehavior(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(n.noop).catch(n.noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find((t=>n.hashQueryKey(e)===n.hashQueryKey(t.queryKey)))
r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return
const t=this.queryDefaults.find((t=>n.partialMatchKey(e,t.queryKey)))
return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find((t=>n.hashQueryKey(e)===n.hashQueryKey(t.mutationKey)))
r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return
const t=this.mutationDefaults.find((t=>n.partialMatchKey(e,t.mutationKey)))
return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e
const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0}
return!t.queryHash&&t.queryKey&&(t.queryHash=n.hashQueryKeyByOptions(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},86427:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755),i=r(18211),s=r(46315),o=r(77307),a=r(61592)
class u extends o.Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const r=this.options,i=this.currentQuery
if(this.options=this.client.defaultQueryOptions(e),n.shallowEqualObjects(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean")
this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery()
const s=this.hasListeners()
s&&h(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(t),!s||this.currentQuery===i&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout()
const o=this.computeRefetchInterval()
!s||this.currentQuery===i&&this.options.enabled===r.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e)
return function(e,t,r){return!r.keepPreviousData&&(void 0!==r.placeholderData?t.isPlaceholderData:!n.shallowEqualObjects(e.getCurrentResult(),t))}(this,r,e)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){const t={}
return Object.keys(e).forEach((r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t)
return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){var t
return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery()
let t=this.currentQuery.fetch(this.options,e)
return null!=e&&e.throwOnError||(t=t.catch(n.noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),n.isServer||this.currentResult.isStale||!n.isValidTimeout(this.options.staleTime))return
const e=n.timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime)+1
this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e
return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!n.isServer&&!1!==this.options.enabled&&n.isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const r=this.currentQuery,i=this.options,s=this.currentResult,o=this.currentResultState,u=this.currentResultOptions,l=e!==r,f=l?e.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,{state:g}=e
let m,{dataUpdatedAt:y,error:v,errorUpdatedAt:_,fetchStatus:b,status:D}=g,A=!1,E=!1
if(t._optimisticResults){const n=this.hasListeners(),s=!n&&c(e,t),o=n&&h(e,r,t,i);(s||o)&&(b=a.canFetch(e.options.networkMode)?"fetching":"paused",y||(D="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!g.dataUpdatedAt&&null!=p&&p.isSuccess&&"error"!==D)m=p.data,y=p.dataUpdatedAt,D=p.status,A=!0
else if(t.select&&void 0!==g.data)if(s&&g.data===(null==o?void 0:o.data)&&t.select===this.selectFn)m=this.selectResult
else try{this.selectFn=t.select,m=t.select(g.data),m=n.replaceData(null==s?void 0:s.data,m,t),this.selectResult=m,this.selectError=null}catch(e){this.selectError=e}else m=g.data
if(void 0!==t.placeholderData&&void 0===m&&"loading"===D){let r
if(null!=s&&s.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))r=s.data
else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),this.selectError=null}catch(e){this.selectError=e}void 0!==r&&(D="success",m=n.replaceData(null==s?void 0:s.data,r,t),E=!0)}this.selectError&&(v=this.selectError,m=this.selectResult,_=Date.now(),D="error")
const C="fetching"===b,w="loading"===D,S="error"===D
return{status:D,fetchStatus:b,isLoading:w,isSuccess:"success"===D,isError:S,isInitialLoading:w&&C,data:m,dataUpdatedAt:y,error:v,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!w,isLoadingError:S&&0===g.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:E,isPreviousData:A,isRefetchError:S&&0!==g.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,r=this.createResult(this.currentQuery,this.options)
if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,n.shallowEqualObjects(r,t))return
this.currentResult=r
const i={cache:!0}
!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0
const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e
if("all"===r||!r&&!this.trackedProps.size)return!0
const n=new Set(null!=r?r:this.trackedProps)
return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some((e=>{const r=e
return this.currentResult[r]!==t[r]&&n.has(r)}))})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options)
if(e===this.currentQuery)return
const t=this.currentQuery
this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={}
"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||a.isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){i.notifyManager.batch((()=>{var t,r,n,i
if(e.onSuccess)null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null)
else if(e.onError){var s,o,a,u
null==(s=(o=this.options).onError)||s.call(o,this.currentResult.error),null==(a=(u=this.options).onSettled)||a.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function c(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&l(e,t,t.refetchOnMount)}function l(e,t,r){if(!1!==t.enabled){const n="function"==typeof r?r(e):r
return"always"===n||!1!==n&&d(e,t)}return!1}function h(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&d(e,r)}function d(e,t){return e.isStaleByTime(t.staleTime)}t.QueryObserver=u},76333:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46755)
t.Removable=class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),n.isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n.isServer?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},61592:(e,t,r)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=r(46315),i=r(42795),s=r(46755)
function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return"online"!==(null!=e?e:"online")||i.onlineManager.isOnline()}class u{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}t.CancelledError=u,t.canFetch=a,t.createRetryer=function(e){let t,r,c,l=!1,h=0,d=!1
const f=new Promise(((e,t)=>{r=e,c=t})),p=()=>!n.focusManager.isFocused()||"always"!==e.networkMode&&!i.onlineManager.isOnline(),g=n=>{d||(d=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},m=r=>{d||(d=!0,null==e.onError||e.onError(r),null==t||t(),c(r))},y=()=>new Promise((r=>{t=e=>{const t=d||!p()
return t&&r(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,d||null==e.onContinue||e.onContinue()})),v=()=>{if(d)return
let t
try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{var r,n
if(d)return
const i=null!=(r=e.retry)?r:3,a=null!=(n=e.retryDelay)?n:o,u="function"==typeof a?a(h,t):a,c=!0===i||"number"==typeof i&&h<i||"function"==typeof i&&i(h,t)
!l&&c?(h++,null==e.onFail||e.onFail(h,t),s.sleep(u).then((()=>{if(p())return y()})).then((()=>{l?m(t):v()}))):m(t)}))}
return a(e.networkMode)?v():y().then(v),{promise:f,cancel:t=>{d||(m(new u(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}},t.isCancelledError=function(e){return e instanceof u}},77307:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e}
return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},46755:(e,t)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
const r="undefined"==typeof window||"Deno"in window
function n(e,t){return((null==t?void 0:t.queryKeyHashFn)||i)(e)}function i(e){return JSON.stringify(e,((e,t)=>c(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function s(e,t){return o(e,t)}function o(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!o(e[r],t[r])))}function a(e,t){if(e===t)return e
const r=u(e)&&u(t)
if(r||c(e)&&c(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),s=i.length,o=r?[]:{}
let u=0
for(let c=0;c<s;c++){const n=r?c:i[c]
o[n]=a(e[n],t[n]),o[n]===e[n]&&u++}return n===s&&u===n?e:o}return t}function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!l(e))return!1
const t=e.constructor
if(void 0===t)return!0
const r=t.prototype
return!!l(r)&&!!r.hasOwnProperty("isPrototypeOf")}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function h(e){return Array.isArray(e)}function d(e){return new Promise((t=>{setTimeout(t,e)}))}t.difference=function(e,t){return e.filter((e=>!t.includes(e)))},t.functionalUpdate=function(e,t){return"function"==typeof e?e(t):e},t.getAbortController=function(){if("function"==typeof AbortController)return new AbortController},t.hashQueryKey=i,t.hashQueryKeyByOptions=n,t.isError=function(e){return e instanceof Error},t.isPlainArray=u,t.isPlainObject=c,t.isQueryKey=h,t.isServer=r,t.isValidTimeout=function(e){return"number"==typeof e&&e>=0&&e!==1/0},t.matchMutation=function(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:a}=e
if(h(a)){if(!t.options.mutationKey)return!1
if(r){if(i(t.options.mutationKey)!==i(a))return!1}else if(!s(t.options.mutationKey,a))return!1}return!("boolean"==typeof n&&"loading"===t.state.status!==n||o&&!o(t))},t.matchQuery=function(e,t){const{type:r="all",exact:i,fetchStatus:o,predicate:a,queryKey:u,stale:c}=e
if(h(u))if(i){if(t.queryHash!==n(u,t.options))return!1}else if(!s(t.queryKey,u))return!1
if("all"!==r){const e=t.isActive()
if("active"===r&&!e)return!1
if("inactive"===r&&e)return!1}return!("boolean"==typeof c&&t.isStale()!==c||void 0!==o&&o!==t.state.fetchStatus||a&&!a(t))},t.noop=function(){},t.parseFilterArgs=function(e,t,r){return h(e)?[{...t,queryKey:e},r]:[e||{},t]},t.parseMutationArgs=function(e,t,r){return h(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}},t.parseMutationFilterArgs=function(e,t,r){return h(e)?[{...t,mutationKey:e},r]:[e||{},t]},t.parseQueryArgs=function(e,t,r){return h(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e},t.partialDeepEqual=o,t.partialMatchKey=s,t.replaceAt=function(e,t,r){const n=e.slice(0)
return n[t]=r,n},t.replaceData=function(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?a(e,t):t},t.replaceEqualDeep=a,t.scheduleMicrotask=function(e){d(0).then(e)},t.shallowEqualObjects=function(e,t){if(e&&!t||t&&!e)return!1
for(const r in e)if(e[r]!==t[r])return!1
return!0},t.sleep=d,t.timeUntilStale=function(e,t){return Math.max(e+(t||0)-Date.now(),0)}},32993:function(e){var t
t=function(){return function(){var e={686:function(e,t,r){"use strict"
r.d(t,{default:function(){return b}})
var n=r(279),i=r.n(n),s=r(370),o=r.n(s),a=r(817),u=r.n(a)
function c(e){try{return document.execCommand(e)}catch(e){return!1}}var l=function(e){var t=u()(e)
return c("cut"),t},h=function(e,t){var r=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),r=document.createElement("textarea")
r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[t?"right":"left"]="-9999px"
var n=window.pageYOffset||document.documentElement.scrollTop
return r.style.top="".concat(n,"px"),r.setAttribute("readonly",""),r.value=e,r}(e)
t.container.appendChild(r)
var n=u()(r)
return c("copy"),r.remove(),n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},r=""
return"string"==typeof e?r=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?r=h(e.value,t):(r=u()(e),c("copy")),r}
function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r]
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){var r="data-clipboard-".concat(e)
if(t.hasAttribute(r))return t.getAttribute(r)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(u,e)
var t,r,n,i,s,a=(i=u,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(i)
if(s){var r=y(this).constructor
e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments)
return function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e):t}(this,e)})
function u(e,t){var r
return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(r=a.call(this)).resolveOptions(t),r.listenClick(e),r}return t=u,r=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this
this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,r=this.action(t)||"copy",n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,r=void 0===t?"copy":t,n=e.container,i=e.target,s=e.text
if("copy"!==r&&"cut"!==r)throw new Error('Invalid "action" value, use either "copy" or "cut"')
if(void 0!==i){if(!i||"object"!==f(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element')
if("copy"===r&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute')
if("cut"===r&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return s?d(s,{container:n}):i?"cut"===r?l(i):d(i,{container:n}):void 0}({action:r,container:this.container,target:this.target(t),text:this.text(t)})
this.emit(n?"success":"error",{action:r,text:n,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){var t=v("target",e)
if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],n=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body}
return d(e,t)}},{key:"cut",value:function(e){return l(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,r=!!document.queryCommandSupported
return t.forEach((function(e){r=r&&!!document.queryCommandSupported(e)})),r}}],r&&g(t.prototype,r),n&&g(t,n),u}(i()),b=_},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype
t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e
e=e.parentNode}}},438:function(e,t,r){var n=r(828)
function i(e,t,r,n,i){var o=s.apply(this,arguments)
return e.addEventListener(r,o,i),{destroy:function(){e.removeEventListener(r,o,i)}}}function s(e,t,r,i){return function(r){r.delegateTarget=n(r.target,t),r.delegateTarget&&i.call(e,r)}}e.exports=function(e,t,r,n,s){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof r?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,r,n,s)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var r=Object.prototype.toString.call(e)
return void 0!==e&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,r){var n=r(879),i=r(438)
e.exports=function(e,t,r){if(!e&&!t&&!r)throw new Error("Missing required arguments")
if(!n.string(t))throw new TypeError("Second argument must be a String")
if(!n.fn(r))throw new TypeError("Third argument must be a Function")
if(n.node(e))return function(e,t,r){return e.addEventListener(t,r),{destroy:function(){e.removeEventListener(t,r)}}}(e,t,r)
if(n.nodeList(e))return function(e,t,r){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,r)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,r)}))}}}(e,t,r)
if(n.string(e))return function(e,t,r){return i(document.body,e,t,r)}(e,t,r)
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t
if("SELECT"===e.nodeName)e.focus(),t=e.value
else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var r=e.hasAttribute("readonly")
r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus()
var n=window.getSelection(),i=document.createRange()
i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t=n.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={})
return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this
function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t)
return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[]
if(n&&t)for(var s=0,o=n.length;s<o;s++)n[s].fn!==t&&n[s].fn._!==t&&i.push(n[s])
return i.length?r[e]=i:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={}
function r(n){if(t[n])return t[n].exports
var i=t[n]={exports:{}}
return e[n](i,i.exports,r),i.exports}return r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e}
return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r(686)}().default},e.exports=t()},56540:(e,t,r)=>{"use strict"
var n=r(29374),i=r(87725),s=r(65198),o=r(99985);(e.exports=function(e,t){var r,s,a,u,c
return arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],null==e?(r=a=!0,s=!1):(r=o.call(e,"c"),s=o.call(e,"e"),a=o.call(e,"w")),c={value:t,configurable:r,enumerable:s,writable:a},u?n(i(u),c):c}).gs=function(e,t,r){var a,u,c,l
return"string"!=typeof e?(c=r,r=t,t=e,e=null):c=arguments[3],null==t?t=void 0:s(t)?null==r?r=void 0:s(r)||(c=r,r=void 0):(c=t,t=r=void 0),null==e?(a=!0,u=!1):(a=o.call(e,"c"),u=o.call(e,"e")),l={get:t,set:r,configurable:a,enumerable:u},c?n(i(c),l):l}},74036:e=>{"use strict"
var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e)
return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103
function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((r=e,Array.isArray(r)?[]:{}),e,t):e
var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||i,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=n
var c=Array.isArray(r)
return c===Array.isArray(e)?c?u.arrayMerge(e,r,u):function(e,t,r){var i={}
return r.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&r.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return a
var r=t.customMerge(e)
return"function"==typeof r?r:a}(s,r)(e[s],t[s],r):i[s]=n(t[s],r))})),i}(e,r,u):n(r,u)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array")
return e.reduce((function(e,r){return a(e,r,t)}),{})}
var u=a
e.exports=u},68405:e=>{"use strict"
var t={single_source_shortest_paths:function(e,r,n){var i={},s={}
s[r]=0
var o,a,u,c,l,h,d,f=t.PriorityQueue.make()
for(f.push(r,0);!f.empty();)for(u in a=(o=f.pop()).value,c=o.cost,l=e[a]||{})l.hasOwnProperty(u)&&(h=c+l[u],d=s[u],(void 0===s[u]||d>h)&&(s[u]=h,f.push(u,h),i[u]=a))
if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",r," to ",n,"."].join("")
throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n]
return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n)
return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={}
for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r])
return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t}
this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}}
e.exports=t},85620:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>o,load:()=>s})
var n=r(58797),i=r(50722)
function s(e){return new i.default(e)}const o=(0,n.helper)((function([e]){return new i.default(e)}))},9642:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{TrackedAsyncData:()=>n.default,load:()=>i.load})
var n=r(50722),i=r(85620)},50722:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>v})
var n,i,s,o,a,u=r(55521),c=r(34431),l=r(3353)
function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance")
return t.get(e)}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,h(e,t,"get"))}function f(e,t,r,n,i){var s={}
return Object.keys(n).forEach((function(e){s[e]=n[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}function p(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}const g=(0,r(7456).buildWaiter)("ember-async-data"),m=["PENDING"]
let y=(i=f((n=class{constructor(){var e;(e=i)&&Object.defineProperty(this,"data",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}}).prototype,"data",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m}}),n)
const v=(o=new WeakMap,a=new WeakMap,f((s=class e{constructor(t){if(p(this,o,{writable:!0,value:void 0}),p(this,a,{writable:!0,value:new y}),this.constructor!==e)throw new Error("tracked-async-data cannot be subclassed")
if(!function(e){return"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then}(t))return void(d(this,a).data=["RESOLVED",t])
const r=t
var n,i
n=o,i=g.beginAsync(),function(e,t,r){if(t.set)t.set.call(e,r)
else{if(!t.writable)throw new TypeError("attempted to set read only private field")
t.value=r}}(this,h(this,n,"set"),i),r.then((e=>{d(this,a).data=["RESOLVED",e],g.endAsync(d(this,o))}),(e=>{d(this,a).data=["REJECTED",e],g.endAsync(d(this,o))}))}get state(){return d(this,a).data[0]}get value(){return(0,l.warn)("Accessing `value` when TrackedAsyncData is not in the resolved state is not supported and will throw an error in the future. Always check that `.state` is `'RESOLVED'` or that `.isResolved` is `true` before accessing this property.","RESOLVED"===d(this,a).data[0],{id:"tracked-async-data::invalid-value-access"}),"RESOLVED"===d(this,a).data[0]?d(this,a).data[1]:null}get error(){return(0,l.warn)("Accessing `error` when TrackedAsyncData is not in the rejected state is not supported and will throw an error in the future. Always check that `.state` is `'REJECTED'` or that `.isRejected` is `true` before accessing this property.","REJECTED"===d(this,a).data[0],{id:"tracked-async-data::invalid-error-access"}),"REJECTED"===d(this,a).data[0]?d(this,a).data[1]:null}get isPending(){return"PENDING"===this.state}get isResolved(){return"RESOLVED"===this.state}get isRejected(){return"REJECTED"===this.state}toJSON(){const{isPending:e,isResolved:t,isRejected:r}=this
return e?{isPending:e,isResolved:t,isRejected:r}:t?{isPending:e,isResolved:t,value:this.value,isRejected:r}:{isPending:e,isResolved:t,isRejected:r,error:this.error}}toString(){return JSON.stringify(this.toJSON(),null,2)}}).prototype,"state",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"state"),s.prototype),f(s.prototype,"value",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"value"),s.prototype),f(s.prototype,"error",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"error"),s.prototype),f(s.prototype,"isPending",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"isPending"),s.prototype),f(s.prototype,"isResolved",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"isResolved"),s.prototype),f(s.prototype,"isRejected",[c.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"isRejected"),s.prototype),s)},84220:e=>{"use strict"
e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n)
if(i>=55296&&i<=56319&&r>n+1){var s=e.charCodeAt(n+1)
s>=56320&&s<=57343&&(i=1024*(i-55296)+s-56320+65536,n+=1)}i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<55296||i>=57344&&i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i>=65536&&i<=1114111?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},65850:e=>{"use strict"
e.exports=function(){}},29374:(e,t,r)=>{"use strict"
e.exports=r(456)()?Object.assign:r(15921)},456:e=>{"use strict"
e.exports=function(){var e,t=Object.assign
return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},15921:(e,t,r)=>{"use strict"
var n=r(80943),i=r(31047),s=Math.max
e.exports=function(e,t){var r,o,a,u=s(arguments.length,2)
for(e=Object(i(e)),a=function(n){try{e[n]=t[n]}catch(e){r||(r=e)}},o=1;o<u;++o)n(t=arguments[o]).forEach(a)
if(void 0!==r)throw r
return e}},65198:e=>{"use strict"
e.exports=function(e){return"function"==typeof e}},62734:(e,t,r)=>{"use strict"
var n=r(65850)()
e.exports=function(e){return e!==n&&null!==e}},80943:(e,t,r)=>{"use strict"
e.exports=r(35300)()?Object.keys:r(89473)},35300:e=>{"use strict"
e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},89473:(e,t,r)=>{"use strict"
var n=r(62734),i=Object.keys
e.exports=function(e){return i(n(e)?Object(e):e)}},87725:(e,t,r)=>{"use strict"
var n=r(62734),i=Array.prototype.forEach,s=Object.create
e.exports=function(e){var t=s(null)
return i.call(arguments,(function(e){n(e)&&function(e,t){var r
for(r in e)t[r]=e[r]}(Object(e),t)})),t}},74859:e=>{"use strict"
e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function")
return e}},31047:(e,t,r)=>{"use strict"
var n=r(62734)
e.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined")
return e}},99985:(e,t,r)=>{"use strict"
e.exports=r(57196)()?String.prototype.contains:r(8366)},57196:e=>{"use strict"
var t="razdwatrzy"
e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},8366:e=>{"use strict"
var t=String.prototype.indexOf
e.exports=function(e){return t.call(this,e,arguments[1])>-1}},36467:(e,t,r)=>{"use strict"
var n,i,s,o,a,u,c,l=r(56540),h=r(74859),d=Function.prototype.apply,f=Function.prototype.call,p=Object.create,g=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0}
i=function(e,t){var r,i
return h(t),i=this,n.call(this,e,r=function(){s.call(i,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},a={on:n=function(e,t){var r
return h(t),y.call(this,"__ee__")?r=this.__ee__:(r=v.value=p(null),g(this,"__ee__",v),v.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},once:i,off:s=function(e,t){var r,n,i,s
if(h(t),!y.call(this,"__ee__"))return this
if(!(r=this.__ee__)[e])return this
if("object"==typeof(n=r[e]))for(s=0;i=n[s];++s)i!==t&&i.__eeOnceListener__!==t||(2===n.length?r[e]=n[s?0:1]:n.splice(s,1))
else n!==t&&n.__eeOnceListener__!==t||delete r[e]
return this},emit:o=function(e){var t,r,n,i,s
if(y.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(r=arguments.length,s=new Array(r-1),t=1;t<r;++t)s[t-1]=arguments[t]
for(i=i.slice(),t=0;n=i[t];++t)d.call(n,this,s)}else switch(arguments.length){case 1:f.call(i,this)
break
case 2:f.call(i,this,arguments[1])
break
case 3:f.call(i,this,arguments[1],arguments[2])
break
default:for(r=arguments.length,s=new Array(r-1),t=1;t<r;++t)s[t-1]=arguments[t]
d.call(i,this,s)}}},u={on:l(n),once:l(i),off:l(s),emit:l(o)},c=m({},u),e.exports=t=function(e){return null==e?p(c):m(Object(e),u)},t.methods=a},66481:(e,t)=>{var r,n,i
!function(s){if("undefined"!=typeof window){var o,a=0,u=!1,c=!1,l=7,h="[iFrameSizer]",d=h.length,f=null,p=window.requestAnimationFrame,g=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},y=null,v=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){S("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),_={}
window.jQuery!==s&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,r){j(r,e)})).end()}):w("","Unable to bind to jQuery, it is not fully loaded.")),n=[],(i="function"==typeof(r=G)?r.apply(t,n):r)===s||(e.exports=i),window.iFrameResize=window.iFrameResize||G()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function D(e,t,r){e.addEventListener(t,r,!1)}function A(e,t,r){e.removeEventListener(t,r,!1)}function E(e){return m[e]?m[e].log:u}function C(e,t){F("log",e,t,E(e))}function w(e,t){F("info",e,t,E(e))}function S(e,t){F("warn",e,t,!0)}function F(e,t,r,n){!0===n&&"object"==typeof window.console&&console[e](function(e){return h+"["+function(e){var t="Host page: "+e
return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),r)}function T(e){function t(){r("Height"),r("Width"),L((function(){N(T),M(x),c("onResized",T)}),T,"init")}function r(e){var t=Number(m[x]["max"+e]),r=Number(m[x]["min"+e]),n=e.toLowerCase(),i=Number(T[n])
C(x,"Checking "+n+" is in range "+r+"-"+t),i<r&&(i=r,C(x,"Set "+n+" to min value")),i>t&&(i=t,C(x,"Set "+n+" to max value")),T[n]=""+i}function n(e){return F.slice(F.indexOf(":")+l+e)}function i(e,t){var r,n
r=function(){var r,n
B("Send Page Info","pageInfo:"+(r=document.body.getBoundingClientRect(),n=T.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-r.top,10),offsetLeft:parseInt(n.left-r.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},_[n=t]||(_[n]=setTimeout((function(){_[n]=null,r()}),32))}function s(e){var t=e.getBoundingClientRect()
return P(x),{x:Math.floor(Number(t.left)+Number(f.x)),y:Math.floor(Number(t.top)+Number(f.y))}}function o(e){var t=e?s(T.iframe):{x:0,y:0},r={x:Number(T.width)+t.x,y:Number(T.height)+t.y}
C(x,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top===window.self?(f=r,a(),C(x,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](r.x,r.y):S(x,"Unable to scroll to requested position, window.parentIFrame not found")}function a(){!1===c("onScroll",f)?k():M(x)}function u(e){var t={}
if(0===Number(T.width)&&0===Number(T.height)){var r=n(9).split(":")
t={x:r[1],y:r[0]}}else t={x:T.width,y:T.height}
c(e,{iframe:T.iframe,screenX:Number(t.x),screenY:Number(t.y),type:T.type})}function c(e,t){return R(x,e,t)}var p,g,y,v,b,E,F=e.data,T={},x=null
"[iFrameResizerChild]Ready"===F?function(){for(var e in m)B("iFrame requested init",U(e),m[e].iframe,e)}():h===(""+F).slice(0,d)&&F.slice(d).split(":")[0]in m?(v=(y=F.slice(d).split(":"))[1]?parseInt(y[1],10):0,b=m[y[0]]&&m[y[0]].iframe,E=getComputedStyle(b),T={iframe:b,id:y[0],height:v+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(E)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(E),width:y[2],type:y[3]},x=T.id,m[x]&&(m[x].loaded=!0),(g=T.type in{true:1,false:1,undefined:1})&&C(x,"Ignoring init message from meta parent page"),!g&&function(e){var t=!0
return m[e]||(t=!1,S(T.type+" No settings for "+e+". Message was: "+F)),t}(x)&&(C(x,"Received: "+F),p=!0,null===T.iframe&&(S(x,"IFrame ("+T.id+") not found"),p=!1),p&&function(){var t,r=e.origin,n=m[x]&&m[x].checkOrigin
if(n&&""+r!="null"&&!(n.constructor===Array?function(){var e=0,t=!1
for(C(x,"Checking connection is from allowed list of origins: "+n);e<n.length;e++)if(n[e]===r){t=!0
break}return t}():(t=m[x]&&m[x].remoteHost,C(x,"Checking connection is from: "+t),r===t)))throw new Error("Unexpected message received from: "+r+" for "+T.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.")
return!0}()&&function(){switch(m[x]&&m[x].firstRun&&m[x]&&(m[x].firstRun=!1),T.type){case"close":O(T.iframe)
break
case"message":e=n(6),C(x,"onMessage passed: {iframe: "+T.iframe.id+", message: "+e+"}"),c("onMessage",{iframe:T.iframe,message:JSON.parse(e)}),C(x,"--")
break
case"mouseenter":u("onMouseEnter")
break
case"mouseleave":u("onMouseLeave")
break
case"autoResize":m[x].autoResize=JSON.parse(n(9))
break
case"scrollTo":o(!1)
break
case"scrollToOffset":o(!0)
break
case"pageInfo":i(m[x]&&m[x].iframe,x),function(){function e(e,n){function s(){m[r]?i(m[r].iframe,r):t()}["scroll","resize"].forEach((function(t){C(r,e+t+" listener for sendPageInfo"),n(window,t,s)}))}function t(){e("Remove ",A)}var r=x
e("Add ",D),m[r]&&(m[r].stopPageInfo=t)}()
break
case"pageInfoStop":m[x]&&m[x].stopPageInfo&&(m[x].stopPageInfo(),delete m[x].stopPageInfo)
break
case"inPageLink":!function(e){var t,r=e.split("#")[1]||"",n=decodeURIComponent(r),i=document.getElementById(n)||document.getElementsByName(n)[0]
i?(t=s(i),C(x,"Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),f={x:t.x,y:t.y},a(),C(x,"--")):window.top===window.self?C(x,"In page link #"+r+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(r):C(x,"In page link #"+r+" not found and window.parentIFrame not found")}(n(9))
break
case"reset":I(T)
break
case"init":t(),c("onInit",T.iframe)
break
default:0===Number(T.width)&&0===Number(T.height)?S("Unsupported message received ("+T.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e}())):w(x,"Ignored: "+F)}function R(e,t,r){var n=null,i=null
if(m[e]){if("function"!=typeof(n=m[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function")
i=n(r)}return i}function x(e){var t=e.id
delete m[t]}function O(e){var t=e.id
if(!1!==R(t,"onClose",t)){C(t,"Removing iFrame: "+t)
try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}R(t,"onClosed",t),C(t,"--"),x(e)}else C(t,"Close iframe cancelled by onClose event")}function P(e){null===f&&C(e,"Get page position: "+(f={x:window.pageXOffset===s?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===s?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function M(e){null!==f&&(window.scrollTo(f.x,f.y),C(e,"Set page position: "+f.x+","+f.y),k())}function k(){f=null}function I(e){C(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),P(e.id),L((function(){N(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",C(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):C("undefined","messageData id not set")}(t),function(t){c||"0"!==e[t]||(c=!0,C(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function t(t){return"0px"===(m[e]&&m[e].iframe.style[t])}m[e]&&null!==m[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",m[e].iframe,e)}(e)}))}var t,r=b()
r&&(t=document.querySelector("body"),new r((function(t){C("window","Mutation observed: "+t[0].target+" "+t[0].type),q(e,16)})).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}(t)}var r=e.iframe.id
m[r]&&(m[r].sizeHeight&&t("height"),m[r].sizeWidth&&t("width"))}function L(e,t,r){r!==t.type&&p&&!window.jasmine?(C(t.id,"Requesting animation frame"),p(e)):e()}function B(e,t,r,n,i){var s,o=!1
n=n||r.id,m[n]&&(r&&"contentWindow"in r&&null!==r.contentWindow?(s=m[n]&&m[n].targetOrigin,C(n,"["+e+"] Sending msg to iframe["+n+"] ("+t+") targetOrigin: "+s),r.contentWindow.postMessage(h+t,s)):S(n,"["+e+"] IFrame("+n+") not found"),i&&m[n]&&m[n].warningTimeout&&(m[n].msgTimeout=setTimeout((function(){!m[n]||m[n].loaded||o||(o=!0,S(n,"IFrame has not responded within "+m[n].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[n].warningTimeout)))}function U(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function j(e,t){function r(e){var t=e.split("Callback")
if(2===t.length){var r="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)
this[r]=this[e],delete this[e],S(o,"Deprecated: '"+e+"' has been renamed '"+r+"'. The old method will be removed in the next major version.")}}var n,i,o=function(r){if("string"!=typeof r)throw new TypeError("Invaild id for iFrame. Expected String")
var n
return""===r&&(e.id=(n=t&&t.id||v.id+a++,null!==document.getElementById(n)&&(n+=a++),r=n),u=(t||{}).log,C(r,"Added missing iframe ID: "+r+" ("+e.src+")")),r}(e.id)
o in m&&"iFrameResizer"in e?S(o,"Ignored iFrame, already setup."):(function(t){var n
t=t||{},m[o]=Object.create(null),m[o].iframe=e,m[o].firstRun=!0,m[o].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(r,t),function(e){for(var t in v)Object.prototype.hasOwnProperty.call(v,t)&&(m[o][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:v[t])}(t),m[o]&&(m[o].targetOrigin=!0===m[o].checkOrigin?""===(n=m[o].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(t),function(){switch(C(o,"IFrame scrolling "+(m[o]&&m[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(m[o]&&m[o].scrolling)?"hidden":"auto",m[o]&&m[o].scrolling){case"omit":break
case!0:e.scrolling="yes"
break
case!1:e.scrolling="no"
break
default:e.scrolling=m[o]?m[o].scrolling:"no"}}(),function(){function t(t){var r=m[o][t]
1/0!==r&&0!==r&&(e.style[t]="number"==typeof r?r+"px":r,C(o,"Set "+t+" = "+e.style[t]))}function r(e){if(m[o]["min"+e]>m[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}r("Height"),r("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(m[o]&&m[o].bodyMargin)&&"0"!==(m[o]&&m[o].bodyMargin)||(m[o].bodyMarginV1=m[o].bodyMargin,m[o].bodyMargin=m[o].bodyMargin+"px"),n=U(o),(i=b())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&O(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),D(e,"load",(function(){var t,r
B("iFrame.onload",n,e,s,!0),t=m[o]&&m[o].firstRun,r=m[o]&&m[o].heightCalculationMethod in g,!t&&r&&I({iframe:e,height:0,width:0,type:"init"})})),B("init",n,e,s,!0),m[o]&&(m[o].iframe.iFrameResizer={close:O.bind(null,m[o].iframe),removeListeners:x.bind(null,m[o].iframe),resize:B.bind(null,"Window resize","resize",m[o].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,m[o].iframe,o)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),m[o].iframe,o)}}))}function q(e,t){null===y&&(y=setTimeout((function(){y=null,e()}),t))}function H(){"hidden"!==document.visibilityState&&(C("document","Trigger event: Visibility change"),q((function(){z("Tab Visible","resize")}),16))}function z(e,t){Object.keys(m).forEach((function(r){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(r)&&B(e,t,m[r].iframe,r)}))}function G(){function e(e,r){r&&(function(){if(!r.tagName)throw new TypeError("Object is not a valid DOM element")
if("IFRAME"!==r.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+r.tagName+">")}(),j(r,e),t.push(r))}var t
return function(){var e,t=["moz","webkit","o","ms"]
for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"]
p?p=p.bind(window):C("setup","RequestAnimationFrame not supported")}(),D(window,"message",T),D(window,"resize",(function(){C("window","Trigger event: resize"),q((function(){z("Window resize","resize")}),16)})),D(document,"visibilitychange",H),D(document,"-webkit-visibilitychange",H),function(r,n){switch(t=[],function(e){e&&e.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),e.bind(s,r))
break
case"object":e(r,n)
break
default:throw new TypeError("Unexpected data type ("+typeof n+")")}return t}}}()},96990:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>l})
var n,i=function(){function e(){this.registry=new WeakMap}return e.prototype.elementExists=function(e){return this.registry.has(e)},e.prototype.getElement=function(e){return this.registry.get(e)},e.prototype.addElement=function(e,t){e&&this.registry.set(e,t||{})},e.prototype.removeElement=function(e){this.registry.delete(e)},e.prototype.destroyRegistry=function(){this.registry=new WeakMap},e}(),s=function(){}
!function(e){e.enter="enter",e.exit="exit"}(n||(n={}))
var o,a=function(){function e(){this.registry=new i}return e.prototype.addCallback=function(e,t,r){var i,s,o
e===n.enter?((i={})[n.enter]=r,o=i):((s={})[n.exit]=r,o=s),this.registry.addElement(t,Object.assign({},this.registry.getElement(t),o))},e.prototype.dispatchCallback=function(e,t,r){if(e===n.enter){var i=this.registry.getElement(t).enter;(void 0===i?s:i)(r)}else{var o=this.registry.getElement(t)
o&&o.exit&&o.exit(r)}},e}(),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null")
function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])
return e},c.apply(this,arguments)}
const l=function(e){function t(){var t=e.call(this)||this
return t.elementRegistry=new i,t}return u(t,e),t.prototype.observe=function(e,t){void 0===t&&(t={}),e&&(this.elementRegistry.addElement(e,c({},t)),this.setupObserver(e,c({},t)))},t.prototype.unobserve=function(e,t){var r=this.findMatchingRootEntry(t)
r&&r.intersectionObserver.unobserve(e)},t.prototype.addEnterCallback=function(e,t){this.addCallback(n.enter,e,t)},t.prototype.addExitCallback=function(e,t){this.addCallback(n.exit,e,t)},t.prototype.dispatchEnterCallback=function(e,t){this.dispatchCallback(n.enter,e,t)},t.prototype.dispatchExitCallback=function(e,t){this.dispatchCallback(n.exit,e,t)},t.prototype.destroy=function(){this.elementRegistry.destroyRegistry()},t.prototype.setupOnIntersection=function(e){var t=this
return function(r){return t.onIntersection(e,r)}},t.prototype.setupObserver=function(e,t){var r,n,i=t.root,s=void 0===i?window:i,o=this.findRootFromRegistry(s)
if(o&&(n=this.determineMatchingElements(t,o)),n){var a=n.elements,u=n.intersectionObserver
a.push(e),u&&u.observe(e)}else{var c={elements:[e],intersectionObserver:u=this.newObserver(e,t),options:t},l=this.stringifyOptions(t)
o?o[l]=c:this.elementRegistry.addElement(s,((r={})[l]=c,r))}},t.prototype.newObserver=function(e,t){var r=t.root,n=t.rootMargin,i=t.threshold,s=new IntersectionObserver(this.setupOnIntersection(t).bind(this),{root:r,rootMargin:n,threshold:i})
return s.observe(e),s},t.prototype.onIntersection=function(e,t){var r=this
t.forEach((function(t){var n=t.isIntersecting,i=t.intersectionRatio,s=e.threshold||0
Array.isArray(s)&&(s=s[s.length-1])
var o=r.findMatchingRootEntry(e)
n||i>s?o&&o.elements.some((function(e){return!(!e||e!==t.target||(r.dispatchEnterCallback(e,t),0))})):o&&o.elements.some((function(e){return!(!e||e!==t.target||(r.dispatchExitCallback(e,t),0))}))}))},t.prototype.findRootFromRegistry=function(e){if(this.elementRegistry)return this.elementRegistry.getElement(e)},t.prototype.findMatchingRootEntry=function(e){var t=e.root,r=void 0===t?window:t,n=this.findRootFromRegistry(r)
if(n)return n[this.stringifyOptions(e)]},t.prototype.determineMatchingElements=function(e,t){var r=this,n=Object.keys(t).filter((function(n){var i=t[n].options
return r.areOptionsSame(e,i)}))[0]
return t[n]},t.prototype.areOptionsSame=function(e,t){if(e===t)return!0
var r=Object.prototype.toString.call(e),n=Object.prototype.toString.call(t)
if(r!==n)return!1
if("[object Object]"!==r&&"[object Object]"!==n)return e===t
if(e&&t&&"object"==typeof e&&"object"==typeof t)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!1===this.areOptionsSame(e[i],t[i]))return!1
return!0},t.prototype.stringifyOptions=function(e){var t=e.root
return JSON.stringify(e,(function(e,r){if("root"===e&&t){var n=Array.prototype.slice.call(t.classList).reduce((function(e,t){return e+t}),""),i=t.id
return"".concat(i,"-").concat(n)}return r}))},t}(a)},52077:function(e,t,r){var n
e=r.nmd(e),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,h=9007199254740991,d=NaN,f=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",y="[object Boolean]",v="[object Date]",_="[object Error]",b="[object Function]",D="[object GeneratorFunction]",A="[object Map]",E="[object Number]",C="[object Object]",w="[object Promise]",S="[object RegExp]",F="[object Set]",T="[object String]",R="[object Symbol]",x="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",k="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",L="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",j="[object Uint16Array]",q="[object Uint32Array]",H=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,$=RegExp(W.source),K=RegExp(V.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,be=/['\n\r\u2028\u2029\\]/g,De="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+De+"]",Re="["+Fe+"]",xe="["+Ae+"]",Oe="\\d+",Pe="["+Ee+"]",Me="["+Ce+"]",ke="[^"+De+Fe+Oe+Ee+Ce+we+"]",Ie="\\ud83c[\\udffb-\\udfff]",Ne="[^"+De+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+we+"]",je="\\u200d",qe="(?:"+Me+"|"+ke+")",He="(?:"+Ue+"|"+ke+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+xe+"|"+Ie+")?",Ve="["+Se+"]?",$e=Ve+We+"(?:"+je+"(?:"+[Ne,Le,Be].join("|")+")"+Ve+We+")*",Ke="(?:"+[Pe,Le,Be].join("|")+")"+$e,Qe="(?:"+[Ne+xe+"?",xe,Le,Be,Te].join("|")+")",Ye=RegExp("['’]","g"),Xe=RegExp(xe,"g"),Je=RegExp(Ie+"(?="+Ie+")|"+Qe+$e,"g"),Ze=RegExp([Ue+"?"+Me+"+"+ze+"(?="+[Re,Ue,"$"].join("|")+")",He+"+"+Ge+"(?="+[Re,Ue+qe,"$"].join("|")+")",Ue+"?"+qe+"+"+ze,Ue+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ke].join("|"),"g"),et=RegExp("["+je+De+Ae+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={}
it[M]=it[k]=it[I]=it[N]=it[L]=it[B]=it[U]=it[j]=it[q]=!0,it[g]=it[m]=it[O]=it[y]=it[P]=it[v]=it[_]=it[b]=it[A]=it[E]=it[C]=it[S]=it[F]=it[T]=it[x]=!1
var st={}
st[g]=st[m]=st[O]=st[P]=st[y]=st[v]=st[M]=st[k]=st[I]=st[N]=st[L]=st[A]=st[E]=st[C]=st[S]=st[F]=st[T]=st[R]=st[B]=st[U]=st[j]=st[q]=!0,st[_]=st[b]=st[x]=!1
var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof global&&global&&global.Object===Object&&global,lt="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||lt||Function("return this")(),dt=t&&!t.nodeType&&t,ft=dt&&e&&!e.nodeType&&e,pt=ft&&ft.exports===dt,gt=pt&&ct.process,mt=function(){try{return ft&&ft.require&&ft.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),yt=mt&&mt.isArrayBuffer,vt=mt&&mt.isDate,_t=mt&&mt.isMap,bt=mt&&mt.isRegExp,Dt=mt&&mt.isSet,At=mt&&mt.isTypedArray
function Et(e,t,r){switch(r.length){case 0:return e.call(t)
case 1:return e.call(t,r[0])
case 2:return e.call(t,r[0],r[1])
case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i]
t(n,o,r(o),e)}return n}function wt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function St(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1
return!0}function Tt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r]
t(o,r,e)&&(s[i++]=o)}return s}function Rt(e,t){return!(null==e||!e.length)&&Ut(e,t,0)>-1}function xt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0
return!1}function Ot(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e)
return i}function Pt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r]
return e}function Mt(e,t,r,n){var i=-1,s=null==e?0:e.length
for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e)
return r}function kt(e,t,r,n){var i=null==e?0:e.length
for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e)
return r}function It(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0
return!1}var Nt=zt("length")
function Lt(e,t,r){var n
return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function Bt(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s
return-1}function Ut(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n
return-1}(e,t,r):Bt(e,qt,r)}function jt(e,t,r,n){for(var i=r-1,s=e.length;++i<s;)if(n(e[i],t))return i
return-1}function qt(e){return e!=e}function Ht(e,t){var r=null==e?0:e.length
return r?Vt(e,t)/r:d}function zt(e){return function(t){return null==t?i:t[e]}}function Gt(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,r,n,i){return i(e,(function(e,i,s){r=n?(n=!1,e):t(r,e,i,s)})),r}function Vt(e,t){for(var r,n=-1,s=e.length;++n<s;){var o=t(e[n])
o!==i&&(r=r===i?o:r+o)}return r}function $t(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r)
return n}function Kt(e){return e?e.slice(0,lr(e)+1).replace(ne,""):e}function Qt(e){return function(t){return e(t)}}function Yt(e,t){return Ot(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Jt(e,t){for(var r=-1,n=e.length;++r<n&&Ut(t,e[r],0)>-1;);return r}function Zt(e,t){for(var r=e.length;r--&&Ut(t,e[r],0)>-1;);return r}var er=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),tr=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})
function rr(e){return"\\"+ot[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size)
return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function or(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r]
o!==t&&o!==a||(e[r]=a,s[i++]=r)}return s}function ar(e){var t=-1,r=Array(e.size)
return e.forEach((function(e){r[++t]=e})),r}function ur(e){return nr(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t
return t}(e):Nt(e)}function cr(e){return nr(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function lr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var hr=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dr=function e(t){var r,n=(t=null==t?ht:dr.defaults(ht.Object(),t,dr.pick(ht,rt))).Array,ie=t.Date,De=t.Error,Ae=t.Function,Ee=t.Math,Ce=t.Object,we=t.RegExp,Se=t.String,Fe=t.TypeError,Te=n.prototype,Re=Ae.prototype,xe=Ce.prototype,Oe=t["__core-js_shared__"],Pe=Re.toString,Me=xe.hasOwnProperty,ke=0,Ie=(r=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ne=xe.toString,Le=Pe.call(Ce),Be=ht._,Ue=we("^"+Pe.call(Me).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=pt?t.Buffer:i,qe=t.Symbol,He=t.Uint8Array,ze=je?je.allocUnsafe:i,Ge=sr(Ce.getPrototypeOf,Ce),We=Ce.create,Ve=xe.propertyIsEnumerable,$e=Te.splice,Ke=qe?qe.isConcatSpreadable:i,Qe=qe?qe.iterator:i,Je=qe?qe.toStringTag:i,et=function(){try{var e=as(Ce,"defineProperty")
return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ht.Date.now&&ie.now,lt=t.setTimeout!==ht.setTimeout&&t.setTimeout,dt=Ee.ceil,ft=Ee.floor,gt=Ce.getOwnPropertySymbols,mt=je?je.isBuffer:i,Nt=t.isFinite,Gt=Te.join,fr=sr(Ce.keys,Ce),pr=Ee.max,gr=Ee.min,mr=ie.now,yr=t.parseInt,vr=Ee.random,_r=Te.reverse,br=as(t,"DataView"),Dr=as(t,"Map"),Ar=as(t,"Promise"),Er=as(t,"Set"),Cr=as(t,"WeakMap"),wr=as(Ce,"create"),Sr=Cr&&new Cr,Fr={},Tr=Is(br),Rr=Is(Dr),xr=Is(Ar),Or=Is(Er),Pr=Is(Cr),Mr=qe?qe.prototype:i,kr=Mr?Mr.valueOf:i,Ir=Mr?Mr.toString:i
function Nr(e){if(Zo(e)&&!Ho(e)&&!(e instanceof jr)){if(e instanceof Ur)return e
if(Me.call(e,"__wrapped__"))return Ns(e)}return new Ur(e)}var Lr=function(){function e(){}return function(t){if(!Jo(t))return{}
if(We)return We(t)
e.prototype=t
var r=new e
return e.prototype=i,r}}()
function Br(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function jr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length
for(this.clear();++t<r;){var n=e[t]
this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length
for(this.clear();++t<r;){var n=e[t]
this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length
for(this.clear();++t<r;){var n=e[t]
this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length
for(this.__data__=new zr;++t<r;)this.add(e[t])}function Wr(e){var t=this.__data__=new Hr(e)
this.size=t.size}function Vr(e,t){var r=Ho(e),n=!r&&qo(e),i=!r&&!n&&Vo(e),s=!r&&!n&&!i&&aa(e),o=r||n||i||s,a=o?$t(e.length,Se):[],u=a.length
for(var c in e)!t&&!Me.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ps(c,u))||a.push(c)
return a}function $r(e){var t=e.length
return t?e[Gn(0,t-1)]:i}function Kr(e,t){return xs(wi(e),nn(t,0,e.length))}function Qr(e){return xs(wi(e))}function Yr(e,t,r){(r!==i&&!Bo(e[t],r)||r===i&&!(t in e))&&tn(e,t,r)}function Xr(e,t,r){var n=e[t]
Me.call(e,t)&&Bo(n,r)&&(r!==i||t in e)||tn(e,t,r)}function Jr(e,t){for(var r=e.length;r--;)if(Bo(e[r][0],t))return r
return-1}function Zr(e,t,r,n){return cn(e,(function(e,i,s){t(n,e,r(e),s)})),n}function en(e,t){return e&&Si(t,Ra(t),e)}function tn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rn(e,t){for(var r=-1,s=t.length,o=n(s),a=null==e;++r<s;)o[r]=a?i:Ca(e,t[r])
return o}function nn(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function sn(e,t,r,n,s,o){var a,u=1&t,c=2&t,l=4&t
if(r&&(a=s?r(e,n,s,o):r(e)),a!==i)return a
if(!Jo(e))return e
var h=Ho(e)
if(h){if(a=function(e){var t=e.length,r=new e.constructor(t)
return t&&"string"==typeof e[0]&&Me.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return wi(e,a)}else{var d=ls(e),f=d==b||d==D
if(Vo(e))return _i(e,u)
if(d==C||d==g||f&&!s){if(a=c||f?{}:ds(e),!u)return c?function(e,t){return Si(e,cs(e),t)}(e,function(e,t){return e&&Si(t,xa(t),e)}(a,e)):function(e,t){return Si(e,us(e),t)}(e,en(a,e))}else{if(!st[d])return s?e:{}
a=function(e,t,r){var n,i=e.constructor
switch(t){case O:return bi(e)
case y:case v:return new i(+e)
case P:return function(e,t){var r=t?bi(e.buffer):e.buffer
return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r)
case M:case k:case I:case N:case L:case B:case U:case j:case q:return Di(e,r)
case A:return new i
case E:case T:return new i(e)
case S:return function(e){var t=new e.constructor(e.source,de.exec(e))
return t.lastIndex=e.lastIndex,t}(e)
case F:return new i
case R:return n=e,kr?Ce(kr.call(n)):{}}}(e,d,u)}}o||(o=new Wr)
var p=o.get(e)
if(p)return p
o.set(e,a),ia(e)?e.forEach((function(n){a.add(sn(n,t,r,n,e,o))})):ea(e)&&e.forEach((function(n,i){a.set(i,sn(n,t,r,i,e,o))}))
var m=h?i:(l?c?es:Zi:c?xa:Ra)(e)
return wt(m||e,(function(n,i){m&&(n=e[i=n]),Xr(a,i,sn(n,t,r,i,e,o))})),a}function on(e,t,r){var n=r.length
if(null==e)return!n
for(e=Ce(e);n--;){var s=r[n],o=t[s],a=e[s]
if(a===i&&!(s in e)||!o(a))return!1}return!0}function an(e,t,r){if("function"!=typeof e)throw new Fe(s)
return Ss((function(){e.apply(i,r)}),t)}function un(e,t,r,n){var i=-1,s=Rt,o=!0,a=e.length,u=[],c=t.length
if(!a)return u
r&&(t=Ot(t,Qt(r))),n?(s=xt,o=!1):t.length>=200&&(s=Xt,o=!1,t=new Gr(t))
e:for(;++i<a;){var l=e[i],h=null==r?l:r(l)
if(l=n||0!==l?l:0,o&&h==h){for(var d=c;d--;)if(t[d]===h)continue e
u.push(l)}else s(t,h,n)||u.push(l)}return u}Nr.templateSettings={escape:Q,evaluate:Y,interpolate:X,variable:"",imports:{_:Nr}},Nr.prototype=Br.prototype,Nr.prototype.constructor=Nr,Ur.prototype=Lr(Br.prototype),Ur.prototype.constructor=Ur,jr.prototype=Lr(Br.prototype),jr.prototype.constructor=jr,qr.prototype.clear=function(){this.__data__=wr?wr(null):{},this.size=0},qr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e]
return this.size-=t?1:0,t},qr.prototype.get=function(e){var t=this.__data__
if(wr){var r=t[e]
return r===o?i:r}return Me.call(t,e)?t[e]:i},qr.prototype.has=function(e){var t=this.__data__
return wr?t[e]!==i:Me.call(t,e)},qr.prototype.set=function(e,t){var r=this.__data__
return this.size+=this.has(e)?0:1,r[e]=wr&&t===i?o:t,this},Hr.prototype.clear=function(){this.__data__=[],this.size=0},Hr.prototype.delete=function(e){var t=this.__data__,r=Jr(t,e)
return!(r<0||(r==t.length-1?t.pop():$e.call(t,r,1),--this.size,0))},Hr.prototype.get=function(e){var t=this.__data__,r=Jr(t,e)
return r<0?i:t[r][1]},Hr.prototype.has=function(e){return Jr(this.__data__,e)>-1},Hr.prototype.set=function(e,t){var r=this.__data__,n=Jr(r,e)
return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Dr||Hr),string:new qr}},zr.prototype.delete=function(e){var t=ss(this,e).delete(e)
return this.size-=t?1:0,t},zr.prototype.get=function(e){return ss(this,e).get(e)},zr.prototype.has=function(e){return ss(this,e).has(e)},zr.prototype.set=function(e,t){var r=ss(this,e),n=r.size
return r.set(e,t),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,o),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Wr.prototype.clear=function(){this.__data__=new Hr,this.size=0},Wr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e)
return this.size=t.size,r},Wr.prototype.get=function(e){return this.__data__.get(e)},Wr.prototype.has=function(e){return this.__data__.has(e)},Wr.prototype.set=function(e,t){var r=this.__data__
if(r instanceof Hr){var n=r.__data__
if(!Dr||n.length<199)return n.push([e,t]),this.size=++r.size,this
r=this.__data__=new zr(n)}return r.set(e,t),this.size=r.size,this}
var cn=Ri(yn),ln=Ri(vn,!0)
function hn(e,t){var r=!0
return cn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function dn(e,t,r){for(var n=-1,s=e.length;++n<s;){var o=e[n],a=t(o)
if(null!=a&&(u===i?a==a&&!oa(a):r(a,u)))var u=a,c=o}return c}function fn(e,t){var r=[]
return cn(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function pn(e,t,r,n,i){var s=-1,o=e.length
for(r||(r=fs),i||(i=[]);++s<o;){var a=e[s]
t>0&&r(a)?t>1?pn(a,t-1,r,n,i):Pt(i,a):n||(i[i.length]=a)}return i}var gn=xi(),mn=xi(!0)
function yn(e,t){return e&&gn(e,t,Ra)}function vn(e,t){return e&&mn(e,t,Ra)}function _n(e,t){return Tt(t,(function(t){return Qo(e[t])}))}function bn(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[ks(t[r++])]
return r&&r==n?e:i}function Dn(e,t,r){var n=t(e)
return Ho(e)?n:Pt(n,r(e))}function An(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Ce(e)?function(e){var t=Me.call(e,Je),r=e[Je]
try{e[Je]=i
var n=!0}catch(e){}var s=Ne.call(e)
return n&&(t?e[Je]=r:delete e[Je]),s}(e):function(e){return Ne.call(e)}(e)}function En(e,t){return e>t}function Cn(e,t){return null!=e&&Me.call(e,t)}function wn(e,t){return null!=e&&t in Ce(e)}function Sn(e,t,r){for(var s=r?xt:Rt,o=e[0].length,a=e.length,u=a,c=n(a),l=1/0,h=[];u--;){var d=e[u]
u&&t&&(d=Ot(d,Qt(t))),l=gr(d.length,l),c[u]=!r&&(t||o>=120&&d.length>=120)?new Gr(u&&d):i}d=e[0]
var f=-1,p=c[0]
e:for(;++f<o&&h.length<l;){var g=d[f],m=t?t(g):g
if(g=r||0!==g?g:0,!(p?Xt(p,m):s(h,m,r))){for(u=a;--u;){var y=c[u]
if(!(y?Xt(y,m):s(e[u],m,r)))continue e}p&&p.push(m),h.push(g)}}return h}function Fn(e,t,r){var n=null==(e=Es(e,t=gi(t,e)))?e:e[ks($s(t))]
return null==n?i:Et(n,e,r)}function Tn(e){return Zo(e)&&An(e)==g}function Rn(e,t,r,n,s){return e===t||(null==e||null==t||!Zo(e)&&!Zo(t)?e!=e&&t!=t:function(e,t,r,n,s,o){var a=Ho(e),u=Ho(t),c=a?m:ls(e),l=u?m:ls(t),h=(c=c==g?C:c)==C,d=(l=l==g?C:l)==C,f=c==l
if(f&&Vo(e)){if(!Vo(t))return!1
a=!0,h=!1}if(f&&!h)return o||(o=new Wr),a||aa(e)?Xi(e,t,r,n,s,o):function(e,t,r,n,i,s,o){switch(r){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1
e=e.buffer,t=t.buffer
case O:return!(e.byteLength!=t.byteLength||!s(new He(e),new He(t)))
case y:case v:case E:return Bo(+e,+t)
case _:return e.name==t.name&&e.message==t.message
case S:case T:return e==t+""
case A:var a=ir
case F:var u=1&n
if(a||(a=ar),e.size!=t.size&&!u)return!1
var c=o.get(e)
if(c)return c==t
n|=2,o.set(e,t)
var l=Xi(a(e),a(t),n,i,s,o)
return o.delete(e),l
case R:if(kr)return kr.call(e)==kr.call(t)}return!1}(e,t,c,r,n,s,o)
if(!(1&r)){var p=h&&Me.call(e,"__wrapped__"),b=d&&Me.call(t,"__wrapped__")
if(p||b){var D=p?e.value():e,w=b?t.value():t
return o||(o=new Wr),s(D,w,r,n,o)}}return!!f&&(o||(o=new Wr),function(e,t,r,n,s,o){var a=1&r,u=Zi(e),c=u.length
if(c!=Zi(t).length&&!a)return!1
for(var l=c;l--;){var h=u[l]
if(!(a?h in t:Me.call(t,h)))return!1}var d=o.get(e),f=o.get(t)
if(d&&f)return d==t&&f==e
var p=!0
o.set(e,t),o.set(t,e)
for(var g=a;++l<c;){var m=e[h=u[l]],y=t[h]
if(n)var v=a?n(y,m,h,t,e,o):n(m,y,h,e,t,o)
if(!(v===i?m===y||s(m,y,r,n,o):v)){p=!1
break}g||(g="constructor"==h)}if(p&&!g){var _=e.constructor,b=t.constructor
_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,s,o))}(e,t,r,n,Rn,s))}function xn(e,t,r,n){var s=r.length,o=s,a=!n
if(null==e)return!o
for(e=Ce(e);s--;){var u=r[s]
if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){var c=(u=r[s])[0],l=e[c],h=u[1]
if(a&&u[2]){if(l===i&&!(c in e))return!1}else{var d=new Wr
if(n)var f=n(l,h,c,e,t,d)
if(!(f===i?Rn(h,l,3,n,d):f))return!1}}return!0}function On(e){return!(!Jo(e)||(t=e,Ie&&Ie in t))&&(Qo(e)?Ue:ge).test(Is(e))
var t}function Pn(e){return"function"==typeof e?e:null==e?tu:"object"==typeof e?Ho(e)?Ln(e[0],e[1]):Nn(e):lu(e)}function Mn(e){if(!_s(e))return fr(e)
var t=[]
for(var r in Ce(e))Me.call(e,r)&&"constructor"!=r&&t.push(r)
return t}function kn(e,t){return e<t}function In(e,t){var r=-1,i=Go(e)?n(e.length):[]
return cn(e,(function(e,n,s){i[++r]=t(e,n,s)})),i}function Nn(e){var t=os(e)
return 1==t.length&&t[0][2]?Ds(t[0][0],t[0][1]):function(r){return r===e||xn(r,e,t)}}function Ln(e,t){return ms(e)&&bs(t)?Ds(ks(e),t):function(r){var n=Ca(r,e)
return n===i&&n===t?wa(r,e):Rn(t,n,3)}}function Bn(e,t,r,n,s){e!==t&&gn(t,(function(o,a){if(s||(s=new Wr),Jo(o))!function(e,t,r,n,s,o,a){var u=Cs(e,r),c=Cs(t,r),l=a.get(c)
if(l)Yr(e,r,l)
else{var h=o?o(u,c,r+"",e,t,a):i,d=h===i
if(d){var f=Ho(c),p=!f&&Vo(c),g=!f&&!p&&aa(c)
h=c,f||p||g?Ho(u)?h=u:Wo(u)?h=wi(u):p?(d=!1,h=_i(c,!0)):g?(d=!1,h=Di(c,!0)):h=[]:ra(c)||qo(c)?(h=u,qo(u)?h=ga(u):Jo(u)&&!Qo(u)||(h=ds(c))):d=!1}d&&(a.set(c,h),s(h,c,n,o,a),a.delete(c)),Yr(e,r,h)}}(e,t,a,r,Bn,n,s)
else{var u=n?n(Cs(e,a),o,a+"",e,t,s):i
u===i&&(u=o),Yr(e,a,u)}}),xa)}function Un(e,t){var r=e.length
if(r)return ps(t+=t<0?r:0,r)?e[t]:i}function jn(e,t,r){t=t.length?Ot(t,(function(e){return Ho(e)?function(t){return bn(t,1===e.length?e[0]:e)}:e})):[tu]
var n=-1
t=Ot(t,Qt(is()))
var i=In(e,(function(e,r,i){var s=Ot(t,(function(t){return t(e)}))
return{criteria:s,index:++n,value:e}}))
return function(e,t){var n=e.length
for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,a=r.length;++n<o;){var u=Ai(i[n],s[n])
if(u)return n>=a?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value
return e}(i)}function qn(e,t,r){for(var n=-1,i=t.length,s={};++n<i;){var o=t[n],a=bn(e,o)
r(a,o)&&Qn(s,gi(o,e),a)}return s}function Hn(e,t,r,n){var i=n?jt:Ut,s=-1,o=t.length,a=e
for(e===t&&(t=wi(t)),r&&(a=Ot(e,Qt(r)));++s<o;)for(var u=0,c=t[s],l=r?r(c):c;(u=i(a,l,u,n))>-1;)a!==e&&$e.call(a,u,1),$e.call(e,u,1)
return e}function zn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r]
if(r==n||i!==s){var s=i
ps(i)?$e.call(e,i,1):ai(e,i)}}return e}function Gn(e,t){return e+ft(vr()*(t-e+1))}function Wn(e,t){var r=""
if(!e||t<1||t>h)return r
do{t%2&&(r+=e),(t=ft(t/2))&&(e+=e)}while(t)
return r}function Vn(e,t){return Fs(As(e,t,tu),e+"")}function $n(e){return $r(Ba(e))}function Kn(e,t){var r=Ba(e)
return xs(r,nn(t,0,r.length))}function Qn(e,t,r,n){if(!Jo(e))return e
for(var s=-1,o=(t=gi(t,e)).length,a=o-1,u=e;null!=u&&++s<o;){var c=ks(t[s]),l=r
if("__proto__"===c||"constructor"===c||"prototype"===c)return e
if(s!=a){var h=u[c];(l=n?n(h,c,u):i)===i&&(l=Jo(h)?h:ps(t[s+1])?[]:{})}Xr(u,c,l),u=u[c]}return e}var Yn=Sr?function(e,t){return Sr.set(e,t),e}:tu,Xn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Ja(t),writable:!0})}:tu
function Jn(e){return xs(Ba(e))}function Zn(e,t,r){var i=-1,s=e.length
t<0&&(t=-t>s?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0
for(var o=n(s);++i<s;)o[i]=e[i+t]
return o}function ei(e,t){var r
return cn(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ti(e,t,r){var n=0,i=null==e?n:e.length
if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var s=n+i>>>1,o=e[s]
null!==o&&!oa(o)&&(r?o<=t:o<t)?n=s+1:i=s}return i}return ri(e,t,tu,r)}function ri(e,t,r,n){var s=0,o=null==e?0:e.length
if(0===o)return 0
for(var a=(t=r(t))!=t,u=null===t,c=oa(t),l=t===i;s<o;){var h=ft((s+o)/2),d=r(e[h]),f=d!==i,p=null===d,g=d==d,m=oa(d)
if(a)var y=n||g
else y=l?g&&(n||f):u?g&&f&&(n||!p):c?g&&f&&!p&&(n||!m):!p&&!m&&(n?d<=t:d<t)
y?s=h+1:o=h}return gr(o,4294967294)}function ni(e,t){for(var r=-1,n=e.length,i=0,s=[];++r<n;){var o=e[r],a=t?t(o):o
if(!r||!Bo(a,u)){var u=a
s[i++]=0===o?0:o}}return s}function ii(e){return"number"==typeof e?e:oa(e)?d:+e}function si(e){if("string"==typeof e)return e
if(Ho(e))return Ot(e,si)+""
if(oa(e))return Ir?Ir.call(e):""
var t=e+""
return"0"==t&&1/e==-1/0?"-0":t}function oi(e,t,r){var n=-1,i=Rt,s=e.length,o=!0,a=[],u=a
if(r)o=!1,i=xt
else if(s>=200){var c=t?null:Wi(e)
if(c)return ar(c)
o=!1,i=Xt,u=new Gr}else u=t?[]:a
e:for(;++n<s;){var l=e[n],h=t?t(l):l
if(l=r||0!==l?l:0,o&&h==h){for(var d=u.length;d--;)if(u[d]===h)continue e
t&&u.push(h),a.push(l)}else i(u,h,r)||(u!==a&&u.push(h),a.push(l))}return a}function ai(e,t){return null==(e=Es(e,t=gi(t,e)))||delete e[ks($s(t))]}function ui(e,t,r,n){return Qn(e,t,r(bn(e,t)),n)}function ci(e,t,r,n){for(var i=e.length,s=n?i:-1;(n?s--:++s<i)&&t(e[s],s,e););return r?Zn(e,n?0:s,n?s+1:i):Zn(e,n?s+1:0,n?i:s)}function li(e,t){var r=e
return r instanceof jr&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),r)}function hi(e,t,r){var i=e.length
if(i<2)return i?oi(e[0]):[]
for(var s=-1,o=n(i);++s<i;)for(var a=e[s],u=-1;++u<i;)u!=s&&(o[s]=un(o[s]||a,e[u],t,r))
return oi(pn(o,1),t,r)}function di(e,t,r){for(var n=-1,s=e.length,o=t.length,a={};++n<s;){var u=n<o?t[n]:i
r(a,e[n],u)}return a}function fi(e){return Wo(e)?e:[]}function pi(e){return"function"==typeof e?e:tu}function gi(e,t){return Ho(e)?e:ms(e,t)?[e]:Ms(ma(e))}var mi=Vn
function yi(e,t,r){var n=e.length
return r=r===i?n:r,!t&&r>=n?e:Zn(e,t,r)}var vi=ot||function(e){return ht.clearTimeout(e)}
function _i(e,t){if(t)return e.slice()
var r=e.length,n=ze?ze(r):new e.constructor(r)
return e.copy(n),n}function bi(e){var t=new e.constructor(e.byteLength)
return new He(t).set(new He(e)),t}function Di(e,t){var r=t?bi(e.buffer):e.buffer
return new e.constructor(r,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var r=e!==i,n=null===e,s=e==e,o=oa(e),a=t!==i,u=null===t,c=t==t,l=oa(t)
if(!u&&!l&&!o&&e>t||o&&a&&c&&!u&&!l||n&&a&&c||!r&&c||!s)return 1
if(!n&&!o&&!l&&e<t||l&&r&&s&&!n&&!o||u&&r&&s||!a&&s||!c)return-1}return 0}function Ei(e,t,r,i){for(var s=-1,o=e.length,a=r.length,u=-1,c=t.length,l=pr(o-a,0),h=n(c+l),d=!i;++u<c;)h[u]=t[u]
for(;++s<a;)(d||s<o)&&(h[r[s]]=e[s])
for(;l--;)h[u++]=e[s++]
return h}function Ci(e,t,r,i){for(var s=-1,o=e.length,a=-1,u=r.length,c=-1,l=t.length,h=pr(o-u,0),d=n(h+l),f=!i;++s<h;)d[s]=e[s]
for(var p=s;++c<l;)d[p+c]=t[c]
for(;++a<u;)(f||s<o)&&(d[p+r[a]]=e[s++])
return d}function wi(e,t){var r=-1,i=e.length
for(t||(t=n(i));++r<i;)t[r]=e[r]
return t}function Si(e,t,r,n){var s=!r
r||(r={})
for(var o=-1,a=t.length;++o<a;){var u=t[o],c=n?n(r[u],e[u],u,r,e):i
c===i&&(c=e[u]),s?tn(r,u,c):Xr(r,u,c)}return r}function Fi(e,t){return function(r,n){var i=Ho(r)?Ct:Zr,s=t?t():{}
return i(r,e,is(n,2),s)}}function Ti(e){return Vn((function(t,r){var n=-1,s=r.length,o=s>1?r[s-1]:i,a=s>2?r[2]:i
for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&gs(r[0],r[1],a)&&(o=s<3?i:o,s=1),t=Ce(t);++n<s;){var u=r[n]
u&&e(t,u,n,o)}return t}))}function Ri(e,t){return function(r,n){if(null==r)return r
if(!Go(r))return e(r,n)
for(var i=r.length,s=t?i:-1,o=Ce(r);(t?s--:++s<i)&&!1!==n(o[s],s,o););return r}}function xi(e){return function(t,r,n){for(var i=-1,s=Ce(t),o=n(t),a=o.length;a--;){var u=o[e?a:++i]
if(!1===r(s[u],u,s))break}return t}}function Oi(e){return function(t){var r=nr(t=ma(t))?cr(t):i,n=r?r[0]:t.charAt(0),s=r?yi(r,1).join(""):t.slice(1)
return n[e]()+s}}function Pi(e){return function(t){return Mt(Qa(qa(t).replace(Ye,"")),e,"")}}function Mi(e){return function(){var t=arguments
switch(t.length){case 0:return new e
case 1:return new e(t[0])
case 2:return new e(t[0],t[1])
case 3:return new e(t[0],t[1],t[2])
case 4:return new e(t[0],t[1],t[2],t[3])
case 5:return new e(t[0],t[1],t[2],t[3],t[4])
case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5])
case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t)
return Jo(n)?n:r}}function ki(e){return function(t,r,n){var s=Ce(t)
if(!Go(t)){var o=is(r,3)
t=Ra(t),r=function(e){return o(s[e],e,s)}}var a=e(t,r,n)
return a>-1?s[o?t[a]:a]:i}}function Ii(e){return Ji((function(t){var r=t.length,n=r,o=Ur.prototype.thru
for(e&&t.reverse();n--;){var a=t[n]
if("function"!=typeof a)throw new Fe(s)
if(o&&!u&&"wrapper"==rs(a))var u=new Ur([],!0)}for(n=u?n:r;++n<r;){var c=rs(a=t[n]),l="wrapper"==c?ts(a):i
u=l&&ys(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&ys(a)?u[c]():u.thru(a)}return function(){var e=arguments,n=e[0]
if(u&&1==e.length&&Ho(n))return u.plant(n).value()
for(var i=0,s=r?t[i].apply(this,e):n;++i<r;)s=t[i].call(this,s)
return s}}))}function Ni(e,t,r,s,o,a,u,l,h,d){var f=t&c,p=1&t,g=2&t,m=24&t,y=512&t,v=g?i:Mi(e)
return function c(){for(var _=arguments.length,b=n(_),D=_;D--;)b[D]=arguments[D]
if(m)var A=ns(c),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n
return n}(b,A)
if(s&&(b=Ei(b,s,o,m)),a&&(b=Ci(b,a,u,m)),_-=E,m&&_<d){var C=or(b,A)
return zi(e,t,Ni,c.placeholder,r,b,C,l,h,d-_)}var w=p?r:this,S=g?w[e]:e
return _=b.length,l?b=function(e,t){for(var r=e.length,n=gr(t.length,r),s=wi(e);n--;){var o=t[n]
e[n]=ps(o,r)?s[o]:i}return e}(b,l):y&&_>1&&b.reverse(),f&&h<_&&(b.length=h),this&&this!==ht&&this instanceof c&&(S=v||Mi(S)),S.apply(w,b)}}function Li(e,t){return function(r,n){return function(e,t,r,n){return yn(e,(function(e,i,s){t(n,r(e),i,s)})),n}(r,e,t(n),{})}}function Bi(e,t){return function(r,n){var s
if(r===i&&n===i)return t
if(r!==i&&(s=r),n!==i){if(s===i)return n
"string"==typeof r||"string"==typeof n?(r=si(r),n=si(n)):(r=ii(r),n=ii(n)),s=e(r,n)}return s}}function Ui(e){return Ji((function(t){return t=Ot(t,Qt(is())),Vn((function(r){var n=this
return e(t,(function(e){return Et(e,n,r)}))}))}))}function ji(e,t){var r=(t=t===i?" ":si(t)).length
if(r<2)return r?Wn(t,e):t
var n=Wn(t,dt(e/ur(t)))
return nr(t)?yi(cr(n),0,e).join(""):n.slice(0,e)}function qi(e){return function(t,r,s){return s&&"number"!=typeof s&&gs(t,r,s)&&(r=s=i),t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r,i){for(var s=-1,o=pr(dt((t-e)/(r||1)),0),a=n(o);o--;)a[i?o:++s]=e,e+=r
return a}(t,r,s=s===i?t<r?1:-1:ha(s),e)}}function Hi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=pa(t),r=pa(r)),e(t,r)}}function zi(e,t,r,n,s,o,a,c,l,h){var d=8&t
t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4)
var f=[e,t,s,d?o:i,d?a:i,d?i:o,d?i:a,c,l,h],p=r.apply(i,f)
return ys(e)&&ws(p,f),p.placeholder=n,Ts(p,e,t)}function Gi(e){var t=Ee[e]
return function(e,r){if(e=pa(e),(r=null==r?0:gr(da(r),292))&&Nt(e)){var n=(ma(e)+"e").split("e")
return+((n=(ma(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Wi=Er&&1/ar(new Er([,-0]))[1]==l?function(e){return new Er(e)}:ou
function Vi(e){return function(t){var r=ls(t)
return r==A?ir(t):r==F?function(e){var t=-1,r=Array(e.size)
return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,r,o,l,h,d,f){var p=2&t
if(!p&&"function"!=typeof e)throw new Fe(s)
var g=o?o.length:0
if(g||(t&=-97,o=l=i),d=d===i?d:pr(da(d),0),f=f===i?f:da(f),g-=l?l.length:0,64&t){var m=o,y=l
o=l=i}var v=p?i:ts(e),_=[e,t,r,o,l,m,y,h,d,f]
if(v&&function(e,t){var r=e[1],n=t[1],i=r|n,s=i<131,o=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r
if(!s&&!o)return e
1&n&&(e[2]=t[2],i|=1&r?0:4)
var u=t[3]
if(u){var l=e[3]
e[3]=l?Ei(l,u,t[4]):u,e[4]=l?or(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ci(l,u,t[6]):u,e[6]=l?or(e[5],a):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(_,v),e=_[0],t=_[1],r=_[2],o=_[3],l=_[4],!(f=_[9]=_[9]===i?p?0:e.length:pr(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,r){var s=Mi(e)
return function o(){for(var a=arguments.length,u=n(a),c=a,l=ns(o);c--;)u[c]=arguments[c]
var h=a<3&&u[0]!==l&&u[a-1]!==l?[]:or(u,l)
return(a-=h.length)<r?zi(e,t,Ni,o.placeholder,i,u,h,i,i,r-a):Et(this&&this!==ht&&this instanceof o?s:e,this,u)}}(e,t,f):t!=u&&33!=t||l.length?Ni.apply(i,_):function(e,t,r,i){var s=1&t,o=Mi(e)
return function t(){for(var a=-1,u=arguments.length,c=-1,l=i.length,h=n(l+u),d=this&&this!==ht&&this instanceof t?o:e;++c<l;)h[c]=i[c]
for(;u--;)h[c++]=arguments[++a]
return Et(d,s?r:this,h)}}(e,t,r,o)
else var b=function(e,t,r){var n=1&t,i=Mi(e)
return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r)
return Ts((v?Yn:ws)(b,_),e,t)}function Ki(e,t,r,n){return e===i||Bo(e,xe[r])&&!Me.call(n,r)?t:e}function Qi(e,t,r,n,s,o){return Jo(e)&&Jo(t)&&(o.set(t,e),Bn(e,t,i,Qi,o),o.delete(t)),e}function Yi(e){return ra(e)?i:e}function Xi(e,t,r,n,s,o){var a=1&r,u=e.length,c=t.length
if(u!=c&&!(a&&c>u))return!1
var l=o.get(e),h=o.get(t)
if(l&&h)return l==t&&h==e
var d=-1,f=!0,p=2&r?new Gr:i
for(o.set(e,t),o.set(t,e);++d<u;){var g=e[d],m=t[d]
if(n)var y=a?n(m,g,d,t,e,o):n(g,m,d,e,t,o)
if(y!==i){if(y)continue
f=!1
break}if(p){if(!It(t,(function(e,t){if(!Xt(p,t)&&(g===e||s(g,e,r,n,o)))return p.push(t)}))){f=!1
break}}else if(g!==m&&!s(g,m,r,n,o)){f=!1
break}}return o.delete(e),o.delete(t),f}function Ji(e){return Fs(As(e,i,Hs),e+"")}function Zi(e){return Dn(e,Ra,us)}function es(e){return Dn(e,xa,cs)}var ts=Sr?function(e){return Sr.get(e)}:ou
function rs(e){for(var t=e.name+"",r=Fr[t],n=Me.call(Fr,t)?r.length:0;n--;){var i=r[n],s=i.func
if(null==s||s==e)return i.name}return t}function ns(e){return(Me.call(Nr,"placeholder")?Nr:e).placeholder}function is(){var e=Nr.iteratee||ru
return e=e===ru?Pn:e,arguments.length?e(arguments[0],arguments[1]):e}function ss(e,t){var r,n,i=e.__data__
return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function os(e){for(var t=Ra(e),r=t.length;r--;){var n=t[r],i=e[n]
t[r]=[n,i,bs(i)]}return t}function as(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t)
return On(r)?r:i}var us=gt?function(e){return null==e?[]:(e=Ce(e),Tt(gt(e),(function(t){return Ve.call(e,t)})))}:fu,cs=gt?function(e){for(var t=[];e;)Pt(t,us(e)),e=Ge(e)
return t}:fu,ls=An
function hs(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,s=!1;++n<i;){var o=ks(t[n])
if(!(s=null!=e&&r(e,o)))break
e=e[o]}return s||++n!=i?s:!!(i=null==e?0:e.length)&&Xo(i)&&ps(o,i)&&(Ho(e)||qo(e))}function ds(e){return"function"!=typeof e.constructor||_s(e)?{}:Lr(Ge(e))}function fs(e){return Ho(e)||qo(e)||!!(Ke&&e&&e[Ke])}function ps(e,t){var r=typeof e
return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&ye.test(e))&&e>-1&&e%1==0&&e<t}function gs(e,t,r){if(!Jo(r))return!1
var n=typeof t
return!!("number"==n?Go(r)&&ps(t,r.length):"string"==n&&t in r)&&Bo(r[t],e)}function ms(e,t){if(Ho(e))return!1
var r=typeof e
return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!oa(e))||Z.test(e)||!J.test(e)||null!=t&&e in Ce(t)}function ys(e){var t=rs(e),r=Nr[t]
if("function"!=typeof r||!(t in jr.prototype))return!1
if(e===r)return!0
var n=ts(r)
return!!n&&e===n[0]}(br&&ls(new br(new ArrayBuffer(1)))!=P||Dr&&ls(new Dr)!=A||Ar&&ls(Ar.resolve())!=w||Er&&ls(new Er)!=F||Cr&&ls(new Cr)!=x)&&(ls=function(e){var t=An(e),r=t==C?e.constructor:i,n=r?Is(r):""
if(n)switch(n){case Tr:return P
case Rr:return A
case xr:return w
case Or:return F
case Pr:return x}return t})
var vs=Oe?Qo:pu
function _s(e){var t=e&&e.constructor
return e===("function"==typeof t&&t.prototype||xe)}function bs(e){return e==e&&!Jo(e)}function Ds(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Ce(r))}}function As(e,t,r){return t=pr(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=pr(i.length-t,0),a=n(o);++s<o;)a[s]=i[t+s]
s=-1
for(var u=n(t+1);++s<t;)u[s]=i[s]
return u[t]=r(a),Et(e,this,u)}}function Es(e,t){return t.length<2?e:bn(e,Zn(t,0,-1))}function Cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ws=Rs(Yn),Ss=lt||function(e,t){return ht.setTimeout(e,t)},Fs=Rs(Xn)
function Ts(e,t,r){var n=t+""
return Fs(e,function(e,t){var r=t.length
if(!r)return e
var n=r-1
return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return wt(p,(function(r){var n="_."+r[0]
t&r[1]&&!Rt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(oe)
return t?t[1].split(ae):[]}(n),r)))}function Rs(e){var t=0,r=0
return function(){var n=mr(),s=16-(n-r)
if(r=n,s>0){if(++t>=800)return arguments[0]}else t=0
return e.apply(i,arguments)}}function xs(e,t){var r=-1,n=e.length,s=n-1
for(t=t===i?n:t;++r<t;){var o=Gn(r,s),a=e[o]
e[o]=e[r],e[r]=a}return e.length=t,e}var Os,Ps,Ms=(Os=Po((function(e){var t=[]
return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,i){t.push(n?i.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Ps.size&&Ps.clear(),e})),Ps=Os.cache,Os)
function ks(e){if("string"==typeof e||oa(e))return e
var t=e+""
return"0"==t&&1/e==-1/0?"-0":t}function Is(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ns(e){if(e instanceof jr)return e.clone()
var t=new Ur(e.__wrapped__,e.__chain__)
return t.__actions__=wi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ls=Vn((function(e,t){return Wo(e)?un(e,pn(t,1,Wo,!0)):[]})),Bs=Vn((function(e,t){var r=$s(t)
return Wo(r)&&(r=i),Wo(e)?un(e,pn(t,1,Wo,!0),is(r,2)):[]})),Us=Vn((function(e,t){var r=$s(t)
return Wo(r)&&(r=i),Wo(e)?un(e,pn(t,1,Wo,!0),i,r):[]}))
function js(e,t,r){var n=null==e?0:e.length
if(!n)return-1
var i=null==r?0:da(r)
return i<0&&(i=pr(n+i,0)),Bt(e,is(t,3),i)}function qs(e,t,r){var n=null==e?0:e.length
if(!n)return-1
var s=n-1
return r!==i&&(s=da(r),s=r<0?pr(n+s,0):gr(s,n-1)),Bt(e,is(t,3),s,!0)}function Hs(e){return null!=e&&e.length?pn(e,1):[]}function zs(e){return e&&e.length?e[0]:i}var Gs=Vn((function(e){var t=Ot(e,fi)
return t.length&&t[0]===e[0]?Sn(t):[]})),Ws=Vn((function(e){var t=$s(e),r=Ot(e,fi)
return t===$s(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Sn(r,is(t,2)):[]})),Vs=Vn((function(e){var t=$s(e),r=Ot(e,fi)
return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?Sn(r,i,t):[]}))
function $s(e){var t=null==e?0:e.length
return t?e[t-1]:i}var Ks=Vn(Qs)
function Qs(e,t){return e&&e.length&&t&&t.length?Hn(e,t):e}var Ys=Ji((function(e,t){var r=null==e?0:e.length,n=rn(e,t)
return zn(e,Ot(t,(function(e){return ps(e,r)?+e:e})).sort(Ai)),n}))
function Xs(e){return null==e?e:_r.call(e)}var Js=Vn((function(e){return oi(pn(e,1,Wo,!0))})),Zs=Vn((function(e){var t=$s(e)
return Wo(t)&&(t=i),oi(pn(e,1,Wo,!0),is(t,2))})),eo=Vn((function(e){var t=$s(e)
return t="function"==typeof t?t:i,oi(pn(e,1,Wo,!0),i,t)}))
function to(e){if(!e||!e.length)return[]
var t=0
return e=Tt(e,(function(e){if(Wo(e))return t=pr(e.length,t),!0})),$t(t,(function(t){return Ot(e,zt(t))}))}function ro(e,t){if(!e||!e.length)return[]
var r=to(e)
return null==t?r:Ot(r,(function(e){return Et(t,i,e)}))}var no=Vn((function(e,t){return Wo(e)?un(e,t):[]})),io=Vn((function(e){return hi(Tt(e,Wo))})),so=Vn((function(e){var t=$s(e)
return Wo(t)&&(t=i),hi(Tt(e,Wo),is(t,2))})),oo=Vn((function(e){var t=$s(e)
return t="function"==typeof t?t:i,hi(Tt(e,Wo),i,t)})),ao=Vn(to),uo=Vn((function(e){var t=e.length,r=t>1?e[t-1]:i
return r="function"==typeof r?(e.pop(),r):i,ro(e,r)}))
function co(e){var t=Nr(e)
return t.__chain__=!0,t}function lo(e,t){return t(e)}var ho=Ji((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,s=function(t){return rn(t,e)}
return!(t>1||this.__actions__.length)&&n instanceof jr&&ps(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:lo,args:[s],thisArg:i}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)})),fo=Fi((function(e,t,r){Me.call(e,r)?++e[r]:tn(e,r,1)})),po=ki(js),go=ki(qs)
function mo(e,t){return(Ho(e)?wt:cn)(e,is(t,3))}function yo(e,t){return(Ho(e)?St:ln)(e,is(t,3))}var vo=Fi((function(e,t,r){Me.call(e,r)?e[r].push(t):tn(e,r,[t])})),_o=Vn((function(e,t,r){var i=-1,s="function"==typeof t,o=Go(e)?n(e.length):[]
return cn(e,(function(e){o[++i]=s?Et(t,e,r):Fn(e,t,r)})),o})),bo=Fi((function(e,t,r){tn(e,r,t)}))
function Do(e,t){return(Ho(e)?Ot:In)(e,is(t,3))}var Ao=Fi((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Eo=Vn((function(e,t){if(null==e)return[]
var r=t.length
return r>1&&gs(e,t[0],t[1])?t=[]:r>2&&gs(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,pn(t,1),[])})),Co=ct||function(){return ht.Date.now()}
function wo(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,$i(e,c,i,i,i,i,t)}function So(e,t){var r
if("function"!=typeof t)throw new Fe(s)
return e=da(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Fo=Vn((function(e,t,r){var n=1
if(r.length){var i=or(r,ns(Fo))
n|=u}return $i(e,n,t,r,i)})),To=Vn((function(e,t,r){var n=3
if(r.length){var i=or(r,ns(To))
n|=u}return $i(t,n,e,r,i)}))
function Ro(e,t,r){var n,o,a,u,c,l,h=0,d=!1,f=!1,p=!0
if("function"!=typeof e)throw new Fe(s)
function g(t){var r=n,s=o
return n=o=i,h=t,u=e.apply(s,r)}function m(e){var r=e-l
return l===i||r>=t||r<0||f&&e-h>=a}function y(){var e=Co()
if(m(e))return v(e)
c=Ss(y,function(e){var r=t-(e-l)
return f?gr(r,a-(e-h)):r}(e))}function v(e){return c=i,p&&n?g(e):(n=o=i,u)}function _(){var e=Co(),r=m(e)
if(n=arguments,o=this,l=e,r){if(c===i)return function(e){return h=e,c=Ss(y,t),d?g(e):u}(l)
if(f)return vi(c),c=Ss(y,t),g(l)}return c===i&&(c=Ss(y,t)),u}return t=pa(t)||0,Jo(r)&&(d=!!r.leading,a=(f="maxWait"in r)?pr(pa(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),_.cancel=function(){c!==i&&vi(c),h=0,n=l=o=c=i},_.flush=function(){return c===i?u:v(Co())},_}var xo=Vn((function(e,t){return an(e,1,t)})),Oo=Vn((function(e,t,r){return an(e,pa(t)||0,r)}))
function Po(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Fe(s)
var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache
if(s.has(i))return s.get(i)
var o=e.apply(this,n)
return r.cache=s.set(i,o)||s,o}
return r.cache=new(Po.Cache||zr),r}function Mo(e){if("function"!=typeof e)throw new Fe(s)
return function(){var t=arguments
switch(t.length){case 0:return!e.call(this)
case 1:return!e.call(this,t[0])
case 2:return!e.call(this,t[0],t[1])
case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Po.Cache=zr
var ko=mi((function(e,t){var r=(t=1==t.length&&Ho(t[0])?Ot(t[0],Qt(is())):Ot(pn(t,1),Qt(is()))).length
return Vn((function(n){for(var i=-1,s=gr(n.length,r);++i<s;)n[i]=t[i].call(this,n[i])
return Et(e,this,n)}))})),Io=Vn((function(e,t){var r=or(t,ns(Io))
return $i(e,u,i,t,r)})),No=Vn((function(e,t){var r=or(t,ns(No))
return $i(e,64,i,t,r)})),Lo=Ji((function(e,t){return $i(e,256,i,i,i,t)}))
function Bo(e,t){return e===t||e!=e&&t!=t}var Uo=Hi(En),jo=Hi((function(e,t){return e>=t})),qo=Tn(function(){return arguments}())?Tn:function(e){return Zo(e)&&Me.call(e,"callee")&&!Ve.call(e,"callee")},Ho=n.isArray,zo=yt?Qt(yt):function(e){return Zo(e)&&An(e)==O}
function Go(e){return null!=e&&Xo(e.length)&&!Qo(e)}function Wo(e){return Zo(e)&&Go(e)}var Vo=mt||pu,$o=vt?Qt(vt):function(e){return Zo(e)&&An(e)==v}
function Ko(e){if(!Zo(e))return!1
var t=An(e)
return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Qo(e){if(!Jo(e))return!1
var t=An(e)
return t==b||t==D||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(e){return"number"==typeof e&&e==da(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Jo(e){var t=typeof e
return null!=e&&("object"==t||"function"==t)}function Zo(e){return null!=e&&"object"==typeof e}var ea=_t?Qt(_t):function(e){return Zo(e)&&ls(e)==A}
function ta(e){return"number"==typeof e||Zo(e)&&An(e)==E}function ra(e){if(!Zo(e)||An(e)!=C)return!1
var t=Ge(e)
if(null===t)return!0
var r=Me.call(t,"constructor")&&t.constructor
return"function"==typeof r&&r instanceof r&&Pe.call(r)==Le}var na=bt?Qt(bt):function(e){return Zo(e)&&An(e)==S},ia=Dt?Qt(Dt):function(e){return Zo(e)&&ls(e)==F}
function sa(e){return"string"==typeof e||!Ho(e)&&Zo(e)&&An(e)==T}function oa(e){return"symbol"==typeof e||Zo(e)&&An(e)==R}var aa=At?Qt(At):function(e){return Zo(e)&&Xo(e.length)&&!!it[An(e)]},ua=Hi(kn),ca=Hi((function(e,t){return e<=t}))
function la(e){if(!e)return[]
if(Go(e))return sa(e)?cr(e):wi(e)
if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value)
return r}(e[Qe]())
var t=ls(e)
return(t==A?ir:t==F?ar:Ba)(e)}function ha(e){return e?(e=pa(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=ha(e),r=t%1
return t==t?r?t-r:t:0}function fa(e){return e?nn(da(e),0,f):0}function pa(e){if("number"==typeof e)return e
if(oa(e))return d
if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e
e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e
e=Kt(e)
var r=pe.test(e)
return r||me.test(e)?ut(e.slice(2),r?2:8):fe.test(e)?d:+e}function ga(e){return Si(e,xa(e))}function ma(e){return null==e?"":si(e)}var ya=Ti((function(e,t){if(_s(t)||Go(t))Si(t,Ra(t),e)
else for(var r in t)Me.call(t,r)&&Xr(e,r,t[r])})),va=Ti((function(e,t){Si(t,xa(t),e)})),_a=Ti((function(e,t,r,n){Si(t,xa(t),e,n)})),ba=Ti((function(e,t,r,n){Si(t,Ra(t),e,n)})),Da=Ji(rn),Aa=Vn((function(e,t){e=Ce(e)
var r=-1,n=t.length,s=n>2?t[2]:i
for(s&&gs(t[0],t[1],s)&&(n=1);++r<n;)for(var o=t[r],a=xa(o),u=-1,c=a.length;++u<c;){var l=a[u],h=e[l];(h===i||Bo(h,xe[l])&&!Me.call(e,l))&&(e[l]=o[l])}return e})),Ea=Vn((function(e){return e.push(i,Qi),Et(Pa,i,e)}))
function Ca(e,t,r){var n=null==e?i:bn(e,t)
return n===i?r:n}function wa(e,t){return null!=e&&hs(e,t,wn)}var Sa=Li((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r}),Ja(tu)),Fa=Li((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Me.call(e,t)?e[t].push(r):e[t]=[r]}),is),Ta=Vn(Fn)
function Ra(e){return Go(e)?Vr(e):Mn(e)}function xa(e){return Go(e)?Vr(e,!0):function(e){if(!Jo(e))return function(e){var t=[]
if(null!=e)for(var r in Ce(e))t.push(r)
return t}(e)
var t=_s(e),r=[]
for(var n in e)("constructor"!=n||!t&&Me.call(e,n))&&r.push(n)
return r}(e)}var Oa=Ti((function(e,t,r){Bn(e,t,r)})),Pa=Ti((function(e,t,r,n){Bn(e,t,r,n)})),Ma=Ji((function(e,t){var r={}
if(null==e)return r
var n=!1
t=Ot(t,(function(t){return t=gi(t,e),n||(n=t.length>1),t})),Si(e,es(e),r),n&&(r=sn(r,7,Yi))
for(var i=t.length;i--;)ai(r,t[i])
return r})),ka=Ji((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return wa(e,r)}))}(e,t)}))
function Ia(e,t){if(null==e)return{}
var r=Ot(es(e),(function(e){return[e]}))
return t=is(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var Na=Vi(Ra),La=Vi(xa)
function Ba(e){return null==e?[]:Yt(e,Ra(e))}var Ua=Pi((function(e,t,r){return t=t.toLowerCase(),e+(r?ja(t):t)}))
function ja(e){return Ka(ma(e).toLowerCase())}function qa(e){return(e=ma(e))&&e.replace(ve,er).replace(Xe,"")}var Ha=Pi((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),za=Pi((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ga=Oi("toLowerCase"),Wa=Pi((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Va=Pi((function(e,t,r){return e+(r?" ":"")+Ka(t)})),$a=Pi((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ka=Oi("toUpperCase")
function Qa(e,t,r){return e=ma(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ya=Vn((function(e,t){try{return Et(e,i,t)}catch(e){return Ko(e)?e:new De(e)}})),Xa=Ji((function(e,t){return wt(t,(function(t){t=ks(t),tn(e,t,Fo(e[t],e))})),e}))
function Ja(e){return function(){return e}}var Za=Ii(),eu=Ii(!0)
function tu(e){return e}function ru(e){return Pn("function"==typeof e?e:sn(e,1))}var nu=Vn((function(e,t){return function(r){return Fn(r,e,t)}})),iu=Vn((function(e,t){return function(r){return Fn(e,r,t)}}))
function su(e,t,r){var n=Ra(t),i=_n(t,n)
null!=r||Jo(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=_n(t,Ra(t)))
var s=!(Jo(r)&&"chain"in r&&!r.chain),o=Qo(e)
return wt(i,(function(r){var n=t[r]
e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__
if(s||t){var r=e(this.__wrapped__)
return(r.__actions__=wi(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Pt([this.value()],arguments))})})),e}function ou(){}var au=Ui(Ot),uu=Ui(Ft),cu=Ui(It)
function lu(e){return ms(e)?zt(ks(e)):function(e){return function(t){return bn(t,e)}}(e)}var hu=qi(),du=qi(!0)
function fu(){return[]}function pu(){return!1}var gu,mu=Bi((function(e,t){return e+t}),0),yu=Gi("ceil"),vu=Bi((function(e,t){return e/t}),1),_u=Gi("floor"),bu=Bi((function(e,t){return e*t}),1),Du=Gi("round"),Au=Bi((function(e,t){return e-t}),0)
return Nr.after=function(e,t){if("function"!=typeof t)throw new Fe(s)
return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Nr.ary=wo,Nr.assign=ya,Nr.assignIn=va,Nr.assignInWith=_a,Nr.assignWith=ba,Nr.at=Da,Nr.before=So,Nr.bind=Fo,Nr.bindAll=Xa,Nr.bindKey=To,Nr.castArray=function(){if(!arguments.length)return[]
var e=arguments[0]
return Ho(e)?e:[e]},Nr.chain=co,Nr.chunk=function(e,t,r){t=(r?gs(e,t,r):t===i)?1:pr(da(t),0)
var s=null==e?0:e.length
if(!s||t<1)return[]
for(var o=0,a=0,u=n(dt(s/t));o<s;)u[a++]=Zn(e,o,o+=t)
return u},Nr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var s=e[t]
s&&(i[n++]=s)}return i},Nr.concat=function(){var e=arguments.length
if(!e)return[]
for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i]
return Pt(Ho(r)?wi(r):[r],pn(t,1))},Nr.cond=function(e){var t=null==e?0:e.length,r=is()
return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new Fe(s)
return[r(e[0]),e[1]]})):[],Vn((function(r){for(var n=-1;++n<t;){var i=e[n]
if(Et(i[0],this,r))return Et(i[1],this,r)}}))},Nr.conforms=function(e){return function(e){var t=Ra(e)
return function(r){return on(r,e,t)}}(sn(e,1))},Nr.constant=Ja,Nr.countBy=fo,Nr.create=function(e,t){var r=Lr(e)
return null==t?r:en(r,t)},Nr.curry=function e(t,r,n){var s=$i(t,8,i,i,i,i,i,r=n?i:r)
return s.placeholder=e.placeholder,s},Nr.curryRight=function e(t,r,n){var s=$i(t,16,i,i,i,i,i,r=n?i:r)
return s.placeholder=e.placeholder,s},Nr.debounce=Ro,Nr.defaults=Aa,Nr.defaultsDeep=Ea,Nr.defer=xo,Nr.delay=Oo,Nr.difference=Ls,Nr.differenceBy=Bs,Nr.differenceWith=Us,Nr.drop=function(e,t,r){var n=null==e?0:e.length
return n?Zn(e,(t=r||t===i?1:da(t))<0?0:t,n):[]},Nr.dropRight=function(e,t,r){var n=null==e?0:e.length
return n?Zn(e,0,(t=n-(t=r||t===i?1:da(t)))<0?0:t):[]},Nr.dropRightWhile=function(e,t){return e&&e.length?ci(e,is(t,3),!0,!0):[]},Nr.dropWhile=function(e,t){return e&&e.length?ci(e,is(t,3),!0):[]},Nr.fill=function(e,t,r,n){var s=null==e?0:e.length
return s?(r&&"number"!=typeof r&&gs(e,t,r)&&(r=0,n=s),function(e,t,r,n){var s=e.length
for((r=da(r))<0&&(r=-r>s?0:s+r),(n=n===i||n>s?s:da(n))<0&&(n+=s),n=r>n?0:fa(n);r<n;)e[r++]=t
return e}(e,t,r,n)):[]},Nr.filter=function(e,t){return(Ho(e)?Tt:fn)(e,is(t,3))},Nr.flatMap=function(e,t){return pn(Do(e,t),1)},Nr.flatMapDeep=function(e,t){return pn(Do(e,t),l)},Nr.flatMapDepth=function(e,t,r){return r=r===i?1:da(r),pn(Do(e,t),r)},Nr.flatten=Hs,Nr.flattenDeep=function(e){return null!=e&&e.length?pn(e,l):[]},Nr.flattenDepth=function(e,t){return null!=e&&e.length?pn(e,t=t===i?1:da(t)):[]},Nr.flip=function(e){return $i(e,512)},Nr.flow=Za,Nr.flowRight=eu,Nr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t]
n[i[0]]=i[1]}return n},Nr.functions=function(e){return null==e?[]:_n(e,Ra(e))},Nr.functionsIn=function(e){return null==e?[]:_n(e,xa(e))},Nr.groupBy=vo,Nr.initial=function(e){return null!=e&&e.length?Zn(e,0,-1):[]},Nr.intersection=Gs,Nr.intersectionBy=Ws,Nr.intersectionWith=Vs,Nr.invert=Sa,Nr.invertBy=Fa,Nr.invokeMap=_o,Nr.iteratee=ru,Nr.keyBy=bo,Nr.keys=Ra,Nr.keysIn=xa,Nr.map=Do,Nr.mapKeys=function(e,t){var r={}
return t=is(t,3),yn(e,(function(e,n,i){tn(r,t(e,n,i),e)})),r},Nr.mapValues=function(e,t){var r={}
return t=is(t,3),yn(e,(function(e,n,i){tn(r,n,t(e,n,i))})),r},Nr.matches=function(e){return Nn(sn(e,1))},Nr.matchesProperty=function(e,t){return Ln(e,sn(t,1))},Nr.memoize=Po,Nr.merge=Oa,Nr.mergeWith=Pa,Nr.method=nu,Nr.methodOf=iu,Nr.mixin=su,Nr.negate=Mo,Nr.nthArg=function(e){return e=da(e),Vn((function(t){return Un(t,e)}))},Nr.omit=Ma,Nr.omitBy=function(e,t){return Ia(e,Mo(is(t)))},Nr.once=function(e){return So(2,e)},Nr.orderBy=function(e,t,r,n){return null==e?[]:(Ho(t)||(t=null==t?[]:[t]),Ho(r=n?i:r)||(r=null==r?[]:[r]),jn(e,t,r))},Nr.over=au,Nr.overArgs=ko,Nr.overEvery=uu,Nr.overSome=cu,Nr.partial=Io,Nr.partialRight=No,Nr.partition=Ao,Nr.pick=ka,Nr.pickBy=Ia,Nr.property=lu,Nr.propertyOf=function(e){return function(t){return null==e?i:bn(e,t)}},Nr.pull=Ks,Nr.pullAll=Qs,Nr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Hn(e,t,is(r,2)):e},Nr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Hn(e,t,i,r):e},Nr.pullAt=Ys,Nr.range=hu,Nr.rangeRight=du,Nr.rearg=Lo,Nr.reject=function(e,t){return(Ho(e)?Tt:fn)(e,Mo(is(t,3)))},Nr.remove=function(e,t){var r=[]
if(!e||!e.length)return r
var n=-1,i=[],s=e.length
for(t=is(t,3);++n<s;){var o=e[n]
t(o,n,e)&&(r.push(o),i.push(n))}return zn(e,i),r},Nr.rest=function(e,t){if("function"!=typeof e)throw new Fe(s)
return Vn(e,t=t===i?t:da(t))},Nr.reverse=Xs,Nr.sampleSize=function(e,t,r){return t=(r?gs(e,t,r):t===i)?1:da(t),(Ho(e)?Kr:Kn)(e,t)},Nr.set=function(e,t,r){return null==e?e:Qn(e,t,r)},Nr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Qn(e,t,r,n)},Nr.shuffle=function(e){return(Ho(e)?Qr:Jn)(e)},Nr.slice=function(e,t,r){var n=null==e?0:e.length
return n?(r&&"number"!=typeof r&&gs(e,t,r)?(t=0,r=n):(t=null==t?0:da(t),r=r===i?n:da(r)),Zn(e,t,r)):[]},Nr.sortBy=Eo,Nr.sortedUniq=function(e){return e&&e.length?ni(e):[]},Nr.sortedUniqBy=function(e,t){return e&&e.length?ni(e,is(t,2)):[]},Nr.split=function(e,t,r){return r&&"number"!=typeof r&&gs(e,t,r)&&(t=r=i),(r=r===i?f:r>>>0)?(e=ma(e))&&("string"==typeof t||null!=t&&!na(t))&&!(t=si(t))&&nr(e)?yi(cr(e),0,r):e.split(t,r):[]},Nr.spread=function(e,t){if("function"!=typeof e)throw new Fe(s)
return t=null==t?0:pr(da(t),0),Vn((function(r){var n=r[t],i=yi(r,0,t)
return n&&Pt(i,n),Et(e,this,i)}))},Nr.tail=function(e){var t=null==e?0:e.length
return t?Zn(e,1,t):[]},Nr.take=function(e,t,r){return e&&e.length?Zn(e,0,(t=r||t===i?1:da(t))<0?0:t):[]},Nr.takeRight=function(e,t,r){var n=null==e?0:e.length
return n?Zn(e,(t=n-(t=r||t===i?1:da(t)))<0?0:t,n):[]},Nr.takeRightWhile=function(e,t){return e&&e.length?ci(e,is(t,3),!1,!0):[]},Nr.takeWhile=function(e,t){return e&&e.length?ci(e,is(t,3)):[]},Nr.tap=function(e,t){return t(e),e},Nr.throttle=function(e,t,r){var n=!0,i=!0
if("function"!=typeof e)throw new Fe(s)
return Jo(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ro(e,t,{leading:n,maxWait:t,trailing:i})},Nr.thru=lo,Nr.toArray=la,Nr.toPairs=Na,Nr.toPairsIn=La,Nr.toPath=function(e){return Ho(e)?Ot(e,ks):oa(e)?[e]:wi(Ms(ma(e)))},Nr.toPlainObject=ga,Nr.transform=function(e,t,r){var n=Ho(e),i=n||Vo(e)||aa(e)
if(t=is(t,4),null==r){var s=e&&e.constructor
r=i?n?new s:[]:Jo(e)&&Qo(s)?Lr(Ge(e)):{}}return(i?wt:yn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Nr.unary=function(e){return wo(e,1)},Nr.union=Js,Nr.unionBy=Zs,Nr.unionWith=eo,Nr.uniq=function(e){return e&&e.length?oi(e):[]},Nr.uniqBy=function(e,t){return e&&e.length?oi(e,is(t,2)):[]},Nr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?oi(e,i,t):[]},Nr.unset=function(e,t){return null==e||ai(e,t)},Nr.unzip=to,Nr.unzipWith=ro,Nr.update=function(e,t,r){return null==e?e:ui(e,t,pi(r))},Nr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ui(e,t,pi(r),n)},Nr.values=Ba,Nr.valuesIn=function(e){return null==e?[]:Yt(e,xa(e))},Nr.without=no,Nr.words=Qa,Nr.wrap=function(e,t){return Io(pi(t),e)},Nr.xor=io,Nr.xorBy=so,Nr.xorWith=oo,Nr.zip=ao,Nr.zipObject=function(e,t){return di(e||[],t||[],Xr)},Nr.zipObjectDeep=function(e,t){return di(e||[],t||[],Qn)},Nr.zipWith=uo,Nr.entries=Na,Nr.entriesIn=La,Nr.extend=va,Nr.extendWith=_a,su(Nr,Nr),Nr.add=mu,Nr.attempt=Ya,Nr.camelCase=Ua,Nr.capitalize=ja,Nr.ceil=yu,Nr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=pa(r))==r?r:0),t!==i&&(t=(t=pa(t))==t?t:0),nn(pa(e),t,r)},Nr.clone=function(e){return sn(e,4)},Nr.cloneDeep=function(e){return sn(e,5)},Nr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:i)},Nr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:i)},Nr.conformsTo=function(e,t){return null==t||on(e,t,Ra(t))},Nr.deburr=qa,Nr.defaultTo=function(e,t){return null==e||e!=e?t:e},Nr.divide=vu,Nr.endsWith=function(e,t,r){e=ma(e),t=si(t)
var n=e.length,s=r=r===i?n:nn(da(r),0,n)
return(r-=t.length)>=0&&e.slice(r,s)==t},Nr.eq=Bo,Nr.escape=function(e){return(e=ma(e))&&K.test(e)?e.replace(V,tr):e},Nr.escapeRegExp=function(e){return(e=ma(e))&&re.test(e)?e.replace(te,"\\$&"):e},Nr.every=function(e,t,r){var n=Ho(e)?Ft:hn
return r&&gs(e,t,r)&&(t=i),n(e,is(t,3))},Nr.find=po,Nr.findIndex=js,Nr.findKey=function(e,t){return Lt(e,is(t,3),yn)},Nr.findLast=go,Nr.findLastIndex=qs,Nr.findLastKey=function(e,t){return Lt(e,is(t,3),vn)},Nr.floor=_u,Nr.forEach=mo,Nr.forEachRight=yo,Nr.forIn=function(e,t){return null==e?e:gn(e,is(t,3),xa)},Nr.forInRight=function(e,t){return null==e?e:mn(e,is(t,3),xa)},Nr.forOwn=function(e,t){return e&&yn(e,is(t,3))},Nr.forOwnRight=function(e,t){return e&&vn(e,is(t,3))},Nr.get=Ca,Nr.gt=Uo,Nr.gte=jo,Nr.has=function(e,t){return null!=e&&hs(e,t,Cn)},Nr.hasIn=wa,Nr.head=zs,Nr.identity=tu,Nr.includes=function(e,t,r,n){e=Go(e)?e:Ba(e),r=r&&!n?da(r):0
var i=e.length
return r<0&&(r=pr(i+r,0)),sa(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ut(e,t,r)>-1},Nr.indexOf=function(e,t,r){var n=null==e?0:e.length
if(!n)return-1
var i=null==r?0:da(r)
return i<0&&(i=pr(n+i,0)),Ut(e,t,i)},Nr.inRange=function(e,t,r){return t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e<pr(t,r)}(e=pa(e),t,r)},Nr.invoke=Ta,Nr.isArguments=qo,Nr.isArray=Ho,Nr.isArrayBuffer=zo,Nr.isArrayLike=Go,Nr.isArrayLikeObject=Wo,Nr.isBoolean=function(e){return!0===e||!1===e||Zo(e)&&An(e)==y},Nr.isBuffer=Vo,Nr.isDate=$o,Nr.isElement=function(e){return Zo(e)&&1===e.nodeType&&!ra(e)},Nr.isEmpty=function(e){if(null==e)return!0
if(Go(e)&&(Ho(e)||"string"==typeof e||"function"==typeof e.splice||Vo(e)||aa(e)||qo(e)))return!e.length
var t=ls(e)
if(t==A||t==F)return!e.size
if(_s(e))return!Mn(e).length
for(var r in e)if(Me.call(e,r))return!1
return!0},Nr.isEqual=function(e,t){return Rn(e,t)},Nr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i
return n===i?Rn(e,t,i,r):!!n},Nr.isError=Ko,Nr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Nr.isFunction=Qo,Nr.isInteger=Yo,Nr.isLength=Xo,Nr.isMap=ea,Nr.isMatch=function(e,t){return e===t||xn(e,t,os(t))},Nr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,xn(e,t,os(t),r)},Nr.isNaN=function(e){return ta(e)&&e!=+e},Nr.isNative=function(e){if(vs(e))throw new De("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.")
return On(e)},Nr.isNil=function(e){return null==e},Nr.isNull=function(e){return null===e},Nr.isNumber=ta,Nr.isObject=Jo,Nr.isObjectLike=Zo,Nr.isPlainObject=ra,Nr.isRegExp=na,Nr.isSafeInteger=function(e){return Yo(e)&&e>=-9007199254740991&&e<=h},Nr.isSet=ia,Nr.isString=sa,Nr.isSymbol=oa,Nr.isTypedArray=aa,Nr.isUndefined=function(e){return e===i},Nr.isWeakMap=function(e){return Zo(e)&&ls(e)==x},Nr.isWeakSet=function(e){return Zo(e)&&"[object WeakSet]"==An(e)},Nr.join=function(e,t){return null==e?"":Gt.call(e,t)},Nr.kebabCase=Ha,Nr.last=$s,Nr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length
if(!n)return-1
var s=n
return r!==i&&(s=(s=da(r))<0?pr(n+s,0):gr(s,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n
return n}(e,t,s):Bt(e,qt,s,!0)},Nr.lowerCase=za,Nr.lowerFirst=Ga,Nr.lt=ua,Nr.lte=ca,Nr.max=function(e){return e&&e.length?dn(e,tu,En):i},Nr.maxBy=function(e,t){return e&&e.length?dn(e,is(t,2),En):i},Nr.mean=function(e){return Ht(e,tu)},Nr.meanBy=function(e,t){return Ht(e,is(t,2))},Nr.min=function(e){return e&&e.length?dn(e,tu,kn):i},Nr.minBy=function(e,t){return e&&e.length?dn(e,is(t,2),kn):i},Nr.stubArray=fu,Nr.stubFalse=pu,Nr.stubObject=function(){return{}},Nr.stubString=function(){return""},Nr.stubTrue=function(){return!0},Nr.multiply=bu,Nr.nth=function(e,t){return e&&e.length?Un(e,da(t)):i},Nr.noConflict=function(){return ht._===this&&(ht._=Be),this},Nr.noop=ou,Nr.now=Co,Nr.pad=function(e,t,r){e=ma(e)
var n=(t=da(t))?ur(e):0
if(!t||n>=t)return e
var i=(t-n)/2
return ji(ft(i),r)+e+ji(dt(i),r)},Nr.padEnd=function(e,t,r){e=ma(e)
var n=(t=da(t))?ur(e):0
return t&&n<t?e+ji(t-n,r):e},Nr.padStart=function(e,t,r){e=ma(e)
var n=(t=da(t))?ur(e):0
return t&&n<t?ji(t-n,r)+e:e},Nr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),yr(ma(e).replace(ne,""),t||0)},Nr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&gs(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ha(e),t===i?(t=e,e=0):t=ha(t)),e>t){var n=e
e=t,t=n}if(r||e%1||t%1){var s=vr()
return gr(e+s*(t-e+at("1e-"+((s+"").length-1))),t)}return Gn(e,t)},Nr.reduce=function(e,t,r){var n=Ho(e)?Mt:Wt,i=arguments.length<3
return n(e,is(t,4),r,i,cn)},Nr.reduceRight=function(e,t,r){var n=Ho(e)?kt:Wt,i=arguments.length<3
return n(e,is(t,4),r,i,ln)},Nr.repeat=function(e,t,r){return t=(r?gs(e,t,r):t===i)?1:da(t),Wn(ma(e),t)},Nr.replace=function(){var e=arguments,t=ma(e[0])
return e.length<3?t:t.replace(e[1],e[2])},Nr.result=function(e,t,r){var n=-1,s=(t=gi(t,e)).length
for(s||(s=1,e=i);++n<s;){var o=null==e?i:e[ks(t[n])]
o===i&&(n=s,o=r),e=Qo(o)?o.call(e):o}return e},Nr.round=Du,Nr.runInContext=e,Nr.sample=function(e){return(Ho(e)?$r:$n)(e)},Nr.size=function(e){if(null==e)return 0
if(Go(e))return sa(e)?ur(e):e.length
var t=ls(e)
return t==A||t==F?e.size:Mn(e).length},Nr.snakeCase=Wa,Nr.some=function(e,t,r){var n=Ho(e)?It:ei
return r&&gs(e,t,r)&&(t=i),n(e,is(t,3))},Nr.sortedIndex=function(e,t){return ti(e,t)},Nr.sortedIndexBy=function(e,t,r){return ri(e,t,is(r,2))},Nr.sortedIndexOf=function(e,t){var r=null==e?0:e.length
if(r){var n=ti(e,t)
if(n<r&&Bo(e[n],t))return n}return-1},Nr.sortedLastIndex=function(e,t){return ti(e,t,!0)},Nr.sortedLastIndexBy=function(e,t,r){return ri(e,t,is(r,2),!0)},Nr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ti(e,t,!0)-1
if(Bo(e[r],t))return r}return-1},Nr.startCase=Va,Nr.startsWith=function(e,t,r){return e=ma(e),r=null==r?0:nn(da(r),0,e.length),t=si(t),e.slice(r,r+t.length)==t},Nr.subtract=Au,Nr.sum=function(e){return e&&e.length?Vt(e,tu):0},Nr.sumBy=function(e,t){return e&&e.length?Vt(e,is(t,2)):0},Nr.template=function(e,t,r){var n=Nr.templateSettings
r&&gs(e,t,r)&&(t=i),e=ma(e),t=_a({},t,n,Ki)
var s,o,a=_a({},t.imports,n.imports,Ki),u=Ra(a),c=Yt(a,u),l=0,h=t.interpolate||_e,d="__p += '",f=we((t.escape||_e).source+"|"+h.source+"|"+(h===X?he:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),p="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n"
e.replace(f,(function(t,r,n,i,a,u){return n||(n=i),d+=e.slice(l,u).replace(be,rr),r&&(s=!0,d+="' +\n__e("+r+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n"
var g=Me.call(t,"variable")&&t.variable
if(g){if(ce.test(g))throw new De("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n"
d=(o?d.replace(H,""):d).replace(z,"$1").replace(G,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}"
var m=Ya((function(){return Ae(u,p+"return "+d).apply(i,c)}))
if(m.source=d,Ko(m))throw m
return m},Nr.times=function(e,t){if((e=da(e))<1||e>h)return[]
var r=f,n=gr(e,f)
t=is(t),e-=f
for(var i=$t(n,t);++r<e;)t(r)
return i},Nr.toFinite=ha,Nr.toInteger=da,Nr.toLength=fa,Nr.toLower=function(e){return ma(e).toLowerCase()},Nr.toNumber=pa,Nr.toSafeInteger=function(e){return e?nn(da(e),-9007199254740991,h):0===e?e:0},Nr.toString=ma,Nr.toUpper=function(e){return ma(e).toUpperCase()},Nr.trim=function(e,t,r){if((e=ma(e))&&(r||t===i))return Kt(e)
if(!e||!(t=si(t)))return e
var n=cr(e),s=cr(t)
return yi(n,Jt(n,s),Zt(n,s)+1).join("")},Nr.trimEnd=function(e,t,r){if((e=ma(e))&&(r||t===i))return e.slice(0,lr(e)+1)
if(!e||!(t=si(t)))return e
var n=cr(e)
return yi(n,0,Zt(n,cr(t))+1).join("")},Nr.trimStart=function(e,t,r){if((e=ma(e))&&(r||t===i))return e.replace(ne,"")
if(!e||!(t=si(t)))return e
var n=cr(e)
return yi(n,Jt(n,cr(t))).join("")},Nr.truncate=function(e,t){var r=30,n="..."
if(Jo(t)){var s="separator"in t?t.separator:s
r="length"in t?da(t.length):r,n="omission"in t?si(t.omission):n}var o=(e=ma(e)).length
if(nr(e)){var a=cr(e)
o=a.length}if(r>=o)return e
var u=r-ur(n)
if(u<1)return n
var c=a?yi(a,0,u).join(""):e.slice(0,u)
if(s===i)return c+n
if(a&&(u+=c.length-u),na(s)){if(e.slice(u).search(s)){var l,h=c
for(s.global||(s=we(s.source,ma(de.exec(s))+"g")),s.lastIndex=0;l=s.exec(h);)var d=l.index
c=c.slice(0,d===i?u:d)}}else if(e.indexOf(si(s),u)!=u){var f=c.lastIndexOf(s)
f>-1&&(c=c.slice(0,f))}return c+n},Nr.unescape=function(e){return(e=ma(e))&&$.test(e)?e.replace(W,hr):e},Nr.uniqueId=function(e){var t=++ke
return ma(e)+t},Nr.upperCase=$a,Nr.upperFirst=Ka,Nr.each=mo,Nr.eachRight=yo,Nr.first=zs,su(Nr,(gu={},yn(Nr,(function(e,t){Me.call(Nr.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Nr.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nr[e].placeholder=Nr})),wt(["drop","take"],(function(e,t){jr.prototype[e]=function(r){r=r===i?1:pr(da(r),0)
var n=this.__filtered__&&!t?new jr(this):this.clone()
return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,f),type:e+(n.__dir__<0?"Right":"")}),n},jr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r
jr.prototype[e]=function(e){var t=this.clone()
return t.__iteratees__.push({iteratee:is(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),wt(["head","last"],(function(e,t){var r="take"+(t?"Right":"")
jr.prototype[e]=function(){return this[r](1).value()[0]}})),wt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right")
jr.prototype[e]=function(){return this.__filtered__?new jr(this):this[r](1)}})),jr.prototype.compact=function(){return this.filter(tu)},jr.prototype.find=function(e){return this.filter(e).head()},jr.prototype.findLast=function(e){return this.reverse().find(e)},jr.prototype.invokeMap=Vn((function(e,t){return"function"==typeof e?new jr(this):this.map((function(r){return Fn(r,e,t)}))})),jr.prototype.reject=function(e){return this.filter(Mo(is(e)))},jr.prototype.slice=function(e,t){e=da(e)
var r=this
return r.__filtered__&&(e>0||t<0)?new jr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=da(t))<0?r.dropRight(-t):r.take(t-e)),r)},jr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jr.prototype.toArray=function(){return this.take(f)},yn(jr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),s=Nr[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t)
s&&(Nr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,u=t instanceof jr,c=a[0],l=u||Ho(t),h=function(e){var t=s.apply(Nr,Pt([e],a))
return n&&d?t[0]:t}
l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1)
var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,g=u&&!f
if(!o&&l){t=g?t:new jr(this)
var m=e.apply(t,a)
return m.__actions__.push({func:lo,args:[h],thisArg:i}),new Ur(m,d)}return p&&g?e.apply(this,a):(m=this.thru(h),p?n?m.value()[0]:m.value():m)})})),wt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e)
Nr.prototype[e]=function(){var e=arguments
if(n&&!this.__chain__){var i=this.value()
return t.apply(Ho(i)?i:[],e)}return this[r]((function(r){return t.apply(Ho(r)?r:[],e)}))}})),yn(jr.prototype,(function(e,t){var r=Nr[t]
if(r){var n=r.name+""
Me.call(Fr,n)||(Fr[n]=[]),Fr[n].push({name:t,func:r})}})),Fr[Ni(i,2).name]=[{name:"wrapper",func:i}],jr.prototype.clone=function(){var e=new jr(this.__wrapped__)
return e.__actions__=wi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=wi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=wi(this.__views__),e},jr.prototype.reverse=function(){if(this.__filtered__){var e=new jr(this)
e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1
return e},jr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ho(e),n=t<0,i=r?e.length:0,s=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var s=r[n],o=s.size
switch(s.type){case"drop":e+=o
break
case"dropRight":t-=o
break
case"take":t=gr(t,e+o)
break
case"takeRight":e=pr(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,c=n?a:o-1,l=this.__iteratees__,h=l.length,d=0,f=gr(u,this.__takeCount__)
if(!r||!n&&i==u&&f==u)return li(e,this.__actions__)
var p=[]
e:for(;u--&&d<f;){for(var g=-1,m=e[c+=t];++g<h;){var y=l[g],v=y.iteratee,_=y.type,b=v(m)
if(2==_)m=b
else if(!b){if(1==_)continue e
break e}}p[d++]=m}return p},Nr.prototype.at=ho,Nr.prototype.chain=function(){return co(this)},Nr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Nr.prototype.next=function(){this.__values__===i&&(this.__values__=la(this.value()))
var e=this.__index__>=this.__values__.length
return{done:e,value:e?i:this.__values__[this.__index__++]}},Nr.prototype.plant=function(e){for(var t,r=this;r instanceof Br;){var n=Ns(r)
n.__index__=0,n.__values__=i,t?s.__wrapped__=n:t=n
var s=n
r=r.__wrapped__}return s.__wrapped__=e,t},Nr.prototype.reverse=function(){var e=this.__wrapped__
if(e instanceof jr){var t=e
return this.__actions__.length&&(t=new jr(this)),(t=t.reverse()).__actions__.push({func:lo,args:[Xs],thisArg:i}),new Ur(t,this.__chain__)}return this.thru(Xs)},Nr.prototype.toJSON=Nr.prototype.valueOf=Nr.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Nr.prototype.first=Nr.prototype.head,Qe&&(Nr.prototype[Qe]=function(){return this}),Nr}()
ht._=dr,(n=function(){return dr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},98478:function(module,__unused_webpack_exports,__webpack_require__){var factory
factory=function(){return(()=>{"use strict"
var __webpack_modules__=[,(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:r,rel:i,enabled:o=!0}={}){(0,n.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.')
const a=(0,n.removeNullCharacters)(t)
o?e.href=e.title=a:(e.href="",e.title=`Disabled: ${a}`,e.onclick=()=>!1)
let u=""
switch(r){case f.NONE:break
case f.SELF:u="_self"
break
case f.BLANK:u="_blank"
break
case f.PARENT:u="_parent"
break
case f.TOP:u="_top"}e.target=u,e.rel="string"==typeof i?i:s},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length)
return e.substring(e.lastIndexOf("/",n)+1,n)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t
if(p(e))return(0,n.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t
const r=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e)
let s=r.exec(i[1])||r.exec(i[2])||r.exec(i[3])
if(s&&(s=s[0],s.includes("%")))try{s=r.exec(decodeURIComponent(s))[0]}catch(e){}return s||t},t.getXfaPageViewport=function(e,{scale:t=1,rotation:r=0}){const{width:n,height:i}=e.attributes.style,s=[0,0,parseInt(n),parseInt(i)]
return new h({viewBox:s,scale:t,rotation:r})},t.isDataScheme=p,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=g,t.loadScript=function(e,t=!1){return new Promise(((r,n)=>{const i=document.createElement("script")
i.src=e,i.onload=function(e){t&&i.remove(),r(e)},i.onerror=function(){n(new Error(`Cannot load script at: ${i.src}`))},(document.head||document.documentElement).appendChild(i)}))},t.StatTimer=t.RenderingCancelledException=t.PDFDateString=t.PageViewport=t.LinkTarget=t.DOMSVGFactory=t.DOMStandardFontDataFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=void 0
var n=r(2),i=r(5)
const s="noopener noreferrer nofollow"
t.DEFAULT_LINK_REL=s
class o extends i.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const r=this._document.createElement("canvas")
return r.width=e,r.height=t,r}}async function a(e,t=!1){if(g(e,document.baseURI)){const r=await fetch(e)
if(!r.ok)throw new Error(r.statusText)
return t?new Uint8Array(await r.arrayBuffer()):(0,n.stringToBytes)(await r.text())}return new Promise(((r,i)=>{const s=new XMLHttpRequest
s.open("GET",e,!0),t&&(s.responseType="arraybuffer"),s.onreadystatechange=()=>{if(s.readyState===XMLHttpRequest.DONE){if(200===s.status||0===s.status){let e
if(t&&s.response?e=new Uint8Array(s.response):!t&&s.responseText&&(e=(0,n.stringToBytes)(s.responseText)),e)return void r(e)}i(new Error(s.statusText))}},s.send(null)}))}t.DOMCanvasFactory=o
class u extends i.BaseCMapReaderFactory{_fetchData(e,t){return a(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=u
class c extends i.BaseStandardFontDataFactory{_fetchData(e){return a(e,!0)}}t.DOMStandardFontDataFactory=c
class l extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=l
class h{constructor({viewBox:e,scale:t,rotation:r,offsetX:n=0,offsetY:i=0,dontFlip:s=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=n,this.offsetY=i
const o=(e[2]+e[0])/2,a=(e[3]+e[1])/2
let u,c,l,h,d,f,p,g
switch((r%=360)<0&&(r+=360),r){case 180:u=-1,c=0,l=0,h=1
break
case 90:u=0,c=1,l=1,h=0
break
case 270:u=0,c=-1,l=-1,h=0
break
case 0:u=1,c=0,l=0,h=-1
break
default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(l=-l,h=-h),0===u?(d=Math.abs(a-e[1])*t+n,f=Math.abs(o-e[0])*t+i,p=Math.abs(e[3]-e[1])*t,g=Math.abs(e[2]-e[0])*t):(d=Math.abs(o-e[0])*t+n,f=Math.abs(a-e[1])*t+i,p=Math.abs(e[2]-e[0])*t,g=Math.abs(e[3]-e[1])*t),this.transform=[u*t,c*t,l*t,h*t,d-u*t*o-l*t*a,f-c*t*o-h*t*a],this.width=p,this.height=g}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:n=this.offsetY,dontFlip:i=!1}={}){return new h({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:i})}convertToViewportPoint(e,t){return n.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=n.Util.applyTransform([e[0],e[1]],this.transform),r=n.Util.applyTransform([e[2],e[3]],this.transform)
return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=h
class d extends n.BaseException{constructor(e,t){super(e),this.type=t}}t.RenderingCancelledException=d
const f={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4}
function p(e){const t=e.length
let r=0
for(;r<t&&""===e[r].trim();)r++
return"data:"===e.substring(r,r+5).toLowerCase()}function g(e,t){try{const{protocol:r}=t?new URL(e,t):new URL(e)
return"http:"===r||"https:"===r}catch(e){return!1}}let m
t.LinkTarget=f,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){e in this.started&&(0,n.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,n.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[]
let t=0
for(const r of this.times){const e=r.name
e.length>t&&(t=e.length)}for(const r of this.times){const n=r.end-r.start
e.push(`${r.name.padEnd(t)} ${n}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||!(0,n.isString)(e))return null
m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"))
const t=m.exec(e)
if(!t)return null
const r=parseInt(t[1],10)
let i=parseInt(t[2],10)
i=i>=1&&i<=12?i-1:0
let s=parseInt(t[3],10)
s=s>=1&&s<=31?s:1
let o=parseInt(t[4],10)
o=o>=0&&o<=23?o:0
let a=parseInt(t[5],10)
a=a>=0&&a<=59?a:0
let u=parseInt(t[6],10)
u=u>=0&&u<=59?u:0
const c=t[7]||"Z"
let l=parseInt(t[8],10)
l=l>=0&&l<=23?l:0
let h=parseInt(t[9],10)||0
return h=h>=0&&h<=59?h:0,"-"===c?(o+=l,a+=h):"+"===c&&(o-=l,a-=h),new Date(Date.UTC(r,i,s,o,a,u))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=d,t.arraysToBytes=function(e){const t=e.length
if(1===t&&e[0]instanceof Uint8Array)return e[0]
let r=0
for(let s=0;s<t;s++)r+=d(e[s])
let n=0
const i=new Uint8Array(r)
for(let s=0;s<t;s++){let t=e[s]
t instanceof Uint8Array||(t="string"==typeof t?h(t):new Uint8Array(t))
const r=t.byteLength
i.set(t,n),n+=r}return i},t.assert=a,t.bytesToString=function(e){a(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString")
const t=e.length,r=8192
if(t<r)return String.fromCharCode.apply(null,e)
const n=[]
for(let i=0;i<t;i+=r){const s=Math.min(i+r,t),o=e.subarray(i,s)
n.push(String.fromCharCode.apply(null,o))}return n.join("")},t.createObjectURL=function(e,t="",r=!1){if(URL.createObjectURL&&!r)return URL.createObjectURL(new Blob([e],{type:t}))
const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
let i=`data:${t};base64,`
for(let s=0,o=e.length;s<o;s+=3){const t=255&e[s],r=255&e[s+1],a=255&e[s+2]
i+=n[t>>2]+n[(3&t)<<4|r>>4]+n[s+1<o?(15&r)<<2|a>>6:64]+n[s+2<o?63&a:64]}return i},t.createPromiseCapability=function(){const e=Object.create(null)
let t=!1
return Object.defineProperty(e,"settled",{get:()=>t}),e.promise=new Promise((function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}})),e},t.createValidAbsoluteUrl=function(e,t){if(!e)return null
try{const r=t?new URL(e,t):new URL(e)
if(function(e){if(!e)return!1
switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0
default:return!1}}(r))return r}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=n.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1
for(let r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1
return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isBool=function(e){return"boolean"==typeof e},t.isNum=function(e){return"number"==typeof e},t.isSameOrigin=function(e,t){let r
try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}const n=new URL(t,r)
return r.origin===n.origin},t.isString=function(e){return"string"==typeof e},t.objectFromMap=function(e){const t=Object.create(null)
for(const[r,n]of e)t[r]=n
return t},t.objectSize=function(e){return Object.keys(e).length},t.removeNullCharacters=function(e){return"string"!=typeof e?(s("The argument for removeNullCharacters must be a string."),e):e.replace(l,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=u,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(e){const t=e.length,r=[]
if("þ"===e[0]&&"ÿ"===e[1])for(let n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)))
else if("ÿ"===e[0]&&"þ"===e[1])for(let n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n+1)<<8|e.charCodeAt(n)))
else for(let n=0;n<t;++n){const t=y[e.charCodeAt(n)]
r.push(t?String.fromCharCode(t):e.charAt(n))}return r.join("")},t.stringToUTF16BEString=function(e){const t=["þÿ"]
for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r)
t.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return t.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.unreachable=o,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=s,t.VerbosityLevel=t.Util=t.UNSUPPORTED_FEATURES=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.IsLittleEndianCached=t.IsEvalSupportedCached=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,r(3),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"}
const n={ERRORS:0,WARNINGS:1,INFOS:5}
t.VerbosityLevel=n,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}
let i=n.WARNINGS
function s(e){i>=n.WARNINGS&&console.log(`Warning: ${e}`)}function o(e){throw new Error(e)}function a(e,t){e||o(t)}function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}const c=function(){function e(t){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}()
t.BaseException=c,t.PasswordException=class extends c{constructor(e,t){super(e),this.code=t}},t.UnknownErrorException=class extends c{constructor(e,t){super(e),this.details=t}},t.InvalidPDFException=class extends c{},t.MissingPDFException=class extends c{},t.UnexpectedResponseException=class extends c{constructor(e,t){super(e),this.status=t}},t.FormatError=class extends c{},t.AbortException=class extends c{}
const l=/\x00/g
function h(e){a("string"==typeof e,"Invalid argument for stringToBytes")
const t=e.length,r=new Uint8Array(t)
for(let n=0;n<t;++n)r[n]=255&e.charCodeAt(n)
return r}function d(e){return void 0!==e.length?e.length:(a(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}const f={get value(){return u(this,"value",function(){const e=new Uint8Array(4)
return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}}
t.IsLittleEndianCached=f
const p={get value(){return u(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}}
t.IsEvalSupportedCached=p
const g=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")))
class m{static makeHexColor(e,t,r){return`#${g[e]}${g[t]}${g[r]}`}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const r=t[0]*t[3]-t[1]*t[2]
return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}static getAxialAlignedBoundingBox(e,t){const r=m.applyTransform(e,t),n=m.applyTransform(e.slice(2,4),t),i=m.applyTransform([e[0],e[3]],t),s=m.applyTransform([e[2],e[1]],t)
return[Math.min(r[0],n[0],i[0],s[0]),Math.min(r[1],n[1],i[1],s[1]),Math.max(r[0],n[0],i[0],s[0]),Math.max(r[1],n[1],i[1],s[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2]
return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],s=e[2]*t[1]+e[3]*t[3],o=(r+s)/2,a=Math.sqrt((r+s)**2-4*(r*s-i*n))/2,u=o+a||1,c=o-a||1
return[Math.sqrt(u),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0)
return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){function r(e,t){return e-t}const n=[e[0],e[2],t[0],t[2]].sort(r),i=[e[1],e[3],t[1],t[3]].sort(r),s=[]
return e=m.normalizeRect(e),t=m.normalizeRect(t),n[0]===e[0]&&n[1]===t[0]||n[0]===t[0]&&n[1]===e[0]?(s[0]=n[1],s[2]=n[2],i[0]===e[1]&&i[1]===t[1]||i[0]===t[1]&&i[1]===e[1]?(s[1]=i[1],s[3]=i[2],s):null):null}}t.Util=m
const y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]},(e,t,r)=>{r(4)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0
const r=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type)
t.isNodeJS=r},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseSVGFactory=t.BaseStandardFontDataFactory=t.BaseCMapReaderFactory=t.BaseCanvasFactory=void 0
var n=r(2)
class i{constructor(){this.constructor===i&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size")
const r=this._createCanvas(e,t)
return{canvas:r,context:r.getContext("2d")}}reset(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified")
if(t<=0||r<=0)throw new Error("Invalid canvas size")
e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified")
e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,n.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=i
class s{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.')
if(!e)throw new Error("CMap name must be specified.")
const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE
return this._fetchData(t,r).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=s
class o{constructor({baseUrl:e=null}){this.constructor===o&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.')
if(!e)throw new Error("Font filename must be specified.")
const t=`${this.baseUrl}${e}`
return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,n.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=o
class a{constructor(){this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions")
const r=this._createSVG("svg:svg")
return r.setAttribute("version","1.1"),r.setAttribute("width",`${e}px`),r.setAttribute("height",`${t}px`),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${t}`),r}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type")
return this._createSVG(e)}_createSVG(e){(0,n.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=a},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void 0
var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(7),_node_utils=__w_pdfjs_require__(8),_annotation_storage=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(12),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(13),_metadata=__w_pdfjs_require__(14),_optional_content_config=__w_pdfjs_require__(15),_transport_stream=__w_pdfjs_require__(16)
const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory
exports.DefaultCanvasFactory=DefaultCanvasFactory
const DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory
exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory
const DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory
let createPDFNetworkStream
function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask
let r
if("string"==typeof e||e instanceof URL)r={url:e}
else if((0,_util.isArrayBuffer)(e))r={data:e}
else if(e instanceof PDFDataRangeTransport)r={range:e}
else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.")
if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url")
r=e}const n=Object.create(null)
let i=null,s=null
for(const a in r){const t=r[a]
switch(a){case"url":if("undefined"!=typeof window)try{n[a]=new URL(t,window.location).href
continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}else if("string"==typeof t||t instanceof URL){n[a]=t.toString()
continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")
case"range":i=t
continue
case"worker":s=t
continue
case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer)n[a]=new Uint8Array(t)
else{if(t instanceof Uint8Array)break
if("string"==typeof t)n[a]=(0,_util.stringToBytes)(t)
else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.")
n[a]=new Uint8Array(t)}else n[a]=new Uint8Array(t)}continue}n[a]=t}if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||DefaultCMapReaderFactory,n.StandardFontDataFactory=n.StandardFontDataFactory||DefaultStandardFontDataFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,n.enableXfa=!0===n.enableXfa,("string"!=typeof n.docBaseUrl||(0,_display_utils.isDataScheme)(n.docBaseUrl))&&(n.docBaseUrl=null),Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!=typeof n.useWorkerFetch&&(n.useWorkerFetch=n.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&n.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof n.useSystemFonts&&(n.useSystemFonts=!_is_node.isNodeJS&&!n.disableFontFace),void 0===n.ownerDocument&&(n.ownerDocument=globalThis.document),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!s){const e={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort}
s=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=s}const o=t.docId
return s.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted")
const e=_fetchDocument(s,n,i,o),r=new Promise((function(e){let t
i?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,contentDispositionFilename:n.contentDispositionFilename,disableRange:n.disableRange,disableStream:n.disableStream},i):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),e(t)}))
return Promise.all([e,r]).then((function([e,r]){if(t.destroyed)throw new Error("Loading aborted")
const i=new _message_handler.MessageHandler(o,e,s.port)
i.postMessageTransfers=s.postMessageTransfers
const a=new WorkerTransport(i,t,r,n)
t._transport=a,i.send("Ready",null)}))})).catch(t._capability.reject),t}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone,t.contentDispositionFilename=r.contentDispositionFilename),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.10.377",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed")
return t})))}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory
const PDFDocumentLoadingTask=function(){let e=0
return class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}))}}}()
class PDFDataRangeTransport{constructor(e,t,r=!1,n=null){this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const r of this._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const r of this._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport
class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy
class PDFPageProxy{constructor(e,t,r,n,i=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=n,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:n=0,dontFlip:i=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:n,dontFlip:i})}getAnnotations({intent:e=null}={}){const t="display"===e||"print"===e?e:null
return this._annotationsPromise&&this._annotationsIntent===t||(this._annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this._annotationsIntent=t),this._annotationsPromise}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:r="display",renderInteractiveForms:n=!1,transform:i=null,imageLayer:s=null,canvasFactory:o=null,background:a=null,includeAnnotationStorage:u=!1,optionalContentConfigPromise:c=null}){var l
this._stats&&this._stats.time("Overall")
const h="print"===r?"print":"display"
this.pendingCleanup=!1,c||(c=this._transport.getOptionalContentConfig())
let d=this._intentStates.get(h)
d||(d=Object.create(null),this._intentStates.set(h,d)),d.streamReaderCancelTimeout&&(clearTimeout(d.streamReaderCancelTimeout),d.streamReaderCancelTimeout=null)
const f=o||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),p=u?this._transport.annotationStorage.serializable:null
d.displayReadyCapability||(d.displayReadyCapability=(0,_util.createPromiseCapability)(),d.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:h,renderInteractiveForms:!0===n,annotationStorage:p}))
const g=e=>{d.renderTasks.delete(m),(this.cleanupAfterRender||"print"===h)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(m.capability.reject(e),this._abortOperatorList({intentState:d,reason:e})):m.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},m=new InternalRenderTask({callback:g,params:{canvasContext:e,viewport:t,transform:i,imageLayer:s,background:a},objs:this.objs,commonObjs:this.commonObjs,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:f,useRequestAnimationFrame:"print"!==h,pdfBug:this._pdfBug});((l=d).renderTasks||(l.renderTasks=new Set)).add(m)
const y=m.task
return Promise.all([d.displayReadyCapability.promise,c]).then((([e,t])=>{this.pendingCleanup?g():(this._stats&&this._stats.time("Rendering"),m.initializeGraphics({transparency:e,optionalContentConfig:t}),m.operatorListChanged())})).catch(g),y}getOperatorList({intent:e="display"}={}){const t="oplist-"+("print"===e?"print":"display")
let r,n=this._intentStates.get(t)
var i
return n||(n=Object.create(null),this._intentStates.set(t,n)),n.opListReadCapability||(r=Object.create(null),r.operatorListChanged=function(){n.operatorList.lastChunk&&(n.opListReadCapability.resolve(n.operatorList),n.renderTasks.delete(r))},n.opListReadCapability=(0,_util.createPromiseCapability)(),((i=n).renderTasks||(i.renderTasks=new Set)).add(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),n.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1,includeMarkedContent:r=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t,includeMarkedContent:!0===r},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){const t=this.streamTextContent(e)
return new Promise((function(e,r){const n=t.getReader(),i={items:[],styles:Object.create(null)}
!function t(){n.read().then((function({value:r,done:n}){n?e(i):(Object.assign(i.styles,r.styles),i.items.push(...r.items),t())}),r)}()}))}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null
const e=[]
for(const[t,r]of this._intentStates)if(this._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),!t.startsWith("oplist-"))for(const n of r.renderTasks)e.push(n.completed),n.cancel()
return this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1
for(const{renderTasks:t,operatorList:r}of this._intentStates.values())if(t.size>0||!r.lastChunk)return!1
return this._intentStates.clear(),this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const r=this._intentStates.get(t)
r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let r=0,n=e.length;r<n;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r])
t.operatorList.lastChunk=e.lastChunk
for(const r of t.renderTasks)r.operatorListChanged()
e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.')
const t=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),r=this._intentStates.get(e.intent)
r.streamReader=t
const n=()=>{t.read().then((({value:e,done:t})=>{t?r.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,r),n())}),(e=>{if(r.streamReader=null,!this._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0
for(const e of r.renderTasks)e.operatorListChanged()
this._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(e)
else{if(!r.opListReadCapability)throw e
r.opListReadCapability.reject(e)}}}))}
n()}_abortOperatorList({intentState:e,reason:t,force:r=!1}){if((0,_util.assert)(t instanceof Error||"object"==typeof t&&null!==t,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),e.streamReader){if(!r){if(e.renderTasks.size>0)return
if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new _util.AbortException(t?.message)),e.streamReader=null,!this._transport.destroyed){for(const[t,r]of this._intentStates)if(r===e){this._intentStates.delete(t)
break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy
class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve(void 0)}postMessage(e,t){const r=new WeakMap,n={data:function e(n){if("function"==typeof n||"symbol"==typeof n||n instanceof URL)throw new Error(`LoopbackPort.postMessage - cannot clone: ${n?.toString()}`)
if("object"!=typeof n||null===n)return n
if(r.has(n))return r.get(n)
let i,s
if((i=n.buffer)&&(0,_util.isArrayBuffer)(i))return s=t?.includes(i)?new n.constructor(i,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,s),s
if(n instanceof Map){s=new Map,r.set(n,s)
for(const[t,r]of n)s.set(t,e(r))
return s}if(n instanceof Set){s=new Set,r.set(n,s)
for(const t of n)s.add(e(t))
return s}s=Array.isArray(n)?[]:Object.create(null),r.set(n,s)
for(const t in n){let r,i=n
for(;!(r=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i)
void 0!==r.value&&("function"!=typeof r.value||n.hasOwnProperty?.(t))&&(s[t]=e(r.value))}return s}(e)}
this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const r=this._listeners.indexOf(t)
this._listeners.splice(r,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort
const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap
let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability
if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js"
else if("object"==typeof document&&"currentScript"in document){const e=document.currentScript?.src
e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc
if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc
throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let e
try{e=globalThis.pdfjsWorker?.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise
fakeWorkerCapability=(0,_util.createPromiseCapability)()
const loader=async function(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler()
if(mainWorkerMessageHandler)return mainWorkerMessageHandler
if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc())
return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler}
return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){const t="importScripts('"+e+"');"
return URL.createObjectURL(new Blob([t]))}class PDFWorker{constructor({name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))throw new Error("Cannot use more than one PDFWorker per port")
if(this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=r,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return pdfWorkerPorts.set(t,this),void this._initializeFromPort(t)
this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let t=getWorkerSrc()
try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href))
const e=new Worker(t),r=new _message_handler.MessageHandler("main","worker",e),n=()=>{e.removeEventListener("error",i),r.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},i=()=>{this._webWorker||n()}
e.addEventListener("error",i),r.on("test",(t=>{e.removeEventListener("error",i),this.destroyed?n():t?(this._messageHandler=r,this._port=e,this._webWorker=e,t.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),e.terminate())})),r.on("ready",(t=>{if(e.removeEventListener("error",i),this.destroyed)n()
else try{s()}catch(t){this._setupFakeWorker()}}))
const s=()=>{const t=new Uint8Array([this.postMessageTransfers?255:0])
try{r.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}}
return void s()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"))
const t=new LoopbackPort
this._port=t
const r="fake"+nextFakeWorkerId++,n=new _message_handler.MessageHandler(r+"_worker",r,t)
e.setup(n,t)
const i=new _message_handler.MessageHandler(r,r+"_worker",t)
this._messageHandler=i,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.")
return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new PDFWorker(e)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}()
exports.PDFWorker=PDFWorker
class WorkerTransport{constructor(e,t,r,n){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,n.useWorkerFetch||(this.CMapReaderFactory=new n.CMapReaderFactory({baseUrl:n.cMapUrl,isCompressed:n.cMapPacked}),this.StandardFontDataFactory=new n.StandardFontDataFactory({baseUrl:n.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}destroy(){if(this.destroyCapability)return this.destroyCapability.promise
this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"))
const e=[]
for(const r of this.pageCache)r&&e.push(r._destroy())
this.pageCache.length=0,this.pagePromises.length=0,this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified()
const t=this.messageHandler.sendWithPromise("Terminate",null)
return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this
e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const r=(0,_util.createPromiseCapability)(),n=this._fullReader
return n.headersReady.then((()=>{n.isStreamingSupported&&n.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),n.onProgress=e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.")
const r=this._networkStream.getRangeReader(e.begin,e.end)
r?(t.onPull=()=>{r.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let r
switch(e.name){case"PasswordException":r=new _util.PasswordException(e.message,e.code)
break
case"InvalidPDFException":r=new _util.InvalidPDFException(e.message)
break
case"MissingPDFException":r=new _util.MissingPDFException(e.message)
break
case"UnexpectedResponseException":r=new _util.UnexpectedResponseException(e.message,e.status)
break
case"UnknownErrorException":r=new _util.UnknownErrorException(e.message,e.details)}if(!(r instanceof Error)){const e="DocException - expected a valid Error.";(0,_util.warn)(e)}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const r=e=>{this._passwordCapability.resolve({password:e})}
try{t.onPassword(r,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code))
return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(t=>{if(this.destroyed)return
const[r,n,i]=t
if(!this.commonObjs.has(r))switch(n){case"Font":const t=this._params
if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(r,e)
break}let s=null
t.pdfBug&&globalThis.FontInspector?.enabled&&(s={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}})
const o=new _font_loader.FontFaceObject(i,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:s})
this.fontLoader.bind(o).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&o.data&&(o.data=null),this.commonObjs.resolve(r,o)}))
break
case"FontPath":case"Image":this.commonObjs.resolve(r,i)
break
default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(e=>{if(this.destroyed)return
const[t,r,n,i]=e,s=this.pageCache[r]
if(!s.objs.has(t))switch(n){case"Image":s.objs.resolve(t,i)
const e=8e6
i?.data?.length>e&&(s.cleanupAfterRender=!0)
break
case"Pattern":s.objs.resolve(t,i)
break
default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"))
const t=e-1
if(t in this.pagePromises)return this.pagePromises[t]
const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed")
const r=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug)
return this.pageCache[t]=r,r}))
return this.pagePromises[t]=r,r}getPageIndex(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}async startCleanup(e=!1){if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(let e=0,t=this.pageCache.length;e<t;e++){const t=this.pageCache[e]
if(t&&!t.cleanup())throw new Error(`startCleanup: Page ${e+1} is currently rendering.`)}this.commonObjs.clear(),e||this.fontLoader.clear(),this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params
return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(e,t=null){if(t)return this._ensureObj(e).capability.promise.then(t),null
const r=this._objs[e]
if(!r||!r.resolved)throw new Error(`Requesting object that isn't resolved yet ${e}.`)
return r.data}has(e){const t=this._objs[e]
return t?.resolved||!1}resolve(e,t){const r=this._ensureObj(e)
r.resolved=!0,r.data=t,r.capability.resolve(t)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function(){const e=new WeakSet
return class{constructor({callback:e,params:t,objs:r,commonObjs:n,operatorList:i,pageIndex:s,canvasFactory:o,useRequestAnimationFrame:a=!1,pdfBug:u=!1}){this.callback=e,this.params=t,this.objs=r,this.commonObjs=n,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=s,this.canvasFactory=o,this._pdfBug=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===a&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return
if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.")
e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint())
const{canvasContext:n,viewport:i,transform:s,imageLayer:o,background:a}=this.params
this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,o,r),this.gfx.beginDrawing({transform:s,viewport:i,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(t=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback())))}}}(),version="2.10.377"
exports.version=version
const build="156762c48"
exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0
var n=r(2)
class i{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:r=globalThis.document,styleElement:s=null}){this.constructor===i&&(0,n.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=r,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement
t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(t))
const r=t.sheet
r.insertRule(e,r.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e)
this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return
if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace()
if(t){this.addNativeFontFace(t)
try{await t.loaded}catch(r){throw this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,n.warn)(`Failed to load font '${t.family}': '${r}'.`),e.disableFontFace=!0,r}}return}const t=e.createFontFaceRule()
if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return
await new Promise((r=>{const n=this._queueLoadingCallback(r)
this._prepareFontLoadEvent([t],[e],n)}))}}_queueLoadingCallback(e){(0,n.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts
return(0,n.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,n.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,n.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,r){(0,n.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let s
t.FontLoader=s,t.FontLoader=s=class extends i{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1
if("undefined"==typeof navigator)e=!0
else{const t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)
t?.[1]>=14&&(e=!0)}return(0,n.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,r={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,n.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift()
setTimeout(e.callback,0)}},callback:e}
return t.requests.push(r),r}get _loadTestFont(){return(0,n.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,r){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function s(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}let o,a
const u=this._document.createElement("canvas")
u.width=1,u.height=1
const c=u.getContext("2d")
let l=0
const h=`lt${Date.now()}${this.loadTestFontId++}`
let d=this._loadTestFont
d=s(d,976,h.length,h)
const f=1482184792
let p=i(d,16)
for(o=0,a=h.length-3;o<a;o+=4)p=p-f+i(h,o)|0
o<h.length&&(p=p-f+i(h+"XXX",o)|0),d=s(d,16,4,(0,n.string32)(p))
const g=`@font-face {font-family:"${h}";src:url(data:font/opentype;base64,${btoa(d)});}`
this.insertRule(g)
const m=[]
for(const n of t)m.push(n.loadedName)
m.push(h)
const y=this._document.createElement("div")
y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px"
for(const n of m){const e=this._document.createElement("span")
e.textContent="Hi",e.style.fontFamily=n,y.appendChild(e)}this._document.body.appendChild(y),function e(t,r){if(l++,l>30)return(0,n.warn)("Load test font never loaded."),void r()
c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(h,(()=>{this._document.body.removeChild(y),r.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:r=!1,ignoreErrors:n=!1,onUnsupportedFeature:i,fontRegistry:s=null}){this.compiledGlyphs=Object.create(null)
for(const o in e)this[o]=e[o]
this.isEvalSupported=!1!==t,this.disableFontFace=!0===r,this.ignoreErrors=!0===n,this._onUnsupportedFeature=i,this.fontRegistry=s}createNativeFontFace(){if(!this.data||this.disableFontFace)return null
let e
if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight}
this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{})
return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null
const e=(0,n.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`
let r
if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`
this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else r=`@font-face {font-family:"${this.loadedName}";src:${t}}`
return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t]
let r
try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e
return this._onUnsupportedFeature({featureId:n.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,n.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&n.IsEvalSupportedCached.value){const e=[]
for(const t of r){const r=void 0!==t.args?t.args.join(","):""
e.push("c.",t.cmd,"(",r,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const n of r)"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCMapReaderFactory=t.NodeCanvasFactory=void 0
var n=r(5),i=r(4),s=r(2)
let o=class{constructor(){(0,s.unreachable)("Not implemented: NodeCanvasFactory")}}
t.NodeCanvasFactory=o
let a=class{constructor(){(0,s.unreachable)("Not implemented: NodeCMapReaderFactory")}}
t.NodeCMapReaderFactory=a
let u=class{constructor(){(0,s.unreachable)("Not implemented: NodeStandardFontDataFactory")}}
if(t.NodeStandardFontDataFactory=u,i.isNodeJS){const e=function(e){return new Promise(((t,r)=>{__webpack_require__(70172).readFile(e,((e,n)=>{!e&&n?t(new Uint8Array(n)):r(new Error(e))}))}))}
t.NodeCanvasFactory=o=class extends n.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(93414).createCanvas(e,t)}},t.NodeCMapReaderFactory=a=class extends n.BaseCMapReaderFactory{_fetchData(t,r){return e(t).then((e=>({cMapData:e,compressionType:r})))}},t.NodeStandardFontDataFactory=u=class extends n.BaseStandardFontDataFactory{_fetchData(t){return e(t)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0
var n=r(2)
t.AnnotationStorage=class{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(e,t){const r=this._storage.get(e)
return void 0!==r?r:t}setValue(e,t){const r=this._storage.get(e)
let n=!1
if(void 0!==r)for(const[i,s]of Object.entries(t))r[i]!==s&&(n=!0,r[i]=s)
else this._storage.set(e,t),n=!0
n&&this._setModified()}getAll(){return this._storage.size>0?(0,n.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0
var n=r(2),i=r(11)
const s=4096,o=16
function a(e){if(!e.mozCurrentTransform){e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._originalResetTransform=e.resetTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[]
try{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth")
e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){return this._getLineWidth()}})}catch(e){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){const[e,t,r,n,i,s]=this._transformMatrix,o=e*n-t*r,a=t*r-e*n
return[n/o,t/a,r/a,e/o,(n*i-r*s)/a,(t*i-e*s)/o]}}),e.save=function(){const e=this._transformMatrix
this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){const e=this._transformStack.pop()
e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){const r=this._transformMatrix
r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){const r=this._transformMatrix
r[0]*=e,r[1]*=e,r[2]*=t,r[3]*=t,this._originalScale(e,t)},e.transform=function(t,r,n,i,s,o){const a=this._transformMatrix
this._transformMatrix=[a[0]*t+a[2]*r,a[1]*t+a[3]*r,a[0]*n+a[2]*i,a[1]*n+a[3]*i,a[0]*s+a[2]*o+a[4],a[1]*s+a[3]*o+a[5]],e._originalTransform(t,r,n,i,s,o)},e.setTransform=function(t,r,n,i,s,o){this._transformMatrix=[t,r,n,i,s,o],e._originalSetTransform(t,r,n,i,s,o)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){const t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix
this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)}}}class u{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,r,n){let i
return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,r),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),n&&a(i.context),i}clear(){for(const e in this.cache){const t=this.cache[e]
this.canvasFactory.destroy(t),delete this.cache[e]}}}class c{constructor(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}const l=function(){function e(e,t,r=null){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0)
const i=t.height,s=t.width,a=i%o,u=(i-a)/o,c=0===a?u:u+1,l=e.createImageData(s,o)
let h,d=0
const f=t.data,p=l.data
let g,m,y,v,_,b,D,A
if(r)switch(r.length){case 1:_=r[0],b=r[0],D=r[0],A=r[0]
break
case 4:_=r[0],b=r[1],D=r[2],A=r[3]}if(t.kind===n.ImageKind.GRAYSCALE_1BPP){const t=f.byteLength,r=new Uint32Array(p.buffer,0,p.byteLength>>2),i=r.length,v=s+7>>3
let _=4294967295,b=n.IsLittleEndianCached.value?4278190080:255
for(A&&255===A[0]&&0===A[255]&&([_,b]=[b,_]),g=0;g<c;g++){for(y=g<u?o:a,h=0,m=0;m<y;m++){const e=t-d
let n=0
const i=e>v?s:8*e-7,o=-8&i
let a=0,u=0
for(;n<o;n+=8)u=f[d++],r[h++]=128&u?_:b,r[h++]=64&u?_:b,r[h++]=32&u?_:b,r[h++]=16&u?_:b,r[h++]=8&u?_:b,r[h++]=4&u?_:b,r[h++]=2&u?_:b,r[h++]=1&u?_:b
for(;n<i;n++)0===a&&(u=f[d++],a=128),r[h++]=u&a?_:b,a>>=1}for(;h<i;)r[h++]=0
e.putImageData(l,0,g*o)}}else if(t.kind===n.ImageKind.RGBA_32BPP){const t=!!(_||b||D)
for(m=0,v=s*o*4,g=0;g<u;g++){if(p.set(f.subarray(d,d+v)),d+=v,t)for(let e=0;e<v;e+=4)_&&(p[e+0]=_[p[e+0]]),b&&(p[e+1]=b[p[e+1]]),D&&(p[e+2]=D[p[e+2]])
e.putImageData(l,0,m),m+=o}if(g<c){if(v=s*a*4,p.set(f.subarray(d,d+v)),t)for(let e=0;e<v;e+=4)_&&(p[e+0]=_[p[e+0]]),b&&(p[e+1]=b[p[e+1]]),D&&(p[e+2]=D[p[e+2]])
e.putImageData(l,0,m)}}else{if(t.kind!==n.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${t.kind}`)
{const t=!!(_||b||D)
for(y=o,v=s*y,g=0;g<c;g++){for(g>=u&&(y=a,v=s*y),h=0,m=v;m--;)p[h++]=f[d++],p[h++]=f[d++],p[h++]=f[d++],p[h++]=255
if(t)for(let e=0;e<h;e+=4)_&&(p[e+0]=_[p[e+0]]),b&&(p[e+1]=b[p[e+1]]),D&&(p[e+2]=D[p[e+2]])
e.putImageData(l,0,g*o)}}}}function t(e,t){const r=t.height,n=t.width,i=r%o,s=(r-i)/o,a=0===i?s:s+1,u=e.createImageData(n,o)
let c=0
const l=t.data,h=u.data
for(let d=0;d<a;d++){const t=d<s?o:i
let r=3
for(let e=0;e<t;e++){let e,t=0
for(let i=0;i<n;i++)t||(e=l[c++],t=128),h[r]=e&t?0:255,r+=4,t>>=1}e.putImageData(u,0,d*o)}}function r(e,t){const r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"]
for(let n=0,i=r.length;n<i;n++){const i=r[n]
void 0!==e[i]&&(t[i]=e[i])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function l(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function h(e,t,r,n){const i=e.length
for(let s=3;s<i;s+=4){const i=e[s]
if(0===i)e[s-3]=t,e[s-2]=r,e[s-1]=n
else if(i<255){const o=255-i
e[s-3]=e[s-3]*i+t*o>>8,e[s-2]=e[s-2]*i+r*o>>8,e[s-1]=e[s-1]*i+n*o>>8}}}function d(e,t,r){const n=e.length
for(let i=3;i<n;i+=4){const n=r?r[e[i]]:e[i]
t[i]=t[i]*n*.00392156862745098|0}}function f(e,t,r){const n=e.length
for(let i=3;i<n;i+=4){const n=77*e[i-3]+152*e[i-2]+28*e[i-1]
t[i]=r?t[i]*r[n>>8]>>8:t[i]*n>>16}}function p(e,t,r){const n=t.canvas,i=t.context
e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY),function(e,t,r,n,i,s,o){const a=!!s,u=a?s[0]:0,c=a?s[1]:0,l=a?s[2]:0
let p
p="Luminosity"===i?f:d
const g=Math.min(n,Math.ceil(1048576/r))
for(let d=0;d<n;d+=g){const i=Math.min(g,n-d),s=e.getImageData(0,d,r,i),f=t.getImageData(0,d,r,i)
a&&h(s.data,u,c,l),p(s.data,f.data,o),e.putImageData(f,0,d)}}(i,r,n.width,n.height,t.subtype,t.backdrop,t.transferMap),e.drawImage(n,0,0)}const g=["butt","round","square"],m=["miter","round","bevel"],y={},v={}
class _{constructor(e,t,r,n,i,s){this.ctx=e,this.current=new c,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=s,this.cachedCanvases=new u(this.canvasFactory),this.cachedPatterns=new Map,e&&a(e),this._cachedGetSinglePixelWidth=null}beginDrawing({transform:e,viewport:t,transparency:r=!1,background:n=null}){const i=this.ctx.canvas.width,s=this.ctx.canvas.height
if(this.ctx.save(),this.ctx.fillStyle=n||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,i,s),this.ctx.restore(),r){const e=this.cachedCanvases.getCanvas("transparent",i,s,!0)
this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),l(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,t.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(e,t,r,i){const s=e.argsArray,o=e.fnArray
let a=t||0
const u=s.length
if(u===a)return a
const c=u-a>10&&"function"==typeof r,l=c?Date.now()+15:0
let h=0
const d=this.commonObjs,f=this.objs
let p
for(;;){if(void 0!==i&&a===i.nextBreakPoint)return i.breakIt(a,r),a
if(p=o[a],p!==n.OPS.dependency)this[p].apply(this,s[a])
else for(const e of s[a]){const t=e.startsWith("g_")?d:f
if(!t.has(e))return t.get(e,r),a}if(a++,a===u)return a
if(c&&++h>10){if(Date.now()>l)return r(),a
h=0}}}endDrawing(){for(;this.stateStack.length||null!==this.current.activeSMask;)this.restore()
this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const r=e.width,n=e.height
let i,s,o=Math.max(Math.hypot(t[0],t[1]),1),a=Math.max(Math.hypot(t[2],t[3]),1),u=r,c=n,l="prescale1"
for(;o>2&&u>1||a>2&&c>1;){let t=u,r=c
o>2&&u>1&&(t=Math.ceil(u/2),o/=u/t),a>2&&c>1&&(r=Math.ceil(c/2),a/=c/r),i=this.cachedCanvases.getCanvas(l,t,r),s=i.context,s.clearRect(0,0,t,r),s.drawImage(e,0,0,u,c,0,0,t,r),e=i.canvas,u=t,c=r,l="prescale1"===l?"prescale2":"prescale1"}return{img:e,paintWidth:u,paintHeight:c}}_createMaskCanvas(e){const r=this.ctx,i=e.width,s=e.height,o=this.current.fillColor,a=this.current.patternFill,u=this.cachedCanvases.getCanvas("maskCanvas",i,s)
t(u.context,e)
const c=r.mozCurrentTransform
let l=n.Util.transform(c,[1/i,0,0,-1/s,0,0])
l=n.Util.transform(l,[1,0,0,1,0,-s])
const h=n.Util.applyTransform([0,0],l),d=n.Util.applyTransform([i,s],l),f=n.Util.normalizeRect([h[0],h[1],d[0],d[1]]),p=Math.ceil(f[2]-f[0]),g=Math.ceil(f[3]-f[1]),m=this.cachedCanvases.getCanvas("fillCanvas",p,g,!0),y=m.context,v=Math.min(h[0],d[0]),_=Math.min(h[1],d[1])
y.translate(-v,-_),y.transform.apply(y,l)
const b=this._scaleImage(u.canvas,y.mozCurrentTransformInverse)
y.drawImage(b.img,0,0,b.img.width,b.img.height,0,0,i,s),y.globalCompositeOperation="source-in"
const D=n.Util.transform(y.mozCurrentTransformInverse,[1,0,0,1,-v,-_])
return y.fillStyle=a?o.getPattern(r,this,D,!1):o,y.fillRect(0,0,i,s),{canvas:m.canvas,offsetX:Math.round(v),offsetY:Math.round(_)}}setLineWidth(e){this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=g[e]}setLineJoin(e){this.ctx.lineJoin=m[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const r=this.ctx
void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,r=e.length;t<r;t++){const r=e[t],n=r[0],i=r[1]
switch(n){case"LW":this.setLineWidth(i)
break
case"LC":this.setLineCap(i)
break
case"LJ":this.setLineJoin(i)
break
case"ML":this.setMiterLimit(i)
break
case"D":this.setDash(i[0],i[1])
break
case"RI":this.setRenderingIntent(i)
break
case"FL":this.setFlatness(i)
break
case"Font":this.setFont(i[0],i[1])
break
case"CA":this.current.strokeAlpha=r[1]
break
case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1]
break
case"BM":this.ctx.globalCompositeOperation=i
break
case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=i?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null
break
case"TR":this.current.transferMaps=i}}}beginSMaskGroup(){const e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,i="smaskGroupAt"+this.groupLevel,s=this.cachedCanvases.getCanvas(i,t,n,!0),o=this.ctx,a=o.mozCurrentTransform
this.ctx.save()
const u=s.context
u.scale(1/e.scaleX,1/e.scaleY),u.translate(-e.offsetX,-e.offsetY),u.transform.apply(u,a),e.startTransformInverse=u.mozCurrentTransformInverse,r(o,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++}suspendSMaskGroup(){const e=this.ctx
this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e),this.ctx.restore(),this.ctx.save(),r(e,this.ctx),this.current.resumeSMaskCtx=e
const t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform)
this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()}resumeSMaskGroup(){const e=this.current.resumeSMaskCtx,t=this.ctx
this.ctx=e,this.groupStack.push(t),this.groupLevel++}endSMaskGroup(){const e=this.ctx
this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,e),this.ctx.restore(),r(e,this.ctx)
const t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform)
this.ctx.transform.apply(this.ctx,t)}save(){this.ctx.save()
const e=this.current
this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null}restore(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null):this.current.activeSMask=null}transform(e,t,r,n,i,s){this.ctx.transform(e,t,r,n,i,s),this._cachedGetSinglePixelWidth=null}constructPath(e,t){const r=this.ctx,i=this.current
let s=i.x,o=i.y
for(let a=0,u=0,c=e.length;a<c;a++)switch(0|e[a]){case n.OPS.rectangle:s=t[u++],o=t[u++]
const e=t[u++],i=t[u++],a=s+e,c=o+i
r.moveTo(s,o),0===e||0===i?r.lineTo(a,c):(r.lineTo(a,o),r.lineTo(a,c),r.lineTo(s,c)),r.closePath()
break
case n.OPS.moveTo:s=t[u++],o=t[u++],r.moveTo(s,o)
break
case n.OPS.lineTo:s=t[u++],o=t[u++],r.lineTo(s,o)
break
case n.OPS.curveTo:s=t[u+4],o=t[u+5],r.bezierCurveTo(t[u],t[u+1],t[u+2],t[u+3],s,o),u+=6
break
case n.OPS.curveTo2:r.bezierCurveTo(s,o,t[u],t[u+1],t[u+2],t[u+3]),s=t[u+2],o=t[u+3],u+=4
break
case n.OPS.curveTo3:s=t[u+2],o=t[u+3],r.bezierCurveTo(t[u],t[u+1],s,o,s,o),u+=4
break
case n.OPS.closePath:r.closePath()}i.setCurrentPoint(s,o)}closePath(){this.ctx.closePath()}stroke(e){e=void 0===e||e
const t=this.ctx,r=this.current.strokeColor
if(t.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"==typeof r&&r?.getPattern){const e=this.getSinglePixelWidth()
t.save(),t.strokeStyle=r.getPattern(t,this,t.mozCurrentTransformInverse),t.lineWidth=Math.max(e,this.current.lineWidth),t.stroke(),t.restore()}else{const e=this.getSinglePixelWidth()
e<0&&-e>=this.current.lineWidth?(t.save(),t.resetTransform(),t.lineWidth=Math.round(this._combinedScaleFactor),t.stroke(),t.restore()):(t.lineWidth=Math.max(e,this.current.lineWidth),t.stroke())}e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(e){e=void 0===e||e
const t=this.ctx,r=this.current.fillColor
let n=!1
this.current.patternFill&&(t.save(),t.fillStyle=r.getPattern(t,this,t.mozCurrentTransformInverse),n=!0),this.contentVisible&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),n&&t.restore(),e&&this.consumePath()}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=y}eoClip(){this.pendingClip=v}beginText(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx
if(void 0!==e){t.save(),t.beginPath()
for(let r=0;r<e.length;r++){const n=e[r]
t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){const r=this.commonObjs.get(e),i=this.current
if(!r)throw new Error(`Can't find font for ${e}`)
if(i.fontMatrix=r.fontMatrix||n.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=r,this.current.fontSize=t,r.isType3Font)return
const s=r.loadedName||"sans-serif"
let o="normal"
r.black?o="900":r.bold&&(o="bold")
const a=r.italic?"italic":"normal",u=`"${s}", ${r.fallbackName}`
let c=t
t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${a} ${o} ${c}px ${u}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,r,n,i,s){this.current.textMatrix=[e,t,r,n,i,s],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,r,i,s){const o=this.ctx,a=this.current,u=a.font,c=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,h=c&n.TextRenderingMode.FILL_STROKE_MASK,d=!!(c&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=a.patternFill&&!u.missingFile
let p;(u.disableFontFace||d||f)&&(p=u.getPathGenerator(this.commonObjs,e)),u.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),p(o,l),i&&o.setTransform.apply(o,i),h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fill(),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||(s&&(o.resetTransform(),o.lineWidth=Math.round(this._combinedScaleFactor)),o.stroke()),o.restore()):(h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||(s?(o.save(),o.moveTo(t,r),o.resetTransform(),o.lineWidth=Math.round(this._combinedScaleFactor),o.strokeText(e,0,0),o.restore()):o.strokeText(e,t,r))),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:l,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10)
e.scale(1.5,1),e.fillText("I",0,10)
const t=e.getImageData(0,0,10,10).data
let r=!1
for(let n=3;n<t.length;n+=4)if(t[n]>0&&t[n]<255){r=!0
break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)}showText(e){const t=this.current,r=t.font
if(r.isType3Font)return this.showType3Text(e)
const i=t.fontSize
if(0===i)return
const s=this.ctx,o=t.fontSizeScale,a=t.charSpacing,u=t.wordSpacing,c=t.fontDirection,l=t.textHScale*c,h=e.length,d=r.vertical,f=d?1:-1,p=r.defaultVMetrics,g=i*t.fontMatrix[0],m=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill
let y
if(s.save(),t.patternFill){s.save()
const e=t.fillColor.getPattern(s,this,s.mozCurrentTransformInverse)
y=s.mozCurrentTransform,s.restore(),s.fillStyle=e}s.transform.apply(s,t.textMatrix),s.translate(t.x,t.y+t.textRise),c>0?s.scale(l,-1):s.scale(l,1)
let v=t.lineWidth,_=!1
const b=t.textMatrixScale
if(0===b||0===v){const e=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK
e!==n.TextRenderingMode.STROKE&&e!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,v=this.getSinglePixelWidth(),_=v<0)}else v/=b
1!==o&&(s.scale(o,o),v/=o),s.lineWidth=v
let D,A=0
for(D=0;D<h;++D){const t=e[D]
if((0,n.isNum)(t)){A+=f*t*i/1e3
continue}let l=!1
const h=(t.isSpace?u:0)+a,v=t.fontChar,b=t.accent
let E,C,w,S=t.width
if(d){const e=t.vmetric||p,r=-(t.vmetric?e[1]:.5*S)*g,n=e[2]*g
S=e?-e[0]:S,E=r/o,C=(A+n)/o}else E=A/o,C=0
if(r.remeasure&&S>0){const e=1e3*s.measureText(v).width/i*o
if(S<e&&this.isFontSubpixelAAEnabled){const t=S/e
l=!0,s.save(),s.scale(t,1),E/=t}else S!==e&&(E+=(S-e)/2e3*i/o)}if(this.contentVisible&&(t.isInFont||r.missingFile))if(m&&!b)s.fillText(v,E,C)
else if(this.paintChar(v,E,C,y,_),b){const e=E+i*b.offset.x/o,t=C-i*b.offset.y/o
this.paintChar(b.fontChar,e,t,y,_)}w=d?S*g-h*c:S*g+h*c,A+=w,l&&s.restore()}d?t.y-=A:t.x+=A*l,s.restore()}showType3Text(e){const t=this.ctx,r=this.current,i=r.font,s=r.fontSize,o=r.fontDirection,a=i.vertical?1:-1,u=r.charSpacing,c=r.wordSpacing,l=r.textHScale*o,h=r.fontMatrix||n.FONT_IDENTITY_MATRIX,d=e.length
let f,p,g,m
if(r.textRenderingMode!==n.TextRenderingMode.INVISIBLE&&0!==s){for(this._cachedGetSinglePixelWidth=null,t.save(),t.transform.apply(t,r.textMatrix),t.translate(r.x,r.y),t.scale(l,o),f=0;f<d;++f){if(p=e[f],(0,n.isNum)(p)){m=a*p*s/1e3,this.ctx.translate(m,0),r.x+=m*l
continue}const o=(p.isSpace?c:0)+u,d=i.charProcOperatorList[p.operatorListId]
d?(this.contentVisible&&(this.processingType3=p,this.save(),t.scale(s,s),t.transform.apply(t,h),this.executeOperatorList(d),this.restore()),g=n.Util.applyTransform([p.width,0],h)[0]*s+o,t.translate(g,0),r.x+=g*l):(0,n.warn)(`Type3 character "${p.operatorListId}" is not available.`)}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,r,n,i,s){this.ctx.rect(r,n,i-r,s-n),this.clip(),this.endPath()}getColorN_Pattern(e){let t
if("TilingPattern"===e[0]){const r=e[1],n=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:e=>new _(e,this.commonObjs,this.objs,this.canvasFactory)}
t=new i.TilingPattern(e,r,this.ctx,s,n)}else t=this._getPattern(e[1])
return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,r){const i=n.Util.makeHexColor(e,t,r)
this.ctx.strokeStyle=i,this.current.strokeColor=i}setFillRGBColor(e,t,r){const i=n.Util.makeHexColor(e,t,r)
this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1}_getPattern(e){if(this.cachedPatterns.has(e))return this.cachedPatterns.get(e)
const t=(0,i.getShadingPattern)(this.objs.get(e))
return this.cachedPatterns.set(e,t),t}shadingFill(e){if(!this.contentVisible)return
const t=this.ctx
this.save()
const r=this._getPattern(e)
t.fillStyle=r.getPattern(t,this,t.mozCurrentTransformInverse,!0)
const i=t.mozCurrentTransformInverse
if(i){const e=t.canvas,r=e.width,s=e.height,o=n.Util.applyTransform([0,0],i),a=n.Util.applyTransform([0,s],i),u=n.Util.applyTransform([r,0],i),c=n.Util.applyTransform([r,s],i),l=Math.min(o[0],a[0],u[0],c[0]),h=Math.min(o[1],a[1],u[1],c[1]),d=Math.max(o[0],a[0],u[0],c[0]),f=Math.max(o[1],a[1],u[1],c[1])
this.ctx.fillRect(l,h,d-l,f-h)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10)
this.restore()}beginInlineImage(){(0,n.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,n.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){const e=t[2]-t[0],r=t[3]-t[1]
this.ctx.rect(t[0],t[1],e,r),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return
this.save()
const t=this.ctx
e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.")
const i=t.mozCurrentTransform
if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.")
let o=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform)
const a=[0,0,t.canvas.width,t.canvas.height]
o=n.Util.intersect(o,a)||[0,0,0,0]
const u=Math.floor(o[0]),c=Math.floor(o[1])
let l=Math.max(Math.ceil(o[2])-u,1),h=Math.max(Math.ceil(o[3])-c,1),d=1,f=1
l>s&&(d=l/s,l=s),h>s&&(f=h/s,h=s)
let p="groupAt"+this.groupLevel
e.smask&&(p+="_smask_"+this.smaskCounter++%2)
const g=this.cachedCanvases.getCanvas(p,l,h,!0),m=g.context
m.scale(1/d,1/f),m.translate(-u,-c),m.transform.apply(m,i),e.smask?this.smaskStack.push({canvas:g.canvas,context:m,offsetX:u,offsetY:c,scaleX:d,scaleY:f,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(u,c),t.scale(d,f)),r(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null}endGroup(e){if(!this.contentVisible)return
this.groupLevel--
const t=this.ctx
this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(e,t,r,n){if(this.save(),l(this.ctx),this.current=new c,Array.isArray(t)&&4===t.length){const e=t[2]-t[0],r=t[3]-t[1]
this.ctx.rect(t[0],t[1],e,r),this.clip(),this.endPath()}this.transform.apply(this,r),this.transform.apply(this,n)}endAnnotation(){this.restore()}paintImageMaskXObject(e){if(!this.contentVisible)return
const t=this.ctx,r=e.width,n=e.height,i=this.processingType3
if(i&&void 0===i.compiled&&(i.compiled=r<=1e3&&n<=1e3?function(e){const t=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),r=e.width,n=e.height,i=r+1
let s,o,a,u
const c=new Uint8Array(i*(n+1)),l=r+7&-8,h=e.data,d=new Uint8Array(l*n)
let f=0
for(s=0,o=h.length;s<o;s++){const e=h[s]
let t=128
for(;t>0;)d[f++]=e&t?0:255,t>>=1}let p=0
for(f=0,0!==d[f]&&(c[0]=1,++p),a=1;a<r;a++)d[f]!==d[f+1]&&(c[a]=d[f]?2:1,++p),f++
for(0!==d[f]&&(c[a]=2,++p),s=1;s<n;s++){f=s*l,u=s*i,d[f-l]!==d[f]&&(c[u]=d[f]?1:8,++p)
let e=(d[f]?4:0)+(d[f-l]?8:0)
for(a=1;a<r;a++)e=(e>>2)+(d[f+1]?4:0)+(d[f-l+1]?8:0),t[e]&&(c[u+a]=t[e],++p),f++
if(d[f-l]!==d[f]&&(c[u+a]=d[f]?2:4,++p),p>1e3)return null}for(f=l*(n-1),u=s*i,0!==d[f]&&(c[u]=8,++p),a=1;a<r;a++)d[f]!==d[f+1]&&(c[u+a]=d[f]?4:8,++p),f++
if(0!==d[f]&&(c[u+a]=4,++p),p>1e3)return null
const g=new Int32Array([0,i,-1,0,-i,0,0,0,1]),m=[]
for(s=0;p&&s<=n;s++){let e=s*i
const t=e+r
for(;e<t&&!c[e];)e++
if(e===t)continue
const n=[e%i,s],o=e
let a=c[e]
do{const t=g[a]
do{e+=t}while(!c[e])
const r=c[e]
5!==r&&10!==r?(a=r,c[e]=0):(a=r&51*a>>4,c[e]&=a>>2|a<<2),n.push(e%i,e/i|0),c[e]||--p}while(o!==e)
m.push(n),--s}return function(e){e.save(),e.scale(1/r,-1/n),e.translate(0,-n),e.beginPath()
for(let t=0,r=m.length;t<r;t++){const r=m[t]
e.moveTo(r[0],r[1])
for(let t=2,n=r.length;t<n;t+=2)e.lineTo(r[t],r[t+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:r,height:n}):null),i?.compiled)return void i.compiled(t)
const s=this._createMaskCanvas(e),o=s.canvas
t.save(),t.setTransform(1,0,0,1,0,0),t.drawImage(o,s.offsetX,s.offsetY),t.restore()}paintImageMaskXObjectRepeat(e,t,r=0,i=0,s,o){if(!this.contentVisible)return
const a=this.ctx
a.save()
const u=a.mozCurrentTransform
a.transform(t,r,i,s,0,0)
const c=this._createMaskCanvas(e)
a.setTransform(1,0,0,1,0,0)
for(let l=0,h=o.length;l<h;l+=2){const e=n.Util.transform(u,[t,r,i,s,o[l],o[l+1]]),[h,d]=n.Util.applyTransform([0,0],e)
a.drawImage(c.canvas,h,d)}a.restore()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return
const r=this.ctx,n=this.current.fillColor,i=this.current.patternFill
for(let s=0,o=e.length;s<o;s++){const o=e[s],a=o.width,u=o.height,c=this.cachedCanvases.getCanvas("maskCanvas",a,u),l=c.context
l.save(),t(l,o),l.globalCompositeOperation="source-in",l.fillStyle=i?n.getPattern(l,this,r.mozCurrentTransformInverse,!1):n,l.fillRect(0,0,a,u),l.restore(),r.save(),r.transform.apply(r,o.transform),r.scale(1,-1),r.drawImage(c.canvas,0,0,a,u,0,-1,1,1),r.restore()}}paintImageXObject(e){if(!this.contentVisible)return
const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e)
t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,r,i){if(!this.contentVisible)return
const s=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e)
if(!s)return void(0,n.warn)("Dependent image isn't ready yet")
const o=s.width,a=s.height,u=[]
for(let n=0,c=i.length;n<c;n+=2)u.push({transform:[t,0,0,r,i[n],i[n+1]],x:0,y:0,w:o,h:a})
this.paintInlineImageXObjectGroup(s,u)}paintInlineImageXObject(t){if(!this.contentVisible)return
const r=t.width,n=t.height,i=this.ctx
let s
if(this.save(),i.scale(1/r,-1/n),"function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)s=t
else{const i=this.cachedCanvases.getCanvas("inlineImage",r,n)
e(i.context,t,this.current.transferMaps),s=i.canvas}const o=this._scaleImage(s,i.mozCurrentTransformInverse)
if(i.drawImage(o.img,0,0,o.paintWidth,o.paintHeight,0,-n,r,n),this.imageLayer){const e=this.getCanvasPosition(0,-n)
this.imageLayer.appendImage({imgData:t,left:e[0],top:e[1],width:r/i.mozCurrentTransformInverse[0],height:n/i.mozCurrentTransformInverse[3]})}this.restore()}paintInlineImageXObjectGroup(t,r){if(!this.contentVisible)return
const n=this.ctx,i=t.width,s=t.height,o=this.cachedCanvases.getCanvas("inlineImage",i,s)
e(o.context,t,this.current.transferMaps)
for(let e=0,a=r.length;e<a;e++){const a=r[e]
if(n.save(),n.transform.apply(n,a.transform),n.scale(1,-1),n.drawImage(o.canvas,a.x,a.y,a.w,a.h,0,-1,1,1),this.imageLayer){const e=this.getCanvasPosition(a.x,a.y)
this.imageLayer.appendImage({imgData:t,left:e[0],top:e[1],width:i,height:s})}n.restore()}}paintSolidColorImageMask(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(){const e=this.ctx
this.pendingClip&&(this.pendingClip===v?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()}getSinglePixelWidth(){if(null===this._cachedGetSinglePixelWidth){const e=this.ctx.mozCurrentTransform,t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=e[0]**2+e[2]**2,n=e[1]**2+e[3]**2,i=Math.sqrt(Math.max(r,n))/t
r!==n&&this._combinedScaleFactor*i>1?this._cachedGetSinglePixelWidth=-this._combinedScaleFactor*i:t>Number.EPSILON?this._cachedGetSinglePixelWidth=i:this._cachedGetSinglePixelWidth=1}return this._cachedGetSinglePixelWidth}getCanvasPosition(e,t){const r=this.ctx.mozCurrentTransform
return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1
return!0}}for(const i in n.OPS)_.prototype[n.OPS[i]]=_.prototype[i]
return _}()
t.CanvasGraphics=l},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new o(e)
case"Mesh":return new c(e)
case"Dummy":return new l}throw new Error(`Unknown IR type: ${e[0]}`)},t.TilingPattern=void 0
var n=r(2)
function i(e,t){if(!t||"undefined"==typeof Path2D)return
const r=t[2]-t[0],n=t[3]-t[1],i=new Path2D
i.rect(t[0],t[1],r,n),e.clip(i)}class s{constructor(){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,n.unreachable)("Abstract method `getPattern` called.")}}class o extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this._matrix=e[8],this._patternCache=null}_createGradient(e){let t
"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1))
for(const r of this._colorStops)t.addColorStop(r[0],r[1])
return t}getPattern(e,t,r,s=!1){let o
if(this._patternCache)o=this._patternCache
else{if(s)i(e,this._bbox),o=this._createGradient(e)
else{const r=t.cachedCanvases.getCanvas("pattern",t.ctx.canvas.width,t.ctx.canvas.height,!0),n=r.context
n.clearRect(0,0,n.canvas.width,n.canvas.height),n.beginPath(),n.rect(0,0,n.canvas.width,n.canvas.height),n.setTransform.apply(n,t.baseTransform),this._matrix&&n.transform.apply(n,this._matrix),i(n,this._bbox),n.fillStyle=this._createGradient(n),n.fill(),o=e.createPattern(r.canvas,"repeat")}this._patternCache=o}if(!s){const t=new DOMMatrix(r)
try{o.setTransform(t)}catch(e){(0,n.warn)(`RadialAxialShadingPattern.getPattern: "${e?.message}".`)}}return o}}function a(e,t,r,n,i,s,o,a){const u=t.coords,c=t.colors,l=e.data,h=4*e.width
let d
u[r+1]>u[n+1]&&(d=r,r=n,n=d,d=s,s=o,o=d),u[n+1]>u[i+1]&&(d=n,n=i,i=d,d=o,o=a,a=d),u[r+1]>u[n+1]&&(d=r,r=n,n=d,d=s,s=o,o=d)
const f=(u[r]+t.offsetX)*t.scaleX,p=(u[r+1]+t.offsetY)*t.scaleY,g=(u[n]+t.offsetX)*t.scaleX,m=(u[n+1]+t.offsetY)*t.scaleY,y=(u[i]+t.offsetX)*t.scaleX,v=(u[i+1]+t.offsetY)*t.scaleY
if(p>=v)return
const _=c[s],b=c[s+1],D=c[s+2],A=c[o],E=c[o+1],C=c[o+2],w=c[a],S=c[a+1],F=c[a+2],T=Math.round(p),R=Math.round(v)
let x,O,P,M,k,I,N,L
for(let B=T;B<=R;B++){if(B<m){let e
e=B<p?0:(p-B)/(p-m),x=f-(f-g)*e,O=_-(_-A)*e,P=b-(b-E)*e,M=D-(D-C)*e}else{let e
e=B>v?1:m===v?0:(m-B)/(m-v),x=g-(g-y)*e,O=A-(A-w)*e,P=E-(E-S)*e,M=C-(C-F)*e}let e
e=B<p?0:B>v?1:(p-B)/(p-v),k=f-(f-y)*e,I=_-(_-w)*e,N=b-(b-S)*e,L=D-(D-F)*e
const t=Math.round(Math.min(x,k)),r=Math.round(Math.max(x,k))
let n=h*B+4*t
for(let i=t;i<=r;i++)e=(x-i)/(x-k),e<0?e=0:e>1&&(e=1),l[n++]=O-(O-I)*e|0,l[n++]=P-(P-N)*e|0,l[n++]=M-(M-L)*e|0,l[n++]=255}}function u(e,t,r){const n=t.coords,i=t.colors
let s,o
switch(t.type){case"lattice":const u=t.verticesPerRow,c=Math.floor(n.length/u)-1,l=u-1
for(s=0;s<c;s++){let t=s*u
for(let s=0;s<l;s++,t++)a(e,r,n[t],n[t+1],n[t+u],i[t],i[t+1],i[t+u]),a(e,r,n[t+u+1],n[t+1],n[t+u],i[t+u+1],i[t+1],i[t+u])}break
case"triangles":for(s=0,o=n.length;s<o;s+=3)a(e,r,n[s],n[s+1],n[s+2],i[s],i[s+1],i[s+2])
break
default:throw new Error("illegal figure")}}class c extends s{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._matrix=e[6],this._bbox=e[7],this._background=e[8]}_createMeshCanvas(e,t,r){const n=Math.floor(this._bounds[0]),i=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-n,o=Math.ceil(this._bounds[3])-i,a=Math.min(Math.ceil(Math.abs(s*e[0]*1.1)),3e3),c=Math.min(Math.ceil(Math.abs(o*e[1]*1.1)),3e3),l=s/a,h=o/c,d={coords:this._coords,colors:this._colors,offsetX:-n,offsetY:-i,scaleX:1/l,scaleY:1/h},f=a+4,p=c+4,g=r.getCanvas("mesh",f,p,!1),m=g.context,y=m.createImageData(a,c)
if(t){const e=y.data
for(let r=0,n=e.length;r<n;r+=4)e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=255}for(const v of this._figures)u(y,v,d)
return m.putImageData(y,2,2),{canvas:g.canvas,offsetX:n-2*l,offsetY:i-2*h,scaleX:l,scaleY:h}}getPattern(e,t,r,s=!1){let o
if(i(e,this._bbox),s)o=n.Util.singularValueDecompose2dScale(e.mozCurrentTransform)
else if(o=n.Util.singularValueDecompose2dScale(t.baseTransform),this._matrix){const e=n.Util.singularValueDecompose2dScale(this._matrix)
o=[o[0]*e[0],o[1]*e[1]]}const a=this._createMeshCanvas(o,s?null:this._background,t.cachedCanvases)
return s||(e.setTransform.apply(e,t.baseTransform),this._matrix&&e.transform.apply(e,this._matrix)),e.translate(a.offsetX,a.offsetY),e.scale(a.scaleX,a.scaleY),e.createPattern(a.canvas,"no-repeat")}}class l extends s{getPattern(){return"hotpink"}}class h{static get MAX_PATTERN_SIZE(){return(0,n.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(e,t,r,n,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=r,this.canvasGraphicsFactory=n,this.baseTransform=i}createPatternCanvas(e){const t=this.operatorList,r=this.bbox,i=this.xstep,s=this.ystep,o=this.paintType,a=this.tilingType,u=this.color,c=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+a)
const l=r[0],h=r[1],d=r[2],f=r[3],p=n.Util.singularValueDecompose2dScale(this.matrix),g=n.Util.singularValueDecompose2dScale(this.baseTransform),m=[p[0]*g[0],p[1]*g[1]],y=this.getSizeAndScale(i,this.ctx.canvas.width,m[0]),v=this.getSizeAndScale(s,this.ctx.canvas.height,m[1]),_=e.cachedCanvases.getCanvas("pattern",y.size,v.size,!0),b=_.context,D=c.createCanvasGraphics(b)
D.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(D,o,u)
let A=l,E=h,C=d,w=f
return l<0&&(A=0,C+=Math.abs(l)),h<0&&(E=0,w+=Math.abs(h)),b.translate(-y.scale*A,-v.scale*E),D.transform(y.scale,0,0,v.scale,0,0),this.clipBbox(D,A,E,C,w),D.baseTransform=D.ctx.mozCurrentTransform.slice(),D.executeOperatorList(t),D.endDrawing(),{canvas:_.canvas,scaleX:y.scale,scaleY:v.scale,offsetX:A,offsetY:E}}getSizeAndScale(e,t,r){e=Math.abs(e)
const n=Math.max(h.MAX_PATTERN_SIZE,t)
let i=Math.ceil(e*r)
return i>=n?i=n:r=i/e,{scale:r,size:i}}clipBbox(e,t,r,n,i){const s=n-t,o=i-r
e.ctx.rect(t,r,s,o),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,r){const i=e.ctx,s=e.current
switch(t){case 1:const e=this.ctx
i.fillStyle=e.fillStyle,i.strokeStyle=e.strokeStyle,s.fillColor=e.fillStyle,s.strokeColor=e.strokeStyle
break
case 2:const o=n.Util.makeHexColor(r[0],r[1],r[2])
i.fillStyle=o,i.strokeStyle=o,s.fillColor=o,s.strokeColor=o
break
default:throw new n.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,r,i=!1){let s=r
i||(s=n.Util.transform(s,t.baseTransform),this.matrix&&(s=n.Util.transform(s,this.matrix)))
const o=this.createPatternCanvas(t)
let a=new DOMMatrix(s)
a=a.translate(o.offsetX,o.offsetY),a=a.scale(1/o.scaleX,1/o.scaleY)
const u=e.createPattern(o.canvas,"repeat")
try{u.setTransform(a)}catch(e){(0,n.warn)(`TilingPattern.getPattern: "${e?.message}".`)}return u}}t.TilingPattern=h},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0
const r=Object.create(null)
t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0
var n=r(2)
function i(e){if("object"!=typeof e||null===e)return e
switch(e.name){case"AbortException":return new n.AbortException(e.message)
case"MissingPDFException":return new n.MissingPDFException(e.message)
case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status)
case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details)
default:return new n.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data
if(t.targetName!==this.sourceName)return
if(t.stream)return void this._processStreamMessage(t)
if(t.callback){const e=t.callbackId,r=this.callbackCapabilities[e]
if(!r)throw new Error(`Cannot resolve callback ${e}`)
if(delete this.callbackCapabilities[e],1===t.callback)r.resolve(t.data)
else{if(2!==t.callback)throw new Error("Unexpected callback case")
r.reject(i(t.reason))}return}const n=this.actionHandler[t.action]
if(!n)throw new Error(`Unknown action from worker: ${t.action}`)
if(t.callbackId){const e=this.sourceName,s=t.sourceName
new Promise((function(e){e(n(t.data))})).then((function(n){r.postMessage({sourceName:e,targetName:s,callback:1,callbackId:t.callbackId,data:n})}),(function(n){r.postMessage({sourceName:e,targetName:s,callback:2,callbackId:t.callbackId,reason:i(n)})}))}else t.streamId?this._createStreamSink(t):n(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){const r=this.actionHandler
if(r[e])throw new Error(`There is already an actionName called "${e}"`)
r[e]=t}send(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){const i=this.callbackId++,s=(0,n.createPromiseCapability)()
this.callbackCapabilities[i]=s
try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:t},r)}catch(e){s.reject(e)}return s.promise}sendWithStream(e,t,r,s){const o=this.streamId++,a=this.sourceName,u=this.targetName,c=this.comObj
return new ReadableStream({start:r=>{const i=(0,n.createPromiseCapability)()
return this.streamControllers[o]={controller:r,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:a,targetName:u,action:e,streamId:o,data:t,desiredSize:r.desiredSize},s),i.promise},pull:e=>{const t=(0,n.createPromiseCapability)()
return this.streamControllers[o].pullCall=t,c.postMessage({sourceName:a,targetName:u,stream:6,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,n.assert)(e instanceof Error,"cancel must have a valid reason")
const t=(0,n.createPromiseCapability)()
return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:a,targetName:u,stream:1,streamId:o,reason:i(e)}),t.promise}},r)}_createStreamSink(e){const t=this,r=this.actionHandler[e.action],s=e.streamId,o=this.sourceName,a=e.sourceName,u=this.comObj,c={enqueue(e,r=1,i){if(this.isCancelled)return
const u=this.desiredSize
this.desiredSize-=r,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:o,targetName:a,stream:4,streamId:s,chunk:e},i)},close(){this.isCancelled||(this.isCancelled=!0,u.postMessage({sourceName:o,targetName:a,stream:3,streamId:s}),delete t.streamSinks[s])},error(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,u.postMessage({sourceName:o,targetName:a,stream:5,streamId:s,reason:i(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null}
c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[s]=c,new Promise((function(t){t(r(e.data,c))})).then((function(){u.postMessage({sourceName:o,targetName:a,stream:8,streamId:s,success:!0})}),(function(e){u.postMessage({sourceName:o,targetName:a,stream:8,streamId:s,reason:i(e)})}))}_processStreamMessage(e){const t=e.streamId,r=this.sourceName,s=e.sourceName,o=this.comObj
switch(e.stream){case 8:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(i(e.reason))
break
case 7:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(i(e.reason))
break
case 6:if(!this.streamSinks[t]){o.postMessage({sourceName:r,targetName:s,stream:7,streamId:t,success:!0})
break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize
const{onPull:a}=this.streamSinks[e.streamId]
new Promise((function(e){e(a&&a())})).then((function(){o.postMessage({sourceName:r,targetName:s,stream:7,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:r,targetName:s,stream:7,streamId:t,reason:i(e)})}))
break
case 4:if((0,n.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break
this.streamControllers[t].controller.enqueue(e.chunk)
break
case 3:if((0,n.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break
this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t)
break
case 5:(0,n.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(i(e.reason)),this._deleteStreamController(t)
break
case 2:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(i(e.reason)),this._deleteStreamController(t)
break
case 1:if(!this.streamSinks[t])break
const{onCancel:u}=this.streamSinks[e.streamId]
new Promise((function(t){t(u&&u(i(e.reason)))})).then((function(){o.postMessage({sourceName:r,targetName:s,stream:2,streamId:t,success:!0})}),(function(e){o.postMessage({sourceName:r,targetName:s,stream:2,streamId:t,reason:i(e)})})),this.streamSinks[t].sinkCapability.reject(i(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t]
break
default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e){await Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(e){return e&&e.promise}))),delete this.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0
var n=r(2)
t.Metadata=class{constructor({parsedData:e,rawData:t}){this._metadataMap=e,this._data=t}getRaw(){return this._data}get(e){return this._metadataMap.get(e)??null}getAll(){return(0,n.objectFromMap)(this._metadataMap)}has(e){return this._metadataMap.has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0
var n=r(2)
class i{constructor(e,t){this.visible=!0,this.name=e,this.intent=t}}t.OptionalContentConfig=class{constructor(e){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==e){this.name=e.name,this.creator=e.creator,this._order=e.order
for(const t of e.groups)this._groups.set(t.id,new i(t.name,t.intent))
if("OFF"===e.baseState)for(const e of this._groups)e.visible=!1
for(const t of e.on)this._groups.get(t).visible=!0
for(const t of e.off)this._groups.get(t).visible=!1}}_evaluateVisibilityExpression(e){const t=e.length
if(t<2)return!0
const r=e[0]
for(let i=1;i<t;i++){const t=e[i]
let s
if(Array.isArray(t))s=this._evaluateVisibilityExpression(t)
else{if(!this._groups.has(t))return(0,n.warn)(`Optional content group not found: ${t}`),!0
s=this._groups.get(t).visible}switch(r){case"And":if(!s)return!1
break
case"Or":if(s)return!0
break
case"Not":return!s
default:return!0}}return"And"===r}isVisible(e){if("OCG"===e.type)return this._groups.has(e.id)?this._groups.get(e.id).visible:((0,n.warn)(`Optional content group not found: ${e.id}`),!0)
if("OCMD"===e.type){if(e.expression)return this._evaluateVisibilityExpression(e.expression)
if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!this._groups.has(t))return(0,n.warn)(`Optional content group not found: ${t}`),!0
if(this._groups.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!this._groups.has(t))return(0,n.warn)(`Optional content group not found: ${t}`),!0
if(!this._groups.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!this._groups.has(t))return(0,n.warn)(`Optional content group not found: ${t}`),!0
if(!this._groups.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!this._groups.has(t))return(0,n.warn)(`Optional content group not found: ${t}`),!0
if(this._groups.get(t).visible)return!1}return!0}return(0,n.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,n.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){this._groups.has(e)?this._groups.get(e).visible=!!t:(0,n.warn)(`Optional content group not found: ${e}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size>0?(0,n.objectFromMap)(this._groups):null}getGroup(e){return this._groups.get(e)||null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0
var n=r(2),i=r(1)
t.PDFDataTransportStream=class{constructor(e,t){(0,n.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null
const r=e.initialData
if(r?.length>0){const e=new Uint8Array(r).buffer
this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer
if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t)
else{const r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,n.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0]
t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader
t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e)
t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.")
const e=this._queuedChunks
return this._queuedChunks=null,new s(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=new o(this,e,t)
return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e)
for(const t of this._rangeReaders.slice(0))t.cancel(e)
this._pdfDataRangeTransport.abort()}}
class s{constructor(e,t,r=!1,n=null){this._stream=e,this._done=r||!1,this._filename=(0,i.isPdfFile)(n)?n:null,this._queuedChunks=t||[],this._loaded=0
for(const i of this._queuedChunks)this._loaded+=i.byteLength
this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1}
if(this._done)return{value:void 0,done:!0}
const e=(0,n.createPromiseCapability)()
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class o{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e
else{this._requests.shift().resolve({value:e,done:!1})
for(const e of this._requests)e.resolve({value:void 0,done:!0})
this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk
return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0}
const e=(0,n.createPromiseCapability)()
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0
var n=r(1),i=r(2),s=r(9),o=r(18)
class a{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new c(e)
case i.AnnotationType.TEXT:return new l(e)
case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new d(e)
case"Btn":return e.data.radioButton?new p(e):e.data.checkBox?new f(e):new g(e)
case"Ch":return new m(e)}return new h(e)
case i.AnnotationType.POPUP:return new y(e)
case i.AnnotationType.FREETEXT:return new _(e)
case i.AnnotationType.LINE:return new b(e)
case i.AnnotationType.SQUARE:return new D(e)
case i.AnnotationType.CIRCLE:return new A(e)
case i.AnnotationType.POLYLINE:return new E(e)
case i.AnnotationType.CARET:return new w(e)
case i.AnnotationType.INK:return new S(e)
case i.AnnotationType.POLYGON:return new C(e)
case i.AnnotationType.HIGHLIGHT:return new F(e)
case i.AnnotationType.UNDERLINE:return new T(e)
case i.AnnotationType.SQUIGGLY:return new R(e)
case i.AnnotationType.STRIKEOUT:return new x(e)
case i.AnnotationType.STAMP:return new O(e)
case i.AnnotationType.FILEATTACHMENT:return new P(e)
default:return new u(e)}}}class u{constructor(e,{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:n=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(r)),n&&(this.quadrilaterals=this._createQuadrilaterals(r))}_createContainer(e=!1){const t=this.data,r=this.page,n=this.viewport,s=document.createElement("section")
let o=t.rect[2]-t.rect[0],a=t.rect[3]-t.rect[1]
s.setAttribute("data-annotation-id",t.id)
const u=i.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]])
if(s.style.transform=`matrix(${n.transform.join(",")})`,s.style.transformOrigin=`${-u[0]}px ${-u[1]}px`,!e&&t.borderStyle.width>0){s.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,a-=2*t.borderStyle.width)
const e=t.borderStyle.horizontalCornerRadius,r=t.borderStyle.verticalCornerRadius
if(e>0||r>0){const t=`${e}px / ${r}px`
s.style.borderRadius=t}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:s.style.borderStyle="solid"
break
case i.AnnotationBorderStyleType.DASHED:s.style.borderStyle="dashed"
break
case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled")
break
case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset")
break
case i.AnnotationBorderStyleType.UNDERLINE:s.style.borderBottomStyle="solid"}t.color?s.style.borderColor=i.Util.makeHexColor(0|t.color[0],0|t.color[1],0|t.color[2]):s.style.borderWidth=0}return s.style.left=`${u[0]}px`,s.style.top=`${u[1]}px`,s.style.width=`${o}px`,s.style.height=`${a}px`,s}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null
const t=[],r=this.data.rect
for(const n of this.data.quadPoints)this.data.rect=[n[2].x,n[2].y,n[1].x,n[1].y],t.push(this._createContainer(e))
return this.data.rect=r,t}_createPopup(e,t){let r=this.container
this.quadrilaterals&&(e=e||this.quadrilaterals,r=this.quadrilaterals[0]),e||((e=document.createElement("div")).style.height=r.style.height,e.style.width=r.style.width,r.appendChild(e))
const n=new v({container:r,trigger:e,color:t.color,title:t.title,modificationDate:t.modificationDate,contents:t.contents,hideWrapper:!0}).render()
n.style.left=r.style.width,r.appendChild(n)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e
return this.quadrilaterals}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}class c extends u{constructor(e){super(e,{isRenderable:!!(e.data.url||e.data.dest||e.data.action||e.data.isTooltipOnly||e.data.actions&&(e.data.actions.Action||e.data.actions["Mouse Up"]||e.data.actions["Mouse Down"])),createQuadrilaterals:!0})}render(){const{data:e,linkService:t}=this,r=document.createElement("a")
return e.url?(0,n.addLinkAttributes)(r,{url:e.url,target:e.newWindow?n.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):e.dest?this._bindLink(r,e.dest):e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(r,e):this._bindLink(r,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const n=0===t?r:r.cloneNode()
return e.appendChild(n),e})):(this.container.className="linkAnnotation",this.container.appendChild(r),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("")
const r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]])
for(const n of Object.keys(t.actions)){const i=r.get(n)
i&&(e[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:n}}),!1))}e.className="internalLink"}}class l extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents)})}render(){this.container.className="textAnnotation"
const e=document.createElement("img")
return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.appendChild(e),this.container}}class h extends u{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){return navigator.platform.includes("Win")&&e.ctrlKey||navigator.platform.includes("Mac")&&e.metaKey}_setEventListener(e,t,r,n){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:n(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:e.target.checked}})}))}_setEventListeners(e,t,r){for(const[n,i]of t)("Action"===i||this.data.actions?.[i])&&this._setEventListener(e,n,i,r)}_dispatchEventFromSandbox(e,t){const r=(e,t,r)=>{const n=r.detail[e]
r.target.style[t]=o.ColorConverters[`${n[0]}_HTML`](n.slice(1))},n={display:e=>{const t=e.detail.display%2==1
e.target.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{e.target.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{e.detail.required?e.target.setAttribute("required",""):e.target.removeAttribute("required")},bgColor:e=>{r("bgColor","backgroundColor",e)},fillColor:e=>{r("fillColor","backgroundColor",e)},fgColor:e=>{r("fgColor","color",e)},textColor:e=>{r("textColor","color",e)},borderColor:e=>{r("borderColor","borderColor",e)},strokeColor:e=>{r("strokeColor","borderColor",e)}}
for(const i of Object.keys(t.detail)){const r=e[i]||n[i]
r&&r(t)}}}class d extends h{constructor(e){super(e,{isRenderable:e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,r,n){const i=this.annotationStorage
for(const s of document.getElementsByName(e.name))if(s!==e){s[t]=r
const e=Object.create(null)
e[n]=r,i.setValue(s.getAttribute("id"),e)}}render(){const e=this.annotationStorage,t=this.data.id
this.container.className="textWidgetAnnotation"
let r=null
if(this.renderInteractiveForms){const n=e.getValue(t,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),i=n.valueAsString||n.value||"",s={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null}
this.data.multiLine?(r=document.createElement("textarea"),r.textContent=i):(r=document.createElement("input"),r.type="text",r.setAttribute("value",i)),s.userValue=i,r.setAttribute("id",t),r.addEventListener("input",(n=>{e.setValue(t,{value:n.target.value}),this.setPropertyOnSiblings(r,"value",n.target.value,"value")}))
let o=e=>{s.formattedValue&&(e.target.value=s.formattedValue),e.target.scrollLeft=0,s.beforeInputSelectionRange=null}
if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",(e=>{s.userValue&&(e.target.value=s.userValue)})),r.addEventListener("updatefromsandbox",(r=>{const n={value(r){s.userValue=r.detail.value||"",e.setValue(t,{value:s.userValue.toString()}),s.formattedValue||(r.target.value=s.userValue)},valueAsString(r){s.formattedValue=r.detail.valueAsString||"",r.target!==document.activeElement&&(r.target.value=s.formattedValue),e.setValue(t,{formattedValue:s.formattedValue})},selRange(e){const[t,r]=e.detail.selRange
t>=0&&r<e.target.value.length&&e.target.setSelectionRange(t,r)}}
this._dispatchEventFromSandbox(n,r)})),r.addEventListener("keydown",(e=>{s.beforeInputValue=e.target.value
let r=-1
"Escape"===e.key?r=0:"Enter"===e.key?r=2:"Tab"===e.key&&(r=3),-1!==r&&(s.userValue=e.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:e.target.value,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}))
const n=o
o=null,r.addEventListener("blur",(e=>{this._mouseState.isDown&&(s.userValue=e.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:e.target.value,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),n(e)})),r.addEventListener("mousedown",(e=>{s.beforeInputValue=e.target.value,s.beforeInputSelectionRange=null})),r.addEventListener("keyup",(e=>{e.target.selectionStart===e.target.selectionEnd&&(s.beforeInputSelectionRange=null)})),r.addEventListener("select",(e=>{s.beforeInputSelectionRange=[e.target.selectionStart,e.target.selectionEnd]})),this.data.actions?.Keystroke&&r.addEventListener("input",(e=>{let r=-1,n=-1
s.beforeInputSelectionRange&&([r,n]=s.beforeInputSelectionRange),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s.beforeInputValue,change:e.data,willCommit:!1,selStart:r,selEnd:n}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(o&&r.addEventListener("blur",o),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen
r.classList.add("comb"),r.style.letterSpacing=`calc(${e}px - 1ch)`}}else r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell"
return this._setTextStyle(r),this.container.appendChild(r),this.container}_setTextStyle(e){const{fontSize:t,fontColor:r}=this.data.defaultAppearanceData,n=e.style
t&&(n.fontSize=`${t}px`),n.color=i.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(n.textAlign=["left","center","right"][this.data.textAlignment])}}class f extends h{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){const e=this.annotationStorage,t=this.data,r=t.id
let n=e.getValue(r,{value:t.fieldValue&&(t.exportValue&&t.exportValue===t.fieldValue||!t.exportValue&&"Off"!==t.fieldValue)}).value
"string"==typeof n&&(n="Off"!==n,e.setValue(r,{value:n})),this.container.className="buttonWidgetAnnotation checkBox"
const i=document.createElement("input")
return i.disabled=t.readOnly,i.type="checkbox",i.name=this.data.fieldName,n&&i.setAttribute("checked",!0),i.setAttribute("id",r),i.addEventListener("change",(function(t){const n=t.target.name
for(const r of document.getElementsByName(n))r!==t.target&&(r.checked=!1,e.setValue(r.parentNode.getAttribute("data-annotation-id"),{value:!1}))
e.setValue(r,{value:t.target.checked})})),this.enableScripting&&this.hasJSActions&&(i.addEventListener("updatefromsandbox",(t=>{const n={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(r,{value:t.target.checked})}}
this._dispatchEventFromSandbox(n,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this.container.appendChild(i),this.container}}class p extends h{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){this.container.className="buttonWidgetAnnotation radioButton"
const e=this.annotationStorage,t=this.data,r=t.id
let n=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value
"string"==typeof n&&(n=n!==t.buttonValue,e.setValue(r,{value:n}))
const i=document.createElement("input")
if(i.disabled=t.readOnly,i.type="radio",i.name=t.fieldName,n&&i.setAttribute("checked",!0),i.setAttribute("id",r),i.addEventListener("change",(function(t){const{target:n}=t
for(const r of document.getElementsByName(n.name))r!==n&&e.setValue(r.getAttribute("id"),{value:!1})
e.setValue(r,{value:n.checked})})),this.enableScripting&&this.hasJSActions){const n=t.buttonValue
i.addEventListener("updatefromsandbox",(t=>{const i={value(t){const i=n===t.detail.value
for(const n of document.getElementsByName(t.target.name)){const t=n.getAttribute("id")
n.checked=t===r&&i,e.setValue(t,{value:n.checked})}}}
this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(i,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this.container.appendChild(i),this.container}}class g extends c{render(){const e=super.render()
return e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText),e}}class m extends h{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){this.container.className="choiceWidgetAnnotation"
const e=this.annotationStorage,t=this.data.id
e.getValue(t,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0})
const r=document.createElement("select")
r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.setAttribute("id",t),this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0))
for(const s of this.data.options){const e=document.createElement("option")
e.textContent=s.displayValue,e.value=s.exportValue,this.data.fieldValue.includes(s.exportValue)&&e.setAttribute("selected",!0),r.appendChild(e)}const n=(e,t)=>{const r=t?"value":"textContent",n=e.target.options
return e.target.multiple?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[r])):-1===n.selectedIndex?null:n[n.selectedIndex][r]},i=e=>{const t=e.target.options
return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))}
return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(s=>{const o={value(i){const s=r.options,o=i.detail.value,a=new Set(Array.isArray(o)?o:[o])
Array.prototype.forEach.call(s,(e=>{e.selected=a.has(e.value)})),e.setValue(t,{value:n(i,!0)})},multipleSelection(e){r.multiple=!0},remove(s){const o=r.options,a=s.detail.remove
o[a].selected=!1,r.remove(a),o.length>0&&-1===Array.prototype.findIndex.call(o,(e=>e.selected))&&(o[0].selected=!0),e.setValue(t,{value:n(s,!0),items:i(s)})},clear(n){for(;0!==r.length;)r.remove(0)
e.setValue(t,{value:null,items:[]})},insert(s){const{index:o,displayValue:a,exportValue:u}=s.detail.insert,c=document.createElement("option")
c.textContent=a,c.value=u,r.insertBefore(c,r.children[o]),e.setValue(t,{value:n(s,!0),items:i(s)})},items(s){const{items:o}=s.detail
for(;0!==r.length;)r.remove(0)
for(const e of o){const{displayValue:t,exportValue:n}=e,i=document.createElement("option")
i.textContent=t,i.value=n,r.appendChild(i)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:n(s,!0),items:i(s)})},indices(r){const i=new Set(r.detail.indices),s=r.target.options
Array.prototype.forEach.call(s,((e,t)=>{e.selected=i.has(t)})),e.setValue(t,{value:n(r,!0)})},editable(e){e.target.disabled=!e.detail.editable}}
this._dispatchEventFromSandbox(o,s)})),r.addEventListener("input",(r=>{const i=n(r,!0),s=n(r,!1)
e.setValue(t,{value:i}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,changeEx:i,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(r){e.setValue(t,{value:n(r)})})),this.container.appendChild(r),this.container}}class y extends u{constructor(e){super(e,{isRenderable:!(!e.data.title&&!e.data.contents)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container
const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e)
if(0===t.length)return this.container
const r=new v({container:this.container,trigger:Array.from(t),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),n=this.page,s=i.Util.normalizeRect([this.data.parentRect[0],n.view[3]-this.data.parentRect[1]+n.view[1],this.data.parentRect[2],n.view[3]-this.data.parentRect[3]+n.view[1]]),o=s[0]+this.data.parentRect[2]-this.data.parentRect[0],a=s[1]
return this.container.style.transformOrigin=`${-o}px ${-a}px`,this.container.style.left=`${o}px`,this.container.style.top=`${a}px`,this.container.appendChild(r.render()),this.container}}class v{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div")
e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0
const t=document.createElement("div")
t.className="popup"
const r=this.color
if(r){const e=.7*(255-r[0])+r[0],n=.7*(255-r[1])+r[1],s=.7*(255-r[2])+r[2]
t.style.backgroundColor=i.Util.makeHexColor(0|e,0|n,0|s)}const s=document.createElement("h1")
s.textContent=this.title,t.appendChild(s)
const o=n.PDFDateString.toDateObject(this.modificationDate)
if(o){const e=document.createElement("span")
e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:o.toLocaleDateString(),time:o.toLocaleTimeString()}),t.appendChild(e)}const a=this._formatContents(this.contents)
t.appendChild(a),Array.isArray(this.trigger)||(this.trigger=[this.trigger])
for(const n of this.trigger)n.addEventListener("click",this._toggle.bind(this)),n.addEventListener("mouseover",this._show.bind(this,!1)),n.addEventListener("mouseout",this._hide.bind(this,!1))
return t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){const t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/)
for(let n=0,i=r.length;n<i;++n){const e=r[n]
t.appendChild(document.createTextNode(e)),n<i-1&&t.appendChild(document.createElement("br"))}return t}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class _ extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class b extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="lineAnnotation"
const e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=this.svgFactory.createElement("svg:line")
return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),n.appendChild(i),this.container.append(n),this._createPopup(i,e),this.container}}class D extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="squareAnnotation"
const e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,s=this.svgFactory.createElement("svg:rect")
return s.setAttribute("x",i/2),s.setAttribute("y",i/2),s.setAttribute("width",t-i),s.setAttribute("height",r-i),s.setAttribute("stroke-width",i||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","none"),n.appendChild(s),this.container.append(n),this._createPopup(s,e),this.container}}class A extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="circleAnnotation"
const e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,s=this.svgFactory.createElement("svg:ellipse")
return s.setAttribute("cx",t/2),s.setAttribute("cy",r/2),s.setAttribute("rx",t/2-i/2),s.setAttribute("ry",r/2-i/2),s.setAttribute("stroke-width",i||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","none"),n.appendChild(s),this.container.append(n),this._createPopup(s,e),this.container}}class E extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName
const e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r)
let i=[]
for(const o of e.vertices){const t=o.x-e.rect[0],r=e.rect[3]-o.y
i.push(t+","+r)}i=i.join(" ")
const s=this.svgFactory.createElement(this.svgElementName)
return s.setAttribute("points",i),s.setAttribute("stroke-width",e.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","none"),n.appendChild(s),this.container.append(n),this._createPopup(s,e),this.container}}class C extends E{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class w extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class S extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName
const e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r)
for(const i of e.inkLists){let t=[]
for(const n of i){const r=n.x-e.rect[0],i=e.rect[3]-n.y
t.push(`${r},${i}`)}t=t.join(" ")
const r=this.svgFactory.createElement(this.svgElementName)
r.setAttribute("points",t),r.setAttribute("stroke-width",e.borderStyle.width||1),r.setAttribute("stroke","transparent"),r.setAttribute("fill","none"),this._createPopup(r,e),n.appendChild(r)}return this.container.append(n),this.container}}class F extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class T extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class R extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class x extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class O extends u{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class P extends u{constructor(e){super(e,{isRenderable:!0})
const{filename:t,content:r}=this.data.file
this.filename=(0,n.getFilenameFromUrl)(t),this.content=r,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,id:(0,i.stringToPDFString)(t),filename:t,content:r})}render(){this.container.className="fileAttachmentAnnotation"
const e=document.createElement("div")
return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(e,this.data),this.container.appendChild(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{static render(e){const t=[],r=[]
for(const n of e.annotations)n&&(n.annotationType!==i.AnnotationType.POPUP?t.push(n):r.push(n))
r.length&&t.push(...r)
for(const i of t){const t=a.create({data:i,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:!1!==e.renderInteractiveForms,svgFactory:new n.DOMSVGFactory,annotationStorage:e.annotationStorage||new s.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,mouseState:e.mouseState||{isDown:!1}})
if(t.isRenderable){const r=t.render()
if(i.hidden&&(r.style.visibility="hidden"),Array.isArray(r))for(const t of r)e.div.appendChild(t)
else t instanceof y?e.div.prepend(r):e.div.appendChild(r)}}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`
for(const r of e.annotations){const n=e.div.querySelectorAll(`[data-annotation-id="${r.id}"]`)
if(n)for(const e of n)e.style.transform=t}e.div.hidden=!1}}},(e,t)=>{function r(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,r,n]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+n)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_HTML([e]){const t=r(e)
return`#${t}${t}${t}`}static RGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}static RGB_HTML([e,t,n]){return`#${r(e)}${r(t)}${r(n)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([e,t,r,n]){return["RGB",1-Math.min(1,e+n),1-Math.min(1,r+n),1-Math.min(1,t+n)]}static CMYK_HTML(e){return this.RGB_HTML(this.CMYK_RGB(e))}static RGB_CMYK([e,t,r]){const n=1-e,i=1-t,s=1-r
return["CMYK",n,i,s,Math.min(n,i,s)]}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=function(e){const t=new h({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection})
return t._render(e.timeout),t}
var n=r(2)
const i=30,s=new Map,o=/^\s+$/g
function a(e,t,r,a){const u=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}
e._textDivs.push(u)
const l=n.Util.transform(e._viewport.transform,t.transform)
let h=Math.atan2(l[1],l[0])
const d=r[t.fontName]
d.vertical&&(h+=Math.PI/2)
const f=Math.hypot(l[2],l[3]),p=f*function(e,t){const r=s.get(e)
if(r)return r
t.save(),t.font=`30px ${e}`
const n=t.measureText("")
let o=n.fontBoundingBoxAscent,a=Math.abs(n.fontBoundingBoxDescent)
if(o){t.restore()
const r=o/(o+a)
return s.set(e,r),r}t.strokeStyle="red",t.clearRect(0,0,i,i),t.strokeText("g",0,0)
let u=t.getImageData(0,0,i,i).data
a=0
for(let s=u.length-1-3;s>=0;s-=4)if(u[s]>0){a=Math.ceil(s/4/i)
break}t.clearRect(0,0,i,i),t.strokeText("A",0,i),u=t.getImageData(0,0,i,i).data,o=0
for(let s=0,c=u.length;s<c;s+=4)if(u[s]>0){o=i-Math.floor(s/4/i)
break}if(t.restore(),o){const t=o/(o+a)
return s.set(e,t),t}return s.set(e,.8),.8}(d.fontFamily,a)
let g,m
0===h?(g=l[4],m=l[5]-p):(g=l[4]+p*Math.sin(h),m=l[5]-p*Math.cos(h)),u.style.left=`${g}px`,u.style.top=`${m}px`,u.style.fontSize=`${f}px`,u.style.fontFamily=d.fontFamily,u.setAttribute("role","presentation"),u.textContent=t.str,u.dir=t.dir,e._fontInspectorEnabled&&(u.dataset.fontName=t.fontName),0!==h&&(c.angle=h*(180/Math.PI))
let y=!1
if(t.str.length>1||e._enhanceTextSelection&&o.test(t.str))y=!0
else if(t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),r=Math.abs(t.transform[3])
e!==r&&Math.max(e,r)/Math.min(e,r)>1.5&&(y=!0)}if(y&&(d.vertical?c.canvasWidth=t.height*e._viewport.scale:c.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(u,c),e._textContentStream&&e._layoutText(u),e._enhanceTextSelection&&c.hasText){let r=1,i=0
0!==h&&(r=Math.cos(h),i=Math.sin(h))
const s=(d.vertical?t.height:t.width)*e._viewport.scale,o=f
let a,c
0!==h?(a=[r,i,-i,r,g,m],c=n.Util.getAxialAlignedBoundingBox([0,0,s,o],a)):c=[g,m,g+s,m+o],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:u,size:[s,o],m:a})}}function u(e){if(e._canceled)return
const t=e._textDivs,r=e._capability,n=t.length
if(n>1e5)return e._renderingDone=!0,void r.resolve()
if(!e._textContentStream)for(let i=0;i<n;i++)e._layoutText(t[i])
e._renderingDone=!0,r.resolve()}function c(e,t,r){let n=0
for(let i=0;i<r;i++){const r=e[t++]
r>0&&(n=n?Math.min(r,n):r)}return n}function l(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}))
const r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}]
for(const n of t){let e=0
for(;e<r.length&&r[e].end<=n.y1;)e++
let t,i,s=r.length-1
for(;s>=0&&r[s].start>=n.y2;)s--
let o,a,u=-1/0
for(o=e;o<=s;o++){let e
t=r[o],i=t.boundary,e=i.x2>n.x1?i.index>n.index?i.x1New:n.x1:void 0===i.x2New?(i.x2+n.x1)/2:i.x2New,e>u&&(u=e)}for(n.x1New=u,o=e;o<=s;o++)t=r[o],i=t.boundary,void 0===i.x2New?i.x2>n.x1?i.index>n.index&&(i.x2New=i.x2):i.x2New=u:i.x2New>u&&(i.x2New=Math.max(u,i.x2))
const c=[]
let l=null
for(o=e;o<=s;o++){t=r[o],i=t.boundary
const e=i.x2>n.x2?i:n
l===e?c[c.length-1].end=t.end:(c.push({start:t.start,end:t.end,boundary:e}),l=e)}for(r[e].start<n.y1&&(c[0].start=n.y1,c.unshift({start:r[e].start,end:n.y1,boundary:r[e].boundary})),n.y2<r[s].end&&(c[c.length-1].end=n.y2,c.push({start:n.y2,end:r[s].end,boundary:r[s].boundary})),o=e;o<=s;o++){if(t=r[o],i=t.boundary,void 0!==i.x2New)continue
let n=!1
for(a=e-1;!n&&a>=0&&r[a].start>=i.y1;a--)n=r[a].boundary===i
for(a=s+1;!n&&a<r.length&&r[a].end<=i.y2;a++)n=r[a].boundary===i
for(a=0;!n&&a<c.length;a++)n=c[a].boundary===i
n||(i.x2New=u)}Array.prototype.splice.apply(r,[e,s-e+1].concat(c))}for(const n of r){const t=n.boundary
void 0===t.x2New&&(t.x2New=Math.max(e,t.x2))}}class h{constructor({textContent:e,textContentStream:t,container:r,viewport:i,textDivs:s,textContentItemsStr:o,enhanceTextSelection:a}){this._textContent=e,this._textContentStream=t,this._container=r,this._document=r.ownerDocument,this._viewport=i,this._textDivs=s||[],this._textContentItemsStr=o||[],this._enhanceTextSelection=!!a,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let r=0,n=e.length;r<n;r++)if(void 0!==e[r].str)this._textContentItemsStr.push(e[r].str),a(this,e[r],t,this._layoutTextCtx)
else if("beginMarkedContentProps"===e[r].type||"beginMarkedContent"===e[r].type){const t=this._container
this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==e[r].id&&this._container.setAttribute("id",`${e[r].id}`),t.appendChild(this._container)}else"endMarkedContent"===e[r].type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._textDivProperties.get(e)
let r=""
if(0!==t.canvasWidth&&t.hasText){const{fontSize:n,fontFamily:i}=e.style
n===this._layoutTextLastFontSize&&i===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${n} ${i}`,this._layoutTextLastFontSize=n,this._layoutTextLastFontFamily=i)
const{width:s}=this._layoutTextCtx.measureText(e.textContent)
s>0&&(t.scale=t.canvasWidth/s,r=`scaleX(${t.scale})`)}if(0!==t.angle&&(r=`rotate(${t.angle}deg) ${r}`),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),t.hasText&&this._container.appendChild(e),t.hasEOL){const e=document.createElement("br")
e.setAttribute("role","presentation"),this._container.appendChild(e)}}_render(e=0){const t=(0,n.createPromiseCapability)()
let r=Object.create(null)
const s=this._document.createElement("canvas")
if(s.height=s.width=i,s.mozOpaque=!0,this._layoutTextCtx=s.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,r=this._textContent.styles
this._processItems(e,r),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.')
{const e=()=>{this._reader.read().then((({value:n,done:i})=>{i?t.resolve():(Object.assign(r,n.styles),this._processItems(n.items,r),e())}),t.reject)}
this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{r=null,e?this._renderTimer=setTimeout((()=>{u(this),this._renderTimer=null}),e):u(this)}),this._capability.reject)}expandTextDivs(e=!1){if(!this._enhanceTextSelection||!this._renderingDone)return
null!==this._bounds&&(function(e){const t=e._bounds,r=e._viewport,i=function(e,t,r){const n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}))
l(e,n)
const i=new Array(r.length)
for(const s of n){const e=s.index
i[e]={left:s.x1New,top:0,right:s.x2New,bottom:0}}r.map((function(t,r){const s=i[r],o=n[r]
o.x1=t.top,o.y1=e-s.right,o.x2=t.bottom,o.y2=e-s.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),l(t,n)
for(const s of n){const e=s.index
i[e].top=s.x1New,i[e].bottom=s.x2New}return i}(r.width,r.height,t)
for(let s=0;s<i.length;s++){const r=t[s].div,o=e._textDivProperties.get(r)
if(0===o.angle){o.paddingLeft=t[s].left-i[s].left,o.paddingTop=t[s].top-i[s].top,o.paddingRight=i[s].right-t[s].right,o.paddingBottom=i[s].bottom-t[s].bottom,e._textDivProperties.set(r,o)
continue}const a=i[s],u=t[s],l=u.m,h=l[0],d=l[1],f=[[0,0],[0,u.size[1]],[u.size[0],0],u.size],p=new Float64Array(64)
for(let e=0,t=f.length;e<t;e++){const t=n.Util.applyTransform(f[e],l)
p[e+0]=h&&(a.left-t[0])/h,p[e+4]=d&&(a.top-t[1])/d,p[e+8]=h&&(a.right-t[0])/h,p[e+12]=d&&(a.bottom-t[1])/d,p[e+16]=d&&(a.left-t[0])/-d,p[e+20]=h&&(a.top-t[1])/h,p[e+24]=d&&(a.right-t[0])/-d,p[e+28]=h&&(a.bottom-t[1])/h,p[e+32]=h&&(a.left-t[0])/-h,p[e+36]=d&&(a.top-t[1])/-d,p[e+40]=h&&(a.right-t[0])/-h,p[e+44]=d&&(a.bottom-t[1])/-d,p[e+48]=d&&(a.left-t[0])/d,p[e+52]=h&&(a.top-t[1])/-h,p[e+56]=d&&(a.right-t[0])/d,p[e+60]=h&&(a.bottom-t[1])/-h}const g=1+Math.min(Math.abs(h),Math.abs(d))
o.paddingLeft=c(p,32,16)/g,o.paddingTop=c(p,48,16)/g,o.paddingRight=c(p,0,16)/g,o.paddingBottom=c(p,16,16)/g,e._textDivProperties.set(r,o)}}(this),this._bounds=null)
const t=[],r=[]
for(let n=0,i=this._textDivs.length;n<i;n++){const i=this._textDivs[n],s=this._textDivProperties.get(i)
s.hasText&&(e?(t.length=0,r.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(r.push(`${s.paddingTop}px`),t.push(`translateY(${-s.paddingTop}px)`)):r.push(0),s.paddingRight>0?r.push(s.paddingRight/s.scale+"px"):r.push(0),s.paddingBottom>0?r.push(`${s.paddingBottom}px`):r.push(0),s.paddingLeft>0?(r.push(s.paddingLeft/s.scale+"px"),t.push(`translateX(${-s.paddingLeft/s.scale}px)`)):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0
var n=r(2),i=r(1),s=r(4)
let o=class{constructor(){(0,n.unreachable)("Not implemented: SVGGraphics")}}
t.SVGGraphics=o
{const a={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},u="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",l=["butt","round","square"],h=["miter","round","bevel"],d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256)
for(let n=0;n<256;n++){let e=n
for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647
t[n]=e}function r(e,r,n,i){let s=i
const o=r.length
n[s]=o>>24&255,n[s+1]=o>>16&255,n[s+2]=o>>8&255,n[s+3]=255&o,s+=4,n[s]=255&e.charCodeAt(0),n[s+1]=255&e.charCodeAt(1),n[s+2]=255&e.charCodeAt(2),n[s+3]=255&e.charCodeAt(3),s+=4,n.set(r,s),s+=r.length
const a=function(e,r,n){let i=-1
for(let s=r;s<n;s++){const r=255&(i^e[s])
i=i>>>8^t[r]}return-1^i}(n,i+4,s)
n[s]=a>>24&255,n[s+1]=a>>16&255,n[s+2]=a>>8&255,n[s+3]=255&a}function i(e){let t=e.length
const r=65535,n=Math.ceil(t/r),i=new Uint8Array(2+t+5*n+4)
let s=0
i[s++]=120,i[s++]=156
let o=0
for(;t>r;)i[s++]=0,i[s++]=255,i[s++]=255,i[s++]=0,i[s++]=0,i.set(e.subarray(o,o+r),s),s+=r,o+=r,t-=r
i[s++]=1,i[s++]=255&t,i[s++]=t>>8&255,i[s++]=255&~t,i[s++]=(65535&~t)>>8&255,i.set(e.subarray(o),s),s+=e.length-o
const a=function(e,t,r){let n=1,i=0
for(let s=0;s<r;++s)n=(n+(255&e[s]))%65521,i=(i+n)%65521
return i<<16|n}(e,0,e.length)
return i[s++]=a>>24&255,i[s++]=a>>16&255,i[s++]=a>>8&255,i[s++]=255&a,i}return function(t,o,a){return function(t,o,a,u){const c=t.width,l=t.height
let h,d,f
const p=t.data
switch(o){case n.ImageKind.GRAYSCALE_1BPP:d=0,h=1,f=c+7>>3
break
case n.ImageKind.RGB_24BPP:d=2,h=8,f=3*c
break
case n.ImageKind.RGBA_32BPP:d=6,h=8,f=4*c
break
default:throw new Error("invalid format")}const g=new Uint8Array((1+f)*l)
let m=0,y=0
for(let e=0;e<l;++e)g[m++]=0,g.set(p.subarray(y,y+f),m),y+=f,m+=f
if(o===n.ImageKind.GRAYSCALE_1BPP&&u){m=0
for(let e=0;e<l;e++){m++
for(let e=0;e<f;e++)g[m++]^=255}}const v=new Uint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,h,d,0,0,0]),_=function(e){if(!s.isNodeJS)return i(e)
try{let t
t=parseInt(process.versions.node)>=8?e:Buffer.from(e)
const r=__webpack_require__(82258).deflateSync(t,{level:9})
return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return i(e)}(g),b=e.length+36+v.length+_.length,D=new Uint8Array(b)
let A=0
return D.set(e,A),A+=e.length,r("IHDR",v,D,A),A+=12+v.length,r("IDATA",_,D,A),A+=12+_.length,r("IEND",new Uint8Array(0),D,A),(0,n.createObjectURL)(D,"image/png",a)}(t,void 0===t.kind?n.ImageKind.GRAYSCALE_1BPP:t.kind,o,a)}}()
class f{constructor(){this.fontSizeScale=1,this.fontWeight=a.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=a.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function p(e){let t=[]
const r=[]
for(const n of e)"save"!==n.fn?"restore"===n.fn?t=r.pop():t.push(n):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items)
return t}function g(e){if(Number.isInteger(e))return e.toString()
const t=e.toFixed(10)
let r=t.length-1
if("0"!==t[r])return t
do{r--}while("0"===t[r])
return t.substring(0,"."===t[r]?r:r+1)}function m(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`
if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`
return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let y=0,v=0,_=0
t.SVGGraphics=o=class{constructor(e,t,r=!1){this.svgFactory=new i.DOMSVGFactory,this.current=new f,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[]
for(const i in n.OPS)this._operatorIdMapping[n.OPS[i]]=i}save(){this.transformStack.push(this.transformMatrix)
const e=this.current
this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,r=e.argsArray
for(let i=0,s=t.length;i<s;i++)if(t[i]===n.OPS.dependency)for(const e of r[i]){const t=e.startsWith("g_")?this.commonObjs:this.objs,r=new Promise((r=>{t.get(e,r)}))
this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)}transform(e,t,r,i,s,o){const a=[e,t,r,i,s,o]
this.transformMatrix=n.Util.transform(this.transformMatrix,a),this.tgrp=null}getSVG(e,t){this.viewport=t
const r=this._initialize(t)
return this.loadDependencies(e).then((()=>(this.transformMatrix=n.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){const t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,i=[]
for(let s=0,o=n.length;s<o;s++){const e=n[s]
i.push({fnId:e,fn:t[e],args:r[s]})}return p(i)}executeOpTree(e){for(const t of e){const e=t.fn,r=t.fnId,i=t.args
switch(0|r){case n.OPS.beginText:this.beginText()
break
case n.OPS.dependency:break
case n.OPS.setLeading:this.setLeading(i)
break
case n.OPS.setLeadingMoveText:this.setLeadingMoveText(i[0],i[1])
break
case n.OPS.setFont:this.setFont(i)
break
case n.OPS.showText:case n.OPS.showSpacedText:this.showText(i[0])
break
case n.OPS.endText:this.endText()
break
case n.OPS.moveText:this.moveText(i[0],i[1])
break
case n.OPS.setCharSpacing:this.setCharSpacing(i[0])
break
case n.OPS.setWordSpacing:this.setWordSpacing(i[0])
break
case n.OPS.setHScale:this.setHScale(i[0])
break
case n.OPS.setTextMatrix:this.setTextMatrix(i[0],i[1],i[2],i[3],i[4],i[5])
break
case n.OPS.setTextRise:this.setTextRise(i[0])
break
case n.OPS.setTextRenderingMode:this.setTextRenderingMode(i[0])
break
case n.OPS.setLineWidth:this.setLineWidth(i[0])
break
case n.OPS.setLineJoin:this.setLineJoin(i[0])
break
case n.OPS.setLineCap:this.setLineCap(i[0])
break
case n.OPS.setMiterLimit:this.setMiterLimit(i[0])
break
case n.OPS.setFillRGBColor:this.setFillRGBColor(i[0],i[1],i[2])
break
case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(i[0],i[1],i[2])
break
case n.OPS.setStrokeColorN:this.setStrokeColorN(i)
break
case n.OPS.setFillColorN:this.setFillColorN(i)
break
case n.OPS.shadingFill:this.shadingFill(i[0])
break
case n.OPS.setDash:this.setDash(i[0],i[1])
break
case n.OPS.setRenderingIntent:this.setRenderingIntent(i[0])
break
case n.OPS.setFlatness:this.setFlatness(i[0])
break
case n.OPS.setGState:this.setGState(i[0])
break
case n.OPS.fill:this.fill()
break
case n.OPS.eoFill:this.eoFill()
break
case n.OPS.stroke:this.stroke()
break
case n.OPS.fillStroke:this.fillStroke()
break
case n.OPS.eoFillStroke:this.eoFillStroke()
break
case n.OPS.clip:this.clip("nonzero")
break
case n.OPS.eoClip:this.clip("evenodd")
break
case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask()
break
case n.OPS.paintImageXObject:this.paintImageXObject(i[0])
break
case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(i[0])
break
case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(i[0])
break
case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(i[0],i[1])
break
case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd()
break
case n.OPS.closePath:this.closePath()
break
case n.OPS.closeStroke:this.closeStroke()
break
case n.OPS.closeFillStroke:this.closeFillStroke()
break
case n.OPS.closeEOFillStroke:this.closeEOFillStroke()
break
case n.OPS.nextLine:this.nextLine()
break
case n.OPS.transform:this.transform(i[0],i[1],i[2],i[3],i[4],i[5])
break
case n.OPS.constructPath:this.constructPath(i[0],i[1])
break
case n.OPS.endPath:this.endPath()
break
case 92:this.group(t.items)
break
default:(0,n.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,r,n,i,s){const o=this.current
o.textMatrix=o.lineMatrix=[e,t,r,n,i,s],o.textMatrixScale=Math.hypot(e,t),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.ycoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size",`${g(o.fontSize)}px`),o.tspan.setAttributeNS(null,"y",g(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}beginText(){const e=this.current
e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=n.IDENTITY_MATRIX,e.lineMatrix=n.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const r=this.current
r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size",`${g(r.fontSize)}px`),r.tspan.setAttributeNS(null,"y",g(-r.y))}showText(e){const t=this.current,r=t.font,i=t.fontSize
if(0===i)return
const s=t.fontSizeScale,o=t.charSpacing,c=t.wordSpacing,l=t.fontDirection,h=t.textHScale*l,d=r.vertical,f=d?1:-1,p=r.defaultVMetrics,y=i*t.fontMatrix[0]
let v=0
for(const a of e){if(null===a){v+=l*c
continue}if((0,n.isNum)(a)){v+=f*a*i/1e3
continue}const e=(a.isSpace?c:0)+o,u=a.fontChar
let h,g,m,_=a.width
if(d){let e
const t=a.vmetric||p
e=a.vmetric?t[1]:.5*_,e=-e*y
const r=t[2]*y
_=t?-t[0]:_,h=e/s,g=(v+r)/s}else h=v/s,g=0;(a.isInFont||r.missingFile)&&(t.xcoords.push(t.x+h),d&&t.ycoords.push(-t.y+g),t.tspan.textContent+=u),m=d?_*y-e*l:_*y+e*l,v+=m}t.tspan.setAttributeNS(null,"x",t.xcoords.map(g).join(" ")),d?t.tspan.setAttributeNS(null,"y",t.ycoords.map(g).join(" ")):t.tspan.setAttributeNS(null,"y",g(-t.y)),d?t.y-=v:t.x+=v*h,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",`${g(t.fontSize)}px`),t.fontStyle!==a.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==a.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight)
const _=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK
if(_===n.TextRenderingMode.FILL||_===n.TextRenderingMode.FILL_STROKE?(t.fillColor!==a.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),_===n.TextRenderingMode.STROKE||_===n.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1)
this._setStrokeAttributes(t.tspan,e)}let b=t.textMatrix
0!==t.textRise&&(b=b.slice(),b[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform",`${m(b)} scale(${g(h)}, -1)`),t.txtElement.setAttributeNS(u,"xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.')
this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle))
const t=(0,n.createObjectURL)(e.data,e.mimetype,this.forceDataSchema)
this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){const t=this.current,r=this.commonObjs.get(e[0])
let i=e[1]
t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix||n.FONT_IDENTITY_MATRIX
let s="normal"
r.black?s="900":r.bold&&(s="bold")
const o=r.italic?"italic":"normal"
i<0?(i=-i,t.fontDirection=-1):t.fontDirection=1,t.fontSize=i,t.fontFamily=r.loadedName,t.fontWeight=s,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",g(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){const e=this.current
e.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=h[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=n.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=n.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,r=this.viewport.height,i=n.Util.inverseTransform(this.transformMatrix),s=n.Util.applyTransform([0,0],i),o=n.Util.applyTransform([0,r],i),a=n.Util.applyTransform([t,0],i),u=n.Util.applyTransform([t,r],i),c=Math.min(s[0],o[0],a[0],u[0]),l=Math.min(s[1],o[1],a[1],u[1]),h=Math.max(s[0],o[0],a[0],u[0]),d=Math.max(s[1],o[1],a[1],u[1]),f=this.svgFactory.createElement("svg:rect")
f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",l),f.setAttributeNS(null,"width",h-c),f.setAttributeNS(null,"height",d-l),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&f.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(f)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],r=e[2],i=e[3]||n.IDENTITY_MATRIX,[s,o,a,u]=e[4],c=e[5],l=e[6],h=e[7],d="shading"+_++,[f,p,g,m]=n.Util.normalizeRect([...n.Util.applyTransform([s,o],i),...n.Util.applyTransform([a,u],i)]),[y,v]=n.Util.singularValueDecompose2dScale(i),b=c*y,D=l*v,A=this.svgFactory.createElement("svg:pattern")
A.setAttributeNS(null,"id",d),A.setAttributeNS(null,"patternUnits","userSpaceOnUse"),A.setAttributeNS(null,"width",b),A.setAttributeNS(null,"height",D),A.setAttributeNS(null,"x",`${f}`),A.setAttributeNS(null,"y",`${p}`)
const E=this.svg,C=this.transformMatrix,w=this.current.fillColor,S=this.current.strokeColor,F=this.svgFactory.create(g-f,m-p)
if(this.svg=F,this.transformMatrix=i,2===h){const e=n.Util.makeHexColor(...t)
this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(r)),this.svg=E,this.transformMatrix=C,this.current.fillColor=w,this.current.strokeColor=S,A.appendChild(F.childNodes[0]),this.defs.appendChild(A),`url(#${d})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":const t="shading"+_++,r=e[3]
let i
switch(e[1]){case"axial":const r=e[4],n=e[5]
i=this.svgFactory.createElement("svg:linearGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",r[0]),i.setAttributeNS(null,"y1",r[1]),i.setAttributeNS(null,"x2",n[0]),i.setAttributeNS(null,"y2",n[1])
break
case"radial":const s=e[4],o=e[5],a=e[6],u=e[7]
i=this.svgFactory.createElement("svg:radialGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",o[0]),i.setAttributeNS(null,"cy",o[1]),i.setAttributeNS(null,"r",u),i.setAttributeNS(null,"fx",s[0]),i.setAttributeNS(null,"fy",s[1]),i.setAttributeNS(null,"fr",a)
break
default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of r){const t=this.svgFactory.createElement("svg:stop")
t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),i.appendChild(t)}return this.defs.appendChild(i),`url(#${t})`
case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null
case"Dummy":return"hotpink"
default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const r=this.current
let i=r.x,s=r.y,o=[],a=0
for(const u of e)switch(0|u){case n.OPS.rectangle:i=t[a++],s=t[a++]
const e=i+t[a++],r=s+t[a++]
o.push("M",g(i),g(s),"L",g(e),g(s),"L",g(e),g(r),"L",g(i),g(r),"Z")
break
case n.OPS.moveTo:i=t[a++],s=t[a++],o.push("M",g(i),g(s))
break
case n.OPS.lineTo:i=t[a++],s=t[a++],o.push("L",g(i),g(s))
break
case n.OPS.curveTo:i=t[a+4],s=t[a+5],o.push("C",g(t[a]),g(t[a+1]),g(t[a+2]),g(t[a+3]),g(i),g(s)),a+=6
break
case n.OPS.curveTo2:o.push("C",g(i),g(s),g(t[a]),g(t[a+1]),g(t[a+2]),g(t[a+3])),i=t[a+2],s=t[a+3],a+=4
break
case n.OPS.curveTo3:i=t[a+2],s=t[a+3],o.push("C",g(t[a]),g(t[a+1]),g(i),g(s),g(i),g(s)),a+=4
break
case n.OPS.closePath:o.push("Z")}o=o.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?o=r.path.getAttributeNS(null,"d")+o:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",o),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(i,s)}endPath(){const e=this.current
if(e.path=null,!this.pendingClip)return
if(!e.element)return void(this.pendingClip=null)
const t="clippath"+y++,r=this.svgFactory.createElement("svg:clipPath")
r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",m(this.transformMatrix))
const n=e.element.cloneNode(!0)
if("evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl){e.clipGroup=null
for(const e of this.extraStack)e.clipGroup=null
r.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current
if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`
e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]of e)switch(t){case"LW":this.setLineWidth(r)
break
case"LC":this.setLineCap(r)
break
case"LJ":this.setLineJoin(r)
break
case"ML":this.setMiterLimit(r)
break
case"D":this.setDash(r[0],r[1])
break
case"RI":this.setRenderingIntent(r)
break
case"FL":this.setFlatness(r)
break
case"Font":this.setFont(r)
break
case"CA":this.setStrokeAlpha(r)
break
case"ca":this.setFillAlpha(r)
break
default:(0,n.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current
e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current
e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const r=this.current
let n=r.dashArray
1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*r.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect")
e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e)
t?this.paintInlineImageXObject(t):(0,n.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const r=e.width,n=e.height,i=d(e,this.forceDataSchema,!!t),s=this.svgFactory.createElement("svg:rect")
s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",g(r)),s.setAttributeNS(null,"height",g(n)),this.current.element=s,this.clip("nonzero")
const o=this.svgFactory.createElement("svg:image")
o.setAttributeNS(c,"xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",g(-n)),o.setAttributeNS(null,"width",g(r)+"px"),o.setAttributeNS(null,"height",g(n)+"px"),o.setAttributeNS(null,"transform",`scale(${g(1/r)} ${g(-1/n)})`),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}paintImageMaskXObject(e){const t=this.current,r=e.width,n=e.height,i=t.fillColor
t.maskId="mask"+v++
const s=this.svgFactory.createElement("svg:mask")
s.setAttributeNS(null,"id",t.maskId)
const o=this.svgFactory.createElement("svg:rect")
o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",g(r)),o.setAttributeNS(null,"height",g(n)),o.setAttributeNS(null,"fill",i),o.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(s),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],r=t[3]-t[1],n=this.svgFactory.createElement("svg:rect")
n.setAttributeNS(null,"x",t[0]),n.setAttributeNS(null,"y",t[1]),n.setAttributeNS(null,"width",g(e)),n.setAttributeNS(null,"height",g(r)),this.current.element=n,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs")
t.appendChild(r),this.defs=r
const n=this.svgFactory.createElement("svg:g")
return n.setAttributeNS(null,"transform",m(e.transform)),t.appendChild(n),this.svg=n,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g")
e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",m(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0,t.XfaLayer=class{static setupStorage(e,t,r,n,i){const s=n.getValue(t,{value:null})
switch(r.name){case"textarea":if(null!==s.value&&(e.textContent=s.value),"print"===i)break
e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}))
break
case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(s.value===r.attributes.xfaOn&&e.setAttribute("checked",!0),"print"===i)break
e.addEventListener("change",(e=>{n.setValue(t,{value:e.target.getAttribute("xfaOn")})}))}else{if(null!==s.value&&e.setAttribute("value",s.value),"print"===i)break
e.addEventListener("input",(e=>{n.setValue(t,{value:e.target.value})}))}break
case"select":if(null!==s.value)for(const e of r.children)e.attributes.value===s.value&&(e.attributes.selected=!0)
e.addEventListener("input",(e=>{const r=e.target.options,i=-1===r.selectedIndex?"":r[r.selectedIndex].value
n.setValue(t,{value:i})}))}}static setAttributes(e,t,r,n){const{attributes:i}=t
"radio"===i.type&&(i.name=`${i.name}-${n}`)
for(const[s,o]of Object.entries(i))null!=o&&"dataId"!==s&&("style"!==s?"textContent"===s?e.textContent=o:"class"===s?e.setAttribute(s,o.join(" ")):e.setAttribute(s,o):Object.assign(e.style,o))
r&&i.dataId&&this.setupStorage(e,i.dataId,t,r)}static render(e){const t=e.annotationStorage,r=e.xfa,n=e.intent||"display",i=document.createElement(r.name)
r.attributes&&this.setAttributes(i,r)
const s=[[r,-1,i]],o=e.div
o.appendChild(i)
const a=`matrix(${e.viewport.transform.join(",")})`
for(o.style.transform=a,o.setAttribute("class","xfaLayer xfaFont");s.length>0;){const[e,r,i]=s[s.length-1]
if(r+1===e.children.length){s.pop()
continue}const o=e.children[++s[s.length-1][1]]
if(null===o)continue
const{name:a}=o
if("#text"===a){i.appendChild(document.createTextNode(o.value))
continue}let u
u=o?.attributes?.xmlns?document.createElementNS(o.attributes.xmlns,a):document.createElement(a),i.appendChild(u),o.attributes&&this.setAttributes(u,o,t,n),o.children&&o.children.length>0?s.push([o,-1,u]):o.value&&u.appendChild(document.createTextNode(o.value))}for(const u of o.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))u.setAttribute("readOnly",!0)}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`
e.div.style.transform=t,e.div.hidden=!1}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0
var n=r(2),i=r(23)
const s=__webpack_require__(70172),o=__webpack_require__(2001),a=__webpack_require__(33779),u=__webpack_require__(66558),c=/^file:\/\/\/[a-zA-Z]:\//
t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=u.parse(e)
return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?u.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new g(this):new f(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=this.isFsUrl?new m(this,e,t):new p(this,e,t)
return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class l{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null
const t=e.source
this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0}
if(this._storedError)throw this._storedError
const e=this._readableStream.read()
return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class h{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)()
const t=e.source
this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0}
if(this._storedError)throw this._storedError
const e=this._readableStream.read()
return null===e?(this._readCapability=(0,n.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function d(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class f extends l{constructor(e){super(e)
const t=t=>{if(404===t.statusCode){const e=new n.MissingPDFException(`Missing PDF "${this._url}".`)
return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t)
const r=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:s,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
this._isRangeSupported=s,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r)}
this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,e.httpHeaders),t):this._request=a.request(d(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class p extends h{constructor(e,t,r){super(e),this._httpHeaders={}
for(const n in e.httpHeaders){const t=e.httpHeaders[n]
void 0!==t&&(this._httpHeaders[n]=t)}this._httpHeaders.Range=`bytes=${t}-${r-1}`
const i=e=>{if(404!==e.statusCode)this._setReadableStream(e)
else{const e=new n.MissingPDFException(`Missing PDF "${this._url}".`)
this._storedError=e}}
this._request=null,"http:"===this._url.protocol?this._request=o.request(d(this._url,this._httpHeaders),i):this._request=a.request(d(this._url,this._httpHeaders),i),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class g extends l{constructor(e){super(e)
let t=decodeURIComponent(this._url.path)
c.test(this._url.href)&&(t=t.replace(/^\//,"")),s.lstat(t,((e,r)=>{if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e)
this._contentLength=r.size,this._setReadableStream(s.createReadStream(t)),this._headersCapability.resolve()}))}}class m extends h{constructor(e,t,r){super(e)
let n=decodeURIComponent(this._url.path)
c.test(this._url.href)&&(n=n.replace(/^\//,"")),this._setReadableStream(s.createReadStream(n,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition")
if(t){let r=(0,i.getFilenameFromContentDispositionHeader)(t)
if(r.includes("%"))try{r=decodeURIComponent(r)}catch(e){}if((0,s.isPdfFile)(r))return r}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:i}){(0,n.assert)(r>0,"Range chunk size must be larger than zero")
const s={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(e("Content-Length"),10)
return Number.isInteger(o)?(s.suggestedLength=o,o<=2*r||i||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(s.allowRangeRequests=!0),s):s},t.validateResponseStatus=function(e){return 200===e||206===e}
var n=r(2),i=r(24),s=r(1)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,r=i("filename\\*","i").exec(e)
if(r){r=r[1]
let e=a(r)
return e=unescape(e),e=u(e),e=c(e),o(e)}if(r=function(e){const t=[]
let r
const n=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig")
for(;null!==(r=n.exec(e));){let[,e,n,i]=r
if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[n,i]}const s=[]
for(let i=0;i<t.length&&i in t;++i){let[e,r]=t[i]
r=a(r),e&&(r=unescape(r),0===i&&(r=u(r))),s.push(r)}return s.join("")}(e),r)return o(c(r))
if(r=i("filename","i").exec(e),r){r=r[1]
let e=a(r)
return e=c(e),o(e)}function i(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function s(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r
try{const i=new TextDecoder(e,{fatal:!0}),s=(0,n.stringToBytes)(r)
r=i.decode(s),t=!1}catch(n){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(e){}}}return r}function o(e){return t&&/[\x80-\xff]/.test(e)&&(e=s("utf-8",e),t&&(e=s("iso-8859-1",e))),e}function a(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"')
for(let e=0;e<t.length;++e){const r=t[e].indexOf('"');-1!==r&&(t[e]=t[e].slice(0,r),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function u(e){const t=e.indexOf("'")
return-1===t?e:s(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,n){if("q"===r||"Q"===r)return s(t,n=(n=n.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))
try{n=atob(n)}catch(e){}return s(t,n)}))}return""}
var n=r(2)},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0
var n=r(2),i=r(23)
class s{constructor(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){const n={begin:e,end:t}
for(const i in r)n[i]=r[i]
return this.request(n)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t}
t.open("GET",this.url),t.withCredentials=this.withCredentials
for(const i in this.httpHeaders){const e=this.httpHeaders[i]
void 0!==e&&t.setRequestHeader(i,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){const r=this.pendingRequests[e]
r&&r.onProgress&&r.onProgress(t)}onStateChange(e,t){const r=this.pendingRequests[e]
if(!r)return
const i=r.xhr
if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4!==i.readyState)return
if(!(e in this.pendingRequests))return
if(delete this.pendingRequests[e],0===i.status&&this.isHttp)return void(r.onError&&r.onError(i.status))
const s=i.status||200
if((200!==s||206!==r.expectedStatus)&&s!==r.expectedStatus)return void(r.onError&&r.onError(i.status))
const o=function(e){const t=e.response
return"string"!=typeof t?t:(0,n.stringToBytes)(t).buffer}(i)
if(206===s){const e=i.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e)
r.onDone({begin:parseInt(t[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr
delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new s(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e)
t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new o(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const r=new a(this._manager,e,t)
return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class o{constructor(e,t){this._manager=e
const r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}
this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:s}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
n&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0})
this._requests.length=0}}_onError(e){const t=this._url,r=(0,i.createResponseStatusError)(e,t)
this._storedError=r,this._headersReceivedCapability.reject(r)
for(const n of this._requests)n.reject(r)
this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError
if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1}
if(this._done)return{value:void 0,done:!0}
const e=(0,n.createPromiseCapability)()
return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e)
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class a{constructor(e,t,r){this._manager=e
const n={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)}
this._requestId=e.requestRange(t,r,n),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){const t=e.chunk
this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0
for(const r of this._requests)r.resolve({value:void 0,done:!0})
this._requests.length=0,this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(null!==this._queuedChunk){const e=this._queuedChunk
return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0}
const e=(0,n.createPromiseCapability)()
return this._requests.push(e),e.promise}cancel(e){this._done=!0
for(const t of this._requests)t.resolve({value:void 0,done:!0})
this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0
var n=r(2),i=r(23)
function s(e,t,r){return{method:"GET",headers:e,signal:r?.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function o(e){const t=new Headers
for(const r in e){const n=e[r]
void 0!==n&&t.append(r,n)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new a(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null
const r=new u(this,e,t)
return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e)
for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}
class a{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null
const t=e.source
this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=o(this._stream.httpHeaders)
const r=t.url
fetch(r,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,r)
this._reader=e.body.getReader(),this._headersCapability.resolve()
const t=t=>e.headers.get(t),{allowRangeRequests:s,suggestedLength:o}=(0,i.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange})
this._isRangeSupported=s,this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise
const{value:e,done:t}=await this._reader.read()
return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class u{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0
const a=e.source
this._withCredentials=a.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=o(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`)
const u=a.url
fetch(u,s(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,i.validateResponseStatus)(e.status))throw(0,i.createResponseStatusError)(e.status,u)
this._readCapability.resolve(),this._reader=e.body.getReader()})).catch((e=>{if("AbortError"!==e?.name)throw e})),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise
const{value:e,done:t}=await this._reader.read()
return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={}
function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e]
if(void 0!==t)return t.exports
var r=__webpack_module_cache__[e]={exports:{}}
return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __nested_webpack_exports__={}
return(()=>{var e=__nested_webpack_exports__
Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return t.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return t.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return t.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return t.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return t.isPdfFile}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return t.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return t.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return t.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return t.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return r.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return n.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return n.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return n.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return n.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return n.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return n.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return n.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return n.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return n.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return n.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return n.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return n.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return n.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return n.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return n.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return i.AnnotationLayer}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return s.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return a.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}})
var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(6),n=__w_pdfjs_require__(2),i=__w_pdfjs_require__(17),s=__w_pdfjs_require__(12),o=__w_pdfjs_require__(4),a=__w_pdfjs_require__(19),u=__w_pdfjs_require__(20),c=__w_pdfjs_require__(21)
if(o.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(22);(0,r.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(25),{PDFFetchStream:n}=__w_pdfjs_require__(26);(0,r.setPDFNetworkStreamFactory)((r=>(0,t.isValidFetchUrl)(r.url)?new n(r):new e(r)))}})(),__nested_webpack_exports__})()},module.exports=factory()},58045:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>i})
var n=r(88219)
const i={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,r=e.name,i=e.options,s=(0,n.Z)(t,i),o=t.modifiersData.preventOverflow||{x:0,y:0},a=o.x,u=o.y,c=t.rects.popper,l=c.width,h=c.height,d=t.placement.split("-")[0],f="left"===d?"left":"right",p="top"===d?"top":"bottom"
t.modifiersData[r]={width:l-s[f]-a,height:h-s[p]-u}}}},19428:(e,t,r)=>{"use strict"
var n=r(22134)
function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,s,o){if(o!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")
throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e
var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i}
return r.PropTypes=r,r}},16526:(e,t,r)=>{e.exports=r(19428)()},22134:e=>{"use strict"
e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},51970:(e,t,r)=>{const n=r(30840),i=r(13667),s=r(73437),o=r(24205)
function a(e,t,r,s,o){const a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1]
if(!c&&!n())throw new Error("Callback required as last argument")
if(!c){if(u<1)throw new Error("Too few arguments provided")
return 1===u?(r=t,t=s=void 0):2!==u||t.getContext||(s=r,r=t,t=void 0),new Promise((function(n,o){try{const o=i.create(r,s)
n(e(o,t,s))}catch(e){o(e)}}))}if(u<2)throw new Error("Too few arguments provided")
2===u?(o=r,r=t,t=s=void 0):3===u&&(t.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=t,t=void 0))
try{const n=i.create(r,s)
o(null,e(n,t,s))}catch(e){o(e)}}t.create=i.create,t.toCanvas=a.bind(null,s.render),t.toDataURL=a.bind(null,s.renderToDataURL),t.toString=a.bind(null,(function(e,t,r){return o.render(e,r)}))},30840:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},11829:(e,t,r)=>{const n=r(96445).getSymbolSize
t.getRowColCoords=function(e){if(1===e)return[]
const t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),s=[r-7]
for(let n=1;n<t-1;n++)s[n]=s[n-1]-i
return s.push(6),s.reverse()},t.getPositions=function(e){const r=[],n=t.getRowColCoords(e),i=n.length
for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||r.push([n[t],n[e]])
return r}},80121:(e,t,r)=>{const n=r(62851),i=["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 s(e){this.mode=n.ALPHANUMERIC,this.data=e}s.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t
for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t])
r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=s},52163:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8)
return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8)
this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},73303:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0")
this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){const i=e*this.size+t
this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},44506:(e,t,r)=>{const n=r(84220),i=r(62851)
function s(e){this.mode=i.BYTE,this.data=new Uint8Array(n(e))}s.getBitsLength=function(e){return 8*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=s},32842:(e,t,r)=>{const n=r(7356),i=[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],s=[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]
t.getBlocksCount=function(e,t){switch(t){case n.L:return i[4*(e-1)+0]
case n.M:return i[4*(e-1)+1]
case n.Q:return i[4*(e-1)+2]
case n.H:return i[4*(e-1)+3]
default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return s[4*(e-1)+0]
case n.M:return s[4*(e-1)+1]
case n.Q:return s[4*(e-1)+2]
case n.H:return s[4*(e-1)+3]
default:return}}},7356:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e
try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string")
switch(e.toLowerCase()){case"l":case"low":return t.L
case"m":case"medium":return t.M
case"q":case"quartile":return t.Q
case"h":case"high":return t.H
default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},64280:(e,t,r)=>{const n=r(96445).getSymbolSize
t.getPositions=function(e){const t=n(e)
return[[0,0],[t-7,0],[0,t-7]]}},63468:(e,t,r)=>{const n=r(96445),i=n.getBCHDigit(1335)
t.getEncodedBits=function(e,t){const r=e.bit<<3|t
let s=r<<10
for(;n.getBCHDigit(s)-i>=0;)s^=1335<<n.getBCHDigit(s)-i
return 21522^(r<<10|s)}},11254:(e,t)=>{const r=new Uint8Array(512),n=new Uint8Array(256)
!function(){let e=1
for(let t=0;t<255;t++)r[t]=e,n[e]=t,e<<=1,256&e&&(e^=285)
for(let t=255;t<512;t++)r[t]=r[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")")
return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},23466:(e,t,r)=>{const n=r(62851),i=r(96445)
function s(e){this.mode=n.KANJI,this.data=e}s.getBitsLength=function(e){return 13*e},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(e){let t
for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t])
if(r>=33088&&r<=40956)r-=33088
else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8")
r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=s},71819:(e,t)=>{function r(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0
case t.Patterns.PATTERN001:return r%2==0
case t.Patterns.PATTERN010:return n%3==0
case t.Patterns.PATTERN011:return(r+n)%3==0
case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0
case t.Patterns.PATTERN101:return r*n%2+r*n%3==0
case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0
case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0
default:throw new Error("bad maskPattern:"+e)}}t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size
let r=0,n=0,i=0,s=null,o=null
for(let a=0;a<t;a++){n=i=0,s=o=null
for(let u=0;u<t;u++){let t=e.get(a,u)
t===s?n++:(n>=5&&(r+=n-5+3),s=t,n=1),t=e.get(u,a),t===o?i++:(i>=5&&(r+=i-5+3),o=t,i=1)}n>=5&&(r+=n-5+3),i>=5&&(r+=i-5+3)}return r},t.getPenaltyN2=function(e){const t=e.size
let r=0
for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){const t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1)
4!==t&&0!==t||r++}return 3*r},t.getPenaltyN3=function(e){const t=e.size
let r=0,n=0,i=0
for(let s=0;s<t;s++){n=i=0
for(let o=0;o<t;o++)n=n<<1&2047|e.get(s,o),o>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|e.get(o,s),o>=10&&(1488===i||93===i)&&r++}return 40*r},t.getPenaltyN4=function(e){let t=0
const r=e.data.length
for(let n=0;n<r;n++)t+=e.data[n]
return 10*Math.abs(Math.ceil(100*t/r/5)-10)},t.applyMask=function(e,t){const n=t.size
for(let i=0;i<n;i++)for(let s=0;s<n;s++)t.isReserved(s,i)||t.xor(s,i,r(e,s,i))},t.getBestMask=function(e,r){const n=Object.keys(t.Patterns).length
let i=0,s=1/0
for(let o=0;o<n;o++){r(o),t.applyMask(o,e)
const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e)
t.applyMask(o,e),n<s&&(s=n,i=o)}return i}},62851:(e,t,r)=>{const n=r(42906),i=r(58836)
t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e)
if(!n.isValid(t))throw new Error("Invalid version: "+t)
return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id
throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e
try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string")
switch(e.toLowerCase()){case"numeric":return t.NUMERIC
case"alphanumeric":return t.ALPHANUMERIC
case"kanji":return t.KANJI
case"byte":return t.BYTE
default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},64807:(e,t,r)=>{const n=r(62851)
function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r,n
for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10)
const i=this.data.length-t
i>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*i+1))},e.exports=i},25876:(e,t,r)=>{const n=r(11254)
t.mul=function(e,t){const r=new Uint8Array(e.length+t.length-1)
for(let i=0;i<e.length;i++)for(let s=0;s<t.length;s++)r[i+s]^=n.mul(e[i],t[s])
return r},t.mod=function(e,t){let r=new Uint8Array(e)
for(;r.length-t.length>=0;){const e=r[0]
for(let s=0;s<t.length;s++)r[s]^=n.mul(t[s],e)
let i=0
for(;i<r.length&&0===r[i];)i++
r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1])
for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]))
return r}},13667:(e,t,r)=>{const n=r(96445),i=r(7356),s=r(52163),o=r(73303),a=r(11829),u=r(64280),c=r(71819),l=r(32842),h=r(14179),d=r(95928),f=r(63468),p=r(62851),g=r(63250)
function m(e,t,r){const n=e.size,i=f.getEncodedBits(t,r)
let s,o
for(s=0;s<15;s++)o=1==(i>>s&1),s<6?e.set(s,8,o,!0):s<8?e.set(s+1,8,o,!0):e.set(n-15+s,8,o,!0),s<8?e.set(8,n-s-1,o,!0):s<9?e.set(8,15-s-1+1,o,!0):e.set(8,15-s-1,o,!0)
e.set(n-8,8,1,!0)}function y(e,t,r,i){let f
if(Array.isArray(e))f=g.fromArray(e)
else{if("string"!=typeof e)throw new Error("Invalid data")
{let n=t
if(!n){const t=g.rawSplit(e)
n=d.getBestVersionForData(t,r)}f=g.fromString(e,n||40)}}const y=d.getBestVersionForData(f,r)
if(!y)throw new Error("The amount of data is too big to be stored in a QR Code")
if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y
const v=function(e,t,r){const i=new s
r.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)}))
const o=8*(n.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t))
for(i.getLengthInBits()+4<=o&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0)
const a=(o-i.getLengthInBits())/8
for(let n=0;n<a;n++)i.put(n%2?17:236,8)
return function(e,t,r){const i=n.getSymbolTotalCodewords(t),s=i-l.getTotalCodewordsCount(t,r),o=l.getBlocksCount(t,r),a=o-i%o,u=Math.floor(i/o),c=Math.floor(s/o),d=c+1,f=u-c,p=new h(f)
let g=0
const m=new Array(o),y=new Array(o)
let v=0
const _=new Uint8Array(e.buffer)
for(let n=0;n<o;n++){const e=n<a?c:d
m[n]=_.slice(g,g+e),y[n]=p.encode(m[n]),g+=e,v=Math.max(v,e)}const b=new Uint8Array(i)
let D,A,E=0
for(D=0;D<v;D++)for(A=0;A<o;A++)D<m[A].length&&(b[E++]=m[A][D])
for(D=0;D<f;D++)for(A=0;A<o;A++)b[E++]=y[A][D]
return b}(i,e,t)}(t,r,f),_=n.getSymbolSize(t),b=new o(_)
return function(e,t){const r=e.size,n=u.getPositions(t)
for(let i=0;i<n.length;i++){const t=n[i][0],s=n[i][1]
for(let n=-1;n<=7;n++)if(!(t+n<=-1||r<=t+n))for(let i=-1;i<=7;i++)s+i<=-1||r<=s+i||(n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4?e.set(t+n,s+i,!0,!0):e.set(t+n,s+i,!1,!0))}}(b,t),function(e){const t=e.size
for(let r=8;r<t-8;r++){const t=r%2==0
e.set(r,6,t,!0),e.set(6,r,t,!0)}}(b),function(e,t){const r=a.getPositions(t)
for(let n=0;n<r.length;n++){const t=r[n][0],i=r[n][1]
for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)-2===r||2===r||-2===n||2===n||0===r&&0===n?e.set(t+r,i+n,!0,!0):e.set(t+r,i+n,!1,!0)}}(b,t),m(b,r,0),t>=7&&function(e,t){const r=e.size,n=d.getEncodedBits(t)
let i,s,o
for(let a=0;a<18;a++)i=Math.floor(a/3),s=a%3+r-8-3,o=1==(n>>a&1),e.set(i,s,o,!0),e.set(s,i,o,!0)}(b,t),function(e,t){const r=e.size
let n=-1,i=r-1,s=7,o=0
for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,a-r)){let n=!1
o<t.length&&(n=1==(t[o]>>>s&1)),e.set(i,a-r,n),s--,-1===s&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n
break}}}(b,v),isNaN(i)&&(i=c.getBestMask(b,m.bind(null,b,r))),c.applyMask(i,b),m(b,r,i),{modules:b,version:t,errorCorrectionLevel:r,maskPattern:i,segments:f}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text")
let r,s,o=i.M
return void 0!==t&&(o=i.from(t.errorCorrectionLevel,i.M),r=d.from(t.version),s=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),y(e,r,o,s)}},14179:(e,t,r)=>{const n=r(25876)
function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized")
const t=new Uint8Array(e.length+this.degree)
t.set(e)
const r=n.mod(t,this.genPoly),i=this.degree-r.length
if(i>0){const e=new Uint8Array(this.degree)
return e.set(r,i),e}return r},e.exports=i},58836:(e,t)=>{const r="[0-9]+"
let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+"
n=n.replace(/u/g,"\\u")
const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+"
t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g")
const s=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$")
t.testKanji=function(e){return s.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},63250:(e,t,r)=>{const n=r(62851),i=r(64807),s=r(80121),o=r(44506),a=r(23466),u=r(58836),c=r(96445),l=r(68405)
function h(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){const n=[]
let i
for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length})
return n}function f(e){const t=d(u.NUMERIC,n.NUMERIC,e),r=d(u.ALPHANUMERIC,n.ALPHANUMERIC,e)
let i,s
return c.isKanjiModeEnabled()?(i=d(u.BYTE,n.BYTE,e),s=d(u.KANJI,n.KANJI,e)):(i=d(u.BYTE_KANJI,n.BYTE,e),s=[]),t.concat(r,i,s).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e)
case n.ALPHANUMERIC:return s.getBitsLength(e)
case n.KANJI:return a.getBitsLength(e)
case n.BYTE:return o.getBitsLength(e)}}function g(e,t){let r
const u=n.getBestModeForData(e)
if(r=n.from(t,u),r!==n.BYTE&&r.bit<u.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u))
switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e)
case n.ALPHANUMERIC:return new s(e)
case n.KANJI:return new a(e)
case n.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e}),[])},t.fromString=function(e,r){const i=function(e){const t=[]
for(let r=0;r<e.length;r++){const i=e[r]
switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}])
break
case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}])
break
case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:h(i.data)}])
break
case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:h(i.data)}])}}return t}(f(e,c.isKanjiModeEnabled())),s=function(e,t){const r={},i={start:{}}
let s=["start"]
for(let o=0;o<e.length;o++){const a=e[o],u=[]
for(let e=0;e<a.length;e++){const c=a[e],l=""+o+e
u.push(l),r[l]={node:c,lastCount:0},i[l]={}
for(let e=0;e<s.length;e++){const o=s[e]
r[o]&&r[o].node.mode===c.mode?(i[o][l]=p(r[o].lastCount+c.length,c.mode)-p(r[o].lastCount,c.mode),r[o].lastCount+=c.length):(r[o]&&(r[o].lastCount=c.length),i[o][l]=p(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}s=u}for(let n=0;n<s.length;n++)i[s[n]].end=0
return{map:i,table:r}}(i,r),o=l.find_path(s.map,"start","end"),a=[]
for(let t=1;t<o.length-1;t++)a.push(s.table[o[t]].node)
return t.fromArray(a.reduce((function(e,t){const r=e.length-1>=0?e[e.length-1]:null
return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}},96445:(e,t)=>{let r
const n=[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]
t.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 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0
for(;0!==e;)t++,e>>>=1
return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.')
r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},42906:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},95928:(e,t,r)=>{const n=r(96445),i=r(32842),s=r(7356),o=r(62851),a=r(42906),u=n.getBCHDigit(7973)
function c(e,t){return o.getCharCountIndicator(e,t)+4}function l(e,t){let r=0
return e.forEach((function(e){const n=c(e.mode,t)
r+=n+e.getBitsLength()})),r}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!a.isValid(e))throw new Error("Invalid QR Code version")
void 0===r&&(r=o.BYTE)
const s=8*(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))
if(r===o.MIXED)return s
const u=s-c(r,e)
switch(r){case o.NUMERIC:return Math.floor(u/10*3)
case o.ALPHANUMERIC:return Math.floor(u/11*2)
case o.KANJI:return Math.floor(u/13)
case o.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(e,r){let n
const i=s.from(r,s.M)
if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(l(e,n)<=t.getCapacity(n,r,o.MIXED))return n}(e,i)
if(0===e.length)return 1
n=e[0]}else n=e
return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version")
let t=e<<12
for(;n.getBCHDigit(t)-u>=0;)t^=7973<<n.getBCHDigit(t)-u
return e<<12|t}},73437:(e,t,r)=>{const n=r(25409)
t.render=function(e,t,r){let i=r,s=t
void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(s=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i)
const o=n.getImageWidth(e.modules.size,i),a=s.getContext("2d"),u=a.createImageData(o,o)
return n.qrToImageData(u.data,e,i),function(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(a,s,o),a.putImageData(u,0,0),s},t.renderToDataURL=function(e,r,n){let i=n
void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={})
const s=t.render(e,r,i),o=i.type||"image/png",a=i.rendererOpts||{}
return s.toDataURL(o,a.quality)}},24205:(e,t,r)=>{const n=r(25409)
function i(e,t){const r=e.a/255,n=t+'="'+e.hex+'"'
return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function s(e,t,r){let n=e+t
return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){const o=n.getOptions(t),a=e.modules.size,u=e.modules.data,c=a+2*o.margin,l=o.color.light.a?"<path "+i(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+i(o.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,o=!1,a=0
for(let u=0;u<e.length;u++){const c=Math.floor(u%t),l=Math.floor(u/t)
c||o||(o=!0),e[u]?(a++,u>0&&c>0&&e[u-1]||(n+=o?s("M",c+r,.5+l+r):s("m",i,0),i=0,o=!1),c+1<t&&e[u+1]||(n+=s("h",a),a=0)):i++}return n}(u,a,o.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+d+' shape-rendering="crispEdges">'+l+h+"</svg>\n"
return"function"==typeof r&&r(null,f),f}},25409:(e,t)=>{function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string")
let t=e.slice().replace("#","").split("")
if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e)
3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F")
const r=parseInt(t.join(""),16)
return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={})
const t=void 0===e.margin||null===e.margin||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:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){const n=t.getScale(e,r)
return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){const i=r.modules.size,s=r.modules.data,o=t.getScale(i,n),a=Math.floor((i+2*n.margin)*o),u=n.margin*o,c=[n.color.light,n.color.dark]
for(let t=0;t<a;t++)for(let r=0;r<a;r++){let l=4*(t*a+r),h=n.color.light
t>=u&&r>=u&&t<a-u&&r<a-u&&(h=c[s[Math.floor((t-u)/o)*i+Math.floor((r-u)/o)]?1:0]),e[l++]=h.r,e[l++]=h.g,e[l++]=h.b,e[l]=h.a}}},15775:e=>{"use strict"
function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r]
n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,r){return c=u()?Reflect.construct.bind():function(e,t,r){var n=[null]
n.push.apply(n,t)
var i=new(Function.bind.apply(e,n))
return r&&a(i,r.prototype),i},c.apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0
return l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e
var r
if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function")
if(void 0!==t){if(t.has(e))return t.get(e)
t.set(e,n)}function n(){return c(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)},l(e)}function h(e){var t=u()
return function(){var r,n=o(e)
if(t){var i=o(this).constructor
r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments)
return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}(this,r)}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=r){var n,i,s=[],o=!0,a=!1
try{for(r=r.call(e);!(o=(n=r.next()).done)&&(s.push(n.value),!t||s.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw i}}return s}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return g(e,t)
var r=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length)
for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r]
return n}var m="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",y="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",v=["b","del","em","i","s","strong","sub","sup"],_=v.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),b=[m,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc"].join("|"),D="href|src",A="data:image/(?:gif|jpg|jpeg|png);base64,",E="https?|ftp|mailto|invalid",C=i((function e(){r(this,e)}))
function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var S,F,T,R,x,O,P=(S=/[&<>"'\u0000\\=]/g,F={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(S,(function(e){return function(e){return e in F}(e)?F[e]:e}))}),M=(R="undefined"!=typeof document?document.createElement("div"):null,x=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,O={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'},T="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(e){return null==e?null:(e+"").replace(x,(function(e,t,r,n){return t?function(e){if(function(e){return w(O,e)}(e))return O[e]
if(!R)return e
R.innerHTML="&".concat(e,";")
var t=R[y]
return O[e]=t,t}(t):r||n?T(parseInt(r||n,r?16:10)||65533):"�"}))})
function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log"
if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function I(e){return/[<&]/.test(e)}var N,L="[ \t\r\n]*",B="[ \t\r\n]+"
function U(e){e=Array.isArray(e)?e:[e]
var t,r,n,i=0,s="<(?!/?"
return s+="(?:",e.forEach((function(e,o){t=e.tags||_,r=e.attrs||b,n=e.checkUrlAttrs||!1,0!==o&&(s+="|"),s+="(?:"+t.join("|")+")",s+="(?:",s+=L,s+="|"+B,s+="(?:(?:",s+="(?:".concat(r,")(?:=([\"'])[^'\"<>]*\\").concat(++i,")?"),n&&(s+="|(?:".concat(D,")=([\"'])(?:(?:").concat(E,")(?::|&#(?:58|x3a);)|(?:").concat(A,")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++i)),s+=")"+L+")+",s+=")"})),s+=")",s+="/?>)",new RegExp(s,"i")}function j(e){return U({tags:e=e||_,checkUrlAttrs:!0})}function q(e,t){var r=(t=t||{}).allowTags,n=!1!==t.hasCustomElementMarkup
return r&&r.length>0?!j(r).test(e):n?!q.R_UNSAFE_CUSTOM_ELEMENT.test(e):!q.R_UNSAFE_HTML.test(e)}function H(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}q.R_UNSAFE_HTML=j(),q.R_UNSAFE_CUSTOM_ELEMENT=U([{tags:_,checkUrlAttrs:!0},{tags:[(N={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[m,N.attrs].join("|"),checkUrlAttrs:!1}])
var z={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]},G=/<([\w:]+)/
function W(e,t){var r,n,i,s,o,a=t.createDocumentFragment(),u=[]
for(i=0,o=e.length;i<o;i++)if(n=e[i])if("string"==typeof n){r=r||a.appendChild(t.createElement("div"))
var c=d(G.exec(n)||["",""],2)[1]
if(void 0!==c){var l=c.toLowerCase(),h=l in z&&z[l]||z._default
for(Q(r,h[1]+n+h[2]),s=h[0];s--;)r&&r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild)
u.push.apply(u,f(Array.from(r.childNodes))),(r=a.firstChild)&&(r.textContent="")}}else n instanceof Node&&u.push(n)
for(a.textContent="",n=u[i=0];n;)a.appendChild(n),n=u[++i]
return a}function V(e,t,r){e=e.toString()
var n=t?function(e,t){var r={}
return e.replace(/\{([^}]+)\}/g,(function(e,n){if(w(r,n))return r[n]
if(w(t,n)){var i=t[n],s="string"==typeof i
if(!(s||i instanceof C||"number"==typeof i))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return i?(i=s?"".concat(P(i)):i.toString(),r[n]=i,i):e}return e}))}(e,t):e,i=e
return I(n)&&!q(n,r)&&(n=H(n),k("Content contains tags or attributes that are not allowed:\nContent: "+i,"error")),n}var $=V,K=V
function Q(e,t,r){var n=V(t,r)
return n&&I(n)?e.innerHTML=n:n&&(e[y]=n),n}var Y,X,J=function(e){s(n,e)
var t=h(n)
function n(e){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return r(this,n),(i=t.call(this)).options=s,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return i(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,r=e
return void 0!==t?t:(q(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(r=e,e=H(e),k("UnsafeString contains tags or attributes that are not allowed.\nString: "+r,"error")),this.strValue=e,e)}}]),n}(C),Z=function(){if("undefined"!=typeof window){var e=window.trustedTypes
if(e&&e.createPolicy&&e.isHTML)return e}}()
if(Z){var ee=Z.createPolicy("jSecure",{createHTML:function(e){return e}})
Y=function(e){return ee.createHTML(e)},X=function(e){return Z.isHTML(e)}}else{var te=function(e){s(n,e)
var t=h(n)
function n(){return r(this,n),t.apply(this,arguments)}return i(n,[{key:"toHTML",value:function(){return this.toString()}}]),n}(l(String))
Y=function(e){return new te(e)},X=function(e){return null!==e&&"object"===t(e)&&"toHTML"in e&&"function"==typeof e.toHTML}}function re(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r]
return Y(t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return X(e)?t:K(t)})).join(""))}function ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]
return function(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}(e,r)?String.raw.apply(String,[{raw:e}].concat(f(function(e){return e.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"")
return X(e)&&(t=M(t)),P(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return String(null!=e?e:"").replace(/(^[\0- ]*j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*):/i,"$1​:")}(t))}))}(r)))):re.apply(void 0,[e].concat(r))}var ie=/ /g,se=/[\s\u0000<>"]|%00/,oe=/\\/,ae=/([/\\]|^)([.]|%2e){2}([/\\]|$)/i,ue=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])")
function ce(e){var t,r="invalid://"
if("string"!=typeof e)return k("jSecure Warning: url must be a string","error"),r
if((t=e.trim()).indexOf(" ")>-1&&(k("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(ie,"+")),!ue.test(t))return k("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),r
if(se.test(t))return k("jSecure Error: not valid url character found in url: "+e,"error"),r
var n,i=t.split("?")[0],s=!1
if(i){try{if(n=decodeURI(i),ae.test(n))return k("jSecure Error: malicious data found in url path: "+i,"error"),r}catch(e){s=!0}if(s)return k("jSecure Error: malformed url path detected: "+i),r
if(oe.test(i)||ae.test(i))return k("jSecure Error: malicious data found in url path: "+i,"error"),r}return e}var le={redirect:function(e){window&&(window.location.href=e)}},he={ALLOWED_TAGS:_,FORMATTING_TAGS:v,html:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]
return re(ne.apply(void 0,[e].concat(r)))},htmlEncode:P,htmlUnencode:M,log:k,mk:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]
var i,s="",o=r.length
return e&&e.forEach((function(e,t){s+=e,t<o&&(i=r[t],s+=i instanceof J?i:P(i))})),"".concat(K(s))},parseHTML:function(e,t){var r
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)r=W([e],t)
else{if(!Array.isArray(e))return e
r=W(e,t)}return Array.from(r.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:$,reEncode:function(e){return P(M(e))},_redirector:le,redirect:function(e){var t=ce(e)
t===e&&le.redirect(t)},sanitizeHTML:K,sanitizeUrl:ce,setElementContent:Q,unsafe:function(e){return e},UnsafeString:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new J(t,r)},unsanitizedHTML:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n]
return Y(ne.apply(void 0,[e].concat(r)))}}
e.exports=he},12349:(e,t)=>{"use strict"
const r="List(",n=")",i="(",s=")",o="fields",a=/^(\/[^?]+)\??(.*)$/
function u(e=""){const t=a.exec(e)
if(t){const[,e="",r=""]=t
return{path:e,queryString:r}}return{path:"",queryString:""}}function c(e=""){let t=e.indexOf("//")
return t=t>0?t+2:t+1,t=e.indexOf("/",t),t<0&&(t=e.indexOf("?",t)),t=t<0?0:t,{origin:e.substring(0,t),rest:e.substring(t)}}const l=/(%2C|%28|%29|%27|%3A)/g,h=/(%2C|%28|%29|%27|%3A)/
function d(e,t,r=0){return e.indexOf(t,r)===r}function f(e,t){if(e[e.length-1]!==t)throw new Error(`Input has unbalanced prefix and suffix: ${e}`)}function p(e,t=0){let r=0,n=!1
for(;t<e.length;){const i=e[t]
if("("===i&&(r++,n=!0),")"===i&&r--,0===r&&n)break
t++}return t}function g(e,t){return t?h.test(e)&&(e=e.replace(l,unescape)):e=decodeURIComponent(e),void 0===e||"''"===e?"":e}function m(e){return y(e,!1)}function y(e,t){return void 0!==e&&"''"!==e||(e=""),d(e,r)?(f(e,n),v(e.substring(5,e.length-1),t)):d(e,i)?(f(e,s),_(e.substring(1,e.length-1),t)):g(e,t)}function v(e,t=!1){const n=[]
let s=0
for(;s<e.length;){if(d(e,r,s)||d(e,i,s)){const r=p(e,s)
n.push(y(e.substring(s,r+1),t)),s=r+2
continue}let o=e.indexOf(",",s)
o<0&&(o=e.length),n.push(g(e.substring(s,o),t)),s=o+1}return n}function _(e,t=!1){const n={}
let s=0
for(;s<e.length;){const o=e.indexOf(":",s),a=g(e.substring(s,o),t)
if(s=o+1,e.startsWith(r,s)||e.startsWith(i,s)){const r=p(e,s)
n[a]=y(e.substring(s,r+1),t),s=r+2
continue}let u=e.indexOf(",",s)
u<0&&(u=e.length)
const c=g(e.substring(s,u),t)
n[a]=c,s=u+1}return n}const b=/[,()':]/g,D=/[,()':]/
function A(e,t){if("object"!=typeof e)throw new Error(t)}function E(e){const t=JSON.parse(JSON.stringify(e))
return function(e,t){if(Array.isArray(e)||"object"!=typeof e||null===e)throw new Error("You must pass an object to the paramEncode function. Use arrayParamEncode.")}(t),Object.keys(t).map((e=>e===o?`${o}=${t[o]}`:`${S(e)}=${w(t[e],!1)}`)).join("&")}function C(e){if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))throw new Error("You must pass an array to the arrayParamEncode function.")
return e.reduce((function(e,t){if(!t||!t.hasOwnProperty("name")||!t.hasOwnProperty("value"))throw new Error("Objects passed to the arrayParamEncode function must have name and value properties.")
if("object"==typeof t.value&&null!==t.value)throw new Error("Only primitives may be passed to arrayParamEncode as item values.")
const r=t.name,n=e.hasOwnProperty(r),i=e[r]
return n?Array.isArray(i)?i.push(t.value):e[r]=[i,t.value]:e[r]=t.value,e}),{})}function w(e,t){return Array.isArray(e)?function(e,t){const i=new Array(e.length)
for(let r=0;r<e.length;r++)i[r]=w(e[r],t)
return`${r}${i.join(",")}${n}`}(e,t):function(e){return"object"==typeof e&&null!==e}(e)?function(e,t){const r=Object.keys(e).map((r=>`${S(r,t)}:${w(e[r],t)}`))
return`${i}${r.join(",")}${s}`}(e,t):S(e,t)}function S(e,t=!1){return""===e?"''":t&&"string"==typeof e&&D.test(e)?e.replace(b,escape):t?e:encodeURIComponent(e).replace(b,escape)}var F=Object.freeze({S_100_CONTINUE:100,S_101_SWITCHING_PROTOCOLS:101,S_200_OK:200,S_201_CREATED:201,S_202_ACCEPTED:202,S_203_NON_AUTHORITATIVE_INFORMATION:203,S_204_NO_CONTENT:204,S_205_RESET_CONTENT:205,S_206_PARTIAL_CONTENT:206,S_207_MULTI_STATUS:207,S_300_MULTIPLE_CHOICES:300,S_301_MOVED_PERMANENTLY:301,S_302_FOUND:302,S_303_SEE_OTHER:303,S_304_NOT_MODIFIED:304,S_305_USE_PROXY:305,S_307_TEMPORARY_REDIRECT:307,S_400_BAD_REQUEST:400,S_401_UNAUTHORIZED:401,S_402_PAYMENT_REQUIRED:402,S_403_FORBIDDEN:403,S_404_NOT_FOUND:404,S_405_METHOD_NOT_ALLOWED:405,S_406_NOT_ACCEPTABLE:406,S_407_PROXY_AUTHENTICATION_REQUIRED:407,S_408_REQUEST_TIMEOUT:408,S_409_CONFLICT:409,S_410_GONE:410,S_411_LENGTH_REQUIRED:411,S_412_PRECONDITION_FAILED:412,S_413_REQUEST_ENTITY_TOO_LARGE:413,S_414_REQUEST_URI_TOO_LONG:414,S_415_UNSUPPORTED_MEDIA_TYPE:415,S_416_REQUESTED_RANGE_NOT_SATISFIABLE:416,S_417_EXPECTATION_FAILED:417,S_422_UNPROCESSABLE_ENTITY:422,S_423_LOCKED:423,S_424_FAILED_DEPENDENCY:424,S_428_PRECONDITION_REQUIRED:428,S_429_TOO_MANY_REQUESTS:429,S_500_INTERNAL_SERVER_ERROR:500,S_501_NOT_IMPLEMENTED:501,S_502_BAD_GATEWAY:502,S_503_SERVICE_UNAVAILABLE:503,S_504_GATEWAY_TIMEOUT:504,S_505_HTTP_VERSION_NOT_SUPPORTED:505})
const T="application/x-www-form-urlencoded",R="POST",x=8e3,O=4e3
function P(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:r}=u(e.url||void 0)
if(r){const n={}
for(const t in e.headers)"CONTENT-TYPE"!==t.toUpperCase()&&(n[t]=e.headers[t]||"")
let i,s
if(n["X-HTTP-Method-Override"]=e.method||"GET",e.body){const t=`RESTLI_${Date.now()}`
s="multipart/mixed; boundary="+t,i=["--"+t,"Content-Type: "+T,"",r,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else s=T,i=r
return n["Content-Type"]=s,{body:i,headers:n,method:R,url:t}}}const t={method:e.method,url:e.url}
return e.body&&(t.body=e.body),t}function M(e,t={}){return k(e)?I(e,t):{url:e,request:t}}function k(e){const{path:t,queryString:r}=u(e)
if(t.length>x)throw new Error(`Per AFD limitations, this request url ${e} will not work. Please contact ask_traffic@.`)
return e.length>x||r.length>O}function I(e,t={}){const r=Object.assign({},t)
r.url=e,r.forceQueryTunnel=!0
const n=P(r)
if(t.method=n.method,t.headers=n.headers,t.body=n.body,t.data=n.body,null==n.url)throw new Error("Invalid: URL to be encoded cannot be 'null' or 'undefined' when performing query tunneling")
return{url:n.url,request:t}}t.FIELDS_PARAM=o,t.LIST_PREFIX=r,t.LIST_SUFFIX=n,t.OBJ_PREFIX=i,t.OBJ_SUFFIX=s,t.arrayParamEncode=function(e){return E(C(e))},t.arrayParamToQueryStringObject=C,t.checkAndEncodeLongUrl=M,t.decode=m,t.decodeList=v,t.decodeObject=_,t.encode=function(e){const t=JSON.parse(JSON.stringify(e))
return A(t,"You must pass either an array or an object to the encode function."),w(t,!1)},t.encodeRequest=P,t.extractOriginAndRestFromUrl=c,t.extractPathAndQueryStringFromUrl=u,t.httpStatus=F,t.paramDecode=function(e){return e.split("&").reduce((function(e,t){if(!t.length)return e
if(0===t.indexOf("="))return e
let[r="",n]=t.split("=")
return"''"===r&&(r=""),void 0!==n&&""!==n||(n="''"),e[decodeURIComponent(r)]=m(n),e}),{})},t.paramEncode=E,t.queryTunnel=function(e){const{origin:t,rest:r}=c(e.url)
if(k(r)){const n=e.headers,i={}
n?.forEach(((e,t)=>i[t]=e))
let{method:s,body:o}=e
const{url:a,request:u}=I(r,{url:r,body:o,headers:i,method:s})
for(const e in n)n.delete(e)
for(const e in u.headers)n.set(e,u.headers[e]||"")
return({method:s="GET",body:o=""}=u),{url:t+a,method:s,body:o,headers:n}}return null},t.queryTunnelRequest=function(e,t={}){return function(){const e=document.querySelector('meta[name="isQueryTunnelRequestSupported"]')
return e&&"true"===e.getAttribute("content")||!1}()?M(e,t):{url:e,request:t}},t.reducedDecode=function(e){return y(e,!0)},t.reducedEncode=function(e){const t=JSON.parse(JSON.stringify(e))
return A(t,"You must pass either an array or an object to the reducedEncode function."),w(t,!0)},t.urlRequiresQueryTunneling=k},80300:(e,t,r)=>{"use strict"
r.r(t),r.d(t,{default:()=>n})
const n=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},65118:e=>{"use strict"
e.exports=JSON.parse('{"$schema":"../../../schemas/token-set.json","breakpoint-xxs":{"type":"breakpoint","value":{"type":"size","value":0,"unit":"pixel"},"private":false},"breakpoint-xs":{"type":"breakpoint","value":{"type":"size","value":576,"unit":"pixel"},"private":false},"breakpoint-s":{"type":"breakpoint","value":{"type":"size","value":768,"unit":"pixel"},"private":false},"breakpoint-m":{"type":"breakpoint","value":{"type":"size","value":992,"unit":"pixel"},"private":false},"breakpoint-l":{"type":"breakpoint","value":{"type":"size","value":1200,"unit":"pixel"},"private":false},"breakpoint-xl":{"type":"breakpoint","value":{"type":"size","value":1440,"unit":"pixel"},"private":false},"breakpoint-xxl":{"type":"breakpoint","value":{"type":"size","value":1680,"unit":"pixel"},"private":false},"breakpoint-xxxl":{"type":"breakpoint","value":{"type":"size","value":1920,"unit":"pixel"},"private":false}}')}}])

//# sourceMappingURL=chunk.498.03ee3a2a74da64e99a42.map