1import"./DsD71Nu6.js";import{l as N,x as I,y as v,z as b,M as j,N as A}from"./Q6C8zf6a.js";import{i as x}from"./BJ2ClxiI.js";const R=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,D=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(e,o){if(e==="__proto__"||e==="constructor"&&o&&typeof o=="object"&&"prototype"in o){F(e);return}return o}function F(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function L(e,o={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const t=e.trim();if(t.length<=9)switch(t.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!D.test(e)){if(o.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(R.test(e)||_.test(e)){if(o.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,P)}return JSON.parse(e)}catch(r){if(o.strict)throw r;return e}}function M(e,o){if(typeof e!="string")throw new TypeError("argument str must be a string");const t={},r=o||{},s=r.decode||U;let n=0;for(;n<e.length;){const i=e.indexOf("=",n);if(i===-1)break;let c=e.indexOf(";",n);if(c===-1)c=e.length;else if(c<i){n=e.lastIndexOf(";",i-1)+1;continue}const a=e.slice(n,i).trim();if(r?.filter&&!r?.filter(a)){n=c+1;continue}if(t[a]===void 0){let u=e.slice(i+1,c).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),t[a]=J(u,s)}n=c+1}return t}function U(e){return e.includes("%")?decodeURIComponent(e):e}function J(e,o){try{return o(e)}catch{return e}}const m=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function k(e,o,t){const r=t||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!m.test(e))throw new TypeError("argument name is invalid");const n=s(o);if(n&&!m.test(n))throw new TypeError("argument val is invalid");let i=e+"="+n;if(r.maxAge!==void 0&&r.maxAge!==null){const c=r.maxAge-0;if(Number.isNaN(c)||!Number.isFinite(c))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(c)}if(r.domain){if(!m.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!m.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if(!V(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
1d");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{i+="; Priority=Low";break}case"medium":{i+="; Priority=Medium";break}case"high":{i+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{i+="; SameSite=Strict";break}case"lax":{i+="; SameSite=Lax";break}case"strict":{i+="; SameSite=Strict";break}case"none":{i+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i}function V(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function f(e){if(typeof e!="object")return e;var o,t,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){t=new e.constructor;for(o in e)e.hasOwnProperty(o)&&t[o]!==e[o]&&(t[o]=f(e[o]))}else{t={};for(o in e)o==="__proto__"?Object.defineProperty(t,o,{value:f(e[o]),configurable:!0,enumerable:!0,writable:!0}):t[o]=f(e[o])}return t}if(r==="[object Array]"){for(o=e.length,t=Array(o);o--;)t[o]=f(e[o]);return t}return r==="[object Set]"?(t=new Set,e.forEach(function(s){t.add(f(s))}),t):r==="[object Map]"?(t=new Map,e.forEach(function(s,n){t.set(f(n),f(s))}),t):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(t=new RegExp(e.source,e.flags),t.lastIndex=e.lastIndex,t):r==="[object DataView]"?new e.constructor(f(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const $={path:"/",watch:!0,decode:e=>L(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},y=globalThis.cookieStore;function K(e,o){const t={...$,...o};t.filter??=u=>u===e;const r=T(t)||{};let s;t.maxAge!==void 0?s=t.maxAge*1e3:t.expires&&(s=t.expires.getTime()-Date.now());const n=s!==void 0&&s<=0,i=n||r[e]===void 0||r[e]===null,c=f(n?void 0:r[e]??t.default?.()),a=s&&!n?H(c,s,t.watch&&t.watch!=="shallow"):N(c);{let u=null;try{!y&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const d=(l=!1)=>{!l&&(t.readonly||x(a.value,r[e]))||(B(e,a.value,t),r[e]=f(a.value),u?.postMessage({value:t.encode(a.value)}))},p=l=>{const h=l.refresh?T(t)?.[e]:t.decode(l.value);w=!0,a.value=h,r[e]=f(h),A(()=>{w=!1})};let w=!1;const S=!!v();if(S&&b(()=>{w=!0,d(),u?.close()}),y){const l=h=>{const E=h.changed.find(g=>g.name===e),O=h.deleted.find(g=>g.name===e);E&&p({value:E.value}),O&&p({value:null})};y.addEventListener("change",l),S&&b(()=>y.removeEventListener("change",l))}else u&&(u.onmessage=({data:l})=>p(l));t.watch&&I(a,()=>{w||d()},{deep:t.watch!=="shallow"}),i&&d(i)}return a}function T(e={}){return M(document.cookie,e)}function z(e,o,t={}){return o==null?k(e,o,{...t,maxAge:-1}):k(e,o,t)}function B(e,o,t={}){document.cookie=z(e,o,t)}const C=2147483647;function H(e,o,t){let r,s,n=0;const i=t?N(e):{value:e};return v()&&b(()=>{s?.(),clearTimeout(r)}),j((c,a)=>{t&&(s=I(i,a));function u(){n=0,clearTimeout(r);const d=o-n,p=d<C?d:C;r=setTimeout(()=>{if(n+=p,n<o)return u();i.value=void 0,a()},p)}return{get(){return c(),i.value},set(d){u(),i.value=d,a()}}})}export{L as d,K as u};
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.