1(self.webpackChunk_chive_core_theme=self.webpackChunk_chive_core_theme||[]).push([[843],{4697:function(n,t,e){"use strict";e.d(t,{U2:function(){return h},Xf:function(){return s},v_:function(){return u}});var r=e(9669),o=e.n(r),i=e(9124),a=e(7856);const{ajaxURL:c}=i.kh.endpoint,s=n=>{const t=new FormData;return Object.keys(n).forEach((e=>{Array.isArray(n[e])?(0===n[e].length&&t.set(e+"[]",""),n[e].map((n=>t.append((0,a.sanitize)(e+"[]"),(0,a.sanitize)(n))))):t.set(e,n[e])})),t},u=async(n,t,e)=>{t.action=n,t._ajax_nonce=e;const{data:r}=await o().post(c,s(t));if(!r.success)throw new Error(JSON.stringify(r.data)||"No response from the request");return r.data},h=async function(n,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new URL(c);Object.entries(e).forEach((n=>{let[t,e]=n;r.searchParams.set(t,encodeURIComponent(e))})),r.searchParams.set("action",n),r.searchParams.set("_ajax_nonce",t);const{data:i}=await o().get(r.toString());if(!i.success)throw new Error(JSON.stringify(i.data));return i.data}},2467:function(n,t,e){"use strict";e.d(t,{T:function(){return a},u:function(){return i}});var r=e(4697),o=e(9124);async function i(n){try{return await(0,r.v_)(o.kh.endpoint.login.action,n,o.kh.endpoint.login.nonce)}catch(n){console.error(n)}}async function a(n){try{return await(0,r.v_)(o.kh.endpoint.loginWithProvider.action,n,o.kh.endpoint.loginWithProvider.nonce)}catch(n){console.error(n)}}},4834:function(n,t,e){"use strict";e.d(t,{Ph:function(){return i},sZ:function(){return o},uX:function(){return a}}),e(8367);var r=e(7856);const o=(n,t)=>{const e=new URL((0,r.sanitize)(window.location.href));e.searchParams.set(n,t),window.history.pushState({},"",e)},i=n=>new URLSearchParams((0,r.sanitize)(window.location.search)).get(n),a=n=>{window.location.replace(n)}},2843:function(n,t,e){"use strict";e.r(t);var r=e(2467),o=e(4834),i=e(8188),a=e(7856);t.default=()=>{const n=new URLSearchParams((0,a.sanitize)(window.location.search)),t=(0,a.sanitize)(n.get("code")),e=(0,a.sanitize)(n.get("provider"));e&&t?(0,r.T)({provider:e,code:t}).then((n=>{if(null!=n&&n.cookie)return(0,i.d8)(n.cookie,n.hash),void(0,o.uX)("/");throw new Error(JSON.stringify(n)||"No response from the request")})):(0,o.uX)("/")}},8367:function(n,t,e){var r=e(280),o=e(4160),i=e(5694),a=e(1469),c=e(8612),s=e(4144),u=e(5726),h=e(6719),f=Object.prototype.hasOwnProperty;n.exports=function(n){if(null==n)return!0;if(c(n)&&(a(n)||"string"==typeof n||"function"==typeof n.splice||s(n)||h(n)||i(n)))return!n.length;var t=o(n);if("[object Map]"==t||"[object Set]"==t)return!n.size;if(u(n))return!r(n).length;for(var e in n)if(f.call(n,e))return!1;return!0}}}]);
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.