/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
function O(t){return t.indexOf("|")>-1&&(t=t.replace("|","::")),t}function S(t){return t[0]==="{"&&(t=t.substring(1,t.length-1)),/^(\{){0,1}[0-9a-fA-F]{8}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{12}(\}){0,1}$/gi.test(t)}var _="~",n=256,r="slug";function G(t,e="",o=0){let R=[r];return e&&R.push(e.toLowerCase()),R.push(t),R.join("|").substring(0,n-o).replace(/-+$/,"").replace(new RegExp(`^${r}\\|`),"")}function i(t){let e=`${r}|${t}|`;return n-e.length}var c=(t,e)=>`${t.split("|").pop()}${_}${e}`;export{S as a,O as b,r as c,G as d,i as e,c as f};
