PageSourceSearch

https://cdn.skijan.com/en/_next/static/chunks/3074.99225e0b30608046.js

js skijan.com collected 2026-10-07 06:22:21 UTC 16,940 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c403260f-70f1-4d9c-9be4-39a955f7c41e",e._sentryDebugIdIdentifier="sentry-dbid-c403260f-70f1-4d9c-9be4-39a955f7c41e")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:very-secret-key":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3074],{83697:function(e,t,n){"use strict";var s=n(56092);t.Z=void 0;var i=s(n(81991)),o=n(74512),r=(0,i.default)((0,o.jsx)("path",{d:"M21 11h-1.5v-.5h-2v3h2V13H21v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v1zM8 10v5H6.5v-1.5h-2V15H3v-5c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zm-1.5.5h-2V12h2v-1.5zm7 1.5c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1h-4V9h4c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1zM11 10.5v.75h2v-.75h-2zm2 2.25h-2v.75h2v-.75z"}),"AbcOutlined");t.Z=r},67194:function(e,t,n){"use strict";var s=n(56092);t.Z=void 0;var i=s(n(81991)),o=n(74512),r=(0,i.default)((0,o.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}),"ImageOutlined");t.Z=r},43074:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return G}});var s=n(78645),i=n(38839),o=n(75246),r=n(32460);n(81936);var a=n(62500),l=n(63627),c=n(60838),d=n(23698),h=n(45686),u=n(17241),g=n(40486),p=n(45750),f=n.n(p),b=n(62274),k=n(35837),v=n(32735),y=n(72125),m=n.n(y);class x{setMutationObserver(){let e=this.holder.querySelector(".codex-editor__redactor");this.observer=new MutationObserver(e=>{this.mutationHandler(e)}),this.observer.observe(e,{childList:!0,attributes:!0,subtree:!0,characterData:!0,characterDataOldValue:!0})}mutationHandler(e){let t=!1;e.forEach(e=>{switch(e.type){case"childList":e.target===this.holder?this.onDestroy():t=!0;break;case"characterData":t=!0;break;case"attributes":e.target.classList.contains("ce-block")||e.target.classList.contains("tc-toolbox")||(t=!0)}}),t&&this.mutationDebouncer()}debounce(e,t){let n;var s=this;return function(){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];clearTimeout(n),n=setTimeout(()=>e.apply(s,o),t)}}onDestroy(){let e=new CustomEvent("destroy");document.dispatchEvent(e),this.observer.disconnect()}constructor(e,t,n){this.holder=t,this.observer=null,this.debounceTimer=n,this.mutationDebouncer=this.debounce(()=>{e()},this.debounceTimer)}}var w=n(99381),M=n.n(w);class E{static get isReadOnlySupported(){return!0}truncate(e,t){for(;e.length>t;)e.shift()}initialize(e){let t="blocks"in e?e.blocks:e,n=t.length-1,s={index:n,state:t};this.stack[0]=s,this.initialItem=s}clear(){this.stack=this.initialItem?[this.initialItem]:[{index:0,state:[{type:this.defaultBlock,data:{}}]}],this.position=0,this.onUpdate()}setReadOnly(){let e=this.holder.querySelector(".ce-toolbox");this.readOnly=!e}registerChange(){this.setReadOnly(),this.readOnly||(this.editor&&this.editor.save&&this.shouldSaveHistory&&this.editor.save().then(e=>{this.editorDidUpdate(e.blocks)&&this.save(e.blocks)}),this.shouldSaveHistory=!0)}editorDidUpdate(e){let{state:t}=this.stack[this.position];return!!e.length&&(e.length!==t.length||JSON.stringify(t)!==JSON.stringify(e))}save(e){this.position>=this.maxLength&&this.truncate(this.stack,this.maxLength),this.position=Math.min(this.position,this.stack.length-1),this.stack=this.stack.slice(0,this.position+1);let t=this.blocks.getCurrentBlockIndex(),n=this.blocks.getBlocksCount(),s=t;e[t]||(s-=n-e.length);let i=e[s]&&("paragraph"===e[s].type||"header"===e[s].type)?this.getCaretIndex(t):null;this.stack.push({index:s,state:M()(e),caretIndex:i}),this.position+=1,this.onUpdate()}getCaretIndex(e){let t=this.holder.getElementsByClassName("ce-block__content"),n=new(m())(t[e].firstChild||t[e]);return n.getPos()}insertDeletedBlock(e,t,n){for(let s=0;s<e.length;s+=1)if(!t[s]||e[s].id!==t[s].id){this.blocks.insert(e[s].type,e[s].data,{},s,!0),this.caret.setToBlock(n,"end");break}}blockWasDropped(e,t){return e.length===t.length&&e.some((e,n)=>e.id!==t[n].id)}blockWasSkipped(e,t,n,s){return e<t&&n.length!==s.length}contentChangedInNoFocusBlock(e,t){return e!==t}blockWasDeleted(e,t){return e.length>t.length}async undo(){if(this.canUndo()){let{index:e,state:t}=this.stack[this.position];this.position-=1,this.shouldSaveHistory=!1;let{index:n}=this.stack[this.position],{state:s,caretIndex:i}=this.stack[this.position];this.onUpdate();let o=this.blocks.getBlocksCount();if(s[n]||(n-=1,this.stack[this.position].index=n),this.blockWasDeleted(s,t))this.insertDeletedBlock(s,t,n);
1else if(this.blockWasSkipped(n,e,s,t))await this.blocks.delete(e),this.caret.setToBlock(n,"end");else if(o>s.length)await this.blocks.render({blocks:s}),i&&i>-1?this.setCaretIndex(n,i):(await this.editor.blocks.insert(this.defaultBlock,{}),this.caret.setToBlock(n,"end"));else if(this.blockWasDropped(s,t))await this.blocks.render({blocks:s}),i&&i>-1?this.setCaretIndex(n,i):this.caret.setToBlock(n,"end");else if(this.contentChangedInNoFocusBlock(n,e)){let{id:t}=this.blocks.getBlockByIndex(e);await this.blocks.update(t,s[e].data),this.setCaretIndex(n,i)}let r=this.blocks.getBlockByIndex(n);r&&(await this.blocks.update(r.id,s[n].data),this.setCaretIndex(n,i))}}setCaretIndex(e,t){if(t&&-1!==t){let n=this.holder.getElementsByClassName("ce-block__content");if(!n.length)return;let s=new(m())(n[e].firstChild);setTimeout(()=>s.setPos(t),50)}else this.caret.setToBlock(e,"end")}async insertBlock(e,t){await this.blocks.insert(e[t].type,e[t].data,{},t,!0)}insertSkippedBlocks(e,t){for(let n=e;n<t.length;n+=1)this.insertBlock(t,n)}async redo(){if(this.canRedo()){this.position+=1,this.shouldSaveHistory=!1;let{index:e,state:t,caretIndex:n}=this.stack[this.position],{index:s,state:i}=this.stack[this.position-1];this.blockWasDeleted(i,t)?(await this.blocks.delete(),this.caret.setToBlock(e,"end")):this.blockWasSkipped(s,e,t,i)?(this.insertSkippedBlocks(i.length,t),this.caret.setToBlock(e,"end")):this.blockWasDropped(t,i)&&1!==this.position?(await this.blocks.render({blocks:t}),this.caret.setToBlock(e,"end")):t.length>i.length&&(this.insertSkippedBlocks(i.length,t),this.caret.setToBlock(e,"end")),this.onUpdate();let o=this.blocks.getBlockByIndex(e);o&&(await this.blocks.update(o.id,t[e].data),this.setCaretIndex(e,n))}}canUndo(){return!this.readOnly&&this.position>0}canRedo(){return!this.readOnly&&this.position<this.count()}count(){return this.stack.length-1}parseKeys(e){let t={CMD:/(Mac)/i.test(navigator.platform)?"metaKey":"ctrlKey",ALT:"altKey",SHIFT:"shiftKey"},n=e.slice(0,-1).map(e=>t[e]),s=n.includes("shiftKey")&&2===e.length?e[e.length-1].toUpperCase():e[e.length-1].toLowerCase();return n.push(s),n}setEventListeners(){let{holder:e}=this,{shortcuts:t}=this.config,{undo:n,redo:s}=t,i=n.map(e=>e.replace(/ /g,"").split("+")),o=s.map(e=>e.replace(/ /g,"").split("+")),r=i.map(e=>this.parseKeys(e)),a=o.map(e=>this.parseKeys(e)),l=(e,t)=>2===t.length&&e[t[0]]&&e.key.toLowerCase()===t[1],c=(e,t)=>3===t.length&&e[t[0]]&&e[t[1]]&&e.key.toLowerCase()===t[2],d=(e,t)=>t.reduce((t,n)=>t||l(e,n),!1),h=(e,t)=>t.reduce((t,n)=>t||c(e,n),!1),u=(e,t,n)=>!!(d(e,t)&&!h(e,n)||h(e,t)),g=e=>{u(e,r,a)&&(e.preventDefault(),this.undo())},p=e=>{u(e,a,r)&&(e.preventDefault(),this.redo())},f=()=>{this.undo()},b=()=>{this.redo()},k=()=>{e.removeEventListener("keydown",g),e.removeEventListener("keydown",p),document.removeEventListener("".concat(this.holderId,"_undo"),f),document.removeEventListener("".concat(this.holderId,"_redo"),b)};e.addEventListener("keydown",g),e.addEventListener("keydown",p),e.addEventListener("destroy",k),document.addEventListener("".concat(this.holderId,"_undo"),f),document.addEventListener("".concat(this.holderId,"_redo"),b)}constructor({editor:e,config:t={},onUpdate:n,maxLength:s}){if(!e){console.error("Editor.js instance is required");return}let i={maxLength:30,onUpdate(){},config:{debounceTimer:200,shortcuts:{undo:["CMD+Z"],redo:["CMD+Y","CMD+SHIFT+Z"]}}},{blocks:o,caret:r}=e,{configuration:a}=e,{holder:l,defaultBlock:c}=a,d=i.config.shortcuts,{shortcuts:h}=t,u={...d,...h},g=Array.isArray(u.undo)?u.undo:[u.undo],p=Array.isArray(u.redo)?u.redo:[u.redo],f=i.config.debounceTimer,{debounceTimer:b=f}=t;this.holder="string"==typeof l?document.getElementById(l):l,this.holderId=l,this.editor=e,this.defaultBlock=c,this.blocks=o,this.caret=r,this.shouldSaveHistory=!0,this.readOnly=a.readOnly,this.maxLength=s||i.maxLength,this.onUpdate=n||i.onUpdate,this.config={debounceTimer:b,shortcuts:{undo:g,redo:p}};let k=new x(()=>this.registerChange(),this.holder,this.config.debounceTimer);k.setMutationObserver(),this.setEventListeners(),this.initialItem=null,this.clear(),window["isEnableUndoRedo_".concat(l)]=!0}}var _=n(25946),C=n(42148),I=n(83697),L=n(67194),S=n(17674),T={src:"https://cdn.skijan.com/en/_next/static/media/loading.fad68904.gif",height:150,width:150,blurWidth:0,blurHeight:0};function B(){let e=(0,s.Z)(["\n          overflow: auto;\n          flex-grow: 1;\n          .ce-popover--opened {\n            max-height: 60vh;\n          }\n        "]);return B=function(){return e},e}function D(){let e=(0,s.Z)(["\n          position: absolute;\n          bottom: 46px;\n          right: 10px;\n          text-align: right;\n          color: #000000;\n          z-index: 100;\n          padding: 2px 6px;\n          border-radius: 2px;\n          background: #dadadab3;\n          user-select: none;\n        "]);return D=function(){return e},e}function H(){let e=(0,s.Z)(["display: flex; align-items: center; transition: all .3s"]);return H=function(){return e},e}function j(){let e=(0,s.Z)(["margin-left: 2px"]);return j=function(){return e},e}function O(){let e=(0,s.Z)(["\n          position: absolute;\n          bottom: 14px;\n          right: 10px;\n          text-align: right;\n          color: #000000;\n          z-index: 100;\n          padding: 2px 6px;\n          border-radius: 2px;\n          background: #dadadab3;\n          user-select: none;\n        "]);return O=function(){return e},e}function Z(){let e=(0,s.Z)(["display: flex; align-items: center; transition: all .3s"]);return Z=function(){return e},e}function z(){let e=(0,s.Z)(["margin-left: 2px"]);return z=function(){return e},e}function R(){let e=(0,s.Z)(["\n          .ct.ct--bottom {\n            @media (min-width: ","px) {\n              display: none;\n            }\n          }\n\n          .codex-editor {\n            z-index: 99;\n          }\n\n          body.ce-scroll-locked--hard, body.ce-scroll-locked {\n            @media only screen and (max-width: ","px) {\n              touch-action: none;\n              position: static !important;\n              overflow-y: auto !important;\n              .ggj-scrollbar.ggj-document-block-editor {\n                >
1 div:first-of-type {\n                  height: 100%;\n                }\n\n                overflow: visible;\n\n                .codex-editor {\n                  height: 100%;\n                  z-index: 200;\n\n                  .codex-editor__redactor {\n                    height: 100%;\n                    overflow: hidden;\n                  }\n                }\n              }\n            }\n          }\n        "]);return R=function(){return e},e}let U=f()(e=>{e()},2e3);function N(e){return e.replace(/<a (.*)>/g,'<a target="_blank" $1>')}function P(e){return/<\s*a[^>]*>(.*?)<*a>/.test(e)}let A={};function G(e){let t=(0,v.useMemo)(()=>"ElementId"+Math.random(),[]),[n,s]=(0,v.useState)(0),[p,f]=(0,v.useState)(0),y=(0,k.useRouter)(),m=(0,g.Z)(),{t:x}=(0,b.$G)(_.ln);return(0,v.useEffect)(()=>{let n=(0,a.ZP)();return n.loadingImage=T.src,(0,r.qY)(S.o).then(i=>{var o,d,h;null===(o=i.tools)||void 0===o||delete o.paidLine,null===(d=i.tools)||void 0===d||delete d.quote,null===(h=i.tools)||void 0===h||delete h.tableOfContent,U(()=>{(0,r.Gs)({ElementId:t,config:{...i,newMobileUI:!1,autofocus:!1,tools:Object.assign(i.tools,{image:{class:n,tunes:["textAlign"],config:{validate:{accept:"image/bmp,image/jpeg,image/x-png,image/png",maxFileSize:10,limit:350,limitUpload:350},uploadImgError:e=>{e===a.A_?(0,C.HY)({message:x("acceptType",{acceptType:"JPG/PNG/JPEG"}),type:"error"}):e===a._M?(0,C.HY)({message:x("maxSizeImage",{maxSize:10}),type:"error"}):e===a.Ts?(0,C.HY)({message:x("overLimit",{limit:350}),type:"error"}):e===a.j$&&(0,C.HY)({message:x("overLimitUpload",{limitUpload:350}),type:"error"})}}}}),data:e.manualDocsBlocksData||{},onReady:()=>{var e;let n={editor:A[t],config:{shortcuts:{undo:["CMD+Z"],redo:["CMD+SHIFT+Z"]},debounceTimer:500}};new E(n),null===(e=A[t])||void 0===e||e.save().then(async e=>{s((0,l.ZP)(e.blocks)),f(e.blocks.filter(e=>"image"===e.type).length)})},onChange:(0,c.ggjDebounce)(async(n,i)=>{var o;if((null==n?void 0:n.blocks)&&(null==i?void 0:i.detail)){let e=i.detail.target,t=null==e?void 0:e.id,s=n.blocks.getById(t);if(s){let e=s.holder.innerHTML;if(P(e)){let s=new DOMParser().parseFromString(e,"text/html"),i=null==s?void 0:s.querySelector(".ce-paragraph,.ce-header,.tc-table"),o=null==s?void 0:s.querySelectorAll(".cdx-list__item");if(i&&!i.innerHTML.includes('target="_blank'))await n.blocks.update(t,{text:N(i.innerHTML)});else if(o.length>0){let e=!1;if(o.forEach(t=>{P(t.innerHTML)&&!t.innerHTML.includes('target="_blank"')&&(e=!0,t.innerHTML=N(t.innerHTML))}),e){let e=[];o.forEach(t=>{e.push(t.innerHTML)}),await n.blocks.update(t,{items:e})}}}}}null===(o=A[t])||void 0===o||o.save().then(async t=>{s((0,l.ZP)(t.blocks)),f(t.blocks.filter(e=>"image"===e.type).length),(null==e?void 0:e.onChange)&&(null==e||e.onChange(t))})},500)},updateEditorInstance(e){A[t]=e}}).then()})}),()=>{var e,n;"function"==typeof(null===(e=A[t])||void 0===e?void 0:e.destroy)&&(null===(n=A[t])||void 0===n||n.destroy()),delete A[t],U.cancel()}},[]),(0,v.useEffect)(()=>{let e=()=>{var e;document.body.classList.contains("ce-scroll-locked")&&document.body.querySelector(".ce-toolbar__plus").click(),null===(e=document.body.querySelector(".ce-popover__overlay"))||void 0===e||e.click()};return window.addEventListener("resize",e),y.beforePopState(t=>{let{as:n}=t;return n!==y.asPath&&e(),!0}),()=>{y.beforePopState(()=>!0),window.removeEventListener("resize",e)}},[y]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{id:t,css:(0,o.css)(B()),className:"ggj-scrollbar ggj-document-block-editor"}),(0,i.jsx)("div",{css:(0,o.css)(D()),title:x("number-of-image",{ns:h.oj}),children:(0,i.jsxs)(u.Z,{variant:"caption",css:(0,o.css)(H()),children:[(0,d.u)(p),"/",(0,d.u)(350),(0,i.jsx)(L.Z,{css:(0,o.css)(j())})]})}),(0,i.jsx)("div",{css:(0,o.css)(O()),title:x("number-of-character",{ns:h.oj}),children:(0,i.jsxs)(u.Z,{variant:"caption",css:(0,o.css)(Z()),children:[(0,d.u)(n),"/",(0,d.u)(h.rz),(0,i.jsx)(I.Z,{css:(0,o.css)(z())})]})}),(0,i.jsx)(o.Global,{styles:(0,o.css)(R(),m.breakpoints.values.md,m.breakpoints.values.lg-1)})]})}},81936:function(){},47379:function(e,t){var n,s;n=[e],void 0!==(s=(function(e){"use strict";var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),n=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this.target=t,this.isContentEditable=t&&t.contentEditable}return t(e,[{key:"getPos",value:function(){if(document.activeElement!==this.target)return -1;
1if("true"===this.isContentEditable){this.target.focus();var e=document.getSelection().getRangeAt(0),t=e.cloneRange();return t.selectNodeContents(this.target),t.setEnd(e.endContainer,e.endOffset),t.toString().length}return this.target.selectionStart}},{key:"setPos",value:function(e){if("true"===this.isContentEditable){if(e>=0){var t=window.getSelection(),n=this.createRange(this.target,{count:e});n&&(n.collapse(!1),t.removeAllRanges(),t.addRange(n))}}else this.target.setSelectionRange(e,e)}},{key:"createRange",value:function(e,t,n){if(n||((n=document.createRange()).selectNode(e),n.setStart(e,0)),0===t.count)n.setEnd(e,t.count);else if(e&&t.count>0){if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(n.setEnd(e,t.count),t.count=0);else for(var s=0;s<e.childNodes.length&&(n=this.createRange(e.childNodes[s],t,n),0!==t.count);s++);}return n}}]),e}();e.exports=n}).apply(t,n))&&(e.exports=s)},72125:function(e,t,n){e.exports=n(47379)}}]);

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.