1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`8f37aac82226aa1d29e1cf5ba62d7b85593ea8dc`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bb3f3449-6176-40d0-bf74-89a3cc68a1f9`,e._sentryDebugIdIdentifier=`sentry-dbid-bb3f3449-6176-40d0-bf74-89a3cc68a1f9`)}catch{}})();var e=Symbol.for(`@ts-pattern/matcher`),t=Symbol.for(`@ts-pattern/isVariadic`),n=`@ts-pattern/anonymous-select-key`,r=e=>!!(e&&typeof e==`object`),i=t=>t&&!!t[e],a=(n,o,s)=>{if(i(n)){let{matched:t,selections:r}=n[e]().match(o);return t&&r&&Object.keys(r).forEach(e=>s(e,r[e])),t}if(r(n)){if(!r(o))return!1;if(Array.isArray(n)){if(!Array.isArray(o))return!1;let e=[],r=[],c=[];for(let a of n.keys()){let o=n[a];i(o)&&o[t]?c.push(o):c.length?r.push(o):e.push(o)}if(c.length){if(c.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(o.length<e.length+r.length)return!1;let t=o.slice(0,e.length),n=r.length===0?[]:o.slice(-r.length),i=o.slice(e.length,r.length===0?1/0:-r.length);return e.every((e,n)=>a(e,t[n],s))&&r.every((e,t)=>a(e,n[t],s))&&(c.length===0||a(c[0],i,s))}return n.length===o.length&&n.every((e,t)=>a(e,o[t],s))}return Reflect.ownKeys(n).every(t=>{let r=n[t];return(t in o||i(c=r)&&c[e]().matcherType===`optional`)&&a(r,o[t],s);var c})}return Object.is(o,n)},o=t=>{var n;return r(t)?i(t)?(n=t[e]()).getSelectionKeys?.call(n)??[]:s(Array.isArray(t)?t:Object.values(t),o):[]},s=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function c(...e){if(e.length===1){let[t]=e;return e=>a(t,e,()=>{})}if(e.length===2){let[t,n]=e;return a(t,n,()=>{})}throw Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function l(e){return Object.assign(e,{optional:()=>d(e),and:t=>h(e,t),or:t=>g(e,t),select:t=>t===void 0?v(e):v(t,e)})}function u(e){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let n=0,r=[{value:Object.assign(e,{[t]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>r[n++]??r.at(-1)}}}))(e),{optional:()=>u(d(e)),select:t=>u(t===void 0?v(e):v(t,e))})}function d(t){return l({[e]:()=>({match:e=>{let n={},r=(e,t)=>{n[e]=t};return e===void 0?(o(t).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:a(t,e,r),selections:n}},getSelectionKeys:()=>o(t),matcherType:`optional`})})}var f=(e,t)=>{for(let n of e)if(!t(n))return!1;return!0},p=(e,t)=>{for(let[n,r]of e.entries())if(!t(r,n))return!1;return!0},m=(e,t)=>{let n=Reflect.ownKeys(e);for(let r of n)if(!t(r,e[r]))return!1;return!0};function h(...t){return l({[e]:()=>({match:e=>{let n={},r=(e,t)=>{n[e]=t};return{matched:t.every(t=>a(t,e,r)),selections:n}},getSelectionKeys:()=>s(t,o),matcherType:`and`})})}function g(...t){return l({[e]:()=>({match:e=>{let n={},r=(e,t)=>{n[e]=t};return s(t,o).forEach(e=>r(e,void 0)),{matched:t.some(t=>a(t,e,r)),selections:n}},getSelectionKeys:()=>s(t,o),matcherType:`or`})})}function _(t){return{[e]:()=>({match:e=>({matched:!!t(e)})})}}function v(...t){let r=typeof t[0]==`string`?t[0]:void 0,i=t.length===2?t[1]:typeof t[0]==`string`?void 0:t[0];return l({[e]:()=>({match:e=>{let t={[r??n]:e};return{matched:i===void 0||a(i,e,(e,n)=>{t[e]=n}),selections:t}},getSelectionKeys:()=>[r??n].concat(i===void 0?[]:o(i))})})}function y(e){return!0}function b(e){return typeof e==`number`}function x(e){return typeof e==`string`}function S(e){return typeof e==`bigint`}var C=l(_(y)),w=l(_(y)),T=C,E=e=>Object.assign(l(e),{startsWith:t=>{return E(h(e,(n=t,_(e=>x(e)&&e.startsWith(n)))));var n},endsWith:t=>{return E(h(e,(n=t,_(e=>x(e)&&e.endsWith(n)))));var n},minLength:t=>E(h(e,(e=>_(t=>x(t)&&t.length>=e))(t))),length:t=>E(h(e,(e=>_(t=>x(t)&&t.length===e))(t))),maxLength:t=>E(h(e,(e=>_(t=>x(t)&&t.length<=e))(t))),includes:t=>{return E(h(e,(n=t,_(e=>x(e)&&e.includes(n)))));var n},regex:t=>{return E(h(e,(n=t,_(e=>x(e)&&!!e.match(n)))));var n}}),D=E(_(x)),O=e=>Object.assign(l(e),{between:(t,n)=>O(h(e,((e,t)=>_(n=>b(n)&&e<=n&&t>=n))(t,n))),lt:t=>O(h(e,(e=>_(t=>b(t)&&t<e))(t))),gt:t=>O(h(e,(e=>_(t=>b(t)&&t>e))(t))),lte:t=>O(h(e,(e=>_(t=>b(t)&&t<=e))(t))),gte:t=>O(h(e,(e=>_(t=>b(t)&&t>=e))(t))),int:()=>O(h(e,_(e=>b(e)&&Number.isInteger(e)))),finite:()=>O(h(e,_(e=>b(e)&&Number.isFinite(e)))),positive:()=>O(h(e,_(e=>b(e)&&e>0))),negative:()=>O(h(e,_(e=>b(e)&&e<0)))}),k=O(_(b)),A=e=>Object.assign(l(e),{between:(t,n)=>A(h(e,((e,t)=>
1_(n=>S(n)&&e<=n&&t>=n))(t,n))),lt:t=>A(h(e,(e=>_(t=>S(t)&&t<e))(t))),gt:t=>A(h(e,(e=>_(t=>S(t)&&t>e))(t))),lte:t=>A(h(e,(e=>_(t=>S(t)&&t<=e))(t))),gte:t=>A(h(e,(e=>_(t=>S(t)&&t>=e))(t))),positive:()=>A(h(e,_(e=>S(e)&&e>0))),negative:()=>A(h(e,_(e=>S(e)&&e<0)))}),j={__proto__:null,matcher:e,optional:d,array:function(...t){return u({[e]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};let n=t[0],r={};if(e.length===0)return o(n).forEach(e=>{r[e]=[]}),{matched:!0,selections:r};let i=(e,t)=>{r[e]=(r[e]||[]).concat([t])};return{matched:e.every(e=>a(n,e,i)),selections:r}},getSelectionKeys:()=>t.length===0?[]:o(t[0])})})},set:function(...t){return l({[e]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let n={};if(e.size===0)return{matched:!0,selections:n};if(t.length===0)return{matched:!0};let r=(e,t)=>{n[e]=(n[e]||[]).concat([t])},i=t[0];return{matched:f(e,e=>a(i,e,r)),selections:n}},getSelectionKeys:()=>t.length===0?[]:o(t[0])})})},map:function(...t){return l({[e]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let n={};if(e.size===0)return{matched:!0,selections:n};let r=(e,t)=>{n[e]=(n[e]||[]).concat([t])};if(t.length===0)return{matched:!0};if(t.length===1)throw Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${t[0]?.toString()}`);let[i,o]=t;return{matched:p(e,(e,t)=>{let n=a(i,t,r),s=a(o,e,r);return n&&s}),selections:n}},getSelectionKeys:()=>t.length===0?[]:[...o(t[0]),...o(t[1])]})})},record:function(...t){return l({[e]:()=>({match:e=>{if(typeof e!=`object`||!e||Array.isArray(e))return{matched:!1};if(t.length===0)throw Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${t[0]?.toString()}`);let n={},r=(e,t)=>{n[e]=(n[e]||[]).concat([t])},[i,o]=t.length===1?[D,t[0]]:t;return{matched:m(e,(e,t)=>{let n=typeof e!=`string`||Number.isNaN(Number(e))?null:Number(e),s=n!==null&&a(i,n,r),c=a(i,e,r),l=a(o,t,r);return(c||s)&&l}),selections:n}},getSelectionKeys:()=>t.length===0?[]:[...o(t[0]),...o(t[1])]})})},intersection:h,union:g,not:function(t){return l({[e]:()=>({match:e=>({matched:!a(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:`not`})})},when:_,select:v,any:C,unknown:w,_:T,string:D,number:k,bigint:A(_(S)),boolean:l(_(function(e){return typeof e==`boolean`})),symbol:l(_(function(e){return typeof e==`symbol`})),nullish:l(_(function(e){return e==null})),nonNullable:l(_(function(e){return e!=null})),instanceOf:function(e){return l(_(function(e){return t=>t instanceof e}(e)))},shape:function(e){return l(_(c(e)))}},M=class extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch{t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}},N={matched:!1,value:void 0};function P(e){return new F(e,N)}var F=class e{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...t){if(this.state.matched)return this;let r=t[t.length-1],i=[t[0]],o;t.length===3&&typeof t[1]==`function`?o=t[1]:t.length>2&&i.push(...t.slice(1,t.length-1));let s=!1,c={},l=(e,t)=>{s=!0,c[e]=t},u=!i.some(e=>a(e,this.input,l))||o&&!o(this.input)?N:{matched:!0,value:r(s?n in c?c[n]:c:this.input,this.input)};return new e(this.input,u)}when(t,n){if(this.state.matched)return this;let r=!!t(this.input);return new e(this.input,r?{matched:!0,value:n(this.input,this.input)}:N)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=I){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}};function I(e){throw new M(e)}export{j as n,P as t}; 2//# sourceMappingURL=dist-CrPwEkzP.js.map
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.