PageSourceSearch

https://cdn.naimei.com.tw/_next/static/chunks/931.5755c641ae00adc0.js

js naimei.com.tw collected 2026-10-08 07:22:42 UTC 7,331 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{40931:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(11060),o=n(55049),a=n(50951),i=n(67294),l=n(1890),u=n(96555),c=n(18156),s=n(69608),f=n(87535),d=n(6949),p=function(e,t){var n=e.plugins,r=(0,l.ui)();return i.useCallback(function(e){return(n.filter(function(e){return e.hotKey}).forEach(function(t){t.hotKey&&(0,c.ZP)(t.hotKey,e)&&(e.preventDefault(),(0,f.L)(r,t)?(0,d.J)(r,t):(0,s.G)(r,t))}),(0,c.ZP)(["mod+z","mod+y"],e))?(e.preventDefault(),!0):(0,c.ZP)(["esc"],e)?(l.F3.blur(r),!0):(0,c.ZP)("shift+enter",e)?(e.preventDefault(),r.insertText("\n"),!0):void 0},t)},y=n(83108),m=(0,r.Z)(function(){return n.e(1263).then(n.bind(n,41263))}),v=i.memo(function(e){var t=e.plugins,n=e.defaultPluginType,r=e.readOnly,a=e.placeholder,c={useSelected:l.vt,useFocused:l.UE,readOnly:r},s=(0,y.E)({plugins:t,defaultPluginType:n,injections:c},[]),f=(0,y.g)({plugins:t,injections:c},[]),d=p({plugins:t},[]),m=(0,u.A1)(),v=(0,o.lp)().length>1;return i.createElement(l.CX,{placeholder:r?void 0:a,readOnly:m||r||v,renderElement:s,renderLeaf:f,onKeyDown:r?void 0:d})}),h=i.memo(function(e){var t,n,r=e.plugins,o=e.focused,l=e.readOnly,u=(0,a.WW)().t;return i.createElement(i.Fragment,null,!l&&o&&i.createElement(m,{plugins:e.plugins,translations:e.translations}),i.createElement(v,{placeholder:null!==(n=u(null===(t=e.translations)||void 0===t?void 0:t.placeholder))&&void 0!==n?n:"",readOnly:l,plugins:r,defaultPluginType:e.defaultPluginType}))})},69608:function(e,t,n){n.d(t,{G:function(){return s}});var r=n(67294),o=n(60896),a=n(1890),i=n(87535),l=n(6949),u=n(20159),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(e,t,n){var r,a=n||{},s=a.data,f=a.text,d=(0,i.L)(e,t);if(f){var p="component"===t.pluginType&&"inline"===t.object&&t.addExtraSpace?f+" ":f;e.insertText(p),e.selection&&o.Transforms.select(e,{anchor:e.selection.anchor,focus:c(c({},e.selection.focus),{offset:e.selection.focus.offset-p.length})})}var y=s||(t.getInitialData?t.getInitialData():null);if(d&&(o.Transforms.select(e,d[1]),(0,l.J)(e,t)),t.customAdd)t.customAdd(e);else if("component"===t.pluginType){if("mark"===t.object)e.addMark(t.type,y||!0);else if(t.isVoid)o.Transforms.insertNodes(e,{type:t.type,data:y,children:[{text:""}]});else if("block"===t.object&&t.replaceWithDefaultOnRemove)o.Transforms.setNodes(e,{type:t.type,data:y});else if(o.Transforms.wrapNodes(e,{type:t.type,children:[],data:y},{split:!0}),"inline"===t.object&&t.addExtraSpace&&!f&&e.selection){var m=c({},e.selection.focus);o.Transforms.insertText(e," ",{at:e.selection.focus}),o.Transforms.select(e,m)}}else if("data"===t.pluginType){var v=null!==(r=(0,u.Z)(e))&&void 0!==r?r:{};o.Transforms.setNodes(e,{data:c(c({},v),null!=y?y:{})})}};t.Z=function(e){var t=(0,a.ui)();return(0,r.useCallback)(function(n){return s(t,e,n)},[])}},87535:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(60896),o=n(1890),a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},i=function(e,t){if("custom"===t.pluginType)return null;var n="component"===t.pluginType?"mark"===t.object?function(e){return!!e[t.type]}:function(e){return e.type===t.type}:"data"===t.pluginType?function(e){var n=e.data;return t.dataMatches(n)}:null;if(!n)return null;try{return a(r.Editor.nodes(e,{match:n,mode:"lowest"}),1)[0]}catch(e){return null}};t.Z=function(e){return i((0,o.ui)(),e)}},6949:function(e,t,n){n.d(t,{J:function(){return u}});var r=n(67294),o=n(60896),a=n(1890),i=n(20159),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u=function(e,t){if(t.customRemove)t.customRemove(e);else if("component"===t.pluginType)"mark"===t.object?e.removeMark(t.type):"inline"===t.object?t.isVoid?o.Transforms.removeNodes(e,{match:function(e){return e.type===t.type}}):o.Transforms.unwrapNodes(e,{match:function(e){return e.type===t.type}}):"block"===t.object&&(t.isVoid?o.Transforms.removeNodes(e,{match:function(e){return e.type===t.type}}):t.replaceWithDefaultOnRemove?o.Transforms.setNodes(e,{type:null}):o.Transforms.unwrapNodes(e,{match:function(e){return e.type===t.type},split:!0}));else if("data"===t.pluginType&&t.properties){var n=(0,i.Z)(e),r=Object.keys(n).reduce(function(e,r){var o,a;return(null===(a=t.properties)||void 0===a?void 0:a.includes(r))?e:l(l({},e),((o={})[r]=n[r],o))},{});o.Transforms.setNodes(e,{data:r})}};t.Z=function(e){var t=(0,a.ui)();return(0,r.useCallback)(function(){return u(t,e)},[])}},20159:function(e,t,n){var r=n(60896),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i};
1t.Z=function(e){var t,n=o(r.Editor.nodes(e,{mode:"all",match:function(e){return!!e.data}}),1)[0];return n?null===(t=n[0])||void 0===t?void 0:t.data:{}}},18156:function(e,t){for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=1;i<20;i++)a["f"+i]=111+i;function l(e,t,n){!t||"byKey"in t||(n=t,t=null),Array.isArray(e)||(e=[e]);var i=e.map(function(e){return function(e,t){var n=t&&t.byKey,i={},l=(e=e.replace("++","+add")).split("+"),c=l.length;for(var s in r)i[r[s]]=!1;var f=!0,d=!1,p=void 0;try{for(var y,m=l[Symbol.iterator]();!(f=(y=m.next()).done);f=!0){var v,h=y.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var w=u(h),b=r[w];if(h.length>1&&!b&&!o[h]&&!a[w])throw TypeError('Unknown modifier: "'+h+'"');1!==c&&b||(n?i.key=w:i.which=(v=h,a[v=u(v)]||v.toUpperCase().charCodeAt(0))),b&&(i[b]=!g||null)}}catch(e){d=!0,p=e}finally{try{!f&&m.return&&m.return()}finally{if(d)throw p}}return i}(e,t)}),l=function(e){return i.some(function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)})};return null==n?l:l(n)}function u(e){return e=o[e=e.toLowerCase()]||e}t.ZP=l,t.P6=l,t.TB=function(e,t){return l(e,{byKey:!0},t)}}}]);

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.