1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1835],{81835:(t,e,r)=>{r.r(e),r.d(e,{URLPattern:()=>D});var s=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,e,r,s,i,n){this.type=t,this.name=e,this.prefix=r,this.value=s,this.suffix=i,this.modifier=n}hasCustomName(){return""!==this.name&&"number"!=typeof this.name}},i=/[$_\p{ID_Start}]/u,n=/[$_\u200C\u200D\p{ID_Continue}]/u;function h(t,e=!1){let r=[],s=0;for(;s<t.length;){let h=t[s],o=function(i){if(!e)throw TypeError(i);r.push({type:"INVALID_CHAR",index:s,value:t[s++]})};if("*"===h){r.push({type:"ASTERISK",index:s,value:t[s++]});continue}if("+"===h||"?"===h){r.push({type:"OTHER_MODIFIER",index:s,value:t[s++]});continue}if("\\"===h){r.push({type:"ESCAPED_CHAR",index:s++,value:t[s++]});continue}if("{"===h){r.push({type:"OPEN",index:s,value:t[s++]});continue}if("}"===h){r.push({type:"CLOSE",index:s,value:t[s++]});continue}if(":"===h){let e="",h=s+1;for(;h<t.length;){let r=t.substr(h,1);if(h===s+1&&i.test(r)||h!==s+1&&n.test(r)){e+=t[h++];continue}break}if(!e){o(`Missing parameter name at ${s}`);continue}r.push({type:"NAME",index:s,value:e}),s=h;continue}if("("===h){let e=1,i="",n=s+1,h=!1;if("?"===t[n]){o(`Pattern cannot start with "?" at ${n}`);continue}for(;n<t.length;){var a;if(a=t[n],!/^[\x00-\x7F]*$/.test(a)){o(`Invalid character '${t[n]}' at ${n}.`),h=!0;break}if("\\"===t[n]){i+=t[n++]+t[n++];continue}if(")"===t[n]){if(0==--e){n++;break}}else if("("===t[n]&&(e++,"?"!==t[n+1])){o(`Capturing groups are not allowed at ${n}`),h=!0;break}i+=t[n++]}if(h)continue;if(e){o(`Unbalanced pattern at ${s}`);continue}if(!i){o(`Missing pattern at ${s}`);continue}r.push({type:"REGEX",index:s,value:i}),s=n;continue}r.push({type:"CHAR",index:s,value:t[s++]})}return r.push({type:"END",index:s,value:""}),r}function a(t,e={}){let r=h(t);e.delimiter??="/#?",e.prefixes??="./";let i=`[^${o(e.delimiter)}]+?`,n=[],u=0,p=0,c=new Set,f=t=>{if(p<r.length&&r[p].type===t)return r[p++].value},l=()=>f("OTHER_MODIFIER")??f("ASTERISK"),m=t=>{let e=f(t);if(void 0!==e)return e;let{type:s,index:i}=r[p];throw TypeError(`Unexpected ${s} at ${i}, expected ${t}`)},d=()=>{let t="",e;for(;e=f("CHAR")??f("ESCAPED_CHAR");)t+=e;return t},g=e.encodePart||(t=>t),y="",v=t=>{y+=t},w=()=>{y.length&&(n.push(new s(3,"","",g(y),"",3)),y="")},b=(t,e,r,h,a)=>{let o,p,f=3;switch(a){case"?":f=1;break;case"*":f=0;break;case"+":f=2}if(!e&&!r&&3===f){v(t);return}if(w(),!e&&!r){if(!t)return;n.push(new s(3,"","",g(t),"",f));return}let l=2;if((o=r?"*"===r?".*":r:i)===i?(l=1,o=""):".*"===o&&(l=0,o=""),e?p=e:r&&(p=u++),c.has(p))throw TypeError(`Duplicate name '${p}'.`);c.add(p),n.push(new s(l,p,g(t),o,g(h),f))};for(;p<r.length;){let t=f("CHAR"),r=f("NAME"),s=f("REGEX");if(r||s||(s=f("ASTERISK")),r||s){let i=t??"";-1===e.prefixes.indexOf(i)&&(v(i),i=""),w(),b(i,r,s,"",l());continue}let i=t??f("ESCAPED_CHAR");if(i){v(i);continue}if(f("OPEN")){let t=d(),e=f("NAME"),r=f("REGEX");e||r||(r=f("ASTERISK"));let s=d();m("CLOSE"),b(t,e,r,s,l());continue}w(),m("END")}return n}function o(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function u(t){return t&&t.ignoreCase?"ui":"u"}function p(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function c(t,e,r={}){r.delimiter??="/#?",r.prefixes??="./",r.sensitive??=!1,r.strict??=!1,r.end??=!0,r.start??=!0,r.endsWith="";let s=r.start?"^":"";for(let i of t){if(3===i.type){3===i.modifier?s+=o(i.value):s+=`(?:${o(i.value)})${p(i.modifier)}`;continue}e&&e.push(i.name);let t=`[^${o(r.delimiter)}]+?`,n=i.value;if(1===i.type?n=t:0===i.type&&(n=".*"),!i.prefix.length&&!i.suffix.length){3===i.modifier||1===i.modifier?s+=`(${n})${p(i.modifier)}`:s+=`((?:${n})${p(i.modifier)})`;continue}if(3===i.modifier||1===i.modifier){s+=`(?:${o(i.prefix)}(${n})${o(i.suffix)})`,s+=p(i.modifier);continue}s+=`(?:${o(i.prefix)}`,s+=`((?:${n})(?:`,s+=o(i.suffix),s+=o(i.prefix),s+=`(?:${n}))*)${o(i.suffix)})`,0===i.modifier&&(s+="?")}let i=`[${o(r.endsWith)}]|$`,n=`[${o(r.delimiter)}]`;if(r.end)return r.strict||(s+=`${n}?`),r.endsWith.length?s+=`(?=${i})`:s+="$",new RegExp(s,u(r));r.strict||(s+=`(?:${n}(?=${i}))?`);let h=!1;if(t.length){let e=t[t.length-1];3===e.type&&3===e.modifier&&(h=r.delimiter.indexOf(e)>-1)}return h||(s+=`(?=${n}|${i})`),new RegExp(s,u(r))}var f={delimiter:"",prefixes:"",sensitive:!0,strict:!0},l={delimiter:".",prefixes:"",sensitive:!0,strict:!0},m={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function d(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t}function g(t){return!!t&&!(t.length<2)&&("["===t[0]||("\\"===t[0]||"{"===t[0])&&"["===t[1])}var y=["ftp","file","http","https","ws","wss"];function v(t){if(!t)return!0;for(let e of y)if(t.test(e))return!0;return!1}function w(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function b(t){if(""===t)return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw TypeError(`Invalid protocol '${t}'.`)}function x(t){if(""===t)return t;let e=new URL("https://example.com");return e.username=t,e.username}function $(t){if(""===t)return t;let e=new URL("https://example.com");return e.password=t,e.password}function E(t){if(""===t)return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw TypeError(`Invalid hostname '${t}'`);let e=new URL("https://example.com");return e.hostname=t,e.hostname}function R(t){if(""===t)return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()}function C(t){if(""===t||/^[0-9]*$/.test(t)&&65535>=parseInt(t))return t;throw TypeError(`Invalid port '${t}'.`)}function k(t){if(""===t)return t;let e=new URL("https://example.com");return e.pathname="/"!==t[0]?"/-"+t:t,"/"!==t[0]?e.pathname.substring(2,e.pathname.length):e.pathname}function L(t){return""===t?t:new URL(`data:${t}`).pathname}function A(t){if(""===t)return t;let e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)}function P(t){if(""===t)return t;let e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)}var T=class{#t;#e=[];#r={};#s=0;#i=1;#n=0;#h=0;#a=0;#o=0;#u=!1;constructor(t){this.#t=t}get result(){return this.#r}parse(){for(this.#e=h(this.#t,!0);this.#s<this.#e.length;this.#s+=this.#i){if(this.#i=1,"END"===this.#e[this.#s].type){if(0===this.#h){this.#p(),this.#c()?this.#f(9,1):this.#l()?this.#f(8,1):this.#f(7,0);continue}if(2===this.#h){this.#m(5);continue}this.#f(10,0);break}if(this.#a>0){if(!this.#d())continue;this.#a-=1}if(this.#g()){this.#a+=1;continue}switch(this.#h){case 0:this.#y()&&this.#m(1);break;case 1:if(this.#y()){this.#v();let t=7,e=1;this.#w()?(t=2,e=3):this.#u&&(t=2),this.#f(t,e)}break;case 2:this.#b()?this.#m(3):(this.#x()||this.#l()||this.#c())&&this.#m(5);break;case 3:this.#$()?this.#f(4,1):this.#b()&&this.#f(5,1);break;case 4:this.#b()&&this.#f(5,1);break;case 5:this.#E()?this.#o+=1:this.#R()&&(this.#o-=1),this.#C()&&!this.#o?this.#f(6,1):this.#x()?this.#f(7,0):this.#l()?this.#f(8,1):this.#c()&&this.#f(9,1);break;case 6:this.#x()?this.#f(7,0):this.#l()?this.#f(8,1):this.#c()&&this.#f(9,1);break;case 7:this.#l()?this.#f(8,1):this.#c()&&this.#f(9,1);break;case 8:this.#c()&&this.#f(9,1)}}void 0!==this.#r.hostname&&void 0===this.#r.port&&(this.#r.port="")}#f(t,e){switch(this.#h){case 0:case 2:break;case 1:this.#r.protocol=this.#k();break;case 3:this.#r.username=this.#k();break;case 4:this.#r.password=this.#k();break;case 5:this.#r.hostname=this.#k();break;case 6:this.#r.port=this.#k();break;case 7:this.#r.pathname=this.#k();break;case 8:this.#r.search=this.#k();break;case 9:this.#r.hash=this.#k()}0!==this.#h&&10!==t&&([1,2,3,4].includes(this.#h)&&[6,7,8,9].includes(t)&&(this.#r.hostname??=""),[1,2,3,4,5,6].includes(this.#h)&&[8,9].includes(t)&&(this.#r.pathname??=this.#u?"/":""),[1,2,3,4,5,6,7].includes(this.#h)&&9===t&&(this.#r.search??="")),this.#L(t,e)}#L(t,e){this.#h=t,this.#n=this.#s+e,this.#s+=e,this.#i=0}#p(){this.#s=this.#n,this.#i=0}#m(t){this.#p(),this.#h=t}#A(t){return t<0&&(t=this.#e.length-t),t<this.#e.length?this.#e[t]:this.#e[this.#e.length-1]}#P(t,e){let r=this.#A(t);return r.value===e&&("CHAR"===r.type||"ESCAPED_CHAR"===r.type||"INVA
1LID_CHAR"===r.type)}#y(){return this.#P(this.#s,":")}#w(){return this.#P(this.#s+1,"/")&&this.#P(this.#s+2,"/")}#b(){return this.#P(this.#s,"@")}#$(){return this.#P(this.#s,":")}#C(){return this.#P(this.#s,":")}#x(){return this.#P(this.#s,"/")}#l(){if(this.#P(this.#s,"?"))return!0;if("?"!==this.#e[this.#s].value)return!1;let t=this.#A(this.#s-1);return"NAME"!==t.type&&"REGEX"!==t.type&&"CLOSE"!==t.type&&"ASTERISK"!==t.type}#c(){return this.#P(this.#s,"#")}#g(){return"OPEN"==this.#e[this.#s].type}#d(){return"CLOSE"==this.#e[this.#s].type}#E(){return this.#P(this.#s,"[")}#R(){return this.#P(this.#s,"]")}#k(){let t=this.#e[this.#s],e=this.#A(this.#n).index;return this.#t.substring(e,t.index)}#v(){var t,e;let r={};Object.assign(r,f),r.encodePart=b;let s=(t=this.#k(),e=void 0,c(a(t,r),e,r));this.#u=v(s)}},U=["protocol","username","password","hostname","port","pathname","search","hash"];function O(t,e){if("string"!=typeof t)throw TypeError("parameter 1 is not of type 'string'.");let r=new URL(t,e);return{protocol:r.protocol.substring(0,r.protocol.length-1),username:r.username,password:r.password,hostname:r.hostname,port:r.port,pathname:r.pathname,search:""!==r.search?r.search.substring(1,r.search.length):void 0,hash:""!==r.hash?r.hash.substring(1,r.hash.length):void 0}}function I(t,e){return e?_(t):t}function S(t,e,r){var s,i,n,h,a;let o;if("string"==typeof e.baseURL)try{o=new URL(e.baseURL),void 0===e.protocol&&(t.protocol=I(o.protocol.substring(0,o.protocol.length-1),r)),r||void 0!==e.protocol||void 0!==e.hostname||void 0!==e.port||void 0!==e.username||(t.username=I(o.username,r)),r||void 0!==e.protocol||void 0!==e.hostname||void 0!==e.port||void 0!==e.username||void 0!==e.password||(t.password=I(o.password,r)),void 0===e.protocol&&void 0===e.hostname&&(t.hostname=I(o.hostname,r)),void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&(t.port=I(o.port,r)),void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&void 0===e.pathname&&(t.pathname=I(o.pathname,r)),void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&void 0===e.pathname&&void 0===e.search&&(t.search=I(o.search.substring(1,o.search.length),r)),void 0===e.protocol&&void 0===e.hostname&&void 0===e.port&&void 0===e.pathname&&void 0===e.search&&void 0===e.hash&&(t.hash=I(o.hash.substring(1,o.hash.length),r))}catch{throw TypeError(`invalid baseURL '${e.baseURL}'.`)}if("string"==typeof e.protocol&&(t.protocol=(s=(i=s=e.protocol).endsWith(":")?i.substr(0,i.length-1):i,r||""===s?s:b(s))),"string"==typeof e.username&&(t.username=function(t,e){if(e||""===t)return t;let r=new URL("https://example.com");return r.username=t,r.username}(e.username,r)),"string"==typeof e.password&&(t.password=function(t,e){if(e||""===t)return t;let r=new URL("https://example.com");return r.password=t,r.password}(e.password,r)),"string"==typeof e.hostname&&(t.hostname=(n=e.hostname,r||""===n?n:g(n)?R(n):E(n))),"string"==typeof e.port&&(t.port=(h=e.port,w(t.protocol)===h&&(h=""),r||""===h?h:C(h))),"string"==typeof e.pathname){if(t.pathname=e.pathname,o&&(!(a=t.pathname).length||"/"!==a[0]&&(!r||a.length<2||"\\"!=a[0]&&"{"!=a[0]||"/"!=a[1]))){let e=o.pathname.lastIndexOf("/");e>=0&&(t.pathname=I(o.pathname.substring(0,e+1),r)+t.pathname)}t.pathname=function(t,e,r){if(r||""===t)return t;if(e&&!y.includes(e))return new URL(`${e}:${t}`).pathname;let s="/"==t[0];return t=new URL(s?t:"/-"+t,"https://example.com").pathname,s||(t=t.substring(2,t.length)),t}(t.pathname,t.protocol,r)}return"string"==typeof e.search&&(t.search=function(t,e){if(t=d(t,"?"),e||""===t)return t;let r=new URL("https://example.com");return r.search=t,r.search?r.search.substring(1,r.search.length):""}(e.search,r)),"string"==typeof e.hash&&(t.hash=function(t,e){if(t=d(t,"#"),e||""===t)return t;let r=new URL("https://example.com");return r.hash=t,r.hash?r.hash.substring(1,r.hash.length):""}(e.hash,r)),t}function _(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}var D=class{#t;#e={};#r={};#s={};#i={};#n=!1;constructor(t={},e,r){try{let s,i;if("string"==typeof e?s=e:r=e,"string"==typeof t){let e=new T(t);if(e.parse(),t=e.result,void 0===s&&"string"!=typeof t.protocol)throw TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=s}else{if(!t||"object"!=typeof t)throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(s)throw TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let n={ignoreCase:!0===r.ignoreCase};for(i of(this.#t=S({pathname:"*",protocol:"*",username:"*",password:"*",hostname:"*",port:"*",search:"*",hash:"*"},t,!0),w(this.#t.protocol)===this.#t.port&&(this.#t.port=""),U)){if(!(i in this.#t))continue;let t={},e=this.#t[i];switch(this.#r[i]=[],i){case"protocol":Object.assign(t,f),t.encodePart=b;break;case"username":Object.assign(t,f),t.encodePart=x;break;case"password":Object.assign(t,f),t.encodePart=$;break;case"hostname":Object.assign(t,l),g(e)?t.encodePart=R:t.encodePart=E;break;case"port":Object.assign(t,f),t.encodePart=C;break;case"pathname":v(this.#e.protocol)?(Object.assign(t,m,n),t.encodePart=k):(Object.assign(t,f,n),t.encodePart=L);break;case"search":Object.assign(t,f,n),t.encodePart=A;break;case"hash":Object.assign(t,f,n),t.encodePart=P}try{this.#i[i]=a(e,t),this.#e[i]=c(this.#i[i],this.#r[i],t),this.#s[i]=function(t,e){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let r=`[^${e.delimiter.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}]+?`,s=/[$_\u200C\u200D\p{ID_Continue}]/u,i="";for(let n=0;n<t.length;++n){let h=t[n];if(3===h.type){if(3===h.modifier){i+=_(h.value);continue}i+=`{${_(h.value)}}${p(h.modifier)}`;continue}let a=h.hasCustomName(),o=!!h.suffix.length||!!h.prefix.length&&(1!==h.prefix.length||!e.prefixes.includes(h.prefix)),u=n>0?t[n-1]:null,c=n<t.length-1?t[n+1]:null;if(!o&&a&&1===h.type&&3===h.modifier&&c&&!c.prefix.length&&!c.suffix.length){if(3===c.type){let t=c.value.length>0?c.value[0]:"";o=s.test(t)}else o=!c.hasCustomName()}if(!o&&!h.prefix.length&&u&&3===u.type){let t=u.value[u.value.length-1];o=e.prefixes.includes(t)}o&&(i+="{"),i+=_(h.prefix),a&&(i+=`:${h.name}`),2===h.type?i+=`(${h.value})`:1===h.type?a||(i+=`(${r})`):0===h.type&&(a||u&&3!==u.type&&3===u.modifier&&!o&&""===h.prefix?i+="(.*)":i+="*"),1===h.type&&a&&h.suffix.length&&s.test(h.suffix[0])&&(i+="\\"),i+=_(h.suffix),o&&(i+="}"),3!==h.modifier&&(i+=p(h.modifier))}return i}(this.#i[i],t),this.#n=this.#n||this.#i[i].some(t=>2===t.type)}catch{throw TypeError(`invalid ${i} pattern '${this.#t[i]}'.`)}}}catch(t){throw TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}test(t={},e){let r,s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{s="object"==typeof t?S(s,t,!1):S(s,O(t,e),!1)}catch{return!1}for(r of U)if(!this.#e[r].exec(s[r]))return!1;return!0}exec(t={},e){let r,s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if("string"!=typeof t&&e)throw TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{s="object"==typeof t?S(s,t,!1):S(s,O(t,e),!1)}catch{return null}let i={};for(r of(e?i.inputs=[t,e]:i.inputs=[t],U)){let t=this.#e[r].exec(s[r]);if(!t)return null;let e={};for(let[s,i]of this.#r[r].entries())if("string"==typeof i||"number"==typeof i){let r=t[s+1];e[i]=r}i[r]={input:s[r]??"",groups:e}}return i}static compareComponent(t,e,r){let i=(t,e)=>{for(let r of["type","modifier","prefix","value","suffix"]){if(t[r]<e[r])return -1;if(t[r]!==e[r])return 1}return 0},n=new s(3,"","","","",3),h=new s(0,"","","","",3),a=(t,e)=>{let r=0;for(;r<Math.min(t.length,e.length);++r){let s=i(t[r],e[r]);if(s)return s}return t.length===e.length?0:i(t[r]??n,e[r]??n)};return e.#s[t]||r.#s[t]?e.#s[t]&&!r.#s[t]?a(e.#i[t],[h]):a(!e.#s[t]&&r.#s[t]?[h]:e.#i[t],r.#i[t]):0}get protocol(){return this.#s.protocol}get username(){return this.#s.username}get password(){return this.#s.password}get hostname(){return this.#s.hostname}get port(){return this.#s.port}get pathname(){return this.#s.pathname}get search(){return this.#s.search}get hash(){return this.#s.hash}get hasRegExpGroups(){return this.#n}};globalThis.URLPattern||(globalThis.URLPattern=D)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.