PageSourceSearch

https://aig-journal.ru/apps/aig/assets/cache/version/1/mjs/query-string/43f60b60.mjs?1709720530

js aig-journal.ru collected 2026-09-24 18:41:19 UTC 5,711 bytes, 6 lines download raw bytes

1/**
2 * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3 * Original file: /npm/[email protected]/index.js
4 */
5import r from"https://cdn.jsdelivr.net/npm/[email protected]/+esm";import e from"https://cdn.jsdelivr.net/npm/[email protected]/+esm";import{includeKeys as t}from"https://cdn.jsdelivr.net/npm/[email protected]/+esm";const n=r=>null==r,o=r=>encodeURIComponent(r).replace(/[!'()*]/g,(r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)),a=Symbol("encodeFragmentIdentifier");function i(r){if("string"!=typeof r||1!==r.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(r,e){return e.encode?e.strict?o(r):encodeURIComponent(r):r}function c(e,t){return t.decode?r(e):e}function l(r){return Array.isArray(r)?r.sort():"object"==typeof r?l(Object.keys(r)).sort(((r,e)=>Number(r)-Number(e))).map((e=>r[e])):r}function u(r){const e=r.indexOf("#");return-1!==e&&(r=r.slice(0,e)),r}function p(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&"string"==typeof r&&""!==r.trim()?r=Number(r):!e.parseBooleans||null===r||"true"!==r.toLowerCase()&&"false"!==r.toLowerCase()||(r="true"===r.toLowerCase()),r}function f(r){const e=(r=u(r)).indexOf("?");return-1===e?"":r.slice(e+1)}function m(r,t){i((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(r){let e;switch(r.arrayFormat){case"index":return(r,t,n)=>{e=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),e?(void 0===n[r]&&(n[r]={}),n[r][e[1]]=t):n[r]=t};case"bracket":return(r,t,n)=>{e=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),e?void 0!==n[r]?n[r]=[...n[r],t]:n[r]=[t]:n[r]=t};case"colon-list-separator":return(r,t,n)=>{e=/(:list)$/.exec(r),r=r.replace(/:list$/,""),e?void 0!==n[r]?n[r]=[...n[r],t]:n[r]=[t]:n[r]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(r.arrayFormatSeparator),a="string"==typeof t&&!o&&c(t,r).includes(r.arrayFormatSeparator);t=a?c(t,r):t;const i=o||a?t.split(r.arrayFormatSeparator).map((e=>c(e,r))):null===t?t:c(t,r);n[e]=i};case"bracket-separator":return(e,t,n)=>{const o=/(\[])$/.test(e);if(e=e.replace(/\[]$/,""),!o)return void(n[e]=t?c(t,r):t);const a=null===t?[]:t.split(r.arrayFormatSeparator).map((e=>c(e,r)));void 0!==n[e]?n[e]=[...n[e],...a]:n[e]=a};default:return(r,e,t)=>{void 0!==t[r]?t[r]=[...[t[r]].flat(),e]:t[r]=e}}}(t),o=Object.create(null);if("string"!=typeof r)return o;if(!(r=r.trim().replace(/^[?#&]/,"")))return o;for(const a of r.split("&")){if(""===a)continue;const r=t.decode?a.replace(/\+/g," "):a;let[i,s]=e(r,"=");void 0===i&&(i=r),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:c(s,t),n(c(i,t),s,o)}for(const[r,e]of Object.entries(o))if("object"==typeof e&&null!==e)for(const[r,n]of Object.entries(e))e[r]=p(n,t);else o[r]=p(e,t);return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((r,e)=>{const t=o[e];return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?r[e]=l(t):r[e]=t,r}),Object.create(null))}function d(r,e){if(!r)return"";i((e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e}).arrayFormatSeparator);const t=t=>e.skipNull&&n(r[t])||e.skipEmptyString&&""===r[t],o=function(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[s(e,r),"[",o,"]"].join("")]:[...t,[s(e,r),"[",s(o,r),"]=",s(n,r)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[s(e,r),"[]"].join("")]:[...t,[s(e,r),"[]=",s(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,[s(e,r),":list="].join("")]:[...t,[s(e,r),":list=",s(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===r.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||r.skipNull&&null===o||r.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[s(t,r),e,
5s(o,r)].join("")]:[[n,s(o,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||r.skipNull&&null===n||r.skipEmptyString&&""===n?t:null===n?[...t,s(e,r)]:[...t,[s(e,r),"=",s(n,r)].join("")]}}(e),a={};for(const[e,n]of Object.entries(r))t(e)||(a[e]=n);const c=Object.keys(a);return!1!==e.sort&&c.sort(e.sort),c.map((t=>{const n=r[t];return void 0===n?"":null===n?s(t,e):Array.isArray(n)?0===n.length&&"bracket-separator"===e.arrayFormat?s(t,e)+"[]":n.reduce(o(t),[]).join("&"):s(t,e)+"="+s(n,e)})).filter((r=>r.length>0)).join("&")}function y(r,t){t={decode:!0,...t};let[n,o]=e(r,"#");return void 0===n&&(n=r),{url:n?.split("?")?.[0]??"",query:m(f(r),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:c(o,t)}:{}}}function g(r,e){e={encode:!0,strict:!0,[a]:!0,...e};const t=u(r.url).split("?")[0]||"";let n=d({...m(f(r.url),{sort:!1}),...r.query},e);n&&(n=`?${n}`);let o=function(r){let e="";const t=r.indexOf("#");return-1!==t&&(e=r.slice(t)),e}(r.url);if(r.fragmentIdentifier){const n=new URL(t);n.hash=r.fragmentIdentifier,o=e[a]?n.hash:`#${r.fragmentIdentifier}`}return`${t}${n}${o}`}function b(r,e,n){n={parseFragmentIdentifier:!0,[a]:!1,...n};const{url:o,query:i,fragmentIdentifier:s}=y(r,n);return g({url:o,query:t(i,e),fragmentIdentifier:s},n)}var j=Object.freeze({__proto__:null,extract:f,parse:m,stringify:d,parseUrl:y,stringifyUrl:g,pick:b,exclude:function(r,e,t){return b(r,Array.isArray(e)?r=>!e.includes(r):(r,t)=>!e(r,t),t)}});export{j as default};
6//# sourceMappingURL=https://cdn.jsdelivr.net/sm/26bf2dcffc72f1f9baf93b78b2114c75c435a9245937c8d21c148263c9051e61.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.